/* ==========================================================================
   Ashford Contracting Group — site styles
   Palette from the ACG logo: navy #17264A, gray #7D8288, white.
   ========================================================================== */

:root {
  --navy-ink: #0C1526;
  --navy: #17264A;
  --navy-mid: #2C4172;
  --gray: #6E747C;
  --gray-soft: #9AA0A6;
  --rule: #DCE0E6;
  --rule-strong: #C3C9D1;
  --paper: #F4F6F9;
  --white: #FFFFFF;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --shell: 1220px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: #202B3A;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy-mid); }

:focus-visible { outline: 3px solid var(--navy-mid); outline-offset: 3px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.shell-narrow { max-width: 880px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; z-index: 100; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* Type ------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.024em;
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.24rem; letter-spacing: -.012em; }

p { margin: 0 0 1.1em; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 18px;
}

.lede { font-size: clamp(1.06rem, 1.7vw, 1.26rem); color: #3B4756; max-width: 62ch; }
.muted { color: var(--gray); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 112px;
}
.brand { display: block; flex-shrink: 0; }
.brand img { height: 72px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule-strong);
  color: var(--navy); font-family: var(--font-body); font-size: .8rem;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 16px; cursor: pointer;
}

.site-nav ul { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-size: .84rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--navy); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color .18s ease;
}
.site-nav a:hover { border-bottom-color: var(--navy); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--navy); }
.site-nav .nav-cta {
  background: var(--navy); color: var(--white);
  padding: 14px 24px; border-bottom: none;
}
.site-nav .nav-cta:hover { background: var(--navy-mid); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block; font-size: .84rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 17px 32px; border: 1px solid var(--navy); cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Photo primitives -------------------------------------------------------- */
.photo {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Home hero: full-bleed photo ---------------------------------------------- */
.hero-photo {
  position: relative;
  min-height: clamp(560px, 76vh, 780px);
  display: flex; align-items: center;
  background-color: var(--navy-ink);
  background-image: url('photos/hero.jpg');
  background-size: cover; background-position: center;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(12,21,38,.90) 0%, rgba(12,21,38,.76) 46%, rgba(23,38,74,.58) 100%);
}
.hero-photo .shell { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.hero-lockup { max-width: 560px; width: 78%; margin: 0 0 38px; }
.hero-photo h1 { color: var(--white); max-width: 17ch; margin-bottom: 22px; }
.hero-photo .lede { color: #D3DAE6; max-width: 56ch; }

/* Interior page header ----------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: clamp(340px, 46vh, 460px);
  display: flex; align-items: flex-end;
  background-color: var(--navy-ink);
  background-size: cover; background-position: center;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,21,38,.55) 0%, rgba(12,21,38,.88) 100%);
}
.page-hero .shell { position: relative; z-index: 2; padding-bottom: 52px; padding-top: 72px; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .lede { color: #D3DAE6; }
.page-hero .eyebrow { color: #9DAABE; }

/* Sections ---------------------------------------------------------------- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section-tint { background: var(--paper); }
.section-line { border-top: 1px solid var(--rule); }

.section-head { max-width: 68ch; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head p:last-child { margin-bottom: 0; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* Alternating media rows --------------------------------------------------- */
.media-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(44px, 6vw, 84px);
}
.media-row:last-child { margin-bottom: 0; }
.media-row .media-figure { min-height: clamp(280px, 34vw, 420px); }
.media-row-flip .media-copy { order: 1; }
.media-row-flip .media-figure { order: 2; }
.media-row .tag {
  display: block; font-size: .76rem; font-weight: 600; letter-spacing: .17em;
  text-transform: uppercase; color: var(--gray); margin-bottom: 14px;
}
.media-row h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin-bottom: 14px; }
.media-row p { color: #3B4756; margin-bottom: 0; }

/* Photo cards -------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: clamp(22px, 3vw, 34px);
}
.photo-card { background: var(--white); border: 1px solid var(--rule); }
.photo-card .photo { height: 210px; }
.photo-card .card-body { padding: 26px 26px 30px; }
.photo-card h3 { margin-bottom: 10px; }
.photo-card p { margin: 0; color: #3B4756; font-size: .99rem; }

/* Full-width photo band ---------------------------------------------------- */
.band {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
  background-color: var(--navy);
  background-size: cover; background-position: center;
  background-attachment: scroll;
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,21,38,.92) 0%, rgba(23,38,74,.72) 100%);
}
.band .shell { position: relative; z-index: 2; }
.band .eyebrow { color: #9DAABE; }
.band h2 { color: var(--white); max-width: 20ch; }
.band p { color: #CCD4E1; max-width: 58ch; font-size: 1.06rem; }
.band .btn-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.band .btn-primary:hover { background: #DCE2EC; border-color: #DCE2EC; color: var(--navy); }
.band .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.band .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* Feature columns ---------------------------------------------------------- */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: clamp(28px, 4vw, 48px); }
.col-item { border-top: 3px solid var(--navy); padding-top: 24px; }
.col-item h3 { margin-bottom: 10px; }
.col-item p { margin: 0; color: #3B4756; font-size: .99rem; }

/* Numbered process --------------------------------------------------------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  border-top: 3px solid var(--navy); list-style: none; margin: 0; padding: 0;
}
.steps > li { padding: 30px 30px 32px 0; border-right: 1px solid var(--rule); }
.steps > li:last-child { border-right: none; padding-right: 0; }
.steps .num {
  display: block; font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: var(--rule-strong); line-height: 1; margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; font-size: .98rem; color: #3B4756; }

/* Checklist ---------------------------------------------------------------- */
.checklist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 0 44px;
}
.checklist li {
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  display: flex; gap: 14px; align-items: baseline; font-size: 1rem;
}
.checklist li::before { content: "\2713"; color: var(--navy-mid); font-weight: 700; flex-shrink: 0; }

/* Contact ------------------------------------------------------------------ */
.contact-grid {
  display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
  gap: clamp(36px, 6vw, 76px); align-items: start;
}
.form-card { border: 1px solid var(--rule-strong); border-top: 5px solid var(--navy); padding: clamp(26px, 4vw, 42px); background: var(--white); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--navy); margin-bottom: 9px; }
.field .req { color: var(--gray); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: #202B3A;
  background: var(--white); border: 1px solid var(--rule-strong); border-radius: 0; padding: 14px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.field textarea { min-height: 172px; resize: vertical; }
.field .hint { font-size: .86rem; color: var(--gray); margin: 8px 0 0; }
.field-error { display: none; font-size: .86rem; color: #A32B2B; margin-top: 7px; }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error textarea { border-color: #A32B2B; }

.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; margin-top: 20px; padding: 16px 18px; font-size: .96rem; border-left: 4px solid var(--navy); background: var(--paper); }
.form-status.is-visible { display: block; }
.form-status.is-success { border-left-color: #1C6B4A; }
.form-status.is-error { border-left-color: #A32B2B; }
.form-footnote { font-size: .88rem; color: var(--gray); margin: 18px 0 0; }

.contact-aside .aside-photo { height: 230px; margin-bottom: 30px; }
.contact-aside .block { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.contact-aside .block:last-child { border-bottom: none; }
.contact-aside h3 { margin-bottom: 10px; }
.contact-aside p { margin: 0; color: #3B4756; font-size: .99rem; }
.ordered-tips { margin: 0; padding-left: 1.2em; color: #3B4756; font-size: .99rem; }
.ordered-tips li { margin-bottom: 8px; }

/* Footer -------------------------------------------------------------------- */
.site-footer { background: var(--navy-ink); color: #AFB8C6; padding: clamp(52px, 6vw, 76px) 0 34px; font-size: .96rem; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2, minmax(0,.8fr));
  gap: clamp(30px, 4vw, 56px); padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.16);
}
.footer-logo { display: block; width: 100%; max-width: 400px; margin-bottom: 24px; }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--white); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: #C8D0DC; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  padding-top: 26px; font-size: .8rem; letter-spacing: .04em; color: #7C8695;
}

/* Reveal --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Responsive ----------------------------------------------------------------- */
@media (max-width: 940px) {
  .media-row { grid-template-columns: 1fr; gap: 24px; }
  .media-row-flip .media-copy { order: 2; }
  .media-row-flip .media-figure { order: 1; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .steps > li { border-right: none; border-bottom: 1px solid var(--rule); padding: 26px 0; }
  .steps > li:last-child { border-bottom: none; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    box-shadow: 0 14px 28px rgba(12,21,38,.10);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav li:last-child { border-bottom: none; padding-top: 16px; }
  .site-nav a { display: block; padding: 16px 0; border-bottom: none; }
  .site-nav .nav-cta { text-align: center; }
  .header-inner { min-height: 86px; position: relative; }
  .brand img { height: 50px; }
  .hero-lockup { width: 92%; margin-bottom: 30px; }
  .hero-photo { min-height: 520px; }
}
