/* Reset and base styles */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0a0a0a;
  background: #ffffff;
  line-height: 1.6;
}

:root {
  --green: #10a660;
  --green-600: #0a8e53;
  --text: #0a0a0a;
  --muted: #4b5563;
  --border: #e5e7eb;
  --black: #0a0a0a;
  --white: #ffffff;
  --footer-bg: #0a0a0a;
  --footer-fg: #f3f4f6;
  --container: 1180px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  
  /* Responsive spacing system */
  --spacing-xs: clamp(4px, 1vw, 8px);
  --spacing-sm: clamp(8px, 2vw, 16px);
  --spacing-md: clamp(16px, 3vw, 24px);
  --spacing-lg: clamp(24px, 4vw, 32px);
  --spacing-xl: clamp(32px, 5vw, 48px);
  --spacing-2xl: clamp(48px, 6vw, 64px);
  
  /* Responsive typography */
  --text-xs: clamp(10px, 2.5vw, 12px);
  --text-sm: clamp(12px, 3vw, 14px);
  --text-base: clamp(14px, 3.5vw, 16px);
  --text-lg: clamp(16px, 4vw, 18px);
  --text-xl: clamp(18px, 4.5vw, 20px);
  --text-2xl: clamp(20px, 5vw, 24px);
  --text-3xl: clamp(24px, 6vw, 32px);
  --text-4xl: clamp(28px, 7vw, 40px);
  
  /* Responsive logo sizing - maintains visual hierarchy */
  --logo-size: clamp(110px, 12vw, 140px);
  --logo-bg-size: clamp(140px, 15vw, 170px);
  --logo-bg-offset-x: 0px;
  --logo-bg-offset-y: clamp(-2px, -0.5vw, -4px);
  --logo-bg-opacity: 0.3;
  
  /* Responsive header */
  --header-height: clamp(56px, 8vw, 64px);
  --header-height-expanded: clamp(64px, 9vw, 70px);
  --header-title-size: clamp(18px, 5vw, 24px);
  --header-title-size-expanded: clamp(22px, 6vw, 28px);
  
  /* Content page gap control */
  --content-gap: clamp(8px, 5vw, 8px);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: env(safe-area-inset-top) clamp(16px, 4vw, 24px) env(safe-area-inset-bottom);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 50;
  transition: height 0.3s ease, font-size 0.3s ease;
  padding-top: max(env(safe-area-inset-top), 0px);
}
.site-header.expanded {
  height: var(--header-height-expanded);
}
.site-title {
  margin: 0;
  text-align: center;
  font-size: var(--header-title-size);
  letter-spacing: 0.3px;
  font-weight: 700;
  background: linear-gradient(135deg, #10a660 0%, #22c55e 35%, #16a34a 50%, #d4af37 75%, #b8860b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  transition: font-size 0.3s ease;
}
.site-header.expanded .site-title {
  font-size: var(--header-title-size-expanded);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}



/* Main hero */
.main { 
  min-height: calc(100vh - var(--header-height) - 200px); 
  display: grid; 
  place-items: center; 
  padding-top: var(--spacing-xs); 
}
.main.content-page { padding-top: var(--spacing-2xl); }
.hero { text-align: center; padding: var(--spacing-md) 0; }
.brand-icon { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  position: relative;
  margin-bottom: var(--spacing-md);
}
.logo {
  width: var(--logo-size);
  height: var(--logo-size);
  opacity: 0;
  transform: translateY(14px);
  animation: fadeRise 1.9s ease-out .1s forwards;
  position: relative;
  z-index: 2;
}
.logo-bg {
  position: absolute;
  width: var(--logo-bg-size);
  height: var(--logo-bg-size);
  opacity: 0;
  transform: translateY(var(--logo-bg-offset-y)) translateX(var(--logo-bg-offset-x));
  animation: fadeRiseBg 1.9s ease-out .05s forwards;
  z-index: 1;
}

@keyframes fadeRiseBg {
  from { opacity: 0; transform: translateY(17px) translateX(var(--logo-bg-offset-x)); }
  to { opacity: var(--logo-bg-opacity); transform: translateY(var(--logo-bg-offset-y)) translateX(var(--logo-bg-offset-x)); }
}

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

.headline {
  margin: var(--spacing-md) 0 var(--spacing-sm);
  font-size: var(--text-3xl);
  font-weight: 800;
}
.subtitle { 
  margin: 0 0 var(--spacing-sm); 
  color: var(--muted); 
  font-size: var(--text-base);
}
.contact { 
  margin: 0; 
  margin-top: var(--spacing-lg); 
  font-size: var(--text-base);
}
.link { color: var(--green-600); text-decoration: none;  }
.link:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-xl);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  max-width: 600px;
  margin: 0 auto;
}
.footer-title { 
  margin: 0 0 var(--spacing-sm); 
  font-size: var(--text-sm); 
  letter-spacing: .5px; 
  text-transform: uppercase; 
  color: #d1d5db; 
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: var(--spacing-sm) 0; }
.footer-list a { 
  color: #e5e7eb; 
  text-decoration: none; 
  font-size: var(--text-base);
  min-height: 44px;
  display: inline-block;
  line-height: 1.4;
}
.footer-list a:hover { text-decoration: underline; }
.footer-address { 
  font-style: normal; 
  color: #d1d5db; 
  font-size: var(--text-base);
  line-height: 1.6;
}
.footer-address a {
  min-height: 44px;
  display: inline-block;
  line-height: 1.4;
}
.footer-bottom { 
  border-top: 1px solid #1f2937; 
  padding: var(--spacing-md) 0 calc(var(--spacing-xl) + env(safe-area-inset-bottom)); 
  text-align: center; 
  color: #9ca3af; 
}
.disclaimer { 
  margin: var(--spacing-sm) 0 var(--spacing-xs); 
  font-size: var(--text-xs); 
}

