/* ═══════════════════════════════════════════
   Sherwood Lock & Keys — Editorial Layout
   ═══════════════════════════════════════════ */

:root {
  --cream:     #f6f1e9;
  --cream-dark:#ebe4d8;
  --ink:       #1a2238;
  --ink-soft:  #3d4a66;
  --terra:     #c24e36;
  --terra-dark:#9e3d2a;
  --sage:      #6b7f62;
  --white:     #ffffff;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --rail-w: 88px;
  --ease: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Side rail ── */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  background: var(--ink);
  color: var(--cream);
}

.rail__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--terra);
}

.rail__nav {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.rail__nav a {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(246, 241, 233, 0.45);
  transition: color var(--ease);
}

.rail__nav a:hover { color: var(--cream); }

.rail__phone {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terra);
  border-radius: 50%;
  color: var(--white);
  transition: transform var(--ease), background var(--ease);
}

.rail__phone:hover {
  background: var(--terra-dark);
  transform: scale(1.08);
}

.rail__phone svg { width: 18px; height: 18px; }

/* ── Mobile header ── */
/* ── Mobile header ── */
.mob-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  padding: 0 1rem 0 1.15rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(246, 241, 233, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-dark);
  transition: background var(--ease), border-color var(--ease);
}

.mob-header.is-open {
  background: var(--ink);
  border-bottom-color: rgba(246, 241, 233, 0.08);
}

.mob-header__brand {
  position: relative;
  z-index: 220;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.mob-header__brand-mark {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--terra);
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
  line-height: 1;
}

.mob-header__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--ease);
}

.mob-header.is-open .mob-header__brand-name {
  color: var(--cream);
}

.mob-header__toggle {
  position: relative;
  z-index: 220;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mob-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), background var(--ease);
  transform-origin: center;
}

.mob-header.is-open .mob-header__toggle span {
  background: var(--cream);
}

.mob-header__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mob-header__toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mob-header__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mob-header__drawer {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6.5rem 1.5rem 2.5rem;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ease), visibility var(--ease);
}

.mob-header__drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mob-header__drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mob-header__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(246, 241, 233, 0.1);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 700;
  color: var(--cream);
  transition: color var(--ease), padding-left var(--ease);
}

.mob-header__link span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--terra);
  min-width: 1.5rem;
}

.mob-header__link:active,
.mob-header__link:hover {
  color: var(--terra);
  padding-left: 0.35rem;
}

.mob-header__drawer-foot {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 2rem;
}

.mob-header__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.9rem 1.6rem;
  background: var(--terra);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1rem !important;
  font-weight: 600;
  color: var(--white) !important;
  transition: background var(--ease), transform var(--ease);
}

.mob-header__call:active {
  background: var(--terra-dark);
  transform: scale(0.98);
}

.mob-header__address {
  font-size: 0.88rem;
  color: rgba(246, 241, 233, 0.55);
  line-height: 1.45;
  max-width: 240px;
}
.page { margin-left: var(--rail-w); }

/* ── Pills ── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--ease);
  white-space: nowrap;
}

.pill--fill {
  background: var(--terra);
  color: var(--white);
}

.pill--fill:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 78, 54, 0.3);
}

.pill--outline {
  border: 2px solid var(--ink);
  color: var(--ink);
}

.pill--outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.pill--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* ═══════════ HERO — 50/50 split ═══════════ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero__panel--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem 4rem 3rem;
  background: var(--cream);
  position: relative;
}

.hero__panel--text::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 15%;
  bottom: 15%;
  width: 3px;
  background: var(--terra);
  border-radius: 2px;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 1.75rem;
}

.hero__line {
  display: block;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  color: var(--ink);
}

.hero__line--accent {
  color: var(--terra);
  font-style: italic;
  padding-left: 0.15em;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero__chips span {
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--cream-dark);
  color: var(--ink-soft);
  border-radius: 4px;
}

/* Hero visual panel */
.hero__panel--visual {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__diagonal {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.hero__float-card {
  position: absolute;
  bottom: 3rem;
  left: -2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(26, 34, 56, 0.18);
  z-index: 2;
  max-width: 280px;
}

.hero__float-icon {
  color: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
}

.hero__float-card span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ── Ticker ── */
.ticker {
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 0;
  overflow: hidden;
  border-top: 3px solid var(--terra);
}

.ticker__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__track span:nth-child(even) { color: var(--terra); opacity: 0.7; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════ ABOUT — overlap layout ═══════════ */
.about {
  position: relative;
  padding-bottom: 6rem;
}

.about__band {
  position: relative;
  height: 55vh;
  min-height: 360px;
  overflow: hidden;
}

.about__band-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(26, 34, 56, 0.5) 100%);
}

.about__overlap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-top: -8rem;
  padding: 0 3rem 0 3rem;
  position: relative;
  z-index: 2;
  align-items: start;
}

