/* ============================================================
   partcore.ie — Fit-Out & Drywall Specialists
   Dublin & Cork
   ============================================================ */

:root {
  /* Ink / paper */
  --ink:        #0c1a22;
  --ink-2:      #12252f;
  --ink-3:      #1c3540;
  --paper:      #ffffff;
  --paper-2:    #f4f7f7;
  --paper-3:    #e8eff0;

  /* Accents */
  --teal:       #246fa8;
  --teal-deep:  #1a5d91;
  --teal-text:  #15517f;   /* AA-compliant blue for small text on light */
  --teal-soft:  #e6f1fa;
  --teal-ink:   #092f4f;
  --teal-bright:#5aa2d6;
  --sun:        #f5b73d;   /* hard-hat yellow accent, used sparingly */

  /* Text */
  --text:       #10222b;
  --text-soft:  #4a5f68;
  --text-mute:  #7a8c93;
  --text-mute-strong: #5c6f77;  /* AA-compliant muted text on light (~5.3:1 on white) */
  --on-dark:    #eef4f4;
  --on-dark-soft:#9db4b8;

  --line:       rgba(12,26,34,.10);
  --line-dark:  rgba(255,255,255,.12);

  --radius:     16px;
  --radius-sm:  10px;
  --shadow-sm:  0 2px 8px rgba(12,26,34,.06);
  --shadow:     0 18px 40px -18px rgba(12,26,34,.28);
  --shadow-lg:  0 40px 80px -32px rgba(12,26,34,.45);

  --wrap:       1200px;
  --font-display:"Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body:  "Manrope", system-ui, -apple-system, sans-serif;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--teal); color: #fff;
  font-family: var(--font-body); font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-text);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(245,183,61,.2); }
.eyebrow-light { color: var(--teal-bright); }
.eyebrow-light .dot { background: var(--sun); }

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); color: var(--text); margin-top: 16px; }
.section-sub { color: var(--text-soft); font-size: 1.08rem; margin-top: 16px; max-width: 60ch; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-foot { margin-top: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 100px;
  font-family: var(--font-body); font-weight: 700; font-size: .96rem; letter-spacing: .01em;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 12px 24px -12px rgba(36,111,168,.9); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(36,111,168,.9); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(12,26,34,.3); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { color: var(--teal); display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; }
.brand-logo { width: 44px; height: 48px; object-fit: fill; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; }
.brand-text em { font-style: normal; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-mute-strong); margin-top: 4px; }

.main-nav { margin-left: auto; display: flex; gap: 6px; }
.main-nav a {
  padding: 9px 15px; border-radius: 100px; font-weight: 600; font-size: .95rem; color: var(--text-soft);
  position: relative; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--ink); background: var(--paper-2); }
.main-nav a.active { color: var(--teal-text); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.phone-link svg { color: var(--teal-deep); }
.phone-link:hover { color: var(--teal-deep); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.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); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden;
  min-height: calc(100svh - 76px);
  display: flex; align-items: center;
  padding: clamp(72px, 9vw, 130px) 0;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/dublin-aerial-hero.jpg") center 42% / cover no-repeat;
  transform: scale(1.02);
}
.blueprint {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,18,28,.88) 0%, rgba(6,18,28,.68) 42%, rgba(6,18,28,.32) 72%, rgba(6,18,28,.22) 100%),
    linear-gradient(180deg, rgba(6,18,28,.22), rgba(6,18,28,.72));
}
.hero-glow {
  position: absolute; width: 780px; height: 780px; right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(36,111,168,.34), transparent 64%);
  filter: blur(12px);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1;
  background: linear-gradient(transparent, rgba(4,12,16,.4));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(170px, 270px) minmax(0, 760px);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.hero-logo {
  justify-self: end;
  position: relative;
  width: clamp(170px, 18vw, 270px);
  padding: clamp(12px, 1.4vw, 18px);
  border-left: 1px solid rgba(90,162,214,.34);
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.28));
}
.hero-logo::before {
  content: "";
  position: absolute;
  inset: 5% 0 5% 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(36,111,168,.3), rgba(36,111,168,0) 68%);
  filter: blur(20px);
  opacity: .75;
  z-index: -1;
}
.hero-logo::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 18%;
  width: 3px;
  height: 64%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--teal-bright), var(--sun), transparent);
  opacity: .72;
}
.hero-logo img {
  width: 100%;
  height: auto;
  opacity: .88;
}
.hero-copy { max-width: 760px; }

