/* ============================================
   Ortiz Bakery — Custom Styles
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #1a2e2a;
  background: #fefdf8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #065f46;
  background: #d1fae5;
  padding: 0.35em 0.85em;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.label--light {
  color: #d1fae5;
  background: rgba(255,255,255,0.15);
}
.heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #064e3b;
  margin-bottom: 1.25rem;
}
.heading--light { color: #fefdf8; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-sub { color: #374a44; font-size: 1.05rem; line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--emerald {
  background: #065f46;
  color: #fefdf8;
}
.btn--emerald:hover { background: #047857; box-shadow: 0 8px 24px rgba(6,95,70,0.25); }
.btn--light {
  background: #fefdf8;
  color: #065f46;
}
.btn--light:hover { background: #fef9e8; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn--ghost {
  background: transparent;
  color: #fefdf8;
  border: 1.5px solid rgba(254,253,248,0.5);
}
.btn--ghost:hover { background: rgba(254,253,248,0.1); border-color: #fefdf8; }
.btn--full { width: 100%; }

/* ---------- Icons ---------- */
.icon-check { width: 1.125rem; height: 1.125rem; flex-shrink: 0; color: #065f46; }
.icon-location, .icon-clock, .icon-phone, .icon-mail { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }

/* ========== NAVBAR ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(2,44,34,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fefdf8;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav__logo { width: 2rem; height: 2rem; color: #d1fae5; }
.nav__name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__link {
  color: rgba(254,253,248,0.78);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: #fefdf8; background: rgba(255,255,255,0.08); }
.nav__link--cta {
  background: rgba(254,253,248,0.12);
  color: #fefdf8;
  margin-left: 0.5rem;
}
.nav__link--cta:hover { background: rgba(254,253,248,0.2); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 2rem;
  padding: 0.25rem 0;
}
.nav__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fefdf8;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: rgba(2,44,34,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav__menu.open { transform: translateY(0); opacity: 1; }
  .nav__link { width: 100%; padding: 0.7rem 0.85rem; }
  .nav__link--cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #064e3b;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(2,44,34,0.82) 0%,
    rgba(6,78,59,0.70) 40%,
    rgba(4,120,87,0.55) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 2rem 1.5rem;
  color: #fefdf8;
}
.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a7f3d0;
  margin-bottom: 1.25rem;
}
.hero__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: #fefdf8;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(254,253,248,0.85);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(254,253,248,0.6);
  animation: float 2.4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== ABOUT ========== */
.about { padding: 6rem 0; background: #fefdf8; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about__media { position: relative; }
.about__img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(6,78,59,0.12);
}
.about__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about__accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 55%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(6,78,59,0.18);
  border: 4px solid #fefdf8;
}
.about__accent img { width: 100%; height: 100%; object-fit: cover; }
.about__text { padding: 1rem 0; }
.about__text p { color: #374a44; margin-bottom: 1rem; font-size: 1.02rem; }
.about__features { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.about__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.97rem;
  color: #1a2e2a;
  line-height: 1.5;
}
.about__features li::before { content: none; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__accent { right: 0; bottom: -1.5rem; }
}
@media (max-width: 480px) {
  .about { padding: 4rem 0; }
  .about__accent { display: none; }
}

/* ========== SPECIALTIES ========== */
.specialties {
  padding: 6rem 0;
  background: #ecfdf5;
}
.specialties__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.card {
  background: #fefdf8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(6,78,59,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(6,78,59,0.13); }
.card__img-wrap { overflow: hidden; aspect-ratio: 4/3; }
.card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card__img-wrap img { transform: scale(1.04); }
.card__body { padding: 1.75rem; }
.card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #064e3b;
  margin-bottom: 0.6rem;
}
.card__desc { color: #374a44; font-size: 0.95rem; line-height: 1.7; }

@media (max-width: 640px) {
  .specialties__grid { grid-template-columns: 1fr; }
  .specialties { padding: 4rem 0; }
}

/* ========== GALLERY ========== */
.gallery { padding: 6rem 0; background: #fefdf8; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}
.gallery__item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery__item--wide { aspect-ratio: 8/5; grid-column: span 6; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery__item:hover img { transform: scale(1.04); }

@media (max-width: 640px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 16/9; }
  .gallery { padding: 4rem 0; }
}

/* ========== VISIT ========== */
.visit { padding: 6rem 0; background: #064e3b; }
.visit__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}
.visit__desc { color: rgba(254,253,248,0.82); font-size: 1.05rem; line-height: 1.75; margin-bottom: 2rem; }
.visit__info { display: flex; flex-direction: column; gap: 1.25rem; }
.visit__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #fefdf8;
}
.visit__detail strong { display: block; font-weight: 700; }
.visit__detail a { color: #a7f3d0; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.visit__detail a:hover { color: #6ee7b7; }
.visit__map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  min-height: 360px;
}
.visit__map iframe { width: 100%; height: 100%; min-height: 360px; }

@media (max-width: 900px) {
  .visit__inner { grid-template-columns: 1fr; }
  .visit__map { order: -1; min-height: 280px; }
  .visit { padding: 4rem 0; }
}

/* ========== CONTACT ========== */
.contact { padding: 6rem 0; background: #ecfdf5; }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact__desc { color: #374a44; font-size: 1.02rem; line-height: 1.75; margin-bottom: 2rem; }
.contact__details { display: flex; flex-direction: column; gap: 1rem; }
.contact__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1a2e2a;
  font-size: 0.97rem;
}
.contact__item a { color: #065f46; text-decoration: underline; text-underline-offset: 3px; }
.contact__item a:hover { color: #047857; }

/* Form */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__group { display: flex; flex-direction: column; gap: 0.4rem; }
.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #065f46;
}
.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #a7f3d0;
  border-radius: 8px;
  background: #fefdf8;
  color: #1a2e2a;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form__input:focus {
  outline: none;
  border-color: #065f46;
  box-shadow: 0 0 0 3px rgba(6,95,70,0.12);
}
.form__input::placeholder { color: #94a3b8; }
.form__select { cursor: pointer; }
.form__textarea { resize: vertical; min-height: 120px; }
.form__success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #d1fae5;
  color: #064e3b;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form__row { grid-template-columns: 1fr; }
  .contact { padding: 4rem 0; }
}

/* ========== FOOTER ========== */
.footer { background: #022c22; color: rgba(254,253,248,0.7); padding: 4rem 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fefdf8;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.footer__tagline { font-size: 0.9rem; line-height: 1.65; max-width: 280px; }
.footer__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__nav a {
  color: rgba(254,253,248,0.65);
  font-size: 0.9rem;
  padding: 0.2rem 0;
  transition: color 0.2s;
}
.footer__nav a:hover { color: #a7f3d0; }
.footer__contact { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.footer__contact a { color: #a7f3d0; text-decoration: underline; text-underline-offset: 3px; }
.footer__contact a:hover { color: #6ee7b7; }
.footer__bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(254,253,248,0.4);
}

@media (max-width: 767px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer { padding: 3rem 0 0; }
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
