/* =========================
   TABLETS
========================= */

@media (max-width: 1000px) {
  .navbar {
    gap: 18px;
  }

  .navbar a {
    font-size: 13px;
  }

  .nav-order-btn {
    display: none;
  }

  .hero h1 {
    max-width: 650px;
  }
}

/* =========================
   MOBILE NAVIGATION
========================= */

@media (max-width: 820px) {
  .site-header {
    padding: 20px 0;
  }

  .logo {
    font-size: 28px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1100;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 82%);
    height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    gap: 26px;
    padding: 50px;

    background: rgba(53, 39, 31, 0.97);
    backdrop-filter: blur(15px);

    transition: right 0.4s ease;
    z-index: 1050;
  }

  .navbar.active {
    right: 0;
  }

  .navbar a {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    color: var(--color-white);
  }

  .navbar a::after {
    bottom: -4px;
  }

  .hero {
    min-height: 100svh;
    background-position: center;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero h1 {
    max-width: 600px;
    font-size: clamp(52px, 12vw, 76px);
  }

  .hero-description {
    max-width: 520px;
  }

  .hero-scroll {
    display: none;
  }
}

/* =========================
   SMALL PHONES
========================= */

@media (max-width: 600px) {
  .container {
    width: 88%;
  }

  .hero {
    background-position: 58% center;
  }

  .hero-content {
    padding-top: 90px;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 66px);
    line-height: 0.95;
  }

  .hero-description {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 28px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}
/* =========================
   HOMEPAGE SECTIONS
========================= */

@media (max-width: 900px) {
  .favorites-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-grid,
  .cakes-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .story-image img,
  .cakes-image img {
    height: 520px;
  }

  .story-badge {
    right: 20px;
    bottom: 20px;
  }

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

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

@media (max-width: 650px) {
  .favorites-section,
  .story-section,
  .cakes-section,
  .testimonials-section {
    padding: 80px 0;
  }

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

  .favorite-image {
    height: 290px;
  }

  .story-image img,
  .cakes-image img {
    height: 430px;
  }

  .story-badge {
    width: 120px;
    height: 120px;
  }

  .story-badge strong {
    font-size: 26px;
  }

  .story-content h2,
  .cakes-content h2 {
    font-size: 48px;
  }

  .testimonial-card {
    padding: 30px 24px;
  }

  .testimonial-text {
    font-size: 22px;
  }

  .cta-section {
    min-height: 540px;
  }

  .cta-content h2 {
    font-size: 50px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
/* =========================
   MENU PAGE
========================= */

@media (max-width: 900px) {
  .page-hero {
    min-height: 500px;
  }

  .page-hero-content h1 {
    font-size: clamp(58px, 10vw, 82px);
  }

  .menu-items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-hero {
    min-height: 460px;
  }

  .page-hero-content {
    padding-top: 110px;
  }

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

  .page-hero-content > p:not(.section-eyebrow) {
    font-size: 14px;
  }

  .menu-intro {
    padding: 75px 0 40px;
  }

  .menu-section {
    padding: 20px 0 80px;
  }

  .menu-category + .menu-category {
    margin-top: 65px;
  }

  .menu-category-heading h2 {
    font-size: 44px;
  }

  .menu-item {
    gap: 18px;
    padding: 24px 0;
  }

  .menu-item h3 {
    font-size: 23px;
  }

  .menu-item p {
    font-size: 12px;
  }

  .menu-item > span {
    font-size: 20px;
  }
}
/* =========================
   ABOUT PAGE
========================= */

@media (max-width: 900px) {
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-story-image img {
    height: 520px;
  }

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

@media (max-width: 600px) {
  .about-story-section,
  .values-section,
  .about-cta {
    padding: 80px 0;
  }

  .about-story-content h2 {
    font-size: 48px;
  }

  .about-story-image img {
    height: 430px;
  }

  .value-card {
    padding: 30px 24px;
  }

  .value-card h3 {
    font-size: 27px;
  }

  .about-cta-content h2 {
    font-size: 48px;
  }
}
/* =========================
   CUSTOM CAKES PAGE
========================= */

@media (max-width: 900px) {
  .cake-intro-grid,
  .cake-request-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .cake-intro-image img {
    height: 520px;
  }

  .cake-process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cake-intro-section,
  .cake-process-section,
  .cake-request-section {
    padding: 80px 0;
  }

  .cake-intro-content h2,
  .cake-request-content h2 {
    font-size: 48px;
  }

  .cake-intro-image img {
    height: 420px;
  }

  .cake-process-card {
    padding: 30px 24px;
  }

  .cake-process-card h3 {
    font-size: 27px;
  }

  .cake-form {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
/* =========================
   GALLERY PAGE
========================= */

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .gallery-intro,
  .gallery-section,
  .gallery-cta {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .gallery-item,
  .gallery-item-tall,
  .gallery-item-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-cta-content h2 {
    font-size: 48px;
  }

  .gallery-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .gallery-cta-buttons .section-btn {
    width: 100%;
    max-width: 280px;
  }
}
/* =========================
   CONTACT PAGE
========================= */

@media (max-width: 900px) {
  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-grid,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .visit-image img {
    height: 500px;
  }
}

@media (max-width: 600px) {
  .contact-details-section,
  .contact-form-section,
  .visit-section {
    padding: 80px 0;
  }

  .contact-detail-card {
    padding: 30px 24px;
  }

  .contact-form-content h2,
  .visit-content h2 {
    font-size: 48px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .visit-image img {
    height: 420px;
  }
}