/* ============================================
   Nature Brew Plano — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Section Padding --- */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (max-width: 767px) {
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* --- Eyebrow --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7B2D3B;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #7B2D3B;
  border-radius: 1px;
}

.eyebrow-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f9cfd9;
}

.eyebrow-light::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #f9cfd9;
  border-radius: 1px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #7B2D3B;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #5c1f2b;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #7B2D3B;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid #f9cfd9;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #fce7eb;
  border-color: #f9cfd9;
  transform: translateY(-1px);
}

/* --- Navbar --- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 248, 244, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 4px 32px rgba(123, 45, 59, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- Hero --- */
.hero-grid {
  position: relative;
  background: linear-gradient(135deg, #fdf2f4 0%, #fce7eb 50%, #fbe0d0 100%);
  overflow: hidden;
  min-height: 100vh;
  padding-top: 80px;
}

.hero-grid-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .hero-grid-inner {
    gap: 4rem;
  }
}

.hero-text {
  max-width: 560px;
}

.hero-eyebrow {
  animation: fadeInDown 0.8s ease both;
}

.hero-text h1 {
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-text p {
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-text .flex {
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-text .mt-14 {
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-image-wrap {
  animation: fadeIn 1s ease 0.3s both;
}

.hero-img {
  box-shadow: 0 32px 64px rgba(123, 45, 59, 0.2), 0 8px 24px rgba(123, 45, 59, 0.1);
}

.hero-image-absolute {
  position: relative;
  z-index: 1;
}

.hero-accent-2 {
  animation: float 6s ease-in-out infinite;
}

.hero-scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollDot {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.05); }
}

/* --- Cards --- */
.card-bakery {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(123, 45, 59, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-bakery:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(123, 45, 59, 0.12);
}

.card-img-wrap {
  overflow: hidden;
  border-radius: 0.75rem;
}

.card-img {
  transition: transform 0.5s ease;
}

/* --- Gallery --- */
.gallery-item {
  overflow: hidden;
  cursor: default;
}

.gallery-img {
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* --- Inputs --- */
.input-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.input-dark::placeholder {
  color: rgba(249, 207, 184, 0.5);
}

.input-dark:focus {
  border-color: #f9cfd9;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

/* --- Mobile Menu --- */
.mobile-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-link:hover {
  color: #b91d4b;
  transform: scale(1.05);
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(32px);
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-32px);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(32px);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* --- Mobile responsive --- */
@media (max-width: 767px) {
  .hero-grid {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 4rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-image-wrap {
    display: none;
  }

  .hero-grid-inner {
    text-align: center;
    justify-items: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text .flex {
    justify-content: center;
  }

  .hero-text .mt-14 {
    justify-content: center;
  }

  .hero-scroll {
    display: none;
  }
}

/* --- Focus visible --- */
:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: #f9cfd9;
  color: #3d131a;
}