/* Title link styles */
.title-link {
  color: inherit;
  text-decoration: none;
}
.title-link:hover {
  text-decoration: none;
}

/* Content section for privacy and other pages */
.content-section {
  padding: var(--content-gap) 0 var(--spacing-2xl);
}
.content-wrapper {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.content-wrapper h3 {
  margin: var(--spacing-lg) 0 var(--spacing-sm);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
}
.content-wrapper h3:first-child {
  margin-top: 0;
}
.content-wrapper p {
  margin: 0 0 var(--spacing-md);
  color: var(--muted);
  line-height: 1.7;
  font-size: var(--text-base);
}
.back-link {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border);
  min-height: 44px;
  display: inline-block;
}

/* Comprehensive Responsive Design */

/* Small mobile devices (up to 375px) */
@media (max-width: 375px) {
  :root {
    --logo-size: clamp(90px, 18vw, 110px);
    --logo-bg-size: clamp(115px, 22vw, 140px);
    --header-height: clamp(52px, 12vw, 56px);
  }
  
  .container {
    padding: 0 clamp(12px, 3vw, 16px);
  }
  
  .main { padding-top: calc(var(--spacing-sm) + env(safe-area-inset-top)); }
  .hero { padding: var(--spacing-sm) 0; }
  .headline { font-size: var(--text-2xl); }
  .subtitle { font-size: var(--text-sm); }
  .contact { margin-top: var(--spacing-md); font-size: var(--text-sm); }
  
  .site-title {
    letter-spacing: 0.1px;
  }
}

/* Mobile devices (376px to 520px) */
@media (max-width: 520px) {
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0 var(--spacing-md);
  }
  
  .main {
    min-height: calc(100vh - var(--header-height) - 150px);
    padding-top: calc(var(--spacing-sm) + env(safe-area-inset-top));
  }

  .hero { padding: var(--spacing-md) 0 var(--spacing-sm); }
  .headline { font-size: var(--text-2xl); margin-bottom: var(--spacing-xs); }
  .subtitle { font-size: var(--text-base); }
  .brand-icon { margin-bottom: var(--spacing-sm); }

  /* Increase horizontal padding when layout is narrow to avoid bezel crowding */
  .hero.container {
    padding-left: calc(env(safe-area-inset-left) + clamp(20px, 7vw, 28px));
    padding-right: calc(env(safe-area-inset-right) + clamp(20px, 7vw, 28px));
  }
  .site-footer .container {
    padding-left: calc(env(safe-area-inset-left) + clamp(30px, 10vw, 40px));
    padding-right: calc(env(safe-area-inset-right) + clamp(30px, 10vw, 40px));
  }
}

/* Large mobile / Small tablet (521px to 768px) */
@media (min-width: 521px) and (max-width: 768px) {
  :root {
    --logo-size: clamp(115px, 12vw, 130px);
    --logo-bg-size: clamp(145px, 15vw, 160px);
  }
  
  .footer-grid {
    max-width: 500px;
    gap: var(--spacing-xl);
  }
  
  .content-wrapper {
    max-width: 600px;
  }
}

/* Tablet devices (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --logo-size: clamp(120px, 10vw, 130px);
    --logo-bg-size: clamp(145px, 12vw, 155px);
    --container: 900px;
  }
  
  .hero {
    padding: var(--spacing-lg) 0;
  }
  
  .footer-grid {
    max-width: 650px;
  }
}

/* Large desktop (1025px to 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  :root {
    --container: 1200px;
  }
  
  .footer-grid {
    max-width: 700px;
  }
}

/* Extra large screens (1441px and up) */
@media (min-width: 1441px) {
  :root {
    --container: 1400px;
    --logo-size: clamp(130px, 8vw, 160px);
    --logo-bg-size: clamp(160px, 10vw, 190px);
  }
  
  .hero {
    padding: var(--spacing-2xl) 0;
  }
  
  .footer-grid {
    max-width: 800px;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo, .logo-bg {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch device optimizations */
@media (pointer: coarse) {
  .link, .footer-list a, .footer-address a, .back-link {
    min-height: 48px;
    padding: var(--spacing-xs) 0;
  }
  
  .site-title {
    /* Ensure header title doesn't interfere with touch gestures */
    user-select: none;
    -webkit-user-select: none;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .main {
    min-height: calc(100vh - var(--header-height) - 100px);
  }
  
  .hero {
    padding: var(--spacing-sm) 0;
  }
  
  :root {
    --logo-size: clamp(80px, 10vh, 100px);
    --logo-bg-size: clamp(100px, 12vh, 125px);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-title,
  .logo,
  .logo-bg {
    transition: none;
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: #000000;
    --muted: #000000;
  }
  
  .site-header {
    border-bottom-width: 2px;
  }
}

/* Dark mode support preparation */
@media (prefers-color-scheme: dark) {
  /* Note: Currently forced to light mode, but structure ready for dark mode */
  /* Dark mode variables would go here when needed */
}


