/* ========================================
   Muniz Bakery — Classic & Elegant Styles
   Palette: Burgundy (#7B2D3B) + Blush (#F5E6D3)
   Fonts: Cormorant Garamond + Inter
======================================== */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2A1F1D;
  background-color: #FDF8F4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #7B2D3B;
  color: #FDF8F4;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  font-size: 0.875rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Typography ── */
:root {
  --color-burgundy: #7B2D3B;
  --color-burgundy-dark: #5E1F2C;
  --color-burgundy-light: #9A3D4E;
  --color-blush: #F5E6D3;
  --color-blush-light: #FDF8F4;
  --color-blush-dark: #E8D0BC;
  --color-text: #2A1F1D;
  --color-text-muted: #6B5B57;
  --color-text-light: #FDF8F4;
  --color-cream: #FAF0E8;
  --color-white: #FFFFFF;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(42,31,29,0.06), 0 1px 2px rgba(42,31,29,0.04);
  --shadow-md: 0 4px 16px rgba(42,31,29,0.08), 0 2px 6px rgba(42,31,29,0.04);
  --shadow-lg: 0 12px 40px rgba(42,31,29,0.1), 0 4px 12px rgba(42,31,29,0.05);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section Eyebrow ── */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 0.75rem;
}

/* ── Section Title ── */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.15;
}

/* ── Section Subtitle ── */
.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-subtitle {
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-burgundy);
  color: var(--color-text-light);
  border: 2px solid var(--color-burgundy);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-burgundy-dark);
  border-color: var(--color-burgundy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text-light);
  border: 2px solid rgba(253,248,244,0.5);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: rgba(253,248,244,0.1);
  border-color: var(--color-text-light);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,248,244,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123,45,59,0.08);
  transition: var(--transition);
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text);
}
.nav__logo:hover {
  color: var(--color-burgundy);
}

.nav__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-burgundy);
  color: var(--color-text-light);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-burgundy);
  background: rgba(123,45,59,0.06);
}

.nav__link--accent {
  color: var(--color-burgundy);
  background: rgba(123,45,59,0.08);
}
.nav__link--accent:hover {
  background: var(--color-burgundy);
  color: var(--color-text-light);
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav__toggle:hover {
  background: rgba(123,45,59,0.06);
}
.nav__toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--color-burgundy);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94,31,44,0.92) 0%, rgba(123,45,59,0.85) 50%, rgba(154,61,78,0.75) 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-blush);
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.hero__subheadline {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(253,248,244,0.8);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

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

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(253,248,244,0.5);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.hero__scroll svg {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--color-blush-dark);
  opacity: 0.6;
}

/* ── About ── */
.about {
  padding: 7rem 0;
  background: var(--color-blush-light);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 600/750;
}

.about__text-col {
  padding: 1rem 0;
}

.about__body {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value__icon {
  color: var(--color-burgundy);
  flex-shrink: 0;
  margin-top: 2px;
}

.value__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.value__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Specialties ── */
.specialties {
  padding: 7rem 0;
  background: var(--color-cream);
}

.specialties__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__img-wrap {
  overflow: hidden;
  aspect-ratio: 500/380;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card__img {
  transform: scale(1.04);
}

.card__body {
  padding: 1.75rem;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Gallery ── */
.gallery {
  padding: 7rem 0;
  background: var(--color-blush-light);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1.25rem;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__item--wide {
  grid-column: span 12;
}
.gallery__item--wide img {
  aspect-ratio: 800/500;
}

.gallery__item:not(.gallery__item--wide) img {
  aspect-ratio: 1/1;
}

.gallery__item--tall img {
  aspect-ratio: 500/700;
}

/* ── Visit ── */
.visit {
  padding: 7rem 0;
  background: var(--color-burgundy);
}

.visit__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.visit__text .section-eyebrow {
  color: var(--color-blush);
  opacity: 0.85;
}

.visit__text .section-title {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.visit__body {
  font-size: 1.0625rem;
  color: rgba(253,248,244,0.75);
  line-height: 1.8;
}

.visit__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(253,248,244,0.08);
  border: 1px solid rgba(253,248,244,0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}
.info-block:hover {
  background: rgba(253,248,244,0.12);
  transform: translateX(4px);
}

.info-block__icon {
  color: var(--color-blush);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-block__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blush);
  opacity: 0.8;
  margin-bottom: 0.375rem;
}

.info-block__value {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.6;
}
.info-block__value a {
  color: var(--color-text-light);
  transition: color 0.2s;
}
.info-block__value a:hover {
  color: var(--color-blush);
}

/* ── Contact ── */
.contact {
  padding: 7rem 0;
  background: var(--color-blush-light);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__text-col {
  padding: 1rem 0;
}

.contact__body {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ── Form ── */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.form__input,
.form__select,
.form__textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-blush-light);
  border: 1.5px solid var(--color-blush-dark);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-burgundy);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(123,45,59,0.1);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B5B57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__success {
  display: none;
  text-align: center;
  padding: 1rem;
  background: rgba(123,45,59,0.06);
  border: 1px solid rgba(123,45,59,0.15);
  border-radius: var(--radius-sm);
  color: var(--color-burgundy);
  font-size: 0.9375rem;
  font-weight: 500;
}
.form__success.visible {
  display: block;
}

/* ── Footer ── */
.footer {
  background: var(--color-text);
  color: var(--color-text-light);
  padding: 4rem 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(253,248,244,0.1);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__brand .nav__logo-mark {
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

.footer__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.footer__tagline {
  font-size: 0.9375rem;
  color: rgba(253,248,244,0.55);
  line-height: 1.6;
  max-width: 280px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__nav a {
  font-size: 0.9375rem;
  color: rgba(253,248,244,0.6);
  transition: var(--transition);
}
.footer__nav a:hover {
  color: var(--color-blush);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(253,248,244,0.6);
  line-height: 1.7;
}
.footer__contact a {
  color: rgba(253,248,244,0.6);
  transition: color 0.2s;
}
.footer__contact a:hover {
  color: var(--color-blush);
}

.footer__bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(253,248,244,0.35);
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }
  .hero__subheadline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__image-wrap {
    max-width: 500px;
    margin: 0 auto;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__image {
    max-width: 500px;
    margin: 0 auto;
  }

  .visit__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253,248,244,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123,45,59,0.08);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }
  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }
  .nav__link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }
  .nav__link--accent {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 3rem;
  }
  .hero__inner {
    padding-top: 6rem;
  }
  .hero__scroll {
    display: none;
  }

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

  .gallery__item--wide {
    grid-column: span 12;
  }
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery__item--tall {
    grid-column: span 2;
  }
  .gallery__item--tall img {
    aspect-ratio: auto;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero__headline {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }
  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: span 1;
  }

  .form {
    padding: 1.5rem;
  }
}
