/*
 * styles.css — Dishlo Website
 * Shared design tokens, resets, navigation, homepage, legal pages, footer,
 * responsive behavior, and small interactions.
 */

/* ── Design Tokens ──────────────────────────────────────────────── */
:root {
  --green:        #264D2C;
  --green-dark:   #1a3620;
  --green-mid:    #4C6141;
  --yellow:       #F5A623;
  --yellow-light: #FBBF5E;
  --beige:        #F5EBD7;
  --beige-light:  #FBF4E8;
  --text-dark:    #1e2e20;
  --text-muted:   #5a6e5c;
  --white:        #FFFFFF;
  --card-border:  rgba(38,77,44,0.14);

  --serif: 'Playfair Display', Georgia, serif;
  --body:  'Lora', Georgia, serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--beige-light);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--yellow);
}

/* ── Navigation ─────────────────────────────────────────────────── */
nav {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--green-dark);
  border-bottom: 1px solid rgba(245,166,35,0.15);
}

.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(38,77,44,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,166,35,0.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.legal-nav .nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.nav-logo span {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--beige);
  letter-spacing: 0.5px;
}

.legal-nav .nav-logo span {
  font-size: 1.2rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-badge {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green);
  background: var(--yellow);
  padding: 5px 14px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.nav-menu {
  position: relative;
}

.nav-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  color: var(--beige);
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-menu-btn:hover {
  opacity: 1;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: var(--green-dark);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 12px;
  min-width: 190px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.nav-dropdown.open {
  display: block;
  animation: dropIn 0.18s ease both;
}

.nav-dropdown a {
  display: block;
  padding: 13px 20px;
  font-family: var(--body);
  font-size: 0.88rem;
  color: rgba(245,235,215,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,166,35,0.1);
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background: rgba(245,166,35,0.08);
  color: var(--yellow);
}

.nav-dropdown a.nav-active {
  color: var(--yellow);
  font-weight: 500;
}

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

/* ── Homepage Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(245,166,35,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

.hero-logo {
  width: 130px;
  height: 130px;
  border-radius: 28px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.8s ease both;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 900;
  color: var(--beige);
  letter-spacing: 0.02em;
  line-height: 1;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.8s 0.1s ease both;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.8s 0.2s ease both;
}

.hero-divider-line {
  width: 64px;
  height: 2px;
  background: var(--yellow);
  border-radius: 99px;
}

.hero-divider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
}

.hero-tagline {
  font-family: var(--body);
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  color: rgba(245,235,215,0.85);
  line-height: 1.65;
  max-width: 520px;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.8s 0.25s ease both;
}

.hero-tagline em {
  color: var(--beige);
  font-style: italic;
}

.hero-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.8s 0.35s ease both;
}

.flow-chip {
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: var(--yellow);
  padding: 6px 16px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.flow-arrow {
  color: rgba(245,235,215,0.4);
  font-size: 1rem;
}

.hero-stores {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.8s 0.45s ease both;
  margin-top: 8px;
}

.hero-stores-label {
  font-family: var(--body);
  font-size: 0.78rem;
  color: rgba(245,235,215,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: italic;
}

.store-btns,
.coming-stores {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-btn,
.coming-store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(245,166,35,0.4);
  background: rgba(245,235,215,0.06);
  color: var(--beige);
  font-family: var(--body);
  font-size: 0.88rem;
  cursor: not-allowed;
  opacity: 0.65;
}

.coming-store-btn {
  gap: 12px;
  padding: 14px 28px;
  background: rgba(245,235,215,0.05);
  border-color: rgba(245,166,35,0.35);
  opacity: 0.6;
}

.store-btn svg,
.coming-store-btn svg {
  flex-shrink: 0;
}

.store-btn-inner,
.coming-store-btn-inner {
  text-align: left;
}

.store-btn-inner small,
.coming-store-btn-inner small {
  display: block;
  font-size: 0.62rem;
  opacity: 0.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coming-store-btn-inner small {
  font-size: 0.65rem;
  opacity: 0.65;
  letter-spacing: 0.06em;
  font-family: var(--body);
}

.store-btn-inner strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.coming-store-btn-inner strong {
  display: block;
  font-size: 1.05rem;
  font-family: var(--serif);
  font-weight: 600;
}

/* ── General Sections ───────────────────────────────────────────── */
section {
  padding: 96px 24px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 500;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-body {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
}

/* ── How Section ───────────────────────────────────────────────── */
.how-section {
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(245,166,35,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.how-section .section-title {
  color: var(--beige);
}

.how-section .section-label {
  color: var(--yellow);
}

.how-section .section-body {
  color: rgba(245,235,215,0.7);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(245,166,35,0.12);
}

.step {
  background: rgba(255,255,255,0.03);
  padding: 36px 28px;
  border-right: 1px solid rgba(245,166,35,0.1);
  transition: background 0.25s;
}

.step:last-child {
  border-right: none;
}

.step:hover {
  background: rgba(245,166,35,0.06);
}

.step-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(245,166,35,0.22);
  line-height: 1;
  margin-bottom: 14px;
}

.step-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 10px;
}

.step-desc {
  font-family: var(--body);
  font-size: 0.88rem;
  color: rgba(245,235,215,0.6);
  line-height: 1.65;
}

/* ── Features Section ──────────────────────────────────────────── */
.features-section {
  background: var(--beige-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  opacity: 0;
  transition: opacity 0.22s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(38,77,44,0.12);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(38,77,44,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

.feature-desc {
  font-family: var(--body);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.feature-bullets {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-bullet::before {
  content: '·';
  color: var(--yellow);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: -1px;
}

/* ── Disclaimer Section ────────────────────────────────────────── */
.disclaimer-section {
  background: var(--beige);
  padding: 72px 24px;
}

.disclaimer-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 12px 36px rgba(38,77,44,0.08);
}

.disclaimer-card h2 {
  font-family: var(--serif);
  color: var(--green);
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 14px;
}

.disclaimer-card p {
  font-family: var(--body);
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.disclaimer-card p:last-child {
  margin-bottom: 0;
}

.disclaimer-card strong {
  color: var(--text-dark);
}

/* ── Coming Soon Section ───────────────────────────────────────── */
.coming-section {
  background: var(--green);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coming-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(245,166,35,0.1) 0%, transparent 65%);
}

.coming-section .section-title {
  color: var(--beige);
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto 18px;
}

.coming-section .section-label,
.coming-section .section-body,
.coming-stores,
.notify-note {
  position: relative;
  z-index: 1;
}

.coming-section .section-body {
  color: rgba(245,235,215,0.72);
  margin: 0 auto 40px;
}

.notify-note {
  font-family: var(--body);
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(245,235,215,0.45);
  margin-top: 20px;
}

/* ── Legal Pages ───────────────────────────────────────────────── */
.page-header {
  background: var(--green);
  padding: 64px 40px 52px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 12px;
}

.page-header p {
  font-family: var(--body);
  font-size: 0.9rem;
  color: rgba(245,235,215,0.6);
  font-style: italic;
}

.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.content h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  margin: 44px 0 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(38,77,44,0.12);
}

.content h2:first-of-type {
  margin-top: 0;
  border-top: none;
}

.content h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 24px 0 8px;
}

.content p {
  font-family: var(--body);
  font-size: 0.97rem;
  line-height: 1.78;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.content ul {
  margin: 8px 0 14px 20px;
}

.content ul li {
  font-family: var(--body);
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.content strong {
  color: var(--text-dark);
}

.content a {
  color: var(--green);
  text-decoration: underline;
}

.content a:hover {
  color: var(--yellow);
}

.effective-date {
  display: inline-block;
  background: rgba(38,77,44,0.07);
  border-left: 3px solid var(--yellow);
  padding: 10px 18px;
  border-radius: 0 8px 8px 0;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-style: italic;
}

.services-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-family: var(--body);
  font-size: 0.88rem;
}

.services-table th {
  background: rgba(38,77,44,0.07);
  color: var(--green);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid rgba(38,77,44,0.15);
}

.services-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(38,77,44,0.08);
  color: var(--text-muted);
  vertical-align: top;
}

.services-table tr:last-child td {
  border-bottom: none;
}

.services-table a {
  font-size: 0.82rem;
  word-break: break-all;
}

.legal-warning {
  background: rgba(38,77,44,0.06);
  border: 1.5px solid rgba(38,77,44,0.2);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin: 16px 0 20px;
  font-family: var(--body);
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--text-dark);
  font-weight: 500;
}

.govlaw-note {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  background: var(--green-dark);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(245,166,35,0.12);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.footer-logo span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--beige);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: var(--body);
  font-size: 0.82rem;
  color: rgba(245,235,215,0.5);
  transition: color 0.2s;
}

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

.footer-copy {
  font-family: var(--body);
  font-size: 0.76rem;
  color: rgba(245,235,215,0.3);
  text-align: center;
}

.footer-copy span {
  opacity: 0.5;
  font-size: 0.7rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 700px) {
  nav {
    padding: 14px 20px;
  }

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

  .step {
    border-right: none;
    border-bottom: 1px solid rgba(245,166,35,0.1);
  }

  .step:last-child {
    border-bottom: none;
  }

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

  .store-btns {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .page-header {
    padding: 48px 24px 40px;
  }

  .services-table th,
  .services-table td {
    padding: 8px 10px;
  }

  footer {
    padding: 36px 24px;
  }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .nav-badge {
    display: none;
  }

  .disclaimer-card {
    padding: 24px 20px;
  }
}