/* =========================================================
   Arm and Hammer Construction — design system
   ========================================================= */

:root {
  /* Palette: warm craftsman / premium */
  --bg:        #faf7f1;
  --bg-2:      #f1ead9;
  --surface:   #ffffff;
  --ink:       #181513;
  --ink-2:     #3a342e;
  --muted:     #8a8278;
  --line:      #ece4d4;
  --line-2:    #ddd2bb;

  --brand:     #b14735;     /* terracotta — bricks, iron */
  --brand-2:   #8d3527;
  --brand-soft:#f3d9d2;
  --gold:      #c89b4a;     /* brass accent */
  --gold-soft: #f4e4c2;
  --forest:    #2b3c34;
  --midnight:  #0f1714;

  --ok:        #166534;
  --err:       #991b1b;

  /* Typography */
  --font-display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Easing */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(24, 21, 19, 0.05);
  --shadow-sm:  0 2px 6px rgba(24, 21, 19, 0.06), 0 1px 2px rgba(24, 21, 19, 0.04);
  --shadow:     0 12px 28px rgba(24, 21, 19, 0.10), 0 4px 10px rgba(24, 21, 19, 0.05);
  --shadow-lg:  0 28px 70px rgba(24, 21, 19, 0.18), 0 10px 28px rgba(24, 21, 19, 0.08);
  --shadow-glow: 0 0 0 1px rgba(177, 71, 53, 0.15), 0 14px 40px rgba(177, 71, 53, 0.18);

  /* Radius / layout */
  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  22px;
  --max:        1180px;
  --container-pad: 1.4rem;
}

/* ========== Reset / base ========== */

*, *::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: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--brand-2); }

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

/* ========== Layout ========== */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ========== Typography ========== */

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}
h1, .display { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 500; }
h2          { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 500; }
h3          { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }

p { margin: 0 0 1rem; color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px; background: currentColor;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--ink-2);
  max-width: 38rem;
  line-height: 1.6;
}

.section-title {
  display: grid; gap: .75rem;
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

/* ========== Buttons ========== */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  font-family: var(--font-sans);
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .95rem 1.3rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .25s var(--ease-out),
    box-shadow .3s var(--ease-out),
    background .25s var(--ease-out),
    color .25s var(--ease-out),
    border-color .25s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .8s var(--ease-out);
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn:hover::before { transform: translateX(110%); }
.btn:active { transform: translateY(0); transition-duration: .1s; }

.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--brand-2); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2);
}
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn-lg { padding: 1.1rem 1.6rem; font-size: 1rem; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-light:hover { --btn-bg: var(--bg-2); }

.btn .arrow { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ========== Header ========== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    background .35s var(--ease-out),
    border-color .35s var(--ease-out),
    box-shadow .35s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(250, 247, 241, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 6px 22px rgba(24,21,19,0.05);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  transition: height .35s var(--ease-out);
}
.site-header.scrolled .nav { height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--ink); font-weight: 700;
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--ink); color: #fff;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease-out);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(200,155,74,0.35) 50%, transparent 60%);
  transform: translateX(-110%);
  transition: transform 1.2s var(--ease-out);
}
.brand:hover .brand-mark::after { transform: translateX(110%); }
.brand-mark .amp { color: var(--gold); margin: 0 1px; }
.brand-text { font-size: 1.02rem; }
.site-header nav { display: flex; gap: .35rem; align-items: center; }
.nav-link {
  color: var(--ink-2); font-weight: 500; font-size: .94rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: rgba(24,21,19,0.05); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: #fff;
  padding: .65rem 1.05rem;
  font-weight: 600; font-size: .92rem;
  border-radius: 999px;
  margin-left: .5rem;
  transition: background .25s, transform .25s;
}
.nav-cta:hover { background: var(--brand); color: #fff; transform: translateY(-1px); text-decoration: none; }
@media (max-width: 760px) {
  .brand-text { display: none; }
  .nav-link { display: none; }
}

/* ========== Hero ========== */

.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: -10% -5% auto -5%; height: 70%;
  background:
    radial-gradient(60% 60% at 80% 30%, rgba(200,155,74,0.16), transparent 70%),
    radial-gradient(55% 50% at 15% 80%, rgba(177,71,53,0.10), transparent 75%);
  z-index: -2;
  pointer-events: none;
}
.hero::after {
  /* faint grid pattern — blueprint texture */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(24,21,19,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24,21,19,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  padding-top: 1.5rem;
}
.hero h1 .em {
  font-style: italic;
  color: var(--brand);
  position: relative;
}
.hero h1 .em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.05em;
  height: .12em;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  border-radius: 999px;
  transform-origin: left;
  transform: scaleX(0);
  animation: drawLine 1.4s var(--ease-out) .8s forwards;
}
.hero .lede { margin-top: 1.4rem; }
.hero-cta {
  display: flex; gap: .85rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.trust-row {
  list-style: none; padding: 0; margin: 2.4rem 0 0;
  display: flex; gap: 1.6rem; flex-wrap: wrap;
  color: var(--muted); font-size: .9rem; font-weight: 500;
}
.trust-row li {
  display: inline-flex; align-items: center; gap: .45rem;
}
.trust-row li::before {
  content: "";
  width: 16px; height: 16px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19l12-12-1.4-1.4z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19l12-12-1.4-1.4z'/></svg>") center/contain no-repeat;
}

/* Hero art panel */
.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #2b3c34 0%, #181513 80%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  transform-style: preserve-3d;
}
.hero-art svg.scene { width: 100%; height: 100%; display: block; }
.hero-art .badge-floating {
  position: absolute; left: 1.1rem; bottom: 1.1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  padding: .85rem 1.1rem;
  border-radius: 14px;
  display: grid;
  gap: .15rem;
  box-shadow: var(--shadow-sm);
}
.hero-art .badge-floating strong {
  font-family: var(--font-display); font-size: 1.65rem; line-height: 1; color: var(--ink);
}
.hero-art .badge-floating span {
  font-size: .78rem; color: var(--muted); font-weight: 500;
}
.hero-art .badge-floating.tr {
  left: auto; right: 1.1rem; bottom: auto; top: 1.1rem;
}