.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.hero-title .mark { position: relative; color: var(--teal); white-space: nowrap; }
.hero-title .mark::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 6px; height: 12px; z-index: -1;
  background: rgba(245,183,61,.28); border-radius: 3px; transform: skewX(-8deg);
}
.hero-lead { margin-top: 26px; font-size: 1.14rem; color: var(--on-dark-soft); max-width: 52ch; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: var(--on-dark-soft); }
.hero-badges svg { color: var(--teal-bright); }
.hero-board-stack {
  position: relative;
  width: min(520px, 100%);
  height: 92px;
  margin-top: 16px;
  pointer-events: none;
  perspective: 700px;
}
.board {
  position: absolute;
  top: 18px;
  width: 158px;
  height: 42px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(12,26,34,.045) 28px 29px),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.1) 34%, transparent 58%),
    linear-gradient(180deg, #f5f6f0 0%, #dde3dd 74%, #c6d0c9 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow:
    0 14px 22px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(18,37,47,.18);
  opacity: 0;
  transform-origin: 50% 100%;
  animation: plasterboardDrop 5.4s var(--ease) infinite;
}
.board::after {
  content: "";
  position: absolute;
  left: 7px;
  right: -6px;
  bottom: -10px;
  height: 10px;
  border-radius: 0 0 3px 3px;
  background:
    linear-gradient(90deg, rgba(84,72,52,.18), transparent 24%, rgba(84,72,52,.14) 72%, transparent),
    linear-gradient(180deg, #efe5cf, #c0b08d);
  border: 1px solid rgba(255,255,255,.25);
  border-top: 0;
  transform: skewX(-32deg);
  transform-origin: top left;
}
.board::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 9px;
  height: 1px;
  border-radius: 999px;
  background: rgba(12,26,34,.1);
  box-shadow:
    0 10px 0 rgba(12,26,34,.075),
    0 20px 0 rgba(255,255,255,.5);
}
.board i {
  position: absolute;
  inset: 5px 8px auto auto;
  width: 18px;
  height: 32px;
  border-left: 1px solid rgba(12,26,34,.08);
  border-right: 1px solid rgba(255,255,255,.5);
}
.board-1 { left: 0; rotate: -3deg; animation-delay: 0s; }
.board-2 { left: 172px; rotate: 1.5deg; animation-delay: .28s; }
.board-3 { left: 344px; rotate: -2deg; animation-delay: .56s; }

@keyframes plasterboardDrop {
  0% { opacity: 0; transform: translate3d(0, -72px, 0) rotateX(18deg) rotateZ(-7deg); }
  10% { opacity: 1; }
  22% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0deg) rotateZ(0deg); }
  28% { transform: translate3d(0, -7px, 0) rotateX(4deg) rotateZ(.8deg); }
  34%, 76% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0deg) rotateZ(0deg); }
  90%, 100% { opacity: 0; transform: translate3d(0, 16px, 0) rotateX(-4deg) rotateZ(1.4deg); }
}

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--ink-2); color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 26px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat-num { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--teal); letter-spacing: -.02em; line-height: 1; }
.stat-unit { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--teal); margin-left: .35em; letter-spacing: -.01em; vertical-align: baseline; }
.stat-label { display: block; margin-top: 12px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-soft); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-media { position: relative; }
.figure { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, var(--paper-3), var(--teal-soft)); box-shadow: var(--shadow); }
.figure-tall { aspect-ratio: 4/5; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; right: -18px; bottom: -18px; z-index: 3;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 18px 22px;
  box-shadow: var(--shadow); max-width: 220px; border: 1px solid rgba(255,255,255,.06);
}
.about-badge-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--sun); }
.about-badge-text { display: block; font-size: .84rem; color: var(--on-dark-soft); margin-top: 6px; line-height: 1.4; }

.about-copy p { color: var(--text-soft); margin-top: 18px; font-size: 1.05rem; }
.check-list { margin-top: 26px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 600; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5d91' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.check-list-light li { color: var(--on-dark); }
.check-list-light li::before { background-color: rgba(36,111,168,.18); }
.about-copy .btn { margin-top: 32px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper-2); }
.cards { display: grid; gap: 22px; }
.services-cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--teal), var(--sun)); transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--teal-soft); color: var(--teal-deep);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.28rem; }
.service-card p { margin-top: 12px; color: var(--text-soft); font-size: .98rem; }

/* ============================================================
   WHY CHOOSE
   ============================================================ */
