/* Two Dog Seeds - Shared Styles */
/* Swiss Minimal Brutalist Design System */

:root {
  /* Navy Color Palette */
  --navy-900: #0a192f;
  --navy-800: #112240;
  --navy-700: #1d3557;

  /* Gold Color Palette */
  --gold: #d4af37;
  --gold-light: #f4d03f;
  --gold-dark: #b8960c;

  /* Text Colors */
  --white: #e6f1ff;
  --gray: #8892b0;
  --gray-light: #a8b2d1;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Border */
  --border-width: 2px;

  /* Typography */
  --font-body: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-accent: 'Bebas Neue', Impact, sans-serif;

  /* Effects */
  --surface-glass: rgba(17, 34, 64, 0.72);
  --hero-shadow: 0 16px 40px rgba(3, 10, 22, 0.42);
}

/* ============================================
   BASE & TYPOGRAPHY
   ============================================ */

html {
  height: 100%;
  overflow-y: auto;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background-color: var(--navy-900);
  color: var(--white);
  line-height: 1.5;
  min-height: 100%;
}

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

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

picture > img {
  display: block;
}

video {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: var(--spacing-md);
  top: -100px;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy-900);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--navy-900);
}

.skip-link:focus-visible {
  top: var(--spacing-md);
}

/* ============================================
   HERO BACKGROUND SYSTEM
   ============================================ */

.hero-bg {
  background: var(--navy-900);
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/TDS_logo_title.jpeg');
  background-size: 300px 300px;
  background-repeat: repeat;
  background-position: center;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/canopy.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.landing-page {
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.landing-header {
  position: relative;
  z-index: 10;
  padding: 16px 16px 0;
}

.landing-header-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.landing-badge {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--font-accent);
  letter-spacing: 0.09em;
  font-size: clamp(0.92rem, 0.87rem + 0.3vw, 1.1rem);
}

.landing-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.landing-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--gray-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(10, 25, 47, 0.5);
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.landing-nav a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.landing-nav a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.landing-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  padding: clamp(2rem, 8vw, 5rem) 16px clamp(2.5rem, 9vw, 6rem);
}

.hero-panel {
  width: min(880px, 100%);
  text-align: center;
  background: linear-gradient(130deg, var(--surface-glass), rgba(10, 25, 47, 0.86));
  border: var(--border-width) solid rgba(212, 175, 55, 0.78);
  box-shadow: var(--hero-shadow);
  padding: clamp(1.25rem, 4vw, 3.4rem);
  backdrop-filter: blur(4px);
}

.hero-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.82rem, 0.8rem + 0.2vw, 0.98rem);
  color: var(--gold-light);
  font-weight: 700;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 12vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff8e5;
}

.hero-lede {
  margin: 0 auto;
  max-width: 64ch;
  font-size: clamp(1.04rem, 0.98rem + 0.5vw, 1.45rem);
  color: var(--white);
}

