/* ============================================
   Big Top Ice Cream — Styles
   Classic & Elegant · Emerald + Cream
   ============================================ */

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

:root {
  --emerald-900: #042f24;
  --emerald-800: #064e3b;
  --emerald-700: #065f46;
  --emerald-600: #047857;
  --emerald-500: #059669;
  --emerald-400: #10b981;
  --cream-50: #fafaf5;
  --cream-100: #f5f5ec;
  --cream-200: #ecedd8;
  --cream-300: #e2e3ce;
  --gold-400: #c9a84c;
  --gold-500: #b8943f;
  --text-dark: #1a2e26;
  --text-medium: #3d5a4c;
  --text-light: #6b8f7e;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', 'Palatino Linotype', Palatino, Georgia, serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(4, 47, 36, 0.06), 0 1px 2px rgba(4, 47, 36, 0.04);
  --shadow-md: 0 4px 16px rgba(4, 47, 36, 0.08), 0 2px 4px rgba(4, 47, 36, 0.04);
  --shadow-lg: 0 12px 40px rgba(4, 47, 36, 0.12), 0 4px 12px rgba(4, 47, 36, 0.06);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--cream-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.text-center { text-align: center; }

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--emerald-800);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(4, 120, 87, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(250, 250, 245, 0.97);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--emerald-700);
  letter-spacing: -0.01em;
}

.logo-icon {
  color: var(--emerald-600);
}

/* --- Navigation --- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.935rem;
  color: var(--text-medium);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--emerald-700);
  background: rgba(4, 120, 87, 0.06);
}

.nav-link--cta {
  background: var(--emerald-700);
  color: var(--white) !important;
  margin-left: 0.5rem;
  font-weight: 500;
}

.nav-link--cta:hover {
  background: var(--emerald-800);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--emerald-700);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.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: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--emerald-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(4, 120, 87, 0.85) 0%, rgba(4, 47, 36, 0.95) 70%);
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 50%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gold-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--cream-50);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-title-accent {
  color: var(--gold-400);
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(250, 250, 245, 0.75);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250, 250, 245, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(250, 250, 245, 0.4), transparent);
  animation: scrollPulse 2s infinite;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--emerald-700);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--emerald-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--cream-50);
  border: 1.5px solid rgba(250, 250, 245, 0.35);
}

.btn--ghost:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* --- Section Labels --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  color: var(--emerald-800);
}

.title-accent {
  color: var(--emerald-600);
  font-style: italic;
  font-weight: 400;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
}

/* --- About --- */
.about {
  padding: 7rem 0;
  background: var(--cream-50);
}

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

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  height: 750px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 40%;
  background: var(--emerald-700);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.12;
}

.about-content {
  padding: 1rem 0;
}

.about-content p {
  color: var(--text-medium);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 120, 87, 0.08);
  border-radius: var(--radius-sm);
  color: var(--emerald-700);
  flex-shrink: 0;
}

.about-feature-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* --- Menu --- */
.menu {
  padding: 7rem 0;
  background: var(--emerald-800);
  position: relative;
  overflow: hidden;
}

.menu-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(201, 168, 76, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.menu .section-label { color: var(--gold-400); }
.menu .section-title { color: var(--cream-50); }
.menu .title-accent { color: var(--gold-400); }
.menu .section-subtitle { color: rgba(250, 250, 245, 0.6); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
  z-index: 1;
}

.menu-card {
  background: rgba(250, 250, 245, 0.06);
  border: 1px solid rgba(250, 250, 245, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.menu-card:hover {
  background: rgba(250, 250, 245, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.menu-card-image {
  overflow: hidden;
  height: 220px;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.05);
}

.menu-card-body {
  padding: 1.75rem;
}

.menu-card-title {
  font-size: 1.3rem;
  color: var(--cream-50);
  margin-bottom: 0.6rem;
}

.menu-card-desc {
  font-size: 0.935rem;
  color: rgba(250, 250, 245, 0.6);
  line-height: 1.7;
}

.menu-note {
  color: rgba(250, 250, 245, 0.5);
  font-size: 0.9rem;
  font-style: italic;
}

/* --- Visit --- */
.visit {
  padding: 7rem 0;
  background: var(--cream-100);
}

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

.visit-detail {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.visit-detail-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-700);
  border-radius: var(--radius-sm);
  color: var(--white);
  flex-shrink: 0;
}

.visit-detail strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--emerald-800);
  margin-bottom: 0.2rem;
}

.visit-detail p,
.visit-detail a {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.visit-detail a:hover {
  color: var(--emerald-600);
  text-decoration: underline;
}

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

.visit-map-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.visit-map-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.visit-map-overlay svg {
  color: var(--emerald-600);
}

/* --- Quote --- */
.quote-section {
  padding: 6rem 0;
  background: var(--emerald-700);
  position: relative;
}

.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.quote-mark {
  color: var(--gold-400);
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--cream-50);
  font-style: italic;
  max-width: 680px;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.quote-attribution {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(250, 250, 245, 0.5);
  position: relative;
  z-index: 1;
}

/* --- Contact --- */
.contact {
  padding: 7rem 0;
  background: var(--cream-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--cream-100);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.95rem;
  color: var(--text-medium);
}

.contact-method:hover {
  background: var(--emerald-700);
  color: var(--white);
  transform: translateX(4px);
}

.contact-method:hover .contact-method-icon {
  color: var(--white);
}

.contact-method-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-600);
  flex-shrink: 0;
  transition: var(--transition);
}

/* --- Form --- */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(4, 120, 87, 0.08);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream-50);
  border: 1.5px solid var(--cream-300);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--emerald-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

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

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(4, 120, 87, 0.08);
  border: 1px solid rgba(4, 120, 87, 0.2);
  border-radius: var(--radius-sm);
  color: var(--emerald-700);
  font-size: 0.9rem;
}

.form-success svg {
  color: var(--emerald-600);
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  background: var(--emerald-900);
  color: rgba(250, 250, 245, 0.6);
  padding: 4rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--cream-50);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(250, 250, 245, 0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-400);
  padding-left: 0.25rem;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-contact a {
  color: rgba(250, 250, 245, 0.6);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 250, 245, 0.08);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: rgba(250, 250, 245, 0.35);
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-grid,
  .visit-grid,
  .contact-grid {
    gap: 3rem;
  }
}

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

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream-50);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }

  .nav-link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero-content {
    padding: 7rem 1.5rem 5rem;
  }

  .about-grid,
  .visit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image {
    height: 450px;
  }

  .about-image-accent {
    display: none;
  }

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

  .visit-map-image {
    height: 350px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }
}
