/* =====================================================================
   LR Associates — "Chartered Heritage"
   Heritage Navy + Chartered Gold · Cinzel / Spectral / Space Mono
   ===================================================================== */

:root {
  /* Brand */
  --navy:      #122a44;
  --navy-2:    #0d2036;
  --navy-3:    #1c3a5a;
  --gold:      #ae8748;
  --gold-soft: #c9a86a;
  --paper:     #f7f5f1;
  --card:      #ffffff;
  --line:      #e7e2d8;
  --line-2:    #ded7ca;
  --muted:     #6b7280;
  --sub:       #5b6675;
  --ink:       #122a44;

  --max: 1180px;
  --radius: 4px;
  --shadow-sm: 0 10px 30px -18px rgba(18, 42, 68, 0.35);
  --shadow-lg: 0 28px 60px -34px rgba(18, 42, 68, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--ink);
}

::selection { background: var(--gold); color: #fff; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; position: relative; }
.section--paper { background: var(--paper); }
.section--white { background: var(--card); }

.section-head { max-width: 680px; margin-bottom: 16px; }

.section-label {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 18px;
}
.section-label::before {
  content: attr(data-num) "  ";
  color: var(--gold-soft);
}

.section-title { font-size: clamp(28px, 3.6vw, 42px); }
.section-intro {
  color: var(--sub);
  font-size: 18px;
  max-width: 620px;
  margin-top: 16px;
}
.section-intro em { font-style: italic; color: var(--ink); }

/* gold hairline */
.rule { width: 64px; height: 2px; background: var(--gold); margin: 22px 0 0; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 15px 28px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: #9a743a; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--gold-soft); color: var(--gold-soft); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-3); transform: translateY(-2px); }

/* =====================================================================
   Header / Nav
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13, 32, 54, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(174, 135, 72, 0.28);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__seal { height: 50px; width: 50px; flex: 0 0 auto; }
/* wordmark column; the lock wrapper shrinks to the NAME width so the rule
   (stretched to the lock) can never overshoot the wordmark */
.brand__wm { display: inline-flex; flex-direction: column; align-items: flex-start; }
.brand__lock { display: inline-flex; flex-direction: column; align-items: stretch; }
.brand__name { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 21px; line-height: 1; color: #fff; letter-spacing: .015em; white-space: nowrap; }
.brand__rule { height: 1.5px; background: var(--gold); margin: 6px 0 5px; }
.brand__sub { font-family: 'Spectral', Georgia, serif; font-style: italic; font-size: 11.5px; line-height: 1; color: rgba(255,255,255,.74); white-space: nowrap; }

@media (max-width: 420px) {
  .brand__seal { height: 42px; width: 42px; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 10px; }
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.82); position: relative; padding: 4px 0;
}
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1.5px; background: var(--gold); transition: width .28s var(--ease);
}
.nav a:not(.nav__cta):hover { color: #fff; }
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav .nav__cta { color: #fff; padding: 11px 20px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--navy-2); padding: 8px 24px 26px;
    border-bottom: 1px solid rgba(174,135,72,.28);
    transform: translateY(-130%); transition: transform .3s var(--ease); align-items: stretch;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
  .nav a:not(.nav__cta)::after { display: none; }
  .nav .nav__cta { text-align: center; margin-top: 16px; border: 1.5px solid var(--gold); }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-2) center/cover no-repeat;
  background-image: url('../assets/img/hero.jpg');
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(8,20,36,.96) 0%, rgba(10,26,46,.86) 46%, rgba(13,32,54,.55) 100%);
}
.hero__seal {
  position: absolute; right: -90px; top: 50%; transform: translateY(-50%);
  width: 540px; max-width: 60vw; opacity: 0.06; pointer-events: none;
}
.hero__inner { position: relative; max-width: 720px; padding: 132px 24px 140px; }
.hero__eyebrow {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 12.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-soft); display: inline-block;
}
.hero__title {
  font-size: clamp(38px, 6.2vw, 66px); color: #fff; margin-top: 26px; font-weight: 600;
  line-height: 1.1; letter-spacing: 0.005em;
}
.hero__title em { font-style: normal; color: var(--gold-soft); }
.hero__sub {
  margin: 26px 0 36px; font-size: 19px; line-height: 1.7;
  color: rgba(255,255,255,.84); max-width: 580px; font-weight: 400;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 46px; display: flex; gap: 30px; flex-wrap: wrap;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.hero__meta span { display: flex; align-items: center; gap: 10px; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* hero load stagger */
.hero__eyebrow, .hero__title, .hero__sub, .hero__cta, .hero__meta { opacity: 0; }
.no-anim .hero__eyebrow, .no-anim .hero__title, .no-anim .hero__sub,
.no-anim .hero__cta, .no-anim .hero__meta { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero__eyebrow { animation: rise .8s var(--ease) .05s forwards; }
.hero__title   { animation: rise .8s var(--ease) .18s forwards; }
.hero__sub     { animation: rise .8s var(--ease) .34s forwards; }
.hero__cta     { animation: rise .8s var(--ease) .5s forwards; }
.hero__meta    { animation: rise .8s var(--ease) .66s forwards; }

/* =====================================================================
   Services
   ===================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 52px; background: var(--line); border: 1px solid var(--line); }
.service-card {
  background: var(--card); padding: 38px 32px 40px; position: relative;
  transition: background .3s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold);
  transition: width .35s var(--ease);
}
.service-card:hover { background: #fcfbf8; }
.service-card:hover::before { width: 100%; }
.service-card__icon {
  width: 54px; height: 54px; color: var(--navy); margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover .service-card__icon { color: var(--gold); border-color: var(--gold); }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card__tag {
  font-family: 'Space Mono', ui-monospace, monospace; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 14px;
}
.service-card p { font-size: 15.5px; color: var(--sub); line-height: 1.66; }

@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Why us / credibility
   ===================================================================== */
.why { background: var(--navy); color: #fff; }
.why .section-title { color: #fff; }
.why__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.why__intro { color: rgba(255,255,255,.78); font-size: 18px; margin-top: 16px; }
.why__list { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.why__list li { position: relative; padding-left: 32px; color: rgba(255,255,255,.9); font-size: 16.5px; }
.why__list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px;
  background: var(--gold); transform: rotate(45deg);
}
.why__signature {
  margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(174,135,72,.35);
  font-style: italic; color: rgba(255,255,255,.74); font-size: 16px;
}
.why__signature strong { font-family: 'Cinzel', serif; font-style: normal; color: #fff; display: block; font-size: 17px; margin-bottom: 2px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(174,135,72,.28); border: 1px solid rgba(174,135,72,.28); }
.stat { background: var(--navy-2); padding: 34px 22px; text-align: center; }
.stat__num { display: block; font-family: 'Cinzel', serif; font-weight: 700; font-size: 44px; color: var(--gold-soft); line-height: 1; }
.stat__label { display: block; margin-top: 12px; font-family: 'Space Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.62); }

@media (max-width: 860px) { .why__grid { grid-template-columns: 1fr; gap: 40px; } }

/* =====================================================================
   Projects gallery
   ===================================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
.gallery__item {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--navy);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .5s var(--ease);
  filter: saturate(.92) brightness(.92);
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,20,36,.82) 0%, rgba(8,20,36,.05) 55%);
}
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.gallery__cap {
  position: absolute; left: 0; bottom: 0; z-index: 2; padding: 20px 22px; width: 100%;
}
.gallery__cap .t { display: block; font-family: 'Cinzel', serif; font-weight: 600; font-size: 17px; color: #fff; }
.gallery__cap .s { display: block; font-family: 'Space Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-top: 5px; }

.projects__cta { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 48px; flex-wrap: wrap; }
.projects__cta p { font-family: 'Cinzel', serif; font-size: 20px; }

@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* =====================================================================
   About
   ===================================================================== */
.about__inner { max-width: 860px; }
.about__lead { font-size: 22px; line-height: 1.6; color: var(--ink); margin-top: 8px; }
.about__lead .drop { font-family: 'Cinzel', serif; }
.about__text { color: var(--sub); font-size: 17.5px; margin-top: 22px; }
.about__text + .about__text { margin-top: 16px; }

/* =====================================================================
   Contact
   ===================================================================== */
.contact__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; margin-top: 52px; align-items: start; }
.contact-form { background: var(--card); padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 18px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 7px; }
.field label { font-family: 'Space Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub); }
.field input, .field select, .field textarea {
  padding: 13px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: 'Spectral', serif; font-size: 16px; background: #fff; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(174,135,72,.16);
}
.field input:invalid:not(:placeholder-shown) { border-color: #c0392b; }
.contact-form .btn { margin-top: 4px; justify-content: center; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; min-height: 20px; font-style: italic; }
.form-status.is-ok { color: #1c7c3a; }
.form-status.is-err { color: #c0392b; }

.contact-info { background: var(--navy); color: #fff; padding: 36px; border-radius: var(--radius); }
.contact-info__row { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); display: grid; gap: 5px; }
.contact-info__row:first-child { padding-top: 0; }
.contact-info__label { font-family: 'Space Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.contact-info__row a, .contact-info__row span.v { font-size: 17px; color: #fff; }
.contact-info__row a:hover { color: var(--gold-soft); }
.contact-map { margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.contact-map iframe { display: block; filter: grayscale(.2) contrast(1.02); }

@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.72); }
.site-footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 64px 24px 40px; }
.fbrand { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.fbrand__seal { height: 58px; width: 58px; flex: 0 0 auto; }
.fbrand__wm { display: inline-flex; flex-direction: column; align-items: flex-start; }
.fbrand__lock { display: inline-flex; flex-direction: column; align-items: stretch; }
.fbrand__name { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 23px; line-height: 1; color: #fff; letter-spacing: .015em; white-space: nowrap; }
.fbrand__rule { height: 1.5px; background: var(--gold); margin: 7px 0 6px; }
.fbrand__sub { font-family: 'Spectral', Georgia, serif; font-style: italic; font-size: 12.5px; line-height: 1; color: rgba(255,255,255,.74); white-space: nowrap; }
.site-footer__tag { font-size: 15px; max-width: 320px; line-height: 1.65; }
.site-footer__col h4 { font-family: 'Space Mono', ui-monospace, monospace; font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.site-footer__col a, .site-footer__col p { display: block; color: rgba(255,255,255,.74); font-size: 15.5px; margin-bottom: 10px; }
.site-footer__col a:hover { color: var(--gold-soft); }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-family: 'Space Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,.5); }
.site-footer__bar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* =====================================================================
   Scroll reveal + a11y
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__eyebrow, .hero__title, .hero__sub, .hero__cta, .hero__meta { opacity: 1; animation: none; }
  .gallery__item img { filter: none; }
}
