/* =========================================================
   ก่อทรัพย์ตระการตา (korsubtrakanta) — website styles
   Rebuilt from Adobe XD prototype
   ========================================================= */

:root {
  --gold: #C9992B;
  --gold-2: #E2A72E;
  --brown: #46311F;
  --brown-soft: #5C4230;
  --ink: #171717;
  --text: #333333;
  --muted: #6b7280;
  --line: #e7e7e7;
  --bg-soft: #f5f5f5;
  --max: 1440px;
  --radius: 4px;
  --shadow: 0 12px 30px rgba(0, 0, 0, .08);
  --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  padding: 12px 26px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { background: var(--ink); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--gold); border-color: var(--gold); }

/* CTA button variants */
.btn-primary, .btn-ghost, .btn-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  padding: 13px 30px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary { background: var(--gold); color: #17130a; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); font-weight: 500; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-line { background: #06C755; color: #fff; border-color: #06C755; }
.btn-line:hover { background: #05b34c; border-color: #05b34c; }
.btn-line svg { width: 18px; height: 18px; }

.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.banner-actions { display: flex; justify-content: center; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.services-more { margin-top: 22px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 400;
  font-size: 20px;
  transition: gap .2s ease, color .2s ease;
}
.text-link:hover { color: var(--gold-2); gap: 13px; }
.text-link svg { width: 19px; height: 19px; }
.services-right { display: flex; flex-direction: column; align-items: flex-start; }
.services-right .services-more { align-self: flex-end; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.brand { display: flex; align-items: center; gap: 12px; }
/* real logo image (replaces the old inline emblem + text) */
.brand .emblem, .footer-logo .emblem { display: none; }
.brand-logo { height: 62px; width: auto; display: block; }
.footer-logo .brand-logo { height: 84px; }
.brand .brand-name {
  font-weight: 700;
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: .5px;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: all .2s;
}
.phone-btn:hover { border-color: var(--gold); color: var(--gold); }
.phone-btn svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .3s;
}

/* ---------- Homepage: transparent header over hero → white bar on scroll ---------- */
.home .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  transition: background .3s ease, border-color .3s ease;
}
.home .site-header.scrolled {
  position: fixed;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}
/* over the hero (transparent) → light text */
.home .main-nav a { color: #fff; }
.home .main-nav a:hover,
.home .main-nav a.active { color: var(--gold-2); }
.home .main-nav a.active::after { background: var(--gold-2); }
.home .phone-btn {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  box-shadow: none;
  background: rgba(255, 255, 255, .08);
}
.home .phone-btn:hover { border-color: var(--gold-2); color: var(--gold-2); }
.home .nav-toggle span { background: #fff; }
/* scrolled (white bar) → dark text */
.home .site-header.scrolled .main-nav a { color: var(--ink); }
.home .site-header.scrolled .main-nav a:hover,
.home .site-header.scrolled .main-nav a.active { color: var(--gold); }
.home .site-header.scrolled .phone-btn {
  border-color: var(--line); color: var(--ink); background: #fff;
}
.home .site-header.scrolled .phone-btn:hover { border-color: var(--gold); color: var(--gold); }
.home .site-header.scrolled .nav-toggle span { background: var(--ink); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;                 /* full screen; header overlays the video */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .5;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 11vh;
}
.hero .hero-content {
  max-width: 720px;
  text-align: left;
}
.hero h1 {
  font-weight: 700;
  font-size: 50px;
  line-height: 1.3;
  margin: 0 0 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}
.hero p {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}

/* =========================================================
   Section shells
   ========================================================= */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }

.section-head-center {
  text-align: center;
  margin-bottom: 14px;
}
.section-head-center h2 {
  font-weight: 700;
  font-size: 46px;
  color: var(--ink);
  margin: 0;
}
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.section-head-row h2 {
  font-weight: 700;
  font-size: 46px;
  color: var(--ink);
  margin: 0;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 30px 0 44px;
}

/* ---------- Services ---------- */
.services-head {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.services-head h2 {
  font-weight: 700;
  font-size: 46px;
  color: var(--ink);
  margin: 0;
}
.services-quote {
  display: flex;
  gap: 14px;
  font-weight: 400;
  font-size: 20px;
  color: var(--text);
  line-height: 1.7;
}
.services-quote .qmark {
  color: var(--gold-2);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  flex: none;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* ---- Service card: single #2E1A0D block, image sits flush on top ---- */
.svc-card {
  display: block;
  overflow: hidden;
  background: #2E1A0D;                 /* whole card is one solid block */
  border-radius: 0;                    /* clean square edges like the example */
  transition: box-shadow .25s ease;
}
.svc-card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .16); }
.svc-card .svc-img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  line-height: 0;                      /* kill any inline whitespace under the img */
}
.svc-card .svc-img img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;                   /* fills the whole frame — no gap below */
  transition: transform .45s ease;
}
.svc-card:hover .svc-img img { transform: scale(1.05); }
.svc-card .svc-body { padding: 26px 26px 30px; color: #fff; }
.svc-card .svc-body h3 {
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.svc-card .svc-body h3 .arrow { font-size: 18px; opacity: .9; }
.svc-card .svc-body p {
  margin: 0;
  font-weight: 300;
  font-size: 16px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.6;
}

/* ---------- Gallery (โครงการ) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gitem {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  border-radius: 2px;
  cursor: pointer;
}
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gitem:hover img { transform: scale(1.07); }
.gitem .gcap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 16px;
  background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.72));
  opacity: 0;
  transition: opacity .3s ease;
}
.gitem:hover .gcap { opacity: 1; }
.gitem .gcap .gtitle { font-weight: 500; font-size: 19px; letter-spacing: .5px; }
.gitem .gcap .gsub { font-weight: 400; font-size: 16px; margin-top: 4px; opacity: .9; }

.center-btn { text-align: center; margin-top: 44px; }

/* ---------- Clients ---------- */
/* Auto-scrolling logo slider (marquee) — full colour, scales to any count */
.clients-slider {
  overflow: hidden;
  margin-top: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: clients-marquee 34s linear infinite;
}
.clients-slider:hover .clients-track { animation-play-state: paused; }
@keyframes clients-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  width: 150px;
}
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.client-logo:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

/* ---------- Quote banner ---------- */
.quote-banner {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 74px 0 170px;
  background: url("img/silhouette-city-worker-1.jpg?v=20260877") center/cover no-repeat;
}
.quote-banner .qtext {
  max-width: 980px;
  margin: 0 auto;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.9;
}
.quote-banner .qbig {
  color: var(--gold-2);
  font-size: 34px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.quote-banner .qsign {
  display: block;
  margin-top: 30px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
}
.quote-banner .qsign::before {
  content: "";
  display: block;
  width: 46px; height: 1px;
  background: rgba(255, 255, 255, .6);
  margin: 0 auto 22px;
}

/* =========================================================
   Footer (dark — #1D1008, used on every page)
   ========================================================= */
.site-footer {
  background: #1D1008;
  color: #cbb8a6;
  padding: 70px 0 36px;
  text-align: left;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col-left { max-width: 500px; }
.footer-brand { height: 78px; width: auto; display: block; margin-bottom: 26px; }
.footer-contact { color: #cbb8a6; font-weight: 400; line-height: 2; font-size: 18px; }

.footer-social { display: flex; gap: 14px; margin-top: 24px; }
.footer-social a {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #e8ddcf;
  background: transparent;
  transition: all .2s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #1D1008; }
.footer-social a svg { width: 18px; height: 18px; }

.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  text-align: right;
  gap: 30px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 34px;
  margin: 6px 0 0;
}
.footer-nav a { font-weight: 500; font-size: 21px; color: #e8ddcf; }
.footer-nav a:hover { color: var(--gold); }

/* newsletter signup (below the footer menu) */
.footer-news { width: 340px; max-width: 100%; }
.footer-news-title { font-weight: 500; font-size: 16px; color: #e8ddcf; margin-bottom: 12px; text-align: right; }
.footer-news-row { display: flex; }
.footer-news-input {
  flex: 1; min-width: 0;
  border: 1px solid rgba(255, 255, 255, .22); border-right: 0;
  background: rgba(255, 255, 255, .05); color: #fff;
  padding: 12px 14px; font-family: inherit; font-size: 15px;
  border-radius: 2px 0 0 2px; outline: none; transition: border-color .2s;
}
.footer-news-input::placeholder { color: #9c8b7c; }
.footer-news-input:focus { border-color: var(--gold); }
.footer-news-btn {
  flex: none; border: 0; background: var(--gold); color: #17130a;
  font-family: inherit; font-weight: 500; font-size: 15px;
  padding: 0 24px; border-radius: 0 2px 2px 0; cursor: pointer; transition: background .2s;
}
.footer-news-btn:hover { background: var(--gold-2); }
.footer-news-msg { margin-top: 10px; font-size: 14px; color: var(--gold-2); text-align: right; min-height: 18px; }

.footer-copy { color: #897667; font-size: 16px; }
.footer-copy a { color: #897667; margin-left: 20px; }
.footer-copy a:hover { color: var(--gold); }

/* =========================================================
   Projects listing page
   ========================================================= */
.projects-hero {
  text-align: center;
  padding: 70px 0 30px;
}
.projects-hero h1 {
  font-weight: 800;
  font-size: 46px;
  letter-spacing: 1px;
  color: var(--ink);
  margin: 0 0 10px;
}
.projects-hero p { font-weight: 400; color: var(--text); margin: 0 0 30px; }

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.filter-btn {
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .5px;
  padding: 11px 22px;
  border: 1px solid #2E1A0D;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
  transition: all .2s;
}
.filter-btn:hover { border-color: #2E1A0D; }
.filter-btn.active { background: #2E1A0D; color: #fff; border-color: #2E1A0D; }

.projects-count {
  color: var(--muted);
  font-weight: 300;
  padding: 30px 0 18px;
}

.masonry {
  columns: 3;
  column-gap: 18px;
}
.masonry .gitem {
  aspect-ratio: auto;
  margin-bottom: 18px;
  break-inside: avoid;
  display: block;
}
.masonry .gitem img { height: auto; }
.masonry .gitem .gcap { background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.78)); }

.projects-section { padding: 30px 0 84px; background: var(--bg-soft); }

/* =========================================================
   Project detail page
   ========================================================= */
body.detail-page { background: #F8F8F8; }
.pd-section { padding: 30px 0 88px; }
.pd-back {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--muted); font-weight: 400; font-size: 15px;
  margin-bottom: 30px; transition: color .2s ease;
}
.pd-back:hover { color: var(--gold); }
.pd-back svg { width: 18px; height: 18px; }

.pd-layout {
  display: grid;
  grid-template-columns: 2.9fr 1fr;
  gap: 48px;
  align-items: start;
}
.pd-main h1 {
  font-weight: 700; font-size: 46px; color: var(--ink);
  margin: 0 0 18px; letter-spacing: .5px;
}
.pd-main > p {
  font-weight: 400; font-size: 18px; color: var(--text);
  line-height: 1.85; margin: 0 0 34px;
}
.pd-gallery img {
  width: 100%; display: block;
  border-radius: 2px; margin-bottom: 24px; object-fit: cover;
}
.pd-gallery img:last-child { margin-bottom: 0; }

/* white info card — sticks below the header when scrolling */
.pd-side { position: sticky; top: calc(var(--header-h) + 24px); }
.pd-card {
  background: #fff;
  padding: 30px 30px 32px;
  border-radius: 2px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .05);
}
.pd-field { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.pd-field h4 { margin: 0 0 9px; font-weight: 600; font-size: 17px; color: var(--ink); }
.pd-field > p { margin: 0; font-weight: 400; font-size: 16px; color: var(--text); line-height: 1.6; }
.pd-field > p a { color: inherit; font-weight: 400; }
.pd-field > p a:hover { text-decoration: underline; }
.pd-hl { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.pd-hl ul { list-style: none; margin: 0; padding: 0; }
.pd-hl li {
  position: relative; padding-left: 20px;
  font-weight: 400; font-size: 15px; color: var(--text);
  line-height: 1.5; margin-bottom: 12px;
}
.pd-hl li:last-child { margin-bottom: 0; }
.pd-hl li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-2);
}

/* =========================================================
   Legal / policy pages (นโยบายความเป็นส่วนตัว ฯลฯ)
   ========================================================= */
.legal-hero { background: #F8F8F8; border-bottom: 1px solid var(--line); padding: 48px 0 42px; text-align: center; }
.legal-hero h1 { font-weight: 700; font-size: 40px; color: var(--ink); margin: 0 0 10px; letter-spacing: .3px; }
.legal-hero .legal-updated { color: var(--muted); font-size: 15px; }
.legal-body { padding: 50px 0 88px; }
.legal-inner { max-width: 880px; margin: 0 auto; }
.legal-inner > p { font-size: 16px; line-height: 1.95; color: var(--text); margin: 0 0 16px; }
.legal-inner h2 {
  font-weight: 600; font-size: 22px; color: var(--ink);
  margin: 40px 0 14px; padding-top: 8px;
}
.legal-inner h2:first-of-type { margin-top: 8px; }
.legal-inner h3 { font-weight: 600; font-size: 17px; color: var(--ink); margin: 22px 0 8px; }
.legal-inner ul { margin: 0 0 18px; padding-left: 22px; }
.legal-inner li { font-size: 16px; line-height: 1.85; color: var(--text); margin-bottom: 9px; }
.legal-inner a { color: var(--gold); }
.legal-inner a:hover { text-decoration: underline; }
.legal-contact {
  background: #F8F8F8; border: 1px solid var(--line); border-radius: 2px;
  padding: 24px 28px; margin-top: 22px;
}
.legal-contact p { margin: 0 0 6px; font-size: 16px; line-height: 1.8; color: var(--text); }
.legal-contact p:last-child { margin-bottom: 0; }
.legal-contact strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .legal-hero h1 { font-size: 30px; }
  .legal-inner h2 { font-size: 20px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .services-head { grid-template-columns: 1fr; gap: 20px; }
  /* all homepage section headings share one size on tablet/mobile */
  .services-head h2,
  .section-head-row h2,
  .section-head-center h2 { font-size: 32px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .pd-layout { grid-template-columns: 1fr; gap: 30px; }
  .pd-side { position: static; }
  .masonry { columns: 2; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(0,0,0,.08);
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  /* homepage dropdown is a white panel → dark links (not the white over-hero text) */
  .home .main-nav a { color: var(--ink); }
  .home .main-nav a.active { color: var(--gold); }
  .header-phone { display: none; }
  .brand .brand-name { font-size: 17px; }

  /* Footer: stack columns and center all content on tablet/mobile */
  .footer-grid { flex-direction: column; align-items: center; text-align: center; gap: 38px; }
  .footer-col-left { max-width: none; display: flex; flex-direction: column; align-items: center; }
  .footer-social { justify-content: center; }
  .footer-col-right { align-items: center; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-news { width: 360px; }
  .footer-news-title, .footer-news-msg { text-align: center; }
  .footer-copy a { margin-left: 14px; }
}

/* Footer menu: once it would wrap to a 2nd line, stack every item in one
   column with a thin divider between each */
@media (max-width: 540px) {
  .footer-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;          /* dividers span the full content width, like the address above */
    max-width: none;
    margin: 0 auto;
  }
  .footer-nav a { width: 100%; padding: 14px 0; }
  .footer-nav a + a { border-top: 1px solid rgba(255, 255, 255, .14); }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .brand-logo { height: 46px; }   /* smaller logo so the header isn't oversized on phones */
  .hero { min-height: 540px; justify-content: center; }
  /* Hero: centre the whole block on mobile + clear the overlaid header so the
     first heading line never sits under the logo/hamburger */
  .hero-inner { padding-top: calc(var(--header-h) + 28px); padding-bottom: 8vh; }
  .hero .hero-content { margin: 0 auto; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero h1 { font-size: 28px; }
  .cards-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 1; }
  .projects-hero h1 { font-size: 32px; }
  .pd-main h1 { font-size: 30px; }
  /* project caption always visible on mobile with a dark overlay for readability (like desktop hover) */
  .gitem .gcap { opacity: 1; background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.72)); }
}

/* =========================================================
   Scroll-reveal motion (added .has-motion on <html> by inline head script)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .has-motion .hero-content,
  .has-motion .services-head,
  .has-motion .svc-card,
  .has-motion .section-head-row,
  .has-motion .section-head-center,
  .has-motion .gitem,
  .has-motion .clients-slider,
  .has-motion .quote-banner .container,
  .has-motion .projects-hero,
  .has-motion .about-intro,
  .has-motion .kpi-row,
  .has-motion .h-center,
  .has-motion .team-card,
  .has-motion .goal-card,
  .has-motion .split,
  .has-motion .about-cta,
  .has-motion .page-banner .pb-frame,
  .has-motion .contact-lead,
  .has-motion .form-card,
  .has-motion .map-wrap,
  .has-motion .pd-main,
  .has-motion .pd-side {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .85s cubic-bezier(.2,.75,.25,1);
  }
  .has-motion .reveal-in { opacity: 1 !important; transform: none !important; }

  /* staggered children within a group */
  .has-motion .cards-3 .svc-card:nth-child(2),
  .has-motion .gallery-grid .gitem:nth-child(2),
  .has-motion .team-grid .team-card:nth-child(2),
  .has-motion .goals-grid .goal-card:nth-child(2) { transition-delay: .12s; }
  .has-motion .cards-3 .svc-card:nth-child(3),
  .has-motion .gallery-grid .gitem:nth-child(3),
  .has-motion .team-grid .team-card:nth-child(3),
  .has-motion .goals-grid .goal-card:nth-child(3) { transition-delay: .24s; }
  .has-motion .gallery-grid .gitem:nth-child(4),
  .has-motion .team-grid .team-card:nth-child(4) { transition-delay: .36s; }
  .has-motion .gallery-grid .gitem:nth-child(5),
  .has-motion .team-grid .team-card:nth-child(5) { transition-delay: .48s; }
  .has-motion .gallery-grid .gitem:nth-child(6),
  .has-motion .team-grid .team-card:nth-child(6) { transition-delay: .60s; }
}

/* =========================================================
   Cookie consent banner (injected by main.js on first visit)
   ========================================================= */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #1D1008;
  border-top: 1px solid rgba(226, 167, 46, .4);
  box-shadow: 0 -6px 26px rgba(0, 0, 0, .3);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.2, .75, .25, 1);
}
.cookie-consent.cc-show { transform: translateY(0); }
.cc-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cc-text { color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.7; }
.cc-text a { color: var(--gold-2); text-decoration: underline; }
.cc-text a:hover { color: var(--gold); }
.cc-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cc-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 26px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all .2s;
}
.cc-reject { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.cc-reject:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.cc-accept { background: var(--gold); color: #17130a; }
.cc-accept:hover { background: var(--gold-2); }

@media (max-width: 720px) {
  .cc-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; padding: 16px 18px; }
  .cc-actions { justify-content: center; }
  .cc-btn { flex: 1; }
}
