/* ==========================================================================
   5K Construction - global stylesheet
   --------------------------------------------------------------------------
   Load order on every page:  site.css  ->  site-header.css  ->  <page>.css

   Contents
     1.  Design tokens
     2.  Reset and base
     3.  Accessibility helpers
     4.  Buttons
     5.  Section primitives (shared by page sections)
     6.  Inner-page hero (.intro / .lead)
     7.  Simple card grid (.grid)
     8.  Simple call-to-action band (.site-cta)
     9.  Footer
     10. Scroll reveal
     11. Responsive tweaks
     12. Reduced motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy: #061a38;
  --navy2: #0c315f;
  --gold: #ebb337;
  --gold-ink: #c98714;
  --ink: #112541;
  --muted: #647184;
  --mist: #f3f6f9;
  --line: #dce4ed;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(6, 26, 56, .13);
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.6 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

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

/* --------------------------------------------------------------------------
   3. Accessibility helpers
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 99;
  padding: .7rem 1rem;
  background: var(--gold);
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: var(--gold);
  color: var(--navy);
  font-size: .9rem;
  font-weight: 850;
  text-decoration: none;
  transition: .25s;
}

.button:hover {
  background: #f5c352;
  box-shadow: 0 10px 25px rgba(235, 179, 55, .3);
  transform: translateY(-2px);
}

.button-small {
  min-height: 40px;
  padding: .55rem .85rem;
  font-size: .8rem;
}

.button-outline {
  border-color: rgba(255, 255, 255, .6);
  background: transparent;
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   5. Section primitives (shared by page sections)
   -------------------------------------------------------------------------- */
.section {
  max-width: 1240px;
  margin: auto;
  padding: clamp(4.8rem, 9vw, 8rem) clamp(1.15rem, 4vw, 3rem);
}

.section-heading {
  max-width: 770px;
}

.section-heading h2 {
  margin: .05em 0 .55em;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.055em;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--gold-ink);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #f6c75d;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 850;
  text-decoration: none;
}

.text-link span {
  font-size: 1.25rem;
  transition: transform .25s;
}

.text-link:hover span {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   6. Inner-page hero (about, services, contact, legal pages, ...)
   -------------------------------------------------------------------------- */
.intro {
  max-width: 1240px;
  margin: auto;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.15rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
}

.intro h1 {
  margin: .05em 0 .5em;
  color: var(--navy);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.intro .button {
  margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   7. Simple card grid (service template)
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.grid article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.grid h3 {
  margin: 0 0 .5rem;
  color: var(--navy);
  font-size: 1.1rem;
}

.grid p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

/* --------------------------------------------------------------------------
   8. Simple call-to-action band (includes/cta-section.php)
   -------------------------------------------------------------------------- */
.site-cta {
  max-width: 1240px;
  margin: 0 auto clamp(4rem, 8vw, 6rem);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  color: var(--white);
  text-align: center;
}

.site-cta h2 {
  margin: 0 0 .5em;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.site-cta p:not(.eyebrow) {
  max-width: 52ch;
  margin: 0 auto 1.75rem;
  color: #d3dfef;
}

.cta-link {
  display: inline-block;
  margin: .5rem 0 0 1.25rem;
  color: var(--gold);
  font-weight: 850;
  text-decoration: none;
}

.cta-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 3.5rem clamp(1.15rem, 4vw, 3rem) 1.25rem;
  background: #041124;
  color: #c9d6e5;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  max-width: 1240px;
  margin: auto;
}

.footer-brand img {
  width: 76px;
  border-radius: 50%;
}

.footer-brand p {
  max-width: 320px;
  font-size: .9rem;
}

.footer-phone {
  display: inline-block;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 850;
  text-decoration: none;
}

.site-footer h2 {
  margin: 0 0 .9rem;
  color: var(--white);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-footer section > a {
  display: block;
  margin: .55rem 0;
  color: #c9d6e5;
  font-size: .86rem;
  text-decoration: none;
}

.site-footer section > a:hover {
  color: var(--gold);
}

.site-footer section p {
  margin: 0;
  font-size: .86rem;
}

/* Footer hub links (View all) */
.footer-hub {
  margin-top: .8rem !important;
  font-size: .8rem !important;
  font-weight: 800;
  color: var(--gold) !important;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-hub:hover { color: #fff !important; }

/* Contact column - keep inline */
.footer-contact {
  min-width: 0;
}
.footer-contact address {
  font-style: normal;
  line-height: 1.7;
}
.footer-contact address a {
  display: block;
  margin: .2rem 0;
  font-size: .86rem;
  color: #c9d6e5;
  text-decoration: none;
  white-space: nowrap;
}
.footer-contact address a:hover { color: var(--gold); }
.footer-contact .footer-cta {
  display: inline-block;
  margin-top: .8rem;
  padding: .55rem 1.1rem;
  background: var(--gold);
  color: #08122b;
  font-weight: 800;
  font-size: .8rem;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.footer-contact .footer-cta:hover { background: #f5c352; }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .78rem;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom span:last-child {
  display: flex;
  gap: 1rem;
}

.footer-bottom a {
  text-decoration: none;
  color: #c9d6e5;
}
.footer-bottom a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   10. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  transition-delay: .16s;
}

/* --------------------------------------------------------------------------
   11. Responsive tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .footer-shell {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .intro {
    padding-top: 3.5rem;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }
  .footer-contact > a,
  .footer-contact > p {
    display: block;
    margin: .4rem 0;
    white-space: normal;
  }
  .footer-contact .footer-cta {
    display: block;
    width: 100%;
    text-align: center;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  .footer-bottom span:last-child {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   12. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
