/* ===============================
   TRUE GAME — 8px outer / 12px inner (no bleed), sections touch
   =============================== */

/* THEME TOKENS */
:root{
  --charcoal:#1F2937; --gunmetal:#374151;
  --dust-gold:#D4AF37; --soft-amber:#FCD34D;
  --ivory:#FAFAF9; --ash:#D1D5DB;

  --fs-hero: clamp(32px,6vw,60px);
  --fs-h2: clamp(24px,3.2vw,36px);
  --fs-h3: clamp(18px,2.2vw,22px);
  --fs-body: clamp(15px,1.6vw,17px);
  --fs-body-lg: clamp(16px,2vw,20px);
  --fs-body-xl: clamp(18px,2.4vw,22px);
  --fs-body-xxl: clamp(20px,2.8vw,24px);

  --space-1:6px; --space-2:10px; --space-3:16px; --space-4:24px;
  --space-5:32px; --space-6:48px; --space-7:72px; --space-8:96px;

  --radius-sm:10px; --radius-md:16px; /* for cards/tiles only */
  --shadow-soft:0 8px 24px rgba(0,0,0,.12);
  --shadow-card:0 10px 30px rgba(0,0,0,.18);

  --container:1850px;
  --outer:8px;     /* panels sit 8px from screen edges */
  --inner:12px;    /* content inside panels has 12px side padding */
  --header-h:84px;
}

/* BASE */
*,
*::before,
*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, sans-serif;
  color:var(--charcoal); background:var(--ivory); line-height:1.6; text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:3px solid var(--soft-amber); outline-offset:2px; border-radius:6px;
}

/* CONTAINERS */
.container{
  width:min(100%, var(--container));
  margin-inline:auto;
  padding-inline: var(--inner);   /* 12px inner padding for text/content blocks */
}

/* A generic panel that obeys 8px outer and 12px inner (not rounded) */
.panel{
  width:min(calc(100% - (var(--outer)*2)), var(--container));
  margin:0 auto;
  padding-inline: var(--inner);
}

/* Sections anchor offset + NO vertical padding (sections touch) */
.section{ margin:0; padding:0; scroll-margin-top: calc(var(--header-h) + 12px); }

/* ================= HEADER ================= */
.site-header{ position:sticky; top:0; z-index:50; background:var(--ivory); border-bottom:1px solid var(--ash); height:var(--header-h); }
.header-inner{ height:var(--header-h); display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:var(--space-3); }
.brand{ display:inline-flex; align-items:center; gap:var(--space-2); }
#logo-header{ height:64px; width:auto; display:block; padding:12px; }
.brand-text{ display:none; font-weight:700; font-size:20px; }
.main-nav{ display:flex; align-items:center; justify-content:flex-end; gap:var(--space-4); }
.nav-link{ font-weight:700; font-size:16px; position:relative; padding:6px 4px; }
.nav-link.active::after, .nav-link:hover::after{
  content:""; position:absolute; left:0; right:0; bottom:-8px; height:3px; background:var(--soft-amber); border-radius:2px;
}
.button.cta{
  background:var(--soft-amber); color:var(--charcoal);
  padding:10px 16px; font-weight:700; border-radius:var(--radius-md);
  box-shadow:var(--shadow-soft);
  transition:transform .12s ease, background-color .12s ease;
}
.button.cta:hover{ background:var(--dust-gold); transform:translateY(-1px); }
.button-lg{ padding:14px 22px; font-size:18px; }

/* Mobile header */
.hamburger{ display:none; width:46px; height:40px; align-items:center; justify-content:center; border:1px solid var(--ash); border-radius:var(--radius-md); background:var(--ivory); }
.hamburger-bar{ width:24px; height:2px; background:var(--charcoal); display:block; margin:4px 0; }
.mobile-drawer{ border-top:1px solid var(--ash); background:var(--ivory); }
.mobile-nav{ display:flex; flex-direction:column; gap:var(--space-2); padding:var(--space-3); }
.mobile-link{ padding:10px 8px; font-weight:700; }
.mobile-cta{ margin-top:6px; align-self:start; }

/* ================= HERO (panel-aligned, no rounding/bleed) ================= */
.vh-full{ min-height:calc(100vh - var(--header-h)); position:relative; }
.hero{ padding:0; margin:0; position:relative; }

/* The media frame aligns to Services panel width (8px outer) */
.hero-media{
  position:relative;
  width: min(calc(100% - (var(--outer)*2)), var(--container));
  height: 100%;
  margin: 0 auto;
  overflow:hidden;   /* hard cut, no rounding */
}
#hero-image{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-overlay{ position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.45)); }

/* Text layer, centered within the same panel width, 12px inner padding */
.hero-content{
  position:absolute;
  left:50%; top:0; bottom:0; transform:translateX(-50%);
  width: min(calc(100% - (var(--outer)*2)), var(--container));
  padding-inline: var(--inner);
  display:flex; align-items:center; justify-content:center;
  text-align:center; z-index:2;
}
.hero-title{ font-size:var(--fs-hero); font-weight:900; color:var(--ivory); text-shadow:0 2px 18px rgba(0,0,0,.45); margin:0 0 var(--space-4); }
.hero-actions{ display:flex; gap:var(--space-3); justify-content:center; }

