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

:root {
  --dark:  #3E3F40;
  --gray:  #5E6061;
  --blue:  #6BBFE7;
  --amber: #FBC44E;
  --white: #FFFFFF;
  --light: #F5F5F5;
  /* Metallic copper-gold gradient used by the logo's double frame */
  --gold-grad: linear-gradient(100deg, #9c6b3f 0%, #c1925f 18%, #ecd2ad 45%, #f6e7c5 55%, #c89a67 80%, #8a5c36 100%);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', Arial, sans-serif;

  --nav-h: 76px;
  --max-w: 1200px;
  --pad:   24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

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

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn-primary {
  background: var(--amber);
  color: var(--dark);
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid rgba(62,63,64,0.12);
  height: var(--nav-h);
}

.nav-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 44px;
  width: auto;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-links .nav-link {
  font-size: 0.95rem;
  color: var(--dark);
  text-decoration: none;
  padding-bottom: 3px;
  position: relative;
}
.nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links .nav-link.active,
.nav-links .nav-link:hover { font-weight: 700; }
.nav-links .nav-link.active::after,
.nav-links .nav-link:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background-color: var(--dark);
  background-image:
    linear-gradient(100deg,
      rgba(20,18,14,0.88) 0%,
      rgba(20,18,14,0.55) 48%,
      rgba(20,18,14,0.05) 75%),
    url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad);
  display: flex;
  align-items: center;
  gap: 64px;
}

/* Hero text */
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 22px;
}
.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 38px;
}

/* Hero visual — the book is part of the background photo,
   this spacer keeps the text in the left half like the design */
.hero-visual {
  flex: 1 1 auto;
  min-height: 1px;
}

/* ============================================
   BEYOND THE PLATE
   ============================================ */
.beyond-plate {
  overflow: hidden;
  position: relative;
  background: var(--white);
  padding-top: 78px;
}
/* Right-anchored divider line below the hero */
.beyond-plate::before {
  content: '';
  position: absolute;
  top: 37px;
  right: 0;
  width: 80.4%;
  height: 4px;
  background: var(--blue);
}

.beyond-plate-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.beyond-image {
  min-height: 520px;
  background-image: url('images/beyond-plate.jpg');
  background-size: cover;
  background-position: center;
}

.beyond-content {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.beyond-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 24px;
}
.beyond-content p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 80px 0;
  background: var(--white);
  position: relative;
}
/* Staggered section divider lines from the design: each touches one
   screen edge and stops ~80% of the way across */
.testimonials::before {
  content: '';
  position: absolute;
  top: 37px;
  left: 0;
  width: 80.4%;
  height: 4px;
  background: var(--blue);
}
.testimonials::after {
  content: '';
  position: absolute;
  bottom: 35px;
  right: 0;
  width: 80.4%;
  height: 4px;
  background: var(--blue);
}
.testimonials h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.section-subtitle {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 48px;
}

.testimonial-wrapper {
  position: relative;
}
.testimonial-track {
  display: flex;
  gap: 20px;
  overflow: hidden;
}
.testimonial-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: var(--blue);
  border-radius: 14px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  transition: transform 0.5s ease;
}
/* Wide screens fit all four cards side by side */
@media (min-width: 1200px) {
  .testimonial-card { flex-basis: calc((100% - 60px) / 4); }
}
.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.75;
  font-style: normal;
  flex: 1;
}
.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.testimonial-card footer strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}
.testimonial-card footer span {
  font-size: 0.875rem;
  color: rgba(62,63,64,0.72);
}

.testimonial-next {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 10;
}
.testimonial-next:hover { background: var(--gray); }
.testimonial-next:active { transform: translateY(-50%) scale(0.95); }

/* ============================================
   YOUR RECIPE FOR GREAT OUTCOMES
   ============================================ */
.recipe { padding: 80px 0 0; }

.recipe-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  margin-bottom: 56px;
}

.recipe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.recipe-image {
  min-height: 400px;
  background-size: cover;
  background-position: center;
}
.recipe-img-staff { background-image: url('images/recipe-staff.svg'); }
.recipe-img-guest { background-image: url('images/recipe-guest.svg'); }
.recipe-img-ops   { background-image: url('images/ops.jpg'); }

.recipe-content {
  padding: 64px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  position: relative;
}
/* Vertical accent line beside the text, taller than the text itself */
.recipe-content::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 205px;
  background: var(--blue);
}
.recipe-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.recipe-content p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 440px;
}

/* Reverse row: image on right */
.recipe-row-reverse .recipe-image { order: 2; }
.recipe-row-reverse .recipe-content { order: 1; }

/* ============================================
   MEET DERYK D. DAVIDSON
   ============================================ */
.about { background: var(--white); overflow: hidden; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-content {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  padding-bottom: 20px;
  margin-bottom: 24px;
  position: relative;
  align-self: flex-start;
}
/* Underline runs from the screen's left edge to just past the heading
   (clipped at the viewport by .about's overflow: hidden) */
.about-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100vw;
  right: -88px;
  height: 4px;
  background: var(--blue);
}
.about-content p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: 16px;
}
.about-content .btn { margin-top: 28px; align-self: flex-start; }

/* Behaves like the recipe photos: stretches with the row and crops
   with cover. The taller min-height on wide screens keeps the
   design's framing so he isn't cut off at the waist. */
.about-photo {
  min-height: 520px;
  background-image: url('images/deryk.jpg');
  background-size: cover;
  background-position: center top;
}
@media (min-width: 1100px) {
  .about-photo { min-height: 650px; }
}

/* ============================================
   LET'S TALK / CONTACT
   ============================================ */
.contact-section { background: var(--white); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  min-height: 640px;
}

/* Brand side */
.contact-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}

