  html {
  scroll-behavior: smooth;
}
/* GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #0E2B4A;
  line-height: 1.6;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;             /* flexbox for alignment */
  align-items: center;
  gap: 0.75rem;
}

.logo-glyph{
  width: 40px;
  height: 40px;
  display: inline-block;
  background-color: #0E2B4A;

  /* gunakan longhand agar tidak di-strip oleh optimizer */
  -webkit-mask-image: url("assets/images/logo-gtd.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

          mask-image: url("assets/images/logo-gtd.png");
          mask-repeat: no-repeat;
          mask-position: center;
          mask-size: contain;
}

.logo-img {
  height: 36px;              /* scale the logo properly */
  width: auto;               /* keep aspect ratio */
  object-fit: contain;
  display: block;
}

.logo i {
  font-size: 1.75rem;
  color: #0E2B4A;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .brand {
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 1.1rem;
}

.logo-text .tagline {
  font-size: 0.75rem;
  color: #6b7280;
}

.header { position: sticky; top: 0; z-index: 1000; }

/* NAVIGATION */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #F2B400;
}

/* BUTTONS */
.btn-primary {
  background: #F2B400;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #d99f00;
}

.btn-outline {
  border: 2px solid #0E2B4A;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  color: #0E2B4A;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #0E2B4A;
  color: #fff;
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

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

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 43, 74, 0.55);
  z-index: -1;
}

.hero-content {
  max-width: 960px;   /* was 800px — gives the H1 more room */
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;    /* was nowrap — let it wrap if needed */
  word-break: keep-all;   /* avoid ugly mid-word breaks */
  hyphens: none;
}

.hero h1 span {
  color: #F2B400;
}

.hero p {
  margin: 1rem 0 2rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #f1f1f1;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;

}

/* ===================== About Us ===================== */
.about-us {
  background: #ffffff;
  color: #0E2B4A;
  padding: 64px 10%;
  scroll-margin-top: 90px; /* ensure header doesn't cover the title when jumping */
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 460px;   /* text | image on desktop */
  grid-template-areas: "text visual";
  gap: 40px;
  align-items: center;
}

/* map children to the areas */
.about-content { grid-area: text; }
.about-visual  { grid-area: visual; }


/* Text column */
.about-content h2 {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 14px;
  color: #0E2B4A;
}

.about-content .lead {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #0E2B4A;  /* strong color for the lead */
  font-size: 1.02rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.about-content p {
  font-family: 'Inter', sans-serif;
  color: #6B7280;
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 0.98rem;
}

/* ---------- About: placeholder illustration styling ---------- */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px; /* keeps vertical rhythm with text column */
  padding: 8px;      /* small padding so placeholder isn't flush to grid */
}

/* About: real photo replaces the placeholder */
.about-photo{
  width: 100%;
  max-width: 480px;        /* matches the previous visual column intent */
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(14,43,74,0.12);
  object-fit: cover;
}

.about-placeholder {
  width: 100%;
  max-width: 480px;            /* visual column max width */
  height: 260px;               /* ideal placeholder height */
  border-radius: 12px;
  border: 2px dashed rgba(14,43,74,0.08);
  background: linear-gradient(180deg, rgba(14,43,74,0.02), rgba(14,43,74,0.01));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  color: #0E2B4A;
}

.about-placeholder svg {
  display: block;
  width: 64px;
  height: 64px;
  opacity: 0.95;
}

.placeholder-text {
  font-family: 'Inter', sans-serif;
  margin: 0;
  color: #0E2B4A;
  font-weight: 600;
  font-size: 1rem;
}

.placeholder-hint {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #6b7280;
  font-size: 0.85rem;
}

/* responsive: stack / shrink placeholder on smaller screens */
@media (max-width: 992px) {
  .about-placeholder {
    max-width: 100%;
    height: 200px;
  }
}

@media (max-width: 640px) {
  .about-placeholder {
    height: 180px;
    padding: 14px;
  }
  .placeholder-text { font-size: 0.95rem; }
  .placeholder-hint { font-size: 0.78rem; }
}

/* Stack on mobile: image first, then text */
@media (max-width: 768px) {
  .about-us       { padding: 48px 6%; }        /* a little tighter padding */
  .about-grid     {
    grid-template-columns: 1fr;               /* single column */
    grid-template-areas:
      "visual"
      "text";
    gap: 20px;
  }
  .about-visual   { padding: 0; }              /* remove extra side padding */
  .about-photo    { max-width: 100%; height: auto; }
  .about-content .lead,
  .about-content p { font-size: 1rem; }        /* comfortable reading size */
}