/* ================= SERVICES ================= */
.services{ /* no outer vertical padding */ }
.services .section-title{
  font-size:var(--fs-h2); font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  margin: var(--space-6) 0 var(--space-4); /* inner breathing room handled inside the panel below */
}
.section-title.center{ text-align:center; }

/* Dark background as a flat panel (no rounding), aligned to 8px outer / 12px inner */
.section-dark{ background:transparent; }
.section-dark .section-block{
  width:min(calc(100% - (var(--outer)*2)), var(--container));
  margin:0 auto;
  padding: var(--space-6) var(--inner);
  background:var(--gunmetal); color:var(--ivory);
  /* no border-radius */
}

/* Cards */
.card-grid{ display:grid; gap:var(--space-4); grid-template-columns:repeat(3, 1fr); align-items:stretch; width:100%; }
.card{
  background:var(--ivory); color:var(--charcoal);
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow-card);
  padding:var(--space-5); border:2px solid transparent;
  display:flex; flex-direction:column; text-align:left; gap:var(--space-3);
  min-height:360px; transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover{ transform:translateY(-2px); box-shadow:0 14px 40px rgba(0,0,0,.22); border-color:var(--soft-amber); }
.card-rule{ height:4px; background:var(--dust-gold); border-radius:999px; align-self:stretch; }
.card-title{ font-size:var(--fs-h3); font-weight:800; margin:0; text-align:center; }
.card-text{ font-size:var(--fs-body-lg); line-height:1.65; margin:0; flex:1; }
.service-icon{ width:216px; height:auto; display:block; margin:var(--space-2) auto 0 auto; }

/* ================= ABOUT ================= */
#about{ /* no outer vertical padding */ }
.section-center-left{ display:flex; flex-direction:column; justify-content:center; }
.section-title.left{ text-align:left; }
.about-title{
  font-size:var(--fs-h2); font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  margin: var(--space-6) 0 var(--space-4);
}
.about-copy.wide{ max-width:175ch; font-size:var(--fs-body-xxl); line-height:1.8; margin:0 0 var(--space-5); }

/* Mission/Vision tiles inside normal container (no panel rounding; only tiles rounded) */
.two-content.slabs{
  display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-4);
  margin: 0 0 var(--space-6);
}
.slab{
  background:var(--soft-amber); color:var(--charcoal);
  border-radius: var(--radius-sm);  /* tiles rounded */
  padding: var(--space-6);
}
.mini-heading{ font-size:var(--fs-h3); font-weight:800; margin:0 0 var(--space-2); }
.mini-heading.caps{ text-transform:uppercase; letter-spacing:.04em; }
.two-col p{ margin:0 0 var(--space-2); font-size:var(--fs-body-xl); line-height:1.75; }
.two-col p:last-child{ margin-bottom:0; }

/* ================= CONTACT (split, no gap between halves) ================= */
#contact{ /* no outer vertical padding */ }
.contact-section{ min-height:auto; }

/* Panel alignment (8px outer), NO column gap so halves touch */
.contact-split{
  width:min(calc(100% - (var(--outer)*2)), var(--container));
  margin:0 auto;
  padding-inline: var(--inner);    /* 12px inner at the sides of the whole split */
  display:grid; grid-template-columns: 1fr 1fr;
  column-gap: 0; row-gap: 0;       /* <-- no gap between form bg and image */
}

/* Form pane: flat background, inner padding for content (doesn't create a seam) */
.contact-pane{ position:relative; min-height:auto; }
.form-side{
  background:var(--gunmetal); color:var(--ivory);
  padding: var(--space-6) var(--inner);
  display:grid; place-items:start;
  /* no border-radius */
}
.contact-inner{ width:min(620px, 100%); }
.contact-title{ text-transform:uppercase; letter-spacing:.06em; font-weight:800; font-size:var(--fs-h2); margin:0 0 var(--space-2); }
.contact-sub.left{ margin:0 0 var(--space-4); font-size:var(--fs-body-lg); font-style:italic; }

/* Image pane: flush to the form (no gap), flat edges */
.image-side{
  min-height: 320px;
  background-image:url("assets/contact_us_image.jpg");
  background-size:cover; background-position:center; background-repeat:no-repeat;
  position:relative;
}
.image-side .image-overlay{ position:absolute; inset:0; background:linear-gradient(135deg, rgba(31,41,55,0.55), rgba(212,175,55,0.15)); }

/* Contact form inputs */
.form{ display:grid; gap:var(--space-3); }
.form-simple .label{ display:block; margin-bottom:6px; font-weight:700; font-size:16px; color:var(--ivory); }
.form-simple .input{
  width:100%; padding:14px 16px; border:1px solid var(--ash);
  border-radius:var(--radius-md); font-size:inherit; background:#fff; color:var(--charcoal);
}
.form-simple .input:focus{ border-color:var(--soft-amber); }
.form-simple .textarea{ resize:vertical; min-height:180px; }
.form-status{ margin-top:6px; min-height:1.2em; color:var(--ivory); }

