/* ============================================================
   SRICHAKRA VOCATIONAL JUNIOR COLLEGE — style.css
   Vanilla CSS with Advanced Hover Effects & Animations
   ============================================================ */

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

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --background: #f7f5f0;
  --foreground: #0e0d1a;
  --card: #ffffff;
  --primary: #1a4231;
  --primary-fg: #ffffff;
  --secondary: #edeae0;
  --muted: #ede9e0;
  --muted-fg: #6b6860;
  --accent: #c49a2e;
  --accent-fg: #ffffff;
  --border: rgba(14, 13, 26, 0.09);
  --radius: 0.75rem;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --level-beginner: #2d6a4f;
  --level-intermediate: #1a4231;
  --level-advanced: #6b3fa0;
  --glow-accent: rgba(196, 154, 46, 0.35);
  --glow-primary: rgba(26, 66, 49, 0.35);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  /* Hide default cursor — custom cursor used */
}

/* Restore default cursor on touch devices */
@media (hover: none) {
  body {
    cursor: auto;
  }

  #customCursor,
  #customCursorDot {
    display: none;
  }
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: none;
  font-family: inherit;
  border: none;
  background: none;
}

a,
button {
  cursor: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 87rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ════════════════════════════════════════════════════════════ */
#customCursor {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s, background 0.2s, opacity 0.2s;
  mix-blend-mode: normal;
  will-change: transform;
}

#customCursorDot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.04s linear, width 0.2s ease, height 0.2s ease, background 0.2s;
  will-change: transform;
}

body.cursor-hover #customCursor {
  width: 56px;
  height: 56px;
  background: rgba(196, 154, 46, 0.12);
  border-color: var(--accent);
}

body.cursor-click #customCursor {
  width: 24px;
  height: 24px;
  background: rgba(196, 154, 46, 0.30);
}

body.cursor-hover #customCursorDot {
  width: 0;
  height: 0;
  opacity: 0;
}

/* ════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ════════════════════════════════════════════════════════════ */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9998;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ════════════════════════════════════════════════════════════ */
#toastContainer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--foreground);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  max-width: 18rem;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.toast-accent {
  background: var(--primary);
}

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.instant-visible {
  animation: fadeUpIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.nav-brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.nav-brand-icon:hover {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 4px 16px var(--glow-primary);
}

.nav-brand-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
}

.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.nav-brand-sub {
  font-size: 0.625rem;
  color: var(--muted-fg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Animated underline nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  position: relative;
  transition: color 0.2s;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover {
  color: var(--foreground);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  transition: color 0.15s;
}

.nav-phone:hover {
  color: var(--foreground);
}

.nav-phone svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Magnetic CTA button */
.btn-apply {
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
}

.btn-apply::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.45s ease;
}

.btn-apply:hover::before {
  transform: translateX(150%) skewX(-15deg);
}

.btn-apply:hover {
  box-shadow: 0 6px 24px var(--glow-accent);
}

.nav-hamburger {
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background 0.15s;
  line-height: 0;
}

.nav-hamburger:hover {
  background: var(--muted);
}

.nav-hamburger svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
}

.nav-mobile.open {
  max-height: 400px;
  opacity: 1;
}

.nav-mobile-inner {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile-inner a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
}

.btn-apply-mobile {
  display: block;
  text-align: center;
  padding: 0.625rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {

  .nav-links,
  .nav-actions {
    display: flex;
  }

  .nav-hamburger,
  .nav-mobile {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   RIPPLE EFFECT (shared by buttons)
   ════════════════════════════════════════════════════════════ */
.ripple-host {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.35);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  transform: scale(1.06);
  transition: transform 0.1s linear;
  /* updated via JS for parallax */
  will-change: transform;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--primary) 0%, rgba(26, 66, 49, 0.92) 50%, rgba(26, 66, 49, 0.60) 100%);
}