/* Services Section */
.services {
  padding: 80px 10%;
  background: #f9fbfd;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #0a2940;
  margin-bottom: 10px;
}

.services-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.service-content {
  padding: 20px;
  text-align: left;
}

.service-content i {
  font-size: 24px;
  color: #0a2940;
  margin-bottom: 10px;
}

.service-content h3 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #0a2940;
  margin-bottom: 10px;
}

.service-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.service-content a {
  font-weight: bold;
  color: #f9b233;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.service-content a:hover {
  color: #d98f00;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white; /* or your theme color */
  z-index: 1000;
}

section {
  padding: 100px 20px; /* adjust based on header height */
}

/* Services Section */
.services {
  padding: 80px 10%;
  background: #f9fbfd;
  text-align: center;

  /* so anchor scrolling doesn't hide the title behind the sticky header */
  scroll-margin-top: 90px; /* adjust if your header height changes */
}

.services h2 {
  font-family: 'Merriweather', serif;   /* <- key change */
  font-weight: 900;                     /* bold like the hero */
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  color: #0E2B4A;
  margin-bottom: 10px;
}

.services-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr; /* mobile default */
}

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

/* ≥992px: 3 columns */
@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ≥1200px: 4 columns (your request) */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* give the services section a little more breathing room on wide screens */
  .services .container {
    max-width: 1280px;  /* ensures 4 cards fit comfortably with gaps */
    margin: 0 auto;
  }
}

/* -------------------------------
   Services — 2-column grid, image-left cards (final)
   Replace any old services CSS with this block.
   ------------------------------- */

.services {
  /* light grey background to match your original layout */
  background: #f6f8fa;   /* if you had a different exact grey in your original, replace this hex */
  padding: 56px 0;
  color: #0E2B4A;
}

/* Heading & centered subtitle */
.services h2 {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  margin-bottom: 8px;
  text-align: center; /* heading remains left */
}

/* --- THIS is the requested center subtitle --- */
.services-subtitle {
  color: #6B7280;
  font-family: 'Inter', sans-serif;
  max-width: 900px;
  margin: 0 auto 28px;   /* centers the subtitle under the heading */
  text-align: center;    /* center the subtitle text */
}

/* Grid: exactly 2 columns (desktop), 1 column on mobile */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns x 3 rows for 6 items */
  gap: 28px;
  /* ensure every grid cell (card) shares the same height */
  grid-auto-rows: 1fr;
  align-items: stretch;
}

/* Card: make it stretch to fill its grid cell */
.service-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(14,43,74,0.06);
  box-shadow: 0 8px 20px rgba(14,43,74,0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;             /* enforce full height inside the grid-auto-row */
  box-sizing: border-box;
}

/* The inner row that contains image (left) + content (right) */
.card-inner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex: 1 1 auto;           /* allow the inner row to grow and fill the card */
}

/* Left media column (fixed width) */
.card-media {
  flex: 0 0 200px;          /* image column width; reduce if you want narrower */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card thumbnails: consistent sizes */
.card-media img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 6px 12px rgba(14,43,74,0.06);
}

/* Fallback placeholder if image not present */
.img-fallback {
  width: 200px;
  height: 130px;
  border-radius: 8px;
  border: 1px dashed rgba(14,43,74,0.06);
  background: linear-gradient(180deg, rgba(14,43,74,0.01), rgba(14,43,74,0.005));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0E2B4A;
  font-weight:600;
  font-family:'Inter', sans-serif;
  text-align:center;
  padding:8px;
}

/* Right content column: FORCE left alignment of titles & text */
.card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  text-align: left;       /* <-- ensure titles & paragraphs are left-aligned */
}

.card-content h3 {
  font-family: 'Merriweather', serif;
  font-weight: 800;
  margin: 0 0 10px;
  color: #0E2B4A;
  font-size: 1.1rem;
  text-align: left;       /* also explicit */
}

.card-content p {
  color: #6B7280;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
  text-align: left;       /* explicit left alignment */
}

/* Ensure the image/text block grows so the whole card stays even */
.card-inner { 
  /* already has flex:1 above; this is reiterated for clarity */
  flex: 1 1 auto;
}