.about__overlap-inner {
  background: var(--white);
  padding: 3rem 3.5rem;
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(26, 34, 56, 0.1);
  border-left: 5px solid var(--terra);
}

.about__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.about__text {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}

.about__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.about__stat-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about__side-img {
  position: relative;
  margin-top: 4rem;
}

.about__side-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(26, 34, 56, 0.15);
}

.about__checks {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--ink);
  color: var(--cream);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
}

.about__checks li {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0;
}

.about__checks li::before {
  content: '→ ';
  color: var(--terra);
}

/* ═══════════ SERVICES — bento grid ═══════════ */
.services {
  padding: 5rem 3rem 6rem;
  background: var(--ink);
  color: var(--cream);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3rem;
  right: 3rem;
  height: 1px;
  background: rgba(246, 241, 233, 0.1);
}

.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.services__tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.75rem;
}

.services__head-left h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.services__head-right {
  font-size: 1.05rem;
  color: rgba(246, 241, 233, 0.6);
  line-height: 1.7;
  max-width: 400px;
  justify-self: end;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}

.bento__item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: default;
}

.bento__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.bento__item:hover img { transform: scale(1.06); }

.bento__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(26, 34, 56, 0.92) 0%, rgba(26, 34, 56, 0.2) 55%, transparent 100%);
}

.bento__num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.bento__content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.bento__content p {
  font-size: 0.82rem;
  color: rgba(246, 241, 233, 0.75);
  line-height: 1.5;
}

.bento__item--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.bento__item--featured .bento__content h3 { font-size: 1.5rem; }
.bento__item--featured .bento__content p { font-size: 0.9rem; max-width: 320px; }

.bento__item--wide {
  grid-column: span 2;
}

.bento__item--text {
  background: rgba(246, 241, 233, 0.06);
  border: 1px solid rgba(246, 241, 233, 0.1);
}

.bento__item--text .bento__content {
  position: relative;
  inset: auto;
  height: 100%;
  background: none;
  justify-content: center;
  padding: 1.5rem;
}

.bento__item--text h3 {
  font-size: 1.15rem;
}

.bento__item--text p {
  max-width: 220px;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  margin-left: var(--rail-w);
  background: var(--cream-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 3rem;
}

.footer__brand-col h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer__brand-col p {
  color: var(--ink-soft);
  max-width: 280px;
}

.footer__col h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.footer__big-link {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 0.75rem;
  transition: color var(--ease);
}

.footer__big-link:hover { color: var(--terra-dark); }

.footer__col p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer__domain {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem !important;
  color: var(--ink) !important;
  margin-bottom: 1.25rem !important;
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-top: 1px solid rgba(26, 34, 56, 0.08);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .bento__item--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento__item--wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .rail { display: none; }
  .page { margin-left: 0; }
  .footer { margin-left: 0; }
  .mob-header { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
  }

  .hero__panel--text {
    padding: 3rem 1.5rem 2rem;
    order: 2;
  }

  .hero__panel--text::after { display: none; }

  .hero__panel--visual {
    order: 1;
    height: 50vh;
    min-height: 300px;
  }

  .hero__image-wrap img {
    clip-path: none;
  }

  .hero__float-card {
    left: 1.5rem;
    bottom: -2rem;
  }

  .hero__diagonal { display: none; }

  .about__overlap {
    grid-template-columns: 1fr;
    margin-top: -4rem;
    padding: 0 1.5rem;
  }

  .about__overlap-inner { padding: 2rem 1.75rem; }

  .about__side-img { margin-top: 0; }

  .about__stats { grid-template-columns: 1fr; gap: 1rem; }

  .services {
    padding: 4rem 1.5rem 5rem;
  }

  .services::before { left: 1.5rem; right: 1.5rem; }

  .services__head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services__head-right {
    justify-self: start;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }

  .footer__bar {
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .mob-header__brand-name {
    max-width: 160px;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .bento__item--featured,
  .bento__item--wide {
    grid-column: span 1;
  }

  .hero__cta-row { flex-direction: column; }
  .hero__cta-row .pill { justify-content: center; }
}
