/* ════════════════════════════════════════════════════════════════
   MY LEGACY CONTINUES — MASTER STYLESHEET
   New Design System
   Fonts: Montserrat | Lato | Spline Sans
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Lato:wght@400&family=Spline+Sans:wght@700&display=swap');

:root {
  /* ──── Design Palette ──── */
  --cream-bg:           #FAF3E6;
  --candy-wine:         #722F37;
  --candy-red:          #C0392B;
  --champagne-gold:     #D4AF37;
  --charcoal:           #2A2A2A;
  --body-text:          #1C1C1C;
  --warm-white:         #F5EFE6;
  --white-card:         #FFFFFF;

  /* Semantic CSS Variables */
  --bg-primary:         var(--cream-bg);
  --bg-dark:            var(--charcoal);
  --text-cream:         var(--cream-bg);
  --text-primary:       var(--body-text);
  --text-secondary:     #5a5a5a;
  --accent-gold:        var(--champagne-gold);
  --accent-red:         var(--candy-red);
  --card-border:        var(--champagne-gold);

  /* Fonts */
  --font-headline:      'Montserrat', sans-serif;
  --font-body:          'Lato', sans-serif;
  --font-emotion:       'Spline Sans', sans-serif;

  /* Spacing & Layout */
  --section-pad:        clamp(3rem, 6vw, 5rem);
  --container-max:      1200px;

  /* Animations */
  --ease-smooth:        cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast:    0.3s var(--ease-smooth);
}

/* ──────────────────────────────────────────────────────────── */
/* RESET & GLOBAL                                               */
/* ──────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ──────────────────────────────────────────────────────────── */
/* TYPOGRAPHY                                                   */
/* ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--candy-wine);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text-primary);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
  margin-bottom: 1.2rem;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* ──────────────────────────────────────────────────────────── */
/* NAVIGATION                                                   */
/* ──────────────────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background-color: var(--charcoal-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2rem);
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo {
  height: 3rem;
  width: auto;
  max-width: 200px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 2vw, 2.5rem);
  align-items: center;
  flex: 1;
  margin-left: clamp(1rem, 3vw, 3rem);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 500;
  color: var(--cream-bg);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width var(--transition-fast);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--cream-bg);
  transition: all 0.3s;
}

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

  .nav-cta { display: none !important; }
  .nav-right > a.btn { display: none !important; }

  .lang-switcher {
    position: static !important;
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    right: auto;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: #2A2A2A;
    flex-direction: column;
    gap: 0;
    margin: 0;
    border-bottom: 1px solid rgba(232, 201, 122, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    background: #2A2A2A;
    padding: 16px;
    gap: 12px;
    max-height: 500px;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(232, 201, 122, 0.1);
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
  }

  .nav-right {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ──────────────────────────────────────────────────────────── */
/* HERO SECTION — Split Layout                                  */
/* ──────────────────────────────────────────────────────────── */

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-left {
  background-color: var(--champagne-gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 6vw, 5rem);
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-family: var(--font-emotion);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--cream-bg);
  margin-bottom: 1.5rem;
  text-transform: none;
  font-weight: 400;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--cream-bg);
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 400;
}

.hero-right {
  background: linear-gradient(135deg, var(--candy-red) 0%, var(--candy-wine) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Metalflake texture on hero-right */
.hero-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.4), rgba(232, 201, 122, 0.3) 0.5px, transparent 0.5px),
                    radial-gradient(2px 2px at 60px 70px, rgba(255, 255, 255, 0.3), rgba(232, 201, 122, 0.25) 0.5px, transparent 0.5px);
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
  z-index: 1;
}

.ship-logo {
  width: clamp(120px, 20vw, 200px);
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(232, 201, 122, 0.4));
}

.hero-cta {
  margin-top: 2rem;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  fill: var(--cream-bg);
  opacity: 0.6;
  animation: bounce 2s infinite;
  z-index: 3;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Mobile hero split stacks */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
    grid-template-rows: auto auto;
  }

  .hero-left {
    padding: clamp(2rem, 4vw, 3rem);
    min-height: 50vh;
  }

  .hero-right {
    min-height: 40vh;
  }
}

/* ──────────────────────────────────────────────────────────── */
/* BUTTONS                                                       */
/* ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: clamp(0.7rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 0;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-gold {
  background-color: var(--candy-red);
  color: var(--warm-white);
  border: none;
}

.btn-gold:hover {
  background-color: var(--candy-wine);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────────────── */
/* SECTIONS                                                      */
/* ──────────────────────────────────────────────────────────── */

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.section-cream {
  background-color: var(--cream-bg);
  padding: var(--section-pad) 0;
}