.hero-inner {
  position: relative;
  padding-block: 5rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(196, 154, 46, 0.2);
  border: 1px solid rgba(196, 154, 46, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  animation: pulse-badge 2.5s ease-in-out infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(196, 154, 46, 0);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(196, 154, 46, 0);
  }
}

.hero-badge svg {
  width: 0.875rem;
  height: 0.875rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

/* Counter text in hero */
.hero-stat-value[data-count] {
  display: inline-block;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.70);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-pill {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(196, 154, 46, 0.5);
  transform: translateY(-2px);
}

.hero-pill svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--accent);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  text-align: center;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.45s ease;
}

.btn-hero-primary:hover::before {
  transform: translateX(150%) skewX(-15deg);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--glow-accent);
}

.btn-hero-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  transition: background 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-hero-secondary svg {
  width: 1rem;
  height: 1rem;
  fill: #fff;
}

/* Stat cards */
.hero-stats {
  display: none;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 16rem;
  animation: fadeUpIn 0.6s ease both;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.hero-stat-card:hover {
  transform: translateX(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  border-color: rgba(196, 154, 46, 0.4);
}

.hero-stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-stat-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-stat-value {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.125rem;
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
}

.hero-address {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
}

.hero-address-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  padding-block: 0.75rem;
}

.hero-address-inner span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-address-inner svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    padding-block: 7rem 5rem;
  }

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

  .hero-stats {
    display: flex;
  }
}

/* ════════════════════════════════════════════════════════════
   PROGRAMMES
   ════════════════════════════════════════════════════════════ */
.programmes-section {
  padding-block: 5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--foreground);
  font-family: var(--font-serif);
}

.section-sub {
  font-size: 0.875rem;
  color: var(--muted-fg);
  max-width: 18rem;
  text-align: right;
  display: none;
}

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

  .section-sub {
    display: block;
  }
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted-fg);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.tab-btn:hover {
  border-color: rgba(26, 66, 49, 0.4);
  color: var(--foreground);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--glow-primary);
}

/* ── 3D TILT COURSE CARDS ─────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 540px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .courses-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.course-card {
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s, border-color 0.35s;
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) scale(1);
  will-change: transform;
  position: relative;
}

/* Glow highlight overlay (mouse tracking) */
.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
  border-radius: 1rem;
}

.course-card:hover::before {
  opacity: 1;
}

.course-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 6px 20px var(--glow-primary);
  border-color: rgba(26, 66, 49, 0.2);
}

.card-img {
  position: relative;
  height: 10rem;
  background: var(--muted);
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s;
}

.course-card:hover .card-img img {
  transform: scale(1.08);
  filter: brightness(1.05) saturate(1.1);
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.40), transparent);
}

.card-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-badge 2.5s ease-in-out infinite;
}

.card-short {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  transition: background 0.2s;
}

.course-card:hover .card-short {
  background: rgba(255, 255, 255, 0.25);
}

.card-short svg {
  width: 0.875rem;
  height: 0.875rem;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.card-level {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.card-category {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.card-title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  flex: 1;
}

.card-desc {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}

.card-info span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-info svg {
  width: 0.875rem;
  height: 0.875rem;
}

.btn-card {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.625rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(26, 66, 49, 0.15);
  background: rgba(26, 66, 49, 0.08);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.btn-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.4s ease;
}

.btn-card:hover::before {
  transform: translateX(160%) skewX(-15deg);
}

.btn-card:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--glow-primary);
}

/* ════════════════════════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════════════════════════ */
.features-section {
  background: var(--primary);
  padding-block: 5rem;
}

.features-section .section-label {
  color: var(--accent);
}

.features-section .section-title {
  color: #fff;
  text-align: center;
  max-width: 30rem;
  margin-inline: auto;
}

.features-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

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