.hero-tagline {
  margin: 18px 0 0;
  font-size: clamp(1rem, 0.94rem + 0.4vw, 1.25rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.hero-actions {
  margin-top: clamp(1.2rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
}

.hero-meta {
  margin: 20px auto 0;
  max-width: 60ch;
  color: var(--gray);
  font-size: clamp(0.94rem, 0.9rem + 0.15vw, 1.02rem);
}

/* ============================================
   CARDS - SOLID NAVY WITH GOLD BORDERS
   ============================================ */

.brutalist-card {
  background: var(--navy-800);
  border: var(--border-width) solid var(--gold);
  border-radius: 0;
  padding: var(--spacing-lg);
  transition: transform 0.2s ease;
}

.brutalist-card:hover {
  transform: translateY(-2px);
}

/* ============================================
   BUTTONS & CTAS - GOLD BACKGROUND, NAVY TEXT
   ============================================ */

.cta-button {
  background: var(--gold);
  color: var(--navy-900);
  padding: 12px 24px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.02em;
}

.cta-button:hover {
  background: var(--gold-light);
}

.cta-button:focus-visible {
  outline: 3px solid #fff8e5;
  outline-offset: 2px;
}

.action-button {
  background: var(--navy-800);
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 12px 24px;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-button:hover {
  background: var(--gold);
  color: var(--navy-900);
}

.action-button:focus-visible {
  outline: 3px solid #fff8e5;
  outline-offset: 2px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.tds-input {
  background: var(--navy-800);
  border: 2px solid var(--navy-700);
  padding: 8px 12px;
  color: var(--white);
  font-family: inherit;
}

.tds-input:focus {
  outline: none;
  border-color: var(--gold);
}

.tds-select {
  background: var(--navy-800);
  border: 2px solid var(--navy-700);
  padding: 12px 16px;
  color: var(--white);
  font-weight: 500;
  font-family: inherit;
  min-width: min(200px, 100%);
  cursor: pointer;
  border-radius: 0;
}

.tds-select:focus {
  outline: none;
  border-color: var(--gold);
}

.tds-select option {
  background: var(--navy-800);
  color: var(--white);
}

/* Custom Range Slider */
.tds-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--navy-700);
  border-radius: 0;
  outline: none;
}

.tds-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 0;
  cursor: pointer;
}

.tds-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 0;
  cursor: pointer;
  border: none;
}

/* ============================================
   FOOTER - SIMPLE NAVY BAR WITH GOLD LINKS
   ============================================ */

.tds-footer {
  background: var(--navy-800);
  padding: clamp(1rem, 2vw, 1.5rem);
  border-top: 2px solid var(--gold);
  position: relative;
  z-index: 10;
}

.tds-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.tds-footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.tds-footer-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

.tds-footer-link:hover {
  color: var(--gold-light);
}

.tds-footer-link:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.tds-footer-copyright {
  color: var(--gray);
  font-size: 14px;
  font-weight: 300;
  margin: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.fade-in {
  animation: fadeInUp 0.5s ease-out;
}

@media (min-width: 640px) {
  .landing-header {
    padding: 24px 20px 0;
  }

  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .landing-header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .landing-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tds-footer-links {
    gap: var(--spacing-md) var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .landing-main {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
  }

  .cta-button,
  .action-button,
  .landing-nav a,
  .tds-footer-link {
    transition: none;
  }
}

/* ============================================
   SALE BANNER - BRUTALIST STYLE
   ============================================ */

.sale-banner {
  background: var(--navy-800);
  border: 2px solid var(--gold);
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 16px 32px;
  max-width: 90vw;
  text-align: center;
}

.sale-banner h3 {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.sale-banner p {
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.sale-banner .highlight {
  color: var(--gold-light);
  font-weight: 700;
}

@media (max-width: 640px) {
  .sale-banner {
    top: 15px;
    padding: 12px 24px;
  }

  .sale-banner h3 {
    font-size: 1rem;
  }

  .sale-banner p {
    font-size: 0.8rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.logo-glow {
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
  max-width: 300px;
}

@media (max-width: 640px) {
  .logo-glow {
    max-width: 250px;
  }
}

/* Syntax highlighting for product descriptions */
.syntax-keyword {
  color: var(--gold);
  font-weight: bold;
}

.syntax-string {
  color: var(--gold-light);
}

.syntax-class {
  color: var(--gray-light);
}

.syntax-comment {
  color: var(--gray);
  font-style: italic;
}

/* Loading spinner */
.loading-spinner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--navy-700);
  border-top: 2px solid var(--gold);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

.text-gold {
  color: var(--gold);
}

.text-navy {
  color: var(--navy-900);
}

.bg-navy-900 {
  background-color: var(--navy-900);
}

.bg-navy-800 {
  background-color: var(--navy-800);
}

.border-gold {
  border-color: var(--gold);
}

/* ============================================
   COLLAPSIBLE CONTROL PANEL
   ============================================ */

.tds-controls-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy-900);
  border: none;
  padding: 12px 20px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tds-controls-toggle:hover {
  background: var(--gold-light);
}

.tds-controls-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-800);
  border-top: 2px solid var(--gold);
  padding: 20px;
  padding-right: 60px;
  max-height: 50vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.tds-controls-panel.open {
  transform: translateY(0);
}

.tds-controls-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  line-height: 1;
}

.tds-controls-close:hover {
  color: var(--gold-light);
}

/* Control panel inner content styling */
.tds-controls-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.tds-control-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.tds-control-label {
  color: var(--gray-light);
  font-size: 14px;
  font-weight: 500;
}

.tds-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.tds-control-value {
  color: var(--gold);
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

@media (max-width: 640px) {
  .tds-controls-panel {
    max-height: 60vh;
    padding: 15px;
    padding-right: 50px;
  }

  .tds-controls-toggle {
    bottom: 15px;
    right: 15px;
    padding: 10px 16px;
    font-size: 14px;
  }
}
