/* ==========================================================================
   D in Media Solutions - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --color-text:       #1d1e20;
  --color-gray:       #56585e;
  --color-gray-light: #f5f5f5;
  --color-white:      #ffffff;
  --color-dark:       #1d1e20;
  --color-darker:     #161616;
  --color-gold:       #e6b928;
  --color-gold-dark:  #c9a010;
  --font-main:        'DM Sans', sans-serif;
  --max-width:        1200px;
  --header-height:    80px;
  --transition:       0.25s ease;
  --radius-pill:      28px;
  --radius-card:      8px;
  --section-padding:  clamp(56px, 8vw, 80px) 24px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem);  font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem);    font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 700; }
h5 { font-size: 1rem;     font-weight: 700; }
h6 { font-size: 1rem;     font-weight: 700; }

p  { font-size: 1rem; color: var(--color-gray); }

/* --------------------------------------------------------------------------
   Layout Helpers
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  height: var(--header-height);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
}

/* Hamburger button */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 1100;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

/* Animate to ✕ when open */
.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop inline nav */
.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--color-gold);
}

.desktop-nav a.active::after,
.desktop-nav a:hover::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Mobile Nav Overlay
   -------------------------------------------------------------------------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 100px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.active {
  transform: translateX(0);
}

.nav-overlay ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.nav-overlay a {
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav-overlay a:hover,
.nav-overlay a.active {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 639px) {
  .header-inner,
  .container {
    padding: 0 18px;
  }

  .site-header {
    height: 72px;
  }

  .logo img {
    height: 52px;
  }

  .menu-btn {
    width: 36px;
    height: 36px;
    gap: 4px;
    padding: 5px;
  }

  .nav-overlay {
    padding: 82px 18px 18px;
  }

  .nav-overlay ul {
    gap: 4px;
  }

  .nav-overlay a {
    font-size: 1rem;
  }

  .hero {
    min-height: 80vh;
    padding: 104px 18px 56px;
  }

  .hero-content h1 {
    margin-bottom: 24px;
  }

  .btn {
    padding: 14px 28px;
  }

  .section-subtext {
    margin: 0 auto 32px;
  }

  .stats-section {
    padding: 52px 18px;
  }

  .stat-item .stat-number {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-bottom p {
    line-height: 1.6;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: var(--color-white);
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 36px;
}

/* Page hero (non-home inner pages with dark bg) */
.page-hero {
  background: var(--color-dark);
  padding: 80px 24px;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Light page hero (About page style) */
.page-hero-light {
  background: var(--color-white);
  padding: 80px 24px 60px;
  text-align: center;
}

.page-hero-light h1 {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Sections – Common
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-padding);
}

.section-heading {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtext {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* --------------------------------------------------------------------------
   Service Cards (Home & Services pages)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.service-card-body h5,
.service-card-body h6 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.service-card-body p {
  font-size: 0.95rem;
}

/* Arrow link on service card */
.service-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 1.4rem;
  color: var(--color-gold);
  transition: transform var(--transition);
}

.service-card:hover .service-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Split Section (text + image side by side)
   -------------------------------------------------------------------------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.split-section img {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}

.split-section .text-block h3 {
  margin-bottom: 20px;
}

.split-section .text-block p {
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Stats Bar
   -------------------------------------------------------------------------- */
.stats-section {
  background: linear-gradient(to right, #f0b429, #e0719e, #c46fd4);
  padding: 72px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.stat-item .stat-number {
  display: block;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Mission / Vision Cards (About page)
   -------------------------------------------------------------------------- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.mv-card {
  background: var(--color-gray-light, #f5f5f5);
  border-radius: var(--radius-card);
  padding: 36px 28px;
}

.mv-card h3 {
  margin-bottom: 16px;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Full-width Image Band
   -------------------------------------------------------------------------- */
.img-band {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Gallery Grid (Services page)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-card);
  transition: transform var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   Solutions Page – Image Collage
   -------------------------------------------------------------------------- */
.solutions-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 32px;
}

.solutions-collage .col-main {
  grid-column: 1 / -1;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.solutions-collage .col-sub {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* --------------------------------------------------------------------------
   Testimonials (Solutions page)
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonial-card {
  background: var(--color-gray-light, #f5f5f5);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  font-weight: 700;
  color: var(--color-text);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--color-gray);
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-form-wrapper h3 {
  margin-bottom: 8px;
}

.contact-form-wrapper .section-lead {
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group label span.required {
  color: #e53e3e;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--transition);
  background: var(--color-white);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --------------------------------------------------------------------------
   Location Section (Contact page)
   -------------------------------------------------------------------------- */
.location-section h3 {
  margin-bottom: 8px;
}

.location-section > p {
  margin-bottom: 32px;
}

.map-frame {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: var(--radius-card);
  margin-bottom: 32px;
}

.location-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.location-item h6 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.location-item p,
.location-item a {
  color: var(--color-gray);
  font-size: 0.95rem;
  display: block;
  line-height: 1.6;
}

.location-item a:hover {
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   Policy Pages
   -------------------------------------------------------------------------- */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section-padding);
}

.policy-content h1 {
  margin-bottom: 32px;
}

.policy-content h6 {
  font-size: 1.05rem;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.policy-content p {
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.policy-content ul li {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-darker);
  color: rgba(255,255,255,0.75);
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

.footer-brand .footer-logo {
  height: 55px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  max-width: 280px;
}

.footer-brand a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  transition: color var(--transition);
}

.footer-brand a:hover {
  color: var(--color-gold);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background var(--transition);
}

.footer-social a:hover {
  background: var(--color-gold);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: var(--color-white);
}

.footer-contact-line {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* --------------------------------------------------------------------------
   Responsive – Tablet (≥ 640px)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

/* --------------------------------------------------------------------------
   Responsive – Desktop (≥ 900px)
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  /* Show desktop inline nav, hide hamburger */
  .desktop-nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-section {
    grid-template-columns: 1fr 1fr;
  }

  .contact-section {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
  }

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

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

  .solutions-collage .col-main {
    height: 320px;
  }
}

@media (min-width: 1100px) {
  .gallery-grid img {
    height: 220px;
  }

  .solutions-collage {
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    max-width: 760px;
  }

  .section-subtext {
    max-width: 680px;
  }

  .desktop-nav ul {
    gap: 32px;
  }

  .service-card img {
    height: 240px;
  }
}
