/* ============================================================
   Bella Tucker Designs - Homepage Concept
   Design language: Classic Authority (type/spacing/composition)
   Palette: Bella Tucker's own (charcoal cabinetry, soft ivory,
   antique brass hardware) extracted from their logo + photography
   ============================================================ */

:root {
  /* Backgrounds */
  --ivory:      #f5f3ee;
  --pearl:      #eae6de;
  --charcoal:   #2f3133;
  --ink:        #1d1f21;

  /* Accent: their antique brass hardware */
  --brass:        #7b5f3a;
  --brass-bright: #cdaf83;
  --brass-muted:  rgba(176, 140, 88, 0.28);

  /* Text */
  --text-dark:        #26282a;
  --text-body:        #4b4d4f;
  --text-muted:       #6c6d6f;
  --text-light:       rgba(255, 255, 255, 0.95);
  --text-light-muted: rgba(255, 255, 255, 0.58);

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Lato", -apple-system, sans-serif;

  /* Layout */
  --container: min(90%, 1100px);
  --pad-section: clamp(3rem, 6vw, 5rem);
  --nav-height: 84px;

  /* Motion: Classic Authority, restrained */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-body);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Shared ---------- */

.container { width: var(--container); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
  opacity: 0.7;
}

.dark .eyebrow, .darker .eyebrow { color: var(--brass-bright); }
.dark .eyebrow::before, .darker .eyebrow::before { background: var(--brass-bright); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.15;
}

