/* ==========================================================================
   DERVISH.PK DIGITAL AGENCY - GLOBAL REUSABLE STYLES
   ========================================================================== */

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #753625;
  --primary-red-hover: #5b2a1d;
  --dark-bg: #293133;
  --dark-card-bg: #1f2527;
  --light-pink-bg: #f9f5f4;
  --text-dark: #293133;
  --text-gray: #4a5456;
  --text-muted: #666666;
  --text-light: #ffffff;
  --card-border: #e2e8f0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo {
  height: 40px;
  max-height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

footer .logo-text {
  color: #ffffff;
}

.logo-badge {
  background-color: var(--primary-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.4rem;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: -0.5px;
  transition: background-color 0.2s ease;
}

.logo-badge:hover {
  background-color: var(--primary-red-hover);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a.active, 
.nav-links a:hover {
  color: var(--primary-red);
}

.dropdown-icon {
  font-size: 0.7rem;
  margin-left: 3px;
  transition: transform 0.25s ease;
  display: inline-block;
  color: inherit;
}

/* Dropdown Menu Styles */
.has-dropdown {
  position: relative;
  padding-bottom: 4px;
}

.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: #ffffff;
  min-width: 165px;
  padding: 14px 18px;
  border-radius: 6px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--card-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  display: block;
  transition: color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  color: var(--primary-red);
  text-decoration: underline;
}

/* Mobile Sub-Links */
.mobile-dropdown-links {
  padding-left: 15px;
  display: flex;
  flex-direction: column;
}

.mobile-sub-link {
  font-size: 0.88rem !important;
  color: var(--text-gray) !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.mobile-sub-link:hover,
.mobile-sub-link.active {
  color: var(--primary-red) !important;
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 1.4rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 15px 20px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  color: var(--text-dark);
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu a.active,
.mobile-menu a:hover {
  color: var(--primary-red);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #333333;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s ease;
  border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
  background-color: #e8e8e8;
}

.btn-outline {
  border: 1px solid var(--primary-red);
  color: var(--primary-red);
  background: transparent;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 20px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--primary-red);
  color: #ffffff;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero {
  background-color: var(--dark-bg);
  color: #ffffff;
  text-align: center;
  padding: 90px 20px 80px;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-description {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 820px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.hero-image-wrapper {
  max-width: 950px;
  margin: 50px auto 0;
  border-radius: 6px;
  overflow: hidden;
}

/* ==========================================================================
   COMMON SECTION HEADERS
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--primary-red);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.section-desc {
  color: var(--text-gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================================================
   WHAT WE DO / SERVICES GRID
   ========================================================================== */
.services-section {
  padding: 90px 20px;
  background-color: #ffffff;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--light-pink-bg);
  padding: 35px 30px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-gray);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 15px;
}

.card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
}

.card-link {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: underline;
}

.card-icon-btn {
  width: 26px;
  height: 26px;
  background-color: var(--primary-red);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

/* ==========================================================================
   OFFERINGS GRID (4 COLUMNS)
   ========================================================================== */
.offerings-section {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
}

.offerings-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.offering-card {
  background-color: var(--light-pink-bg);
  padding: 30px 20px;
  border-radius: 6px;
  text-align: left;
}

.offering-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.offering-card p {
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ==========================================================================
   CHECKLIST & FEATURE BLOCKS
   ========================================================================== */
.checklist-section {
  background-color: var(--light-pink-bg);
  padding: 70px 20px;
}

.checklist-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.checklist-info h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.checklist-info p {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.65;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 30px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #bb2222;
}

.banner-quote {
  text-align: center;
  padding: 60px 20px 0;
  max-width: 900px;
  margin: 40px auto 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #222222;
  border-top: 2px solid var(--primary-red);
  line-height: 1.5;
}

.feature-block {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.feature-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.feature-text p {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 15px;
}

.feature-image img {
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  width: 100%;
}

/* ==========================================================================
   FAQS & QUESTIONS BOX
   ========================================================================== */
.faq-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.faq-grid {
  max-width: 1100px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

.faq-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.faq-item p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.65;
}

.faq-note {
  font-size: 0.8rem;
  color: #888888;
  margin-top: 8px;
}

.questions-box {
  max-width: 1100px;
  margin: 50px auto 0;
  background-color: var(--light-pink-bg);
  padding: 25px 30px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.questions-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.questions-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CASE STUDIES GRID
   ========================================================================== */
.case-studies {
  background-color: var(--light-pink-bg);
  padding: 80px 20px;
  text-align: center;
}

.case-grid {
  max-width: 1200px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.case-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 6px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.case-card img {
  border-radius: 4px;
  margin-bottom: 15px;
  width: 100%;
  object-fit: cover;
}

.case-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
  line-height: 1.4;
}

.case-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

.case-card a {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: underline;
}

/* ==========================================================================
   DARK CONTACT CARD
   ========================================================================== */
.contact-card-dark {
  background-color: var(--dark-bg);
  color: #ffffff;
  padding: 40px;
  border-radius: 6px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.card-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.social-mini {
  display: flex;
  gap: 12px;
}

.social-mini a {
  color: #ffffff;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.social-mini a:hover {
  color: var(--primary-red);
}

.card-divider {
  border-top: 1px dotted rgba(255, 255, 255, 0.2);
  margin-bottom: 25px;
}

.info-group {
  margin-bottom: 25px;
}

.info-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 5px;
}

.info-group p {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   SEE OUR SPACE SECTION
   ========================================================================== */
.space-section {
  background-color: var(--dark-bg);
  color: #ffffff;
  padding: 80px 20px;
}

.space-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.space-info h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.space-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  height: 140px;
  background-color: #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--dark-bg);
  color: #ffffff;
  padding: 60px 20px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 20px 0;
  max-width: 380px;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 32px;
  height: 32px;
  background-color: #ffffff;
  color: var(--dark-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  background-color: var(--primary-red);
  color: #ffffff;
}

.office-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.office-block p {
  color: var(--text-light);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.office-block a {
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .services-grid, 
  .case-grid, 
  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offerings-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .who-row,
  .stats-container,
  .contact-container,
  .contact-top-container,
  .space-container,
  .checklist-container,
  .feature-block,
  .who-container,
  .mission-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .services-grid,
  .offerings-grid,
  .case-grid,
  .faq-grid,
  .why-grid,
  .offices-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .questions-box {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
