/* ==========================================================================
   ST-SCHON USA LLC - HUMAN-CRAFTED EDITORIAL DESIGN SYSTEM
   Inspired by Organic Minimalist High-Fashion UI (Light Organic Palette)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Warm Ivory, Terracotta & Soft Espresso */
  --bg-main: #fcfbfa;
  --bg-card: #f5f2ed;
  --bg-glass: rgba(252, 251, 250, 0.95);
  
  --border-subtle: rgba(28, 25, 23, 0.08);
  --border-hover: rgba(168, 85, 54, 0.3);

  /* Accents */
  --accent-terracotta: #a85536;
  --accent-terracotta-dark: #8b3e23;
  --accent-terracotta-light: #f6eee9;
  
  /* Text */
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --text-watermark: rgba(28, 25, 23, 0.05);

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --header-height: 90px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 20px 40px -15px rgba(28, 25, 23, 0.07);
  --shadow-hover: 0 30px 60px -15px rgba(168, 85, 54, 0.12);
}

html {
  height: 100%;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.7;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  animation: pageEnter 0.5s ease-out forwards;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Transition Overlay Curtain */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-main);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-transition-overlay::after {
  content: 'ST-SCHON';
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--accent-terracotta);
}

.page-transition-overlay.active {
  opacity: 1;
  transform: translateY(0%);
  pointer-events: all;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
}

.serif-text {
  font-family: var(--font-serif);
  font-style: italic;
}

.text-terracotta {
  color: var(--accent-terracotta);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 7rem 0;
}

/* Header Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: 80px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  white-space: nowrap;
}

.logo-badge-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  background: var(--accent-terracotta-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-terracotta);
}

/* Mobile Navigation Controls */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.4rem;
  transition: var(--transition);
}

.mobile-cta-item {
  display: none;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-terracotta);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(168, 85, 54, 0.3);
}

.btn-primary:hover {
  background: var(--accent-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(168, 85, 54, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--text-primary);
  color: #ffffff;
}

.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
}

/* HERO SECTION - KOOWIL STYLE WATERMARK & CENTER OBJECT */
.hero-editorial {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 18rem);
  font-weight: 400;
  color: var(--text-watermark);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -2px;
}

.hero-container-center {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - var(--header-height) - 4rem);
}

/* Left Hero Copy */
.hero-left-block {
  padding-right: 1rem;
}

.hero-subhead {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-terracotta);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-main-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-body-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-terracotta);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.hero-link-arrow:hover {
  gap: 1.2rem;
  color: var(--accent-terracotta-dark);
}

/* Center 3D Object Box */
.hero-center-3d {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-3d-canvas {
  width: 100%;
  height: 100%;
}

/* Right Inset Card */
.hero-right-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.hero-right-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-tag {
  font-size: 0.75rem;
  color: var(--accent-terracotta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-title {
  font-size: 1.4rem;
  margin: 0.5rem 0;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Brand Manifesto Grid */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.manifesto-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.manifesto-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.manifesto-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent-terracotta);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.manifesto-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.manifesto-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  margin-top: auto;
  flex-shrink: 0;
  background: var(--bg-main);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 3rem 0;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-email {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  word-break: break-all;
}

.footer-email:hover {
  color: var(--accent-terracotta);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
}

.toast {
  padding: 1rem 1.6rem;
  background: #1c1917;
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* ==========================================================================
   ROBUST MOBILE & TABLET RESPONSIVE MEDIA QUERIES (320px - 820px)
   ========================================================================== */

@media (max-width: 820px) {
  .logo-badge-pill {
    display: none;
  }

  .desktop-nav-cta {
    display: none;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .mobile-cta-item {
    display: block;
    width: 100%;
    margin-top: 1rem;
  }

  /* Slide-down Mobile Menu Drawer */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(252, 251, 250, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2.5rem 2rem;
    gap: 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 25px 50px rgba(28, 25, 23, 0.12);
    transform: translateY(-160%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .hero-container-center {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding: 2rem 0;
  }

  .hero-left-block {
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-left-block .hero-main-title {
    font-size: clamp(2rem, 7.5vw, 3rem);
    line-height: 1.12;
  }

  .hero-left-block div[style*="display: flex"] {
    flex-direction: column;
    width: 100%;
    gap: 1rem !important;
  }

  .hero-left-block .btn-primary {
    width: 100%;
  }

  .hero-center-3d {
    height: 360px;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-watermark {
    display: none;
  }

  .section-padding {
    padding: 4.5rem 0;
  }
}

@media (max-width: 576px) {
  :root {
    --header-height: 80px;
  }

  .logo-mark {
    font-size: 1.35rem;
  }

  .btn {
    padding: 0.75rem 1.4rem;
    font-size: 0.85rem;
  }

  .hero-center-3d {
    height: 300px;
  }
}