.contact-logo-img {
  width: min(456px, 100%);
  height: auto;
}

/* Form side */
.contact-form-wrap {
  padding: 64px;
  display: flex;
  flex-direction: column;
}
.contact-form-wrap h2 {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  padding-bottom: 16px;
  margin-bottom: 14px;
}

.contact-form-wrap h2::after {
  content: '';
  position: absolute;
  left: 0;
  right: -64px;
  bottom: 0;
  height: 2.5px;
  background: var(--blue);
}
.contact-form-wrap > p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group-full { margin-bottom: 24px; }

.form-group label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea {
  border: 1.5px solid transparent;
  border-radius: 50px;
  padding: 13px 20px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--dark);
  background: #D8EBF2;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #7A8A94; }
.form-group textarea {
  resize: vertical;
  min-height: 130px;
  border-radius: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  padding: 44px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-copy {
  font-size: 0.8rem;
  padding-top: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

/* ============================================
   RESPONSIVE — TABLET  (≤ 900px)
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { gap: 40px; }
  .hero-visual { width: 300px; }

  .recipe-content { padding: 48px 40px; }
  .recipe-content::before { left: 18px; }
  .beyond-content { padding: 60px 40px; }
  .about-content  { padding: 60px 40px; }
  .contact-form-wrap { padding: 48px 40px; }
  .contact-form-wrap h2::after { right: -40px; }
}

/* ============================================
   RESPONSIVE — MOBILE  (≤ 680px)
   ============================================ */
@media (max-width: 680px) {
  :root { --nav-h: 64px; }

  /* Nav */
  .nav-toggle { display: flex; }
  /* Right-side drawer panel like the Figma mobile menu */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: calc(-1 * var(--pad));
    width: 62vw;
    min-height: calc(100vh - var(--nav-h));
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 20px 0 16px;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.14);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links .nav-link { display: block; padding: 13px 28px; font-size: 1rem; color: var(--dark); }
  .nav-links .nav-link::after { display: none; }
  /* Active page gets the blue highlight bar */
  .nav-links .nav-link.active {
    background: var(--blue);
    color: var(--dark);
  }

  /* Hero */
  .hero {
    min-height: auto;
    background-image:
      linear-gradient(180deg,
        rgba(20,18,14,0.82) 0%,
        rgba(20,18,14,0.55) 55%,
        rgba(20,18,14,0.15) 100%),
      url('images/hero-bg.jpg');
    background-position: 62% center;
  }
  .hero-inner {
    flex-direction: column;
    padding: 48px var(--pad) 220px;
    gap: 0;
    align-items: center;
    text-align: center;
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-text h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .hero-text p { max-width: 100%; }
  .hero-text .btn { margin: 0 auto; }
  .hero-visual { display: none; }

  /* Beyond */
  .beyond-plate { padding-top: 48px; }
  .beyond-plate::before { top: 22px; width: 64%; height: 3px; }
  .beyond-plate-inner { grid-template-columns: 1fr; }
  .beyond-image { min-height: 280px; }
  .beyond-content {
    padding: 44px var(--pad);
    text-align: center;
    align-items: center;
  }
  .beyond-content h2,
  .beyond-content p { text-align: center; }

  /* Testimonials */
  .testimonials { padding: 56px 0; }
  .testimonials::before { top: 24px; width: 78%; height: 3px; }
  .testimonials::after { bottom: 22px; width: 64%; height: 3px; }
  .testimonials h2,
  .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
  .testimonial-track { gap: 16px; }
  .testimonial-card { flex: 0 0 100%; }
  .testimonial-next {
    right: -6px;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  /* Recipe */
  /* 39px gap above the title (matching half the old spacing) and the same
     39px below the last block's blue line before the next section */
  .recipe { padding: 17px 0 25px; }
  /* Even 28px rhythm: title→block, paragraph→blue line, blue line→next title */
  .recipe-title { margin-bottom: 14px; }
  .recipe-row { grid-template-columns: 1fr; }
  .recipe-row-reverse .recipe-image { order: 0; }
  .recipe-row-reverse .recipe-content { order: 1; }
  .recipe-image { display: none; }
  .recipe-content { padding: 14px var(--pad); text-align: center; }
  .recipe-content h3 { text-align: center; }
  .recipe-content p { max-width: 100%; }
  /* Mobile design swaps the vertical accent for a short centered line below the text */
  .recipe-content::before { display: none; }
  .recipe-content::after {
    content: '';
    width: 160px;
    height: 3px;
    background: var(--blue);
    align-self: center;
    margin-top: 28px;
  }

  /* About */
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { order: -1; min-height: 320px; }
  .about-content {
    padding: 44px var(--pad);
    text-align: center;
    align-items: center;
  }
  .about-content h2,
  .about-content p,
  .about-content h2::after { text-align: center; }
  .about-content h2 { align-self: center; }
  .about-content .btn { align-self: center; }

  /* Contact — blue rounded card like the mobile design */
  .contact-section { padding: 24px 16px 40px; }
  .contact-inner { grid-template-columns: 1fr; min-height: 0; }
  .contact-brand { display: none; }
  .contact-form-wrap {
    background: var(--blue);
    border-radius: 30px;
    padding: 40px 24px;
  }
  .contact-form-wrap h2 {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
  }
  .contact-form-wrap h2::after { display: none; }
  .contact-form-wrap > p {
    text-align: center;
    color: var(--dark);
    margin-left: auto;
    margin-right: auto;
  }
  .contact-form .form-row { grid-template-columns: 1fr; gap: 12px; }
  .form-group input,
  .form-group textarea { background: var(--white); }
  .contact-form button[type="submit"] {
    display: block;
    margin: 0 auto;
  }

  /* Footer */
  .footer { padding: 36px var(--pad) 28px; }
}
