*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-white-rgb: 255, 255, 255;
  --color-primary-rgb: var(--color-teal-500-rgb);
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  /* Compatibility aliases for existing stylesheet variables */
  --primary: var(--color-primary);
  --primary-dark: var(--color-primary-hover);
  --accent: var(--color-orange-500);
  --primary-soft: var(--color-bg-1);
  --bg: var(--color-background);
  --section-alt: var(--color-surface);
  --card-bg: var(--color-surface);
  --text: var(--color-text);
  --muted: var(--color-text-secondary);
  /* keep radii names used elsewhere */
  --radius-md: var(--radius-md);
  --radius-lg: var(--radius-lg);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  /* Vibrant gradient header matching logo blue -> orange */
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 45%, var(--accent) 100%);
  color: var(--color-white);
  /* slight glassy sheen */
  background-blend-mode: multiply;
  border-bottom: 1px solid rgba(var(--color-white-rgb), 0.06);
  box-shadow: 0 6px 20px rgba(var(--color-slate-900-rgb), 0.12);
  overflow: visible; /* allow dropdown nav to be visible outside header */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo {
  width: 90px;
  height: auto;
}

/* Make the header container slightly narrower than the page container
   so the header content looks tighter and the logo stands out more. */
.site-header .container {
  width: 86%;
  max-width: 980px;
  margin: 0 auto;
}

.logo-block h1 {
  font-size: 1.06rem;
  margin: 0;
}

.tagline {
  font-size: 0.9rem;
  color: rgba(var(--color-white-rgb), 0.9);
}

.main-nav a {
  margin-left: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--color-white-rgb), 0.08);
  border: 1px solid rgba(var(--color-white-rgb), 0.10);
  transition: background 180ms ease, transform 120ms ease, box-shadow 180ms ease, opacity 120ms ease;
}

.main-nav a:hover,
.main-nav a:focus {
  background: rgba(var(--color-white-rgb), 0.18);
  transform: translateY(-2px);
  text-decoration: none;
  outline: none;
}

.main-nav a:active {
  transform: translateY(0);
}

.main-nav a[aria-current="page"], .main-nav a.active {
  background: var(--color-white);
  color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(var(--color-slate-900-rgb), 0.12);
}

/* Mobile / Hamburger navigation */
.nav-toggle {
  display: none; /* shown on small screens */
  background: transparent;
  border: none;
  padding: 8px;
  margin-left: 0.5rem;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

/* mobile menu styles */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  /* Hide the nav by default on small screens so it doesn't appear under content.
     Only show it when `.open` is present. */
  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: linear-gradient(180deg, rgba(8,70,168,0.98), rgba(9,48,112,0.98));
    padding: 0.6rem 1rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 140; /* above other sections like carousel */
    box-shadow: 0 12px 30px rgba(2,8,20,0.18);
  }

  /* slide + fade animation for the mobile menu */
  .main-nav {
    transform-origin: top center;
    transform: translateY(-8px) scaleY(0.98);
    opacity: 0;
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
  }

  .main-nav.open {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }

  /* backdrop overlay */
  .nav-backdrop {
    position: fixed;
    inset: 0 0 0 0;
    background: rgba(2,8,20,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 130;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: transparent;
    color: var(--color-white);
    font-weight: 700;
    border: 1px solid rgba(var(--color-white-rgb), 0.06);
  }

  .main-nav a:hover { background: rgba(var(--color-white-rgb), 0.06); }

  /* ensure header container keeps layout on mobile */
  .site-header .container { width: 95%; max-width: 980px; }
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, var(--primary), var(--primary-dark));
  color: var(--color-white);
  padding: 3rem 0 2.7rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 1.5rem;
  max-width: 34rem;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(var(--color-slate-900-rgb), 0.28);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn.primary {
  background: var(--accent);
  color: var(--color-white);
  border-color: transparent;
}

.btn.primary:hover {
  background: var(--color-orange-400);
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(var(--color-white-rgb), 0.14);
  margin-left: 0.7rem;
}

.btn.secondary:hover {
  background: rgba(var(--color-white-rgb), 0.12);
  transform: translateY(-1px);
}

/* Sections */

.section {
  padding: 3rem 0;
  background: var(--bg);
}

.section-alt {
  background: var(--section-alt);
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.section p {
  margin-bottom: 0.8rem;
}

.highlight-text {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Lists */

.checklist,
.bullets {
  margin-top: 1rem;
  padding-left: 1rem;
}

.checklist li {
  list-style: none;
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.4rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-size: 0.9rem;
}

.bullets li {
  margin-bottom: 0.4rem;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.cards.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 6px 20px rgba(var(--color-slate-900-rgb), 0.06);
  border: 1px solid rgba(var(--color-primary-rgb), 0.06);
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-list {
  list-style: none;
  margin-top: 0.8rem;
  padding-left: 0;
}

.contact-list li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--color-slate-500-rgb), 0.12);
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 0.7rem;
  cursor: pointer;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Footer */

.site-footer {
  background: var(--color-charcoal-800);
  color: var(--color-cream-50);
  padding: 1.4rem 0 1.7rem;
  margin-top: 1rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
}

/* Carousel */
.carousel {
  position: relative;
  margin-top: 1.2rem;
}
.carousel-track {
  display: flex;
  overflow: hidden;
  gap: 0.6rem;
  scroll-snap-type: x mandatory;
}
.carousel-slide {
  min-width: 100%;
  scroll-snap-align: center;
  flex: 0 0 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(var(--color-slate-900-rgb), 0.08);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide img {
  width: 100%;
  height: auto; /* keep natural aspect ratio */
  max-height: 420px; /* limit excessive height */
  object-fit: fill; /* avoid cropping */
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(var(--color-slate-900-rgb), 0.5);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-btn:hover { background: rgba(var(--color-slate-900-rgb), 0.65); }
.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 0.8rem;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(var(--color-slate-500-rgb), 0.16);
  cursor: pointer;
}
.carousel-dots button.active { background: var(--primary); }

/* Toast notifications */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(18px);
  background: rgba(var(--color-success-rgb), 0.95);
  color: var(--color-white);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(var(--color-slate-900-rgb), 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 260ms ease;
  z-index: 60;
  font-weight: 600;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast.error { background: rgba(var(--color-error-rgb), 0.95); }
.toast.success { background: rgba(var(--color-success-rgb), 0.95); }

@media (max-width: 900px) {
  .carousel-slide img { max-height: 260px; }
}


/* Responsive */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .main-nav a {
    margin-left: 0;
    color: rgba(var(--color-white-rgb), 0.95);
  }

  .main-nav a:hover {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.95;
  }

  .hero-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2.4rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .btn.secondary {  
    margin-left: 0.4rem;
  }

  .site-header {
    position: static;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(var(--color-slate-900-rgb), 0.18);
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:focus { outline: 2px solid rgba(var(--color-white-rgb), 0.9); }

/* Gift Categories Grid */
.gift-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tab-block {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: 10px;
  transition: all 220ms ease;
}

.tab-block:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.15);
}

.tab-block h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.75rem 0;
  font-family: var(--font-family-base);
}

.tab-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.tab-block ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.tab-block ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.tab-block ul li:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .gift-categories {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .gift-categories {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tab-block {
    padding: 1.25rem;
  }

  .tab-block h4 {
    font-size: 1rem;
  }
}
