/* ============================================================
   MICHAEL D'ANGELO — EXECUTIVE PASTRY CHEF
   Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Jost:wght@200;300;400;500&display=swap');

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #F8F5F0;
  --cream-dark: #EDE9DF;
  --teal: #304e4d;
  --teal-light: #abc5c6;
  --dark: #1c2824;
  --mid: #7A7A7A;
  --white: #FFFFFF;
  --gold: #C9A96E;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', 'Helvetica Neue', sans-serif;
  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- NAVIGATION ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  background: rgba(248, 245, 240, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
  background: var(--cream);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

nav.light {
  background: transparent;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
}

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

.nav-links a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--teal);
}

/* White nav variant (over dark hero) */
nav.nav-white {
  background: rgba(0, 0, 0, 0.25);
}

nav.nav-white .nav-links a,
nav.nav-white .nav-logo-text {
  color: rgba(255, 255, 255, 0.9);
}

nav.nav-white.scrolled .nav-links a,
nav.nav-white.scrolled .nav-logo-text {
  color: var(--dark);
}

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

nav.nav-white.scrolled .nav-links a:hover {
  color: var(--teal);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--dark);
  transition: all 0.3s ease;
}

nav.nav-white .nav-hamburger span {
  background: white;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--dark);
  transition: color 0.2s;
}

.nav-mobile a:hover {
  color: var(--teal);
}

.nav-mobile-close {
  position: absolute;
  top: 28px;
  right: 48px;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark);
  line-height: 1;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.45) 60%,
      rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 0 24px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 100px);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 48px;
  opacity: 0.85;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: white;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: white;
  color: var(--dark);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    opacity: 1;
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---- PAGE HEADER (non-hero pages) ---- */
.page-header {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 60px;
  text-align: center;
  background: var(--cream);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 0.03em;
  color: var(--dark);
}

.page-header p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #555;
  margin-top: 16px;
}

/* ---- SECTION BASE ---- */
section {
  padding: 100px 48px;
}

.section-label {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--dark);
  margin-bottom: 32px;
}

.section-title em {
  font-style: italic;
  color: var(--teal);
}

.section-body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  color: #3A3A3A;
  max-width: 600px;
}

/* ---- INTRO STRIP ---- */
.intro-strip {
  background: var(--teal);
  color: white;
  padding: 30px 48px;
  text-align: center;
}

.intro-strip p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3.5vw, 34px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  max-width: 860px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ---- TWO-COLUMN SPLIT ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.split-img {
  overflow: hidden;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.split-img:hover img {
  transform: scale(1.03);
}

.split-text {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}

.split.reverse .split-text {
  order: -1;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--cream-dark);
  border: 1px solid var(--cream-dark);
}

.service-item {
  background: var(--cream);
  padding: 48px 40px;
  transition: background 0.3s ease;
}

.service-item:hover {
  background: var(--cream-dark);
}

.service-item h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-item p {
  font-size: 14px;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
}

/* ---- ADJECTIVES ---- */
.adjectives {
  text-align: center;
  padding: 120px 48px;
  background: var(--cream-dark);
}

.adj-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 8vw, 100px);
  flex-wrap: wrap;
}

.adj-item {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--dark);
  position: relative;
}

.adj-item:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: calc(-1 * clamp(20px, 4.5vw, 56px));
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 0.6em;
}

.adj-item em {
  font-style: italic;
  color: var(--teal);
}

.adj-sub {
  margin-top: 60px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: #4A4A4A;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FULL-WIDTH IMAGE ---- */
.full-img {
  width: 100%;
  height: 55vh;
  min-height: 360px;
  object-fit: cover;
}

/* ---- GALLERY GRID ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--dark);
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.97);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ---- ABOUT LAYOUT ---- */
.about-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
  padding: 120px 48px;
}

.about-image {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-text p {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: #3A3A3A;
  margin-bottom: 24px;
}

.about-logo {
  margin-top: 60px;
  width: 120px;
}

/* ---- CTA BUTTON ---- */
.btn {
  display: inline-block;
  padding: 14px 44px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-dark {
  background: var(--dark);
  color: white;
  border: 1px solid var(--dark);
}

.btn-dark:hover {
  background: transparent;
  color: var(--dark);
}

.btn-teal {
  background: var(--teal);
  color: white;
  border: 1px solid var(--teal);
}

.btn-teal:hover {
  background: transparent;
  color: var(--teal);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: white;
}

/* ---- CONTACT FORM ---- */
.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 48px;
}

.form-group {
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #C8C5BE;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--dark);
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
}

.form-group textarea {
  height: 140px;
  resize: none;
}

/* ---- STENCIL PAGE ---- */
.stencil-hero {
  position: relative;
  height: 65vh;
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stencil-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.stencil-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.stencil-hero-content {
  position: relative;
  text-align: center;
  color: white;
}

.stencil-hero-content h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.stencil-hero-content p {
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ---- PUBLICATIONS ---- */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.pub-item {
  overflow: hidden;
}

.pub-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pub-item:hover img {
  transform: scale(1.03);
}

.pub-item-caption {
  padding: 20px 0 0;
}

.pub-item-caption h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
}

.pub-item-caption p {
  font-size: 12px;
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.1em;
}

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- DIVIDER ---- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--teal);
  margin: 24px 0;
}

/* ---- ANIMATE ON SCROLL ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  nav {
    padding: 0 28px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  section {
    padding: 70px 28px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-text {
    order: unset;
  }

  .split-text {
    padding: 56px 28px;
  }

  .about-wrap {
    grid-template-columns: 1fr;
    padding: 80px 28px;
    gap: 48px;
  }

  .about-image {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    padding: 48px 28px;
  }

  .contact-wrap {
    padding: 80px 28px;
  }

  .adj-item:not(:last-child)::after {
    display: none;
  }

  .adj-grid {
    gap: 24px;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0 20px;
  }

  section {
    padding: 56px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .pub-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  footer {
    padding: 40px 20px;
  }

  .contact-wrap {
    padding: 56px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}