.dark h1, .dark h2, .dark h3,
.darker h1, .darker h2, .darker h3 { color: #fdfcf9; }

section { padding-block: var(--pad-section); }

.dark { background: var(--charcoal); color: var(--text-light); }
.darker { background: var(--ink); color: var(--text-light); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--brass);
  color: var(--brass);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn .btn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.btn:hover { background: var(--brass); color: #fdfcf9; }
.btn:hover .btn-dot { transform: scale(1.5); }

.btn--solid { background: var(--brass); color: #fdfcf9; }
.btn--solid:hover { background: #74582f; border-color: #74582f; }

.btn--light { border-color: rgba(255,255,255,0.55); color: #fdfcf9; }
.btn--light:hover { background: #fdfcf9; border-color: #fdfcf9; color: var(--text-dark); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}

/* Contrast scrim: the wordmark and links sit over a bright hero photo. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -56px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(29,31,33,0.86) 0%, rgba(29,31,33,0.74) 58%, rgba(29,31,33,0) 100%);
  transition: opacity 0.4s var(--ease);
}
.nav.scrolled::before { opacity: 0; }

.nav-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark { display: inline-block; line-height: 1.1; letter-spacing: 0.24em; text-transform: lowercase; padding-block: 0.55rem; }
.wordmark .wm-name {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: #fdfcf9;
  transition: color 0.4s var(--ease);
}
.wordmark .wm-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.52em;
  color: var(--brass-bright);
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s var(--ease);
  padding-block: 0.5rem;
}

.nav-links a:hover { color: var(--brass-bright); }

.nav-cta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fdfcf9;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.nav-cta:hover { background: var(--brass); border-color: var(--brass); color: #fdfcf9; }

.nav.scrolled {
  background: rgba(245, 243, 238, 0.96);
  box-shadow: 0 1px 0 rgba(38, 40, 42, 0.08);
  height: 68px;
}

.nav.scrolled .wm-name { color: var(--text-dark); }
.nav.scrolled .nav-links a { color: var(--text-dark); }
.nav.scrolled .nav-links a:hover { color: var(--brass); }
.nav.scrolled .nav-cta { border-color: var(--brass); color: var(--brass); }
.nav.scrolled .nav-cta:hover { background: var(--brass); color: #fdfcf9; }

/* Hamburger: must stay above the overlay (dismissable rule) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 220;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  margin-inline: auto;
  background: #fdfcf9;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), background 0.35s var(--ease);
}

.nav.scrolled .burger span { background: var(--text-dark); }
.burger.open span { background: #fdfcf9; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(29, 31, 33, 0.98);
  z-index: 210;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  color: #fdfcf9;
  padding: 0.55rem 1rem;
  transition: color 0.3s var(--ease);
}

.mobile-menu a:hover { color: var(--brass-bright); }

.mobile-menu .mm-rule {
  width: 56px;
  height: 1px;
  background: var(--brass-bright);
  opacity: 0.6;
  margin-block: 1rem;
}

.mobile-menu .mm-phone {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-kitchen.jpg") center 40% / cover no-repeat;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29,31,33,0.42) 0%, rgba(29,31,33,0.18) 40%, rgba(29,31,33,0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
  max-width: none;
}

.hero-content .inner { max-width: 640px; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  color: #fdfcf9;
  margin-bottom: 1.4rem;
}

.hero h1 em { font-style: italic; }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 300;
  color: var(--text-light);
  max-width: 54ch;
  margin-bottom: 2.2rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero .eyebrow { color: var(--brass-bright); }
.hero .eyebrow::before { background: var(--brass-bright); }

/* ---------- Intro ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.intro-grid h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

.intro-grid p { font-size: 1.02rem; }

.intro-grid p + p { margin-top: 1.1rem; }

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.path {
  border-top: 1px solid rgba(138, 107, 65, 0.35);
  padding-top: 1.4rem;
}

.path .path-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.7rem;
}

.path h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

.path p { font-size: 0.95rem; }

/* ---------- Before / After ---------- */

.ba-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.ba-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

.ba-head p { color: var(--text-light-muted); max-width: 46ch; justify-self: end; }

.ba-slider {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(253, 252, 249, 0.9);
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(253, 252, 249, 0.95);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.ba-label {
  position: absolute;
  bottom: 1.1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fdfcf9;
  background: rgba(29, 31, 33, 0.55);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  pointer-events: none;
}

.ba-label--before { left: 1.1rem; }
.ba-label--after { right: 1.1rem; }

/* ---------- Services ---------- */

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.service + .service { margin-top: clamp(3.5rem, 7vw, 6rem); }

.service-img {
  overflow: hidden;
  border-radius: 4px;
}

.service-img img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.service-img:hover img { transform: scale(1.035); }

.service:nth-child(even) .service-img { order: 2; }

.service h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }

.service p { font-size: 1rem; }

.service p + p { margin-top: 1rem; }

.service-list {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.5rem;
}

.service-list li {
  font-size: 0.92rem;
  padding-left: 1.2rem;
  position: relative;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.75;
}

/* ---------- Process ---------- */

.section-pearl { background: var(--pearl); }

.process-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.process-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

.process-head p { margin-top: 1rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.step {
  background: var(--ivory);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 2px solid var(--brass);
}

.step .step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--brass);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }

.step p { font-size: 0.95rem; }

/* ---------- Founders ---------- */

.founders {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.founders-img { border-radius: 4px; overflow: hidden; }

.founders-img img { width: 100%; height: 100%; object-fit: cover; }

.founders h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1.2rem; }

.founders p { color: var(--text-light); font-weight: 300; }

.founders p + p { margin-top: 1.1rem; }

.founders .sig {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--brass-bright);
}

/* ---------- Projects ---------- */

.projects-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.projects-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

.projects-head p { max-width: 44ch; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.project-card { display: flex; flex-direction: column; }

.project-card .pc-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.project-card:hover img { transform: scale(1.04); }

.project-card h3 { font-size: 1.25rem; margin-top: 1.1rem; }

.project-card .pc-date {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ---------- CTA ---------- */

.cta { text-align: center; }

.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 20ch; margin-inline: auto; }

.cta p {
  color: var(--text-light-muted);
  max-width: 52ch;
  margin: 1.2rem auto 2.4rem;
}

.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--text-light-muted);
  padding-block: clamp(3rem, 5vw, 4rem) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2.5rem;
}

.footer .wm-name { color: #fdfcf9; }

.footer-tag { margin-top: 1rem; font-size: 0.9rem; font-weight: 300; max-width: 34ch; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 1rem;
}

.footer ul { list-style: none; }

.footer ul a {
  display: inline-block;
  font-size: 0.9rem;
  padding-block: 0.3rem;
  transition: color 0.3s var(--ease);
}

.footer ul a:hover { color: #fdfcf9; }

.footer address { font-style: normal; font-size: 0.9rem; line-height: 1.9; }

.footer address a { display: inline-block; padding-block: 0.3rem; transition: color 0.3s var(--ease); }
.footer address a:hover { color: #fdfcf9; }

.footer-bottom a { display: inline-block; padding-block: 0.65rem; transition: color 0.3s var(--ease); }
.footer-bottom a:hover { color: #fdfcf9; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- 404 ---------- */

.error-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--charcoal);
  padding-top: var(--nav-height);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  color: var(--brass-muted);
  line-height: 1;
}

.error-section h1 { color: #fdfcf9; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.6rem 0 1rem; }

.error-section p { color: var(--text-light-muted); max-width: 46ch; margin-inline: auto; margin-bottom: 2rem; }

/* ---------- Reveal (scroll animations) ---------- */

.reveal, .hero-el { opacity: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav-links { gap: 1.3rem; }
}

@media (max-width: 900px) {
  .nav-links, .nav .nav-cta { display: none; }
  .burger { display: flex; }

  .intro-grid, .service, .founders { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-img { order: 0; }
  .service-img img { max-height: 460px; }

  .steps, .paths, .projects-grid { grid-template-columns: 1fr; }

  .ba-head { grid-template-columns: 1fr; align-items: start; }
  .ba-head p { justify-self: start; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding-top: 6rem;
  }
  .ba-slider { aspect-ratio: 4 / 3; }
  .footer ul a { padding-block: 0.65rem; }
  .footer address { line-height: 2.2; }
  .footer address a { padding-block: 0.65rem; }
}

@media (max-width: 480px) {
  .hero { padding-top: 5rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ---------- Mobile drawer close control ---------- */
/* The burger doubles as the close (X), but the nav's own z-index traps it in a
   stacking context below the drawer, so it is painted over and cannot be tapped.
   This control lives inside the drawer, so it is always visible and always hits. */
#mobileMenu .mnav-close {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  right: 0.85rem;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: rgb(253, 252, 249);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
#mobileMenu .mnav-close::before,
#mobileMenu .mnav-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 1.5px;
  margin: -0.75px 0 0 -10.5px;
  background: currentColor;
  border-radius: 2px;
}
#mobileMenu .mnav-close::before { transform: rotate(45deg); }
#mobileMenu .mnav-close::after { transform: rotate(-45deg); }
#mobileMenu .mnav-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
