/* ============================================
   Wally's Hawaiian Shave Ice — Styles
   Terracotta + Sand · Bold Editorial
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --terracotta: #E07A5F;
  --terracotta-dark: #C16650;
  --terracotta-deep: #8B3A2A;
  --sand: #F2CC8F;
  --sand-light: #FDF0D5;
  --sand-lighter: #FFF8ED;
  --cream: #FEFAE0;
  --dark: #2C1810;
  --dark-soft: #4A3228;
  --text: #3D2B1F;
  --text-light: #7A6455;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--sand-lighter);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- SECTION TAG ---- */
.section-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

/* ---- SECTION HEADING ---- */
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 24px;
}

.section-heading em {
  font-style: italic;
  color: var(--terracotta);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 60px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 122, 95, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn-secondary:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(254, 250, 224, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(44, 24, 16, 0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}

.nav.scrolled .nav-logo {
  color: var(--dark);
}

.nav-logo-icon {
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sand);
  transition: width 0.3s var(--ease);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--white);
}

.nav.scrolled .nav-menu a {
  color: var(--text-light);
}

.nav.scrolled .nav-menu a:hover {
  color: var(--dark);
}

.nav.scrolled .nav-menu a::after {
  background: var(--terracotta);
}

.nav-cta {
  background: var(--sand) !important;
  color: var(--dark) !important;
  padding: 8px 20px !important;
  border-radius: 60px !important;
  font-weight: 600 !important;
  transition: all 0.3s var(--ease) !important;
}

.nav-cta:hover {
  background: var(--white) !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* ---- NAV TOGGLE ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav.scrolled .nav-toggle-line {
  background: var(--dark);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .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: linear-gradient(145deg, #8B3A2A 0%, #E07A5F 40%, #F2CC8F 75%, #FDF0D5 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/38866541/pexels-photo-38866541.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
  opacity: 0.2;
  filter: blur(2px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(139, 58, 42, 0.88) 0%,
    rgba(224, 122, 95, 0.75) 50%,
    rgba(242, 204, 143, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
}

.hero-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: italic;
  color: var(--sand);
}

.hero-headline .hero-highlight {
  position: relative;
  display: inline-block;
}

.hero-headline .hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 0.15em;
  background: var(--sand);
  opacity: 0.5;
  border-radius: 2px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: var(--white);
  color: var(--terracotta-deep);
  border-color: var(--white);
}

.hero-actions .btn-primary:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.hero-actions .btn-secondary:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
}

.hero-scroll svg {
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ---- ABOUT ---- */
.about {
  padding: 120px 0;
  background: var(--sand-lighter);
}

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

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 600/750;
}

.about-image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--terracotta);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.3;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(44, 24, 16, 0.1);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- FLAVORS ---- */
.flavors {
  padding: 120px 0;
  background: var(--dark);
}

.flavors .section-heading {
  color: var(--white);
}

.flavors-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.flavors-intro {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.flavors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.flavor-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.4s var(--ease);
}

.flavor-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.flavor-swatch {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.flavor-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.flavor-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.flavors-note {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* ---- VISIT ---- */
.visit {
  padding: 120px 0;
  background: var(--sand-lighter);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit-info .section-heading {
  margin-bottom: 40px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.visit-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.visit-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--terracotta);
}

.visit-detail strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}

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

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

.visit-map {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 700/500;
}

.visit-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- CTA ---- */
.cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--terracotta-deep) 0%, var(--terracotta) 100%);
  text-align: center;
}

.cta .section-heading {
  color: var(--white);
  margin-bottom: 20px;
}

.cta .section-heading em {
  color: var(--sand);
}

.cta > .container > .cta-content > p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-primary {
  background: var(--white);
  color: var(--terracotta-deep);
  border-color: var(--white);
}

.cta-actions .btn-primary:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--dark);
}

.cta-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.cta-actions .btn-secondary:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

/* ---- CONTACT ---- */
.contact {
  padding: 120px 0;
  background: var(--sand-lighter);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text .section-heading {
  margin-bottom: 20px;
}

.contact-text > p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-direct {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--terracotta);
}

.contact-divider {
  width: 4px;
  height: 4px;
  background: var(--terracotta);
  border-radius: 50%;
  opacity: 0.5;
}

/* ---- FORM ---- */
.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(44, 24, 16, 0.06);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--dark);
  background: var(--sand-lighter);
  border: 2px solid transparent;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  background: var(--white);
}

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

.form-success {
  display: none;
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(129, 178, 154, 0.15);
  border: 1px solid rgba(129, 178, 154, 0.3);
  border-radius: 10px;
  font-size: 0.95rem;
  color: #2D6A4F;
  text-align: center;
}

.form-success.show {
  display: block;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.footer-links,
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links strong,
.footer-hours strong {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-hours span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

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

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

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

  .flavors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.4s var(--ease-out);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  }

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

  .nav-menu a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.1rem;
  }

  .nav-menu a:hover {
    color: var(--sand) !important;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-headline {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

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

  .about-image {
    order: -1;
  }

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

  .about-stats {
    gap: 24px;
  }

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

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

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

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

  .about,
  .flavors,
  .visit,
  .cta,
  .contact {
    padding: 80px 0;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .contact-direct {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-divider {
    display: none;
  }
}
