/* ============================================
   Siamril Development — Shared Stylesheet v2
   ============================================ */

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

:root {
  --black: #0A0A0A;
  --dark-bg: #141414;
  --card-bg: #1A1A1A;
  --charcoal: #2D2D2D;
  --silver: #A8A8A8;
  --light-silver: #C8C8C8;
  --white: #FFFFFF;
  --mid-gray: #6B6B6B;
  --accent: #D0D0D0;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--black);
  overflow-x: hidden;
}

/* Skip link for keyboard / screen reader users */
.skip-link {
  position: absolute; left: -9999px; top: 1rem;
  background: var(--white); color: var(--black);
  padding: 0.75rem 1.25rem; font-size: 0.8rem;
  font-weight: 600; z-index: 9999; text-decoration: none;
}
.skip-link:focus { left: 1rem; outline: 2px solid var(--silver); }

/* Universal focus styling (keyboard users) */
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--light-silver);
  outline-offset: 2px;
}

/* ===== NAV ===== */
nav#navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 1.5rem 5rem; display: flex; justify-content: space-between; align-items: center;
  transition: padding 0.4s ease, box-shadow 0.4s ease;
  background: rgba(10,10,10,0.92); backdrop-filter: blur(30px) saturate(1.2);
  -webkit-backdrop-filter: blur(30px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
nav#navbar.scrolled { padding: 1rem 5rem; box-shadow: 0 1px 0 rgba(255,255,255,0.05); }
.nav-brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.nav-brand-text {
  font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600;
  color: var(--white); letter-spacing: 5px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.72rem;
  font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="page"] { color: var(--white); }
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.mobile-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--white);
  margin: 5px 0; transition: all 0.3s;
}

/* ===== HERO (shared base) ===== */
.hero {
  height: 100vh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg,
    rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.05) 20%,
    rgba(10,10,10,0.03) 40%, rgba(10,10,10,0.03) 60%,
    rgba(10,10,10,0.4) 78%, rgba(10,10,10,0.85) 90%, rgba(10,10,10,0.95) 100%);
}
.hero-content {
  text-align: center; max-width: 1000px; padding: 0 2rem; width: 100%;
  position: relative; z-index: 2;
}
.hero-top h1 {
  font-family: 'Playfair Display', serif; font-size: 4.2rem; font-weight: 700;
  color: var(--white); line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4), 0 0 10px rgba(0,0,0,0.8);
}
.hero-top h1 em { font-style: italic; font-weight: 400; }
.hero-tag {
  font-size: 0.85rem; letter-spacing: 8px; text-transform: uppercase;
  color: rgba(255,255,255,0.9); margin-bottom: 1.2rem; font-weight: 500;
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.6);
}
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.92); line-height: 1.8;
  max-width: 580px; margin: 0 auto; font-weight: 400;
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.6);
}
.hero-scroll {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  z-index: 2; opacity: 0; animation: fadeUp 1s ease 1.5s forwards;
}
.hero-scroll span {
  display: block; width: 1px; height: 50px;
  background: linear-gradient(transparent, var(--silver));
  margin: 0 auto 0.8rem; animation: scrollPulse 2s ease infinite;
}
.hero-scroll p { font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: var(--silver); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ===== BUTTONS ===== */
.btn-primary {
  padding: 1.1rem 3rem; background: var(--white); color: var(--black);
  text-decoration: none; font-weight: 600; font-size: 0.75rem;
  letter-spacing: 2.5px; text-transform: uppercase; border: none; cursor: pointer;
  transition: all 0.4s; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(255,255,255,0.12); }
.btn-secondary {
  padding: 1.1rem 3rem; background: transparent; color: rgba(255,255,255,0.7);
  text-decoration: none; font-weight: 500; font-size: 0.75rem;
  letter-spacing: 2.5px; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2); transition: all 0.4s;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.05); }

/* ===== SHARED SECTION TYPOGRAPHY ===== */
.section-tag {
  font-size: 0.68rem; letter-spacing: 6px; text-transform: uppercase;
  color: var(--silver); margin-bottom: 1.2rem; font-weight: 400;
}
.section-title {
  font-family: 'Playfair Display', serif; font-size: 3rem;
  color: var(--white); margin-bottom: 1.5rem; line-height: 1.15; font-weight: 600;
}
.section-desc {
  font-size: 1rem; color: rgba(255,255,255,0.4); line-height: 1.9; max-width: 550px; margin: 0 auto;
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1E1E1E 100%);
  padding: 5rem; position: relative;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stats-strip::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  max-width: 1100px; margin: 0 auto; position: relative; z-index: 2;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif; font-size: 3.5rem;
  color: var(--white); font-weight: 700; display: block;
  margin-bottom: 0.5rem; line-height: 1;
}
.stat-label { font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.3); }

/* ===== FAQ SECTION (AIO-friendly) ===== */
.faq-section {
  padding: 6rem 5rem;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.faq-header { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.6rem 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem; font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--white); font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--silver); font-family: 'Inter', sans-serif;
  font-size: 1.5rem; transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 1rem; font-size: 0.95rem; color: rgba(255,255,255,0.6);
  line-height: 1.85;
}

/* ===== FOOTER ===== */
footer {
  background: var(--black); color: rgba(255,255,255,0.25);
  padding: 3rem 5rem; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  gap: 2rem; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand span {
  font-family: 'Playfair Display', serif; color: var(--silver);
  font-size: 1rem; letter-spacing: 4px;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.25); text-decoration: none; font-size: 0.7rem;
  letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.3s;
}
.footer-links a:hover, .footer-links a.active { color: rgba(255,255,255,0.6); }
.footer-meta { font-size: 0.7rem; color: rgba(255,255,255,0.25); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE BASE ===== */
@media (max-width: 1024px) {
  nav#navbar { padding: 1rem 2rem; }
  nav#navbar.scrolled { padding: 0.8rem 2rem; }
  .nav-links { display: none; }
  .nav-links.show {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%;
    background: rgba(10,10,10,0.97);
    padding: 2rem; gap: 1.5rem;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-toggle { display: block; }
  .hero-top h1 { font-size: 3rem; }
  .stats-strip { padding: 4rem 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .faq-section { padding: 5rem 2rem; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 3rem 2rem; }
}
@media (max-width: 480px) {
  .hero-top h1 { font-size: 2.2rem; }
  .stat-num { font-size: 2.5rem; }
  .section-title { font-size: 2.2rem; }
}