@media (min-width: 540px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep effect */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.feature-card:hover::after {
  left: 130%;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════════════ */
.testimonials-section {
  background: rgba(237, 234, 224, 0.4);
  padding-block: 5rem;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.25rem;
  right: 1.25rem;
  font-size: 6rem;
  font-family: var(--font-serif);
  color: var(--accent);
  opacity: 0.08;
  line-height: 1;
  transition: opacity 0.3s, transform 0.3s;
}

.testimonial-card:hover::before {
  opacity: 0.14;
  transform: scale(1.1);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  border-color: rgba(196, 154, 46, 0.25);
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1.25rem;
}

.stars svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  fill: var(--accent);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.75;
  font-style: italic;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card:hover .author-avatar {
  transform: scale(1.12);
}

.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.author-role {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* ════════════════════════════════════════════════════════════
   CTA BANNER
   ════════════════════════════════════════════════════════════ */
.cta-section {
  padding-block: 3rem;
}

.cta-box {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--accent);
  padding: 3.5rem 2rem;
  text-align: center;
}

.cta-box-bg {
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background: radial-gradient(circle at 20% 50%, #fff 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, #fff 0%, transparent 50%);
}

/* Moving gradient aura */
.cta-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%, rgba(255, 255, 255, 0.05) 100%);
  animation: ctaShimmer 4s ease-in-out infinite alternate;
}

@keyframes ctaShimmer {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.cta-box h2 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.80);
  font-size: 1rem;
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-cta-white {
  background: #fff;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.btn-cta-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-cta-ghost svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 540px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* ════════════════════════════════════════════════════════════
   PREFERENCES / TOGGLE
   ════════════════════════════════════════════════════════════ */
.prefs-section {
  padding-block: 4rem;
}

.prefs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .prefs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.prefs-info .section-label {
  margin-bottom: 0.5rem;
}

.prefs-info h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--foreground);
  margin-bottom: 1rem;
}

.prefs-info p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.prefs-tip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--muted);
  border-radius: 1rem;
  padding: 1rem;
}

.prefs-tip svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.prefs-tip p {
  font-size: 0.875rem;
  color: var(--foreground);
  margin: 0;
}

.prefs-card {
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s;
}

.prefs-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}

.prefs-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.prefs-card-header svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-fg);
}

.prefs-card-header span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.pref-row {
  padding: 0.8125rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background 0.2s;
}

.pref-row:hover {
  background: rgba(26, 66, 49, 0.025);
}

.pref-row+.pref-row {
  border-top: 1px solid var(--border);
}

.pref-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pref-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
}

.pref-desc {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.4;
}

/* ── iOS TOGGLE ───────────────────────────────────────────── */
.toggle-track {
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  flex-shrink: 0;
  cursor: none;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.10);
  user-select: none;
  outline: none;
  transition: background-color 0.18s;
  background-color: #d1cec6;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

.toggle-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  height: 27px;
  width: 27px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22), 0 0.5px 1px rgba(0, 0, 0, 0.14);
  pointer-events: none;
  will-change: transform, width;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.15s ease;
}

/* ════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════ */
.contact-section {
  background: rgba(237, 234, 224, 0.3);
  padding-block: 4rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 48rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
  display: block;
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card:hover::after {
  width: 100%;
}

.contact-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
  transform: translateY(-6px);
  border-color: rgba(26, 66, 49, 0.15);
}

.contact-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(26, 66, 49, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1rem;
  transition: background 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card:hover .contact-icon-wrap {
  background: var(--primary);
  transform: scale(1.12) rotate(-5deg);
}

.contact-icon-wrap svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  transition: color 0.15s;
}

.contact-card:hover .contact-icon-wrap svg {
  color: #fff;
}

.contact-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 0.25rem;
}

.contact-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  word-break: break-all;
}

.contact-sub {
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  background: var(--primary);
  color: #fff;
}

.footer-inner {
  padding-block: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.footer-brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-icon svg {
  width: 1rem;
  height: 1rem;
  color: #fff;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

.footer-brand-sub {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.50);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.footer-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.50);
}

.footer-info-row svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.40);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.60);
  position: relative;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: width 0.25s ease;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 1rem;
}

.footer-col a:hover::before {
  width: 0.65rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.30);
}

/* ── Utility ─────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