/* Responsive: single-column cards on small screens */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .card-inner {
    flex-direction: column; /* stack image above text on mobile */
    gap: 12px;
  }
  .card-media {
    flex-basis: auto;
  }
  .card-media img, .img-fallback {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }
}


/* ========= WHY US (5 cards / 3 then 2, centered) ========= */
.why-us {
  padding: 80px 0;
  background: #ffffff; /* keep section white; the two highlight cards you already have can sit above/below */
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;              /* <-- centers the last row with 2 cards */
  align-items: stretch;
}

.why-card {
  flex: 1 1 calc(33.333% - 24px);       /* 3 columns on desktop */
  max-width: 380px;                     /* keeps the card from growing too wide */
  background: #ffffff;
  border: 1px solid rgba(15, 42, 68, 0.08);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 42, 68, 0.08);
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff3cc;                  /* soft yellow bubble */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.why-icon i {
  font-size: 28px;
  color: #f0b400;                       /* your gold accent */
}

.why-card h3 {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.35;
  color: #0f2a44;                        /* navy */
  margin: 8px 0 10px;
}

.why-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #5c6b7a;                        /* muted body */
  margin: 0;
}

/* 2 columns on tablets */
@media (max-width: 992px) {
  .why-card { flex: 1 1 calc(50% - 24px); }
}

/* 1 column on phones */
@media (max-width: 640px) {
  .why-card { flex: 1 1 100%; }
}

/* ---------- WHY US: title spacing + big Merriweather like other sections ---------- */
.why-us { padding: 90px 0; }  /* a bit more top/bottom room so the heading isn't glued to the cards */

.why-us .why-title {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  color: #0f2a44;                 /* navy */
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(32px, 2.4vw + 12px, 46px); /* same visual weight as your other section titles */
  margin: 0 0 40px;               /* <-- breathing room under the heading */
}

/* ---------- WHY US: apply the same hover treatment as Services cards ---------- */
/* Base card already exists from previous step; add smooth transitions */
.why-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

/* Hover = subtle lift, deeper shadow, slightly stronger border tint, warmer icon chip */
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(15, 42, 68, 0.16);
  border-color: rgba(15, 42, 68, 0.18);
}

/* icon chip warms up on hover to echo the Services effect */
.why-card:hover .why-icon { background: #ffe08a; }  /* a bit warmer than #fff3cc */

/* keep heading crisp on hover (optional: tiny color deepen to match Services) */
.why-card:hover h3 { color: #0f2a44; }

/* CONTACT CTA SECTION */
.contact-cta {
  background: #0E2B4A;               /* deep navy */
  color: #fff;
  padding: 80px 0;
  text-align: center;
  scroll-margin-top: 96px;           /* prevents sticky header from hiding the title */
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Heading uses Merriweather (same as hero) */
.contact-inner h2 {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  margin-bottom: 18px;
  color: #ffffff;
  line-height: 1.05;
}

/* Subtitle uses Inter */
.contact-sub {
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.92);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 820px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Buttons row */
.contact-buttons {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Primary button (yellow with soft glow) */
.contact-cta .btn-primary {
  background: #F2B400;
  color: #0E2B4A;
  padding: 14px 38px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 36px rgba(242,180,0,0.18);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(242,180,0,0.22);
}

/* Secondary outlined button (white outline) */
.contact-cta .btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.95);
  padding: 12px 34px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.contact-cta .btn-outline:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* Make buttons stack on small screens */
@media (max-width: 540px) {
  .contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .contact-cta .btn-primary, .contact-cta .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .contact-inner h2 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .contact-sub { font-size: 0.98rem; }
}

/* FOOTER */
.site-footer {
  background: #06283a;       /* slightly darker navy for footer area */
  color: rgba(255,255,255,0.92);
  padding: 56px 0 28px;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid: 4 columns on large screens */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1fr;
  gap: 28px 36px;
  align-items: start;
}

/* Brand column */
.footer-brand .footer-logo {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}


.logo-mark {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #F2B400;
  color: #06283a;
  font-size: 20px;
}

/* -------- Footer logo SVG sizing + alignment -------- */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;   /* space between logo and text, matches your layout */
}

/* Inline SVG logo: size it and make it crisp */
.footer-logo-svg {
  width: 56px;      /* final width on desktop - change if you want larger/smaller */
  height: auto;     /* important: preserve aspect ratio */
  display: block;
  overflow: visible; /* allow outline to show outside viewport */
}

.logo-text .brand-name {
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 1.1rem;
  color: #ffffff;
}
.logo-text .brand-tag {
  font-size: .85rem;
  color: rgba(255,255,255,0.85);
}

/* Description */
.footer-desc {
  max-width: 360px;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* Column headings */
.site-footer h4 {
  font-family: 'Merriweather', serif;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 16px;
  font-size: 1.1rem;
}

/* Links lists */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
  color: rgba(255,255,255,0.85);
}
.footer-col a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-col a:hover {
  color: #F2B400;
}

/* Contact list specifics */
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: center;
}
.contact-list li i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

/* divider */
.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 28px 0;
}