@keyframes drawLine { to { transform: scaleX(1); } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-art { aspect-ratio: 5 / 4; max-width: 520px; }
}

/* ========== Stats strip ========== */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 2.2rem 0;
}
.stat {
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600;
  color: var(--ink); line-height: 1;
  display: block;
  letter-spacing: -.02em;
}
.stat strong .plus { color: var(--brand); }
.stat strong > span { display: inline; } /* keep counter + suffix inline */
.stat > span {
  display: block;
  margin-top: .55rem;
  font-size: .82rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 0; padding: 1.6rem 0; }
  .stat:nth-child(2) { border-right: none; }
}

/* ========== Sections ========== */

.section { padding: 6rem 0; position: relative; }
.section-tight { padding: 4rem 0; }
.section-dark {
  background: var(--midnight);
  color: rgba(255,255,255,0.86);
}
.section-dark h2 { color: #fff; }
.section-dark .lede { color: rgba(255,255,255,0.72); }
.section-cream { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }

/* ========== Services ========== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
}
.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition:
    transform .35s var(--ease-out),
    box-shadow .35s var(--ease-out),
    border-color .35s var(--ease-out);
}
.service::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease-out);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.service:hover::before { transform: scaleY(1); }
.service .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform .35s var(--ease-spring);
}
.service:hover .icon { transform: rotate(-4deg) scale(1.05); }
.service .icon svg { width: 22px; height: 22px; }
.service h3 { margin-bottom: .4rem; }
.service p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ========== Process / How we work ========== */

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.8rem 1.4rem 1.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.step:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  opacity: .85;
}
.step h3 { color: #fff; margin-bottom: .5rem; }
.step p { color: rgba(255,255,255,0.72); margin: 0; font-size: .94rem; }
.step-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(200,155,74,0.15);
  color: var(--gold);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.step-icon svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .process { grid-template-columns: 1fr; }
}

/* ========== Gallery ========== */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #d6cdb6 0%, #a89c80 100%);
  box-shadow: var(--shadow-xs);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: var(--shadow);
}
.gallery-item::after {
  content: "Project photo coming soon";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  background: linear-gradient(135deg, rgba(43,60,52,0.85) 0%, rgba(15,23,20,0.85) 100%);
  opacity: 1;
  transition: opacity .3s;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-item:has(img)::after { opacity: 0; }
@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item.wide { grid-column: span 2; }
}
@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.wide, .gallery-item.tall { grid-column: auto; grid-row: auto; }
}