.section-teal {
  background-color: #1C1C1C;
  color: var(--cream-bg);
  padding: var(--section-pad) 0;
  position: relative;
}

.metalflake-bg {
  position: relative;
}

.metalflake-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.4), rgba(232, 201, 122, 0.3) 0.5px, transparent 0.5px),
                    radial-gradient(2px 2px at 60px 70px, rgba(255, 255, 255, 0.3), rgba(232, 201, 122, 0.25) 0.5px, transparent 0.5px);
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: screen;
  z-index: 1;
}

.metalflake-bg > * {
  position: relative;
  z-index: 2;
}

/* ──────────────────────────────────────────────────────────── */
/* STORY SECTION                                                */
/* ──────────────────────────────────────────────────────────── */

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.story-text h2 {
  margin-bottom: 1.5rem;
}

.story-text p {
  margin-bottom: 1.2rem;
}

.story-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pull-quote {
  font-family: var(--font-emotion);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--champagne-gold);
  border-left: 3px solid var(--champagne-gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .story-layout {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────── */
/* PILLARS GRID                                                 */
/* ──────────────────────────────────────────────────────────── */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

.pillar {
  background-color: rgba(255, 255, 255, 0.05);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-left: 3px solid var(--champagne-gold);
}

.pillar h3 {
  margin-bottom: 1rem;
}

.pillar p {
  color: var(--cream-bg);
  opacity: 0.95;
}

/* ──────────────────────────────────────────────────────────── */
/* STEPS GRID                                                   */
/* ──────────────────────────────────────────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.step-card {
  background-color: var(--white-card);
  border: 2px solid var(--champagne-gold);
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  transition: all var(--transition-fast);
}

.step-card:hover {
  box-shadow: 0 8px 16px rgba(232, 201, 122, 0.15);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--champagne-gold);
  margin-bottom: 1rem;
}

.step-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-primary);
  opacity: 0.85;
}

/* ──────────────────────────────────────────────────────────── */
/* PRODUCT GRID                                                 */
/* ──────────────────────────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 2.5rem);
}

.product-card {
  background-color: var(--white-card);
  border: 2px solid var(--champagne-gold);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 12px 24px rgba(232, 201, 122, 0.2);
  transform: translateY(-6px);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(232, 201, 122, 0.05) 0%, rgba(42, 42, 42, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.product-title {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-primary);
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) 0.5rem;
  margin: 0;
}

.product-description {
  color: var(--text-primary);
  opacity: 0.85;
  padding: 0 clamp(1rem, 2vw, 1.5rem) 0.5rem;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
}

.product-price {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--champagne-gold);
  padding: 1rem clamp(1rem, 2vw, 1.5rem) 0;
  margin: 0;
}

.product-card .btn {
  margin: auto clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
  width: auto;
}

.coming-soon-item {
  text-align: center;
  margin-bottom: 2rem;
}

.coming-soon-badge {
  display: inline-block;
  background-color: var(--champagne-gold);
  color: var(--charcoal);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  border-radius: 4px;
  margin-top: 1rem;
  font-family: var(--font-headline);
}

/* ──────────────────────────────────────────────────────────── */
/* TESTIMONIALS                                                 */
/* ──────────────────────────────────────────────────────────── */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.testimonial-card {
  background-color: var(--white-card);
  border: 2px solid var(--champagne-gold);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card blockquote {
  font-family: var(--font-emotion);
  font-style: italic;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

.testimonial-card cite {
  font-family: var(--font-body);
  font-style: normal;
  color: var(--champagne-gold);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ──────────────────────────────────────────────────────────── */
/* FOOTER                                                       */
/* ──────────────────────────────────────────────────────────── */

.footer-section {
  background-color: var(--charcoal-dark);
  color: var(--cream-bg);
  padding: var(--section-pad) 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  align-items: start;
}

.footer-logo {
  height: 3rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
}

.footer-contact {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  line-height: 1.8;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

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

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--cream-bg);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(232, 201, 122, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ──────────────────────────────────────────────────────────── */
/* ANIMATIONS                                                   */
/* ──────────────────────────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.fade-in.fade-in-active,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safety fallback: never hide content on mobile regardless of JS */
@media (max-width: 768px) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ──────────────────────────────────────────────────────────── */
/* RESPONSIVE ADJUSTMENTS                                       */
/* ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    margin-top: 0;
  }

  .hero-split {
    margin-top: 4rem;
  }

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

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

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

/* ──────────────────────────────────────────────────────────── */
/* UTILITY CLASSES                                              */
/* ──────────────────────────────────────────────────────────── */

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

.margin-top-large {
  margin-top: clamp(2rem, 4vw, 3rem);
}