/* bottom row */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
}
.footer-bottom .copyright {
  color: rgba(255,255,255,0.78);
  margin: 0;
  font-size: 0.95rem;
}

/* Social icons */
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 10px;
  color: rgba(255,255,255,0.92);
  border-radius: 8px;
  text-decoration: none;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.socials a:hover {
  background: rgba(242,180,0,0.12);
  color: #F2B400;
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-desc { max-width: 100%; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-brand .footer-logo { gap: 10px; }
  .logo-mark { width: 48px; height: 48px; font-size: 18px; }
  .site-footer { padding: 36px 0 20px; }
  .footer-bottom { justify-content: center; text-align: center; gap: 8px; }
  .socials { order: 2; margin-top: 8px; }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .mini-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .why-us {
    padding: 48px 6%;
  }
  .why-title {
    font-size: clamp(1.6rem, 6.8vw, 2.4rem);
  }
  .mini-cards {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Contact modal & backdrop
   =========================== */

/* Prevent scroll when modal open */
body.modal-open { overflow: hidden; }

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  z-index: 2100;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.modal-content h3 {
  font-family: "Merriweather", serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #0E2B4A;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.modal-btn {
  display: inline-block;
  background: #FDBF00;
  color: #0E2B4A;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.modal-btn:hover {
  background: #e0a800;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    padding: 1rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .hamburger {
    display: block;
    color: #0E2B4A;
  }

   .logo-glyph{
    width: 30px;
    height: 30px;
   }
}

@media (max-width: 640px) {
  .footer-logo-svg {
    width: 48px;
  }
}

/* ==== Anchored modal + “from the button” animation ==== */

/* Prevent page scroll when modal is open */
body.modal-open { overflow: hidden; }

/* Base hidden state remains via .modal.hidden { display:none; } in your existing CSS */
/* Animate the panel itself */
.modal .modal-content {
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transform-origin: center;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
  z-index: 2100; /* above overlay */
}

/* When opening */
.modal.is-open .modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Default overlay blur/dim */
.modal .modal-overlay {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Anchored popover mode (desktop): lighter overlay, no blur */
.modal.modal--anchored .modal-overlay {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Position the panel under the clicked button */
.modal.modal--anchored .modal-content {
  position: fixed;
  top: var(--pop-y, 64px);
  left: var(--pop-x, calc(100% - 360px - 16px)); /* right-aligned fallback */
  max-width: 340px;
  width: 340px;
  transform-origin: right top; /* animation feels like it grows from button */
  box-shadow: 0 12px 28px rgba(15,42,68,.18);
}

/* Mobile (<=768px): fallback to centered overlay modal */
@media (max-width: 768px) {
  .modal.modal--anchored .modal-overlay {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
  }
  .modal.modal--anchored .modal-content {
    position: relative;
    top: auto; left: auto;
    max-width: 420px; width: 100%;
    transform-origin: center;
  }
}

.modal .modal-desc { margin-bottom: 20px; }

/* === Hero motif: anchored decorative background === */
.hero {
  position: relative;          /* ensures ::after positions against hero */
  overflow: hidden;            /* hides motif edges on small screens */
}

/* Put hero content above the motif/overlay */
.hero .container,
.hero .hero-inner {
  position: relative;
  z-index: 2;
}

/* If you already have a .hero::before overlay, keep it.
   This ::after is just for the motif image. */
/* Motif fills the entire hero, sits under the dark overlay */
.hero { position: relative; overflow: hidden; }

.hero::after{
  content:"";
  position:absolute;
  inset:0;                                     /* cover all hero */
  background: url("assets/images/hero-motif.png")
              center / cover no-repeat;        /* fill & crop if needed */
  opacity: .14;                                /* subtle integration */
  z-index: 0;                                  /* BELOW the overlay */
  pointer-events: none;
}

/* Ensure your overlay stays above the motif */
.hero::before{
  position: absolute; inset: 0;
  z-index: 1;                                   /* overlay above motif */
}

/* Ensure hero text stays on top of both layers */
.hero .container, .hero .hero-inner{
  position: relative; z-index: 2;
}

/* Optional: slightly lighter on small screens */
@media (max-width: 640px){
  .hero::after{ opacity: .12; }
}

/* Desktop stays as-is (uses hero-motif.png) */

/* Mobile: use the tall crop so the art fills the hero */
@media (max-width: 768px) {
  .hero::after{
    background-image: url("assets/images/hero-motif-mobile.png"); /* mobile art */
    background-size: cover;     /* fill hero both directions */
    background-position: center;
  }
}

/* --- Mobile hero art: overscan + right-edge fill --- */
@media (max-width: 768px) {
  .hero { position: relative; }

  /* The artwork layer */
  .hero::after{
    /* make sure this layer actually covers (and slightly exceeds) the hero */
    content: "";
    position: absolute;
    inset: -1px;                      /* overscan 1px to kill iOS seams */
    background-image: url("assets/images/hero-motif-mobile-vertical.png");
    background-repeat: no-repeat;
    background-position: right center;/* push artwork to the right edge */
    background-size: 120% auto;       /* small zoom so the right is always filled */
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);         /* iOS sub-pixel fix */
  }

  /* keep the dark overlay above the art and fully covering */
  .hero::before{
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* text/content above both layers */
  .hero .container,
  .hero .hero-inner{
    position: relative;
    z-index: 2;
  }
}

/* Desktop (unchanged – your wide artwork) */
@media (min-width: 769px) {
  .hero::after{
    inset: 0;
    background-image: url("assets/images/hero-motif.png");
    background-size: cover;
    background-position: center;
    transform: none;
  }
}

/* Base hero stacking */
.hero { position: relative; overflow: hidden; }
.hero .container, .hero .hero-inner { position: relative; z-index: 2; }

/* Dark overlay stays above the motif */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Mobile / tablet: tall crop, guaranteed to fill the right edge */
@media (max-width: 768px) {
  .hero::after{
    content: "";
    position: absolute;
    inset: -1px; /* overscan to kill Safari hairlines */
    background-image: url("assets/images/hero-motif-mobile-vertical.png"); /* your tall image */
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 120% auto; /* tiny zoom so the right side is always covered */
    z-index: 0;
    pointer-events: none;
    transform: translateZ(0); /* iOS sub-pixel fix */
  }
}

/* Desktop: use the wide artwork */
@media (min-width: 769px) {
  .hero::after{
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/images/hero-motif.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 0;
    pointer-events: none;
  }
}

/* ===== HERO: mobile full-bleed background (no gaps) ===== */
.hero{ position: relative; overflow: hidden; }

/* Keep hero tall on small screens */
@media (max-width: 768px){
  .hero{
    min-height: 100vh;                    /* fallback */
  }
  /* Stable viewport on iOS 15+ (prevents top/bottom gaps when the URL bar collapses) */
  @supports (height: 100svh){
    .hero{ min-height: 100svh; }          /* use the safe viewport height */
  }

  /* Motif layer — fills 100% of hero in both directions */
  .hero::after{
    content:"";
    position: absolute;
    inset: -1px;                          /* overscan to kill Safari hairlines */
    background-image: url("assets/images/hero-motif-mobile-vertical.png");
    background-repeat: no-repeat;
    background-position: center center;   /* center it */
    background-size: cover;               /* FILL both axes (no empty bands) */
    z-index: 0;
    pointer-events: none;
    transform: translateZ(0);             /* iOS sub-pixel fix */
  }

  /* Dark overlay above artwork; also cover fully */
  .hero::before{
    content:"";
    position: absolute;
    inset: -1px;                          /* match ::after overscan */
    z-index: 1;
  }

  /* Text above both layers */
  .hero .container,
  .hero .hero-inner{ position: relative; z-index: 2; }
}

/* Desktop keeps your wide artwork */
@media (min-width: 769px){
  .hero::after{
    content:"";
    position: absolute;
    inset: 0;
    background-image: url("assets/images/hero-motif.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 0;
    pointer-events: none;
  }
}

/* make sure the header row is a flex line */
.header .header-bar{
  display:flex;
  align-items:center;
  gap:12px;
}
.header .brand{ flex:1 1 auto; min-width:0; } /* logo/text on the left */

/* default: hide the compact CTA on desktop */
.btn-cta-mobile{ display:none; }

/* --- MOBILE ONLY --- */
@media (max-width: 768px){
  /* show the compact CTA */
  .btn-cta-mobile{
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    height:36px;
    padding:0 .75rem;
    border-radius:9999px;
    font:600 .875rem/1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background:#F5B800;     /* brand yellow */
    color:#0E2B4A;          /* navy text */
    box-shadow:0 2px 6px rgba(0,0,0,.08);
    white-space:nowrap;
  }
  .btn-cta-mobile i{ font-size:.95rem; }

  /* keep burger snug to the right of the CTA */
  .header .nav-toggle{ margin-left:4px; }

  /* optional: hide the big desktop CTA on mobile if you have one */
  .cta-desktop{ display:none !important; }
}

/* ultra narrow phones: icon-only version */
@media (max-width: 360px){
  .btn-cta-mobile span{ display:none; } /* just the phone icon */
  .btn-cta-mobile{ padding:0 .6rem; width:40px; justify-content:center; }
}

/* ===== Contact modal: universal blurred backdrop (mobile + desktop) ===== */

/* Root */
#contact-modal,
.contact-modal{
  position: fixed;
  inset: 0;
  display: none;                 /* your script toggles this or a class */
  place-items: center;
  z-index: 1000;
}

/* When open (match your existing open class) */
#contact-modal.is-open,
.contact-modal.is-open{
  display: grid;
}

/* Backdrop (the blur) */
#contact-modal::before,
.contact-modal::before{
  content: "";
  position: fixed;
  inset: -1px;                   /* overscan to avoid hairline seams in Safari */
  background: rgba(14, 43, 74, .42);  /* navy with alpha so blur is visible */
  -webkit-backdrop-filter: blur(12px) saturate(105%);
  backdrop-filter: blur(12px) saturate(105%);
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 0;                    /* behind the card, above the page */
  pointer-events: none;          /* clicks go to the card only */
  transform: translateZ(0);      /* iOS compositor stability */
}

/* Fade in the backdrop when the modal is open */
#contact-modal.is-open::before,
.contact-modal.is-open::before{
  opacity: 1;
}

/* Ensure your modal card sits above the backdrop */
#contact-modal .modal-card,
.contact-modal .modal-card{
  position: relative;
  z-index: 1;
}

/* === Services: make all thumbnails equal on mobile === */
@media (max-width: 768px) {
  /* If you have a wrapper around the image, e.g. .service-card .thumb/.image/.media */
  #services .service-card .thumb,
  #services .service-card .image,
  #services .service-card .media {
    width: 100%;
    aspect-ratio: 16 / 10;         /* consistent height across all cards */
    overflow: hidden;
    border-radius: 14px;           /* keep your rounded corners */
    background: #f6f8fb;           /* optional placeholder background */
  }

  #services .service-card .thumb img,
  #services .service-card .image img,
  #services .service-card .media img {
    width: 100% !important;        /* override any max-width: 80% etc. */
    height: 100%;
    display: block;
    object-fit: cover;             /* crops to fill while keeping composition */
  }

  /* If some cards put the <img> directly in the card with no wrapper,
     this fallback forces the same look. */
  #services .service-card > img {
    width: 100% !important;
    height: 220px;                 /* ~16:10 for common phone widths */
    display: block;
    object-fit: cover;
    border-radius: 14px;
  }
}

/* === Mobile: force all service thumbnails to full width === */
@media (max-width: 768px) {
  /* Make every possible image wrapper take the full row width */
  #services .service-card .thumb,
  #services .service-card .image,
  #services .service-card .media,
  #services .service-card figure,
  #services .card .thumb,
  #services .card .image,
  #services .card .media,
  #services .card figure {
    width: 100% !important;
    margin: 0 0 12px 0;
  }

  /* Make the <img> fill its wrapper, regardless of any old inline size */
  #services .service-card img,
  #services .card img {
    display: block;
    width: 100% !important;    /* defeats inline width/max-width */
    max-width: 100% !important;
    height: auto;
    border-radius: 14px;       /* keep your nice rounded corners */
  }
}