/* ========== Testimonials placeholder ========== */

.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.testimonial::before {
  content: "“";
  position: absolute; top: -.5rem; left: 1.2rem;
  font-family: var(--font-display);
  font-size: 4rem; color: var(--brand); opacity: .25;
  line-height: 1;
}
.testimonial p { font-style: italic; color: var(--ink); margin: 1rem 0; }
.testimonial cite {
  font-style: normal; font-size: .85rem; color: var(--muted); font-weight: 500;
}
@media (max-width: 820px) {
  .testimonial-row { grid-template-columns: 1fr; }
}

/* ========== About ========== */

.about-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}
.about-grid p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
.signature {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 1.15rem;
  margin-top: 1.5rem;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 100px;
}
.about-card h3 {
  margin: 1.2rem 0 .25rem;
  font-size: .78rem; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .14em;
}
.about-card h3:first-child { margin-top: 0; }
.about-card p { margin: 0; color: var(--ink); font-size: .98rem; }
.about-card .phone-link {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600;
  color: var(--ink); border-bottom: 2px solid var(--brand);
  display: inline-block;
  transition: color .2s;
}
.about-card .phone-link:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .about-card { position: static; }
}

/* ========== Contact ========== */

.section-contact {
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(200,155,74,0.12), transparent 70%),
    radial-gradient(70% 80% at 10% 100%, rgba(177,71,53,0.16), transparent 70%),
    var(--midnight);
  color: rgba(255,255,255,0.86);
  padding: 6rem 0;
}
.section-contact h2 { color: #fff; }
.section-contact .lede { color: rgba(255,255,255,0.74); }
.contact-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}
.contact-direct { color: rgba(255,255,255,0.85); margin-top: 1.5rem; }
.contact-direct .phone-link {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
  color: #fff; border-bottom: 2px solid var(--gold);
  transition: color .2s;
}
.contact-direct .phone-link:hover { color: var(--gold); }

.contact-form {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--gold) 100%);
}

.field { margin-bottom: 1.05rem; display: flex; flex-direction: column; }
.field label {
  font-weight: 600; font-size: .88rem; margin-bottom: .4rem;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(177, 71, 53, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.req { color: var(--err); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.row .field { margin-bottom: .85rem; }
.hint { color: var(--muted); font-size: .85rem; margin: -.4rem 0 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn-block { width: 100%; }

.form-status { margin: 1rem 0 0; min-height: 1.3em; font-size: .94rem; text-align: center; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .row { grid-template-columns: 1fr; }
}

/* ========== Footer ========== */

.site-footer {
  background: #0b0c0a;
  color: rgba(255,255,255,0.62);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  align-items: start;
}
.footer-grid h4 {
  font-family: var(--font-sans);
  color: rgba(255,255,255,0.4);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 .8rem;
}
.footer-grid a { color: rgba(255,255,255,0.85); }
.footer-grid a:hover { color: var(--gold); }
.footer-brand-row {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .9rem;
}
.footer-brand-row strong {
  font-family: var(--font-display);
  color: #fff; font-size: 1.1rem; font-weight: 600;
  letter-spacing: -0.01em;
}
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem; padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255,255,255,0.5);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { flex-direction: column; gap: .4rem; }
}

/* ========== Reveal animations ========== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s var(--ease-out),
    transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }
.reveal[data-delay="6"] { transition-delay: .48s; }

/* Initial entrance for hero on load */
.fade-up {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .9s var(--ease-out) forwards;
}
.fade-up.d1 { animation-delay: .15s; }
.fade-up.d2 { animation-delay: .3s; }
.fade-up.d3 { animation-delay: .45s; }
.fade-up.d4 { animation-delay: .6s; }
.fade-up.d5 { animation-delay: .75s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(120%); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
@keyframes glow {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.08); }
}

/* SVG hero scene animations */
.scene .window-light {
  animation: breathe 4s ease-in-out infinite;
  transform-origin: center;
}
.scene .window-light.delay { animation-delay: 1.2s; }
.scene .horizon-glow { animation: glow 6s ease-in-out infinite; }

/* Subtle floating */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.float { animation: floaty 6s ease-in-out infinite; }