/* ================= FOOTER ================= */
.site-footer{ background:var(--charcoal); color:var(--ivory); padding:var(--space-5) 0; margin-top:0; }
.footer-grid{
  width:min(calc(100% - (var(--outer)*2)), var(--container));
  margin:0 auto;
  padding-inline: var(--inner);
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    ". . nav"
    "copy social nav";
  align-items:start; gap: var(--space-3);
}
.footer-nav{ grid-area: nav; display:flex; flex-direction:column; align-items:flex-end; gap: var(--space-2); text-align:right; }
.footer-nav a{ font-weight:700; opacity:.95; }
.footer-nav a:hover{ color: var(--soft-amber); }
.footer-social{ grid-area: social; justify-self:center; align-self:end; display:flex; gap: var(--space-3); }
.social-link[aria-disabled="true"]{ pointer-events:none; opacity:.6; }
.social-icon{ width:24px; height:24px; display:block; }
copyright, .copyright{ grid-area: copy; align-self:end; margin:0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1280px){
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px){
  :root{ --header-h:72px; }
  #logo-header{ height:48px; }
  .main-nav{ display:none; } .hamburger{ display:inline-flex; } .header-inner{ grid-template-columns:auto 1fr auto; }

  .contact-split{ grid-template-columns:1fr; }
  .form-side{ order:1; }
  .image-side{ order:2; min-height:40vh; }

  .footer-grid{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    grid-template-areas:"nav" "social" "copy";
    text-align:center;
  }
  .footer-nav{ align-items:center; text-align:center; }
  .copyright{ justify-self:center; }
}
@media (max-width: 760px){
  .card-grid{ grid-template-columns:1fr; }
  .service-icon{ width:180px; }
  .card{ min-height:380px; }

  .two-content.slabs{ grid-template-columns:1fr; gap: var(--space-3); }
  .slab{ padding: var(--space-5); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .button.cta, .card{ transition:none; }
}

/* === SERVICES: tight panel insets per spec === */
.section-dark .section-block{
  /* 6px top/bottom, 10px left/right inside the dark background */
  padding: 45px 60px;
}

/* Remove extra top margin so the title sits 6px from panel top */
#services .section-title{
  margin: 0 0 var(--space-4);
}

/* Ensure the grid doesn't add extra outer spacing */
#services .card-grid{
  margin: 0;
}

/* (Optional) If you see any extra gap below the grid on some breakpoints,
   uncomment the next line to force it flush to the panel bottom. */
/* #services .card-grid { padding-bottom: 0; } */

/* === ABOUT: align body copy with tile text === */
/* Tiles use padding: var(--space-6); so offset the copy by the same amount */
#about .about-copy.wide{
  padding-inline-start: var(--space-6);
}

/* Match mobile tile padding (tiles drop to var(--space-5) on small screens) */
@media (max-width: 760px){
  #about .about-copy.wide{
    padding-inline-start: var(--space-5);
  }
}

/* === ABOUT: align title with tile text edge === */
#about .about-title{
  padding-inline-start: var(--space-6);
}

/* Keep mobile in sync with tile padding */
@media (max-width: 760px){
  #about .about-title{
    padding-inline-start: var(--space-5);
  }
}

/* === ABOUT: align BOTH edges of title + body with tile text edges === */
#about .about-title{
  padding-inline: var(--space-6);   /* left + right match tile inner padding */
}

#about .about-copy.wide{
  padding-inline: var(--space-6);   /* left + right match tile inner padding */
  max-width: none;                  /* let it span to the same right edge */
}

/* Mobile: tiles use smaller padding, so mirror that */
@media (max-width: 760px){
  #about .about-title{ padding-inline: var(--space-5); }
  #about .about-copy.wide{
    padding-inline: var(--space-5);
    max-width: none;
  }
}

/* --- CONTACT: match Services spacing/alignment --- */

/* The split panel itself shouldn't add side padding so columns touch and align to the 8px outer frame */
.contact-split{
  width: min(calc(100% - (var(--outer)*2)), var(--container));
  margin: 0 auto;
  padding-inline: 0;              /* remove the previous 12px inner so we control left = 60px on form side */
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;                  /* no gap between form bg and image */
  row-gap: 0;
}

/* Form pane: same insets as Services panel — 45px top/bottom, 60px sides */
.form-side{
  background: var(--gunmetal);
  color: var(--ivory);
  padding: 45px 60px;             /* TOP/BOTTOM 45px, LEFT/RIGHT 60px */
  display: grid;
  place-items: start;             /* keep content aligned left */
}

/* Make sure the title starts flush at the padding top (no extra margin added) */
#contact .contact-title{ margin-top: 0; }

/* Bottom of the button should be 45px from the panel bottom — handled by .form-side padding.
   Just prevent extra bottom margins from adding space: */
#contact .form-status{ margin-bottom: 0; }

/* Image pane: no borders/margins so it butts against the form side */
.image-side{
  min-height: 320px;
  background-image: url("assets/contact_us_image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.image-side .image-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31,41,55,0.55), rgba(212,175,55,0.15));
}