.why { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.why::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(90% 70% at 50% 0%, #000, transparent 75%);
}
.why .wrap { position: relative; z-index: 1; }
.why .section-title { color: #fff; }
.why-cards { grid-template-columns: repeat(4, 1fr); }
.why-card {
  padding: 30px 26px 32px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(36,111,168,.5); background: linear-gradient(180deg, rgba(36,111,168,.1), rgba(255,255,255,.02)); }
.why-num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--teal); display: block; }
.why-card h3 { margin-top: 14px; color: #fff; font-size: 1.22rem; }
.why-card p { margin-top: 10px; color: var(--on-dark-soft); font-size: .95rem; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--paper); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--ink-3), var(--teal-ink));
  box-shadow: var(--shadow-sm); display: block;
}
.project-media { position: absolute; inset: 0; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6,14,18,.85));
  transition: opacity .3s;
}
.project:hover .project-media img { transform: scale(1.07); }
.project-info { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; transform: translateY(6px); transition: transform .35s var(--ease); }
.project:hover .project-info { transform: translateY(0); }
.project-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--teal); padding: 5px 11px; border-radius: 100px;
}
.project-info h3 { color: #fff; font-size: 1.32rem; margin-top: 12px; }
.project-loc { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .88rem; font-weight: 600; color: #cfe6e3; }
.project-loc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }

/* ============================================================
   OFF-SITE
   ============================================================ */
.offsite { background: var(--ink-2); color: #fff; }
.offsite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.offsite .section-title { color: #fff; }
.offsite-copy p { margin-top: 18px; color: var(--on-dark-soft); font-size: 1.05rem; }
.offsite-copy .btn { margin-top: 30px; }
.offsite-media .figure { aspect-ratio: 5/4; box-shadow: var(--shadow-lg); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--teal); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(44px, 6vw, 72px) 0; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; }
.cta-inner p { margin-top: 10px; color: rgba(255,255,255,.88); font-weight: 600; font-size: 1.05rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 76px); align-items: start; }
.office-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.office-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.office-tag { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-text); }
.office-addr { margin-top: 12px; color: var(--text-soft); font-size: .95rem; }
.office-line { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.office-line:hover { color: var(--teal-deep); }
.email-line { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.email-line svg { color: var(--teal-deep); }
.email-line:hover { color: var(--teal-deep); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: .01em; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .98rem; color: var(--text);
  padding: 13px 15px; border: 1.5px solid var(--paper-3); border-radius: var(--radius-sm); background: var(--paper-2);
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(36,111,168,.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute-strong); }
.form-note { margin-top: 14px; font-size: .9rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-note.ok { color: var(--teal-text); }
.form-note.err { color: #c0432f; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding: clamp(56px, 7vw, 84px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; }
.brand-footer { color: #fff; }
.brand-footer .brand-mark { color: var(--teal); }
.brand-footer .brand-logo { width: 40px; height: 44px; }
.brand-footer .brand-text em { color: var(--on-dark-soft); }
.footer-blurb { margin-top: 20px; max-width: 34ch; font-size: .96rem; line-height: 1.6; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--on-dark-soft); transition: background .25s, color .25s, transform .25s; }
.socials a:hover { background: var(--teal); color: #fff; transform: translateY(-3px); }
.socials a[aria-disabled="true"] { cursor: default; }
.socials a[aria-disabled="true"]:hover { transform: none; background: rgba(255,255,255,.06); color: var(--on-dark-soft); }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-family: var(--font-display); }
.footer-col a { display: block; padding: 6px 0; font-size: .95rem; transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--teal); padding-left: 4px; }
.footer-contact p { margin-bottom: 14px; font-size: .95rem; }
.footer-contact p strong { color: #fff; font-weight: 700; }
.footer-contact a { color: var(--teal); font-weight: 600; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }
.footer-fine { color: var(--text-mute); }
.footer-legal { margin-top: 12px; font-size: .8rem; line-height: 1.6; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s, background .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--teal); color: #fff; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal.in:nth-child(2), .project-grid .reveal.in:nth-child(2) { transition-delay: .06s; }
.cards .reveal.in:nth-child(3), .project-grid .reveal.in:nth-child(3) { transition-delay: .12s; }
.cards .reveal.in:nth-child(4), .project-grid .reveal.in:nth-child(4) { transition-delay: .18s; }
.cards .reveal.in:nth-child(5), .project-grid .reveal.in:nth-child(5) { transition-delay: .24s; }
.cards .reveal.in:nth-child(6), .project-grid .reveal.in:nth-child(6) { transition-delay: .3s; }
.stats-grid .reveal.in:nth-child(2) { transition-delay: .08s; }
.stats-grid .reveal.in:nth-child(3) { transition-delay: .16s; }
.stats-grid .reveal.in:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .board { opacity: 1; animation: none; transform: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Header collapses to the hamburger wherever the inline nav can't fit cleanly */
@media (max-width: 1080px) {
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
    padding: 12px 24px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
    box-shadow: var(--shadow);
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav a { padding: 14px 8px; border-radius: 8px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-cta .btn { display: none; }
  .header-cta .phone-link span { display: none; }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 44px);
  }
  .hero-logo { width: clamp(150px, 23vw, 240px); }
  .services-cards, .why-cards { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 22px;
  }
  .hero-logo {
    justify-self: start;
    width: clamp(112px, 28vw, 180px);
  }
  .hero-copy .eyebrow { margin-bottom: 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .about-grid, .offsite-grid, .contact-grid { grid-template-columns: 1fr; }
  .offsite-media { order: -1; }
  .about-media { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .services-cards, .why-cards, .project-grid, .office-cards, .field-row { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .hero-badges { gap: 8px 18px; }
  .hero-board-stack { height: 78px; width: min(342px, 100%); }
  .board { width: 106px; height: 34px; }
  .board-1 { left: 0; }
  .board-2 { left: 118px; }
  .board-3 { left: 236px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .header-cta { display: none; }
  .about-badge { right: 0; bottom: -14px; padding: 14px 16px; }
}
