:root {
 --bg: #0f0f12;
 --card: #16171b;
 --text: #e9e9ee;
 --muted: #b9b9c4;
 --brand: #6a49a3; /* modern purple */
 --brand-2: #1f4d3e; /* accent */
 --radius: 14px;
 --shadow: 0 8px 24px rgba(0,0,0,.25);
}
* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #999999; /* light grey background */
}

.section { background: #999999; }
.section-alt { background: #999999; }
.site-footer { background: #999999; }
.hero { background: #999999; }

/* Utilities */
.container { width: min(1100px, 92%); margin: 0 auto }
.section { padding: 72px 0 }
.section-alt { background: #999999 }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr } }
.btn { display:inline-block; padding:12px 18px; border-radius: 999px; border:1px solid #3a3a46; color: var(--text); text-decoration:none; transition:.2s }
.btn:hover { transform: translateY(-1px) }
.btn-primary { background: linear-gradient(135deg, var(--brand), #8b6cd9); border: none; color: white; box-shadow: var(--shadow) }
.btn-primary:hover { filter: brightness(1.08) }
.btn-lg { padding: 14px 22px; font-weight: 600 }
.btn-outline { background: transparent }
.btn-block { width: 100% }

/* Header */
.site-header {
 position: sticky; top:0; z-index: 10; backdrop-filter: blur(8px);
 background: rgba(15,15,18,.6); border-bottom: 1px solid #23232a;
}
.header-inner { display:flex; align-items:center; justify-content:space-between; padding: 12px 0 }
.brand img { height: 175px; width: 500px }
.nav a { color: var(--text); margin: 0 10px; text-decoration:none; opacity:.9 }
.nav a.btn { margin-left: 10px }
.nav-toggle { display:none }
@media (max-width: 900px) {
 .nav { display:none; position:absolute; top:64px; right:16px; background:#16171b; padding:14px; border-radius:12px; box-shadow: var(--shadow) }
 .nav a { display:block; margin:8px 0 }
 .nav-toggle { display:inline-flex; flex-direction:column; gap:4px; background:transparent; border:0; cursor:pointer }
 .nav-toggle span { width:24px; height:2px; background:#cfcfe3 }
}

/* Hero */
.hero { padding: 96px 0 64px; }
.hero-inner { display:grid; grid-template-columns: 1.1fr .9fr; align-items:center; gap: 36px }
.hero h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; margin: 0 0 12px }
.hero p { color: var(--muted); margin: 0 0 18px }
.hero-cta { display:flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px }
.hero .ticks { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted) }
.hero .ticks li { padding-left: 22px; position: relative; margin:6px 0 }
.hero .ticks li::before { content:"✓"; position:absolute; left:0; color: var(--brand-2) }
.hero-media img { border-radius: var(--radius); width: 100%; height: auto; box-shadow: var(--shadow); display:block; }

/* Cards + Media */
.cards { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px }
.card { background: var(--card); padding: 18px; border-radius: var(--radius); border:1px solid #242430 }
.card h3 { margin: 0 0 6px }
.card p { color: var(--muted) }

.media-card-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 12px }
.media-card { background: var(--card); border-radius: var(--radius); border:1px solid #242430; overflow:hidden }
.media-card img { width:100%; height:auto; display:block }
.media-card figcaption { padding: 8px 10px; color: var(--muted) }
@media (max-width: 900px) { .cards, .media-card-grid { grid-template-columns: 1fr } }

/* Areas */
.area-tags { display:flex; gap:10px; flex-wrap:wrap; list-style:none; padding:0; margin: 12px 0 0 }
.area-tags li { background:#1b1c23; border:1px solid #272738; padding:8px 12px; border-radius:999px }

/* Quotes */
.quotes { display:grid; gap: 14px }
blockquote { margin:0; background: var(--card); border-left: 3px solid var(--brand); padding: 14px; border-radius: var(--radius) }
blockquote cite { display:block; margin-top: 6px; color: var(--muted); font-style: normal }

/* FAQ */
details { background: var(--card); border-radius: var(--radius); padding: 12px 14px; border:1px solid #242430; margin: 10px 0 }
details summary { cursor:pointer; font-weight:600 }
details p { color: var(--muted) }

/* Form */
.form { background: var(--card); border:1px solid #242430; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow) }
.form label { display:block; margin: 10px 0 }
.form label span { display:block; margin-bottom: 6px }
.form input, .form select, .form textarea {
 width:100%; padding:12px; border-radius: 10px; border:1px solid #2a2b36; background:#121219; color: var(--text)
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #3f3f99; border-color:#3f3f99 }
.form .form-note { color: var(--muted); font-size: 0.9rem; margin: 8px 0 0 }
.form .hp { position:absolute !important; left:-9999px !important; visibility:hidden !important }

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid #242430; background:#0f0f12 }
.footer-inner { display:flex; gap: 12px; align-items:center; justify-content:space-between; flex-wrap:wrap }

.carousel {
  position: relative;
  overflow: hidden;
  width: 70%;
  display: flex;
  justify-content: center;
}

.carousel-track {
  display: flex;
  width: 300%;                 /* 3 slides */
  animation: heroSlide 12s infinite;
  -webkit-animation: heroSlide 12s infinite;   /* iOS */
  will-change: transform;      /* smoother on mobile */
}

.slide {
  flex: 0 0 100%;              /* one full-width slide at a time */
  display: flex;
  justify-content: center;
}

.slide img {
  width: 50%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Make images a bit larger on small screens */
@media (max-width: 600px) {
  .slide img { width: 90%; }
}

/* Keyframes with translate3d + prefixed copy for iOS */
@keyframes heroSlide {
  0%, 26%   { transform: translate3d(0,0,0); }
  33%, 59%  { transform: translate3d(-100%,0,0); }
  66%, 92%  { transform: translate3d(-200%,0,0); }
  100%      { transform: translate3d(0,0,0); }
}

@-webkit-keyframes heroSlide {
  0%, 26%   { -webkit-transform: translate3d(0,0,0); }
  33%, 59%  { -webkit-transform: translate3d(-100%,0,0); }
  66%, 92%  { -webkit-transform: translate3d(-200%,0,0); }
  100%      { -webkit-transform: translate3d(0,0,0); }
}

/* Respect 'reduced motion' users */
@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation: none; -webkit-animation: none; }
}


/* Make sure global image rules can't stretch the header logo */
.site-header .brand img {
  width: auto !important;   /* ignore any img{width:100%} elsewhere */
  height: 150px;             /* desktop/default height */
  max-width: 400px;         /* belt & braces */
}

/* Tablet */
@media (max-width: 900px) {
  .site-header .brand img {
    height: 75px;
    max-width: 200px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .site-header .brand img {
    height: 150px;
    max-width: 400px;
  }
}

/* Tiny phones */
@media (max-width: 380px) {
  .site-header .brand img {
    height: 26px;
    max-width: 160px;
  }
}
