/* ===========================================================
   C@pitali$ — Shared Responsive Stylesheet
   Included by all public pages. Page-specific CSS stays inline.
   =========================================================== */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::selection { background: rgba(16,185,129,0.25); color: inherit; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* === CSS VARIABLES === */
:root {
  --navy: #0F172A;
  --navy-light: #1E293B;
  --navy-mid: #334155;
  --emerald: #10B981;
  --emerald-dark: #059669;
  --emerald-glow: rgba(16,185,129,0.15);
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --text: #334155;
  --text-muted: #64748B;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --muted: #64748B;
  --shadow-md: 0 10px 30px rgba(15,23,42,0.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,0.14);
}

/* === CONTAINER === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,23,42,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 72px;
  display: flex; align-items: center;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }
.logo .accent { color: var(--emerald); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--emerald); }
.nav-cta { background: var(--emerald) !important; color: var(--white) !important; padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600; transition: background var(--transition), transform var(--transition); }
.nav-cta:hover { background: var(--emerald-dark) !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; z-index: 1001; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); display: block; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === HERO (homepage) === */
.hero { background: var(--navy); padding: 160px 0 100px; color: var(--white); position: relative; overflow: hidden; }
.hero .container { display: block; }
.hero-sub { font-size: 1.1rem; font-weight: 600; color: var(--emerald); margin-bottom: 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.hero-desc { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-top: 16px; max-width: 520px; line-height: 1.7; }
.hero-photo { display: flex; justify-content: center; }
.hero-photo img { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,0.1); }
.hero-buttons { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-buttons .btn { padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.hero-buttons .btn-primary { background: var(--emerald); color: var(--white); }
.hero-buttons .btn-primary:hover { background: var(--emerald-dark); transform: translateY(-2px); }
.hero-buttons .btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.hero-buttons .btn-outline:hover { border-color: var(--emerald); color: var(--emerald); }

/* === PAGE HERO (service pages) === */
.page-hero { position: relative; background: var(--navy); padding: 160px 0 80px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, var(--emerald-glow) 0%, transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 20px; max-width: 700px; }
.page-hero h1 .accent { color: var(--emerald); }
.page-hero .subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 600px; line-height: 1.7; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--emerald); }
.breadcrumb .current { color: var(--emerald); }

/* === SECTIONS === */
.section { padding: 80px 0; position: relative; z-index: 1; }
.section-padding { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag, .section-label { display: inline-block; background: var(--emerald-glow); color: var(--emerald); font-size: 0.8rem; font-weight: 600; padding: 6px 16px; border-radius: 100px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.section-header h2, .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 12px; }
.section-header h2 .accent, .section-title .accent { color: var(--emerald); }
.section-header p, .section-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* === STATS ROW === */
.stats-row { padding: 0 0 80px; margin-top: -40px; position: relative; z-index: 2; }
.stats-grid, .stats-row .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,0.06); border: 1px solid var(--border-light); transition: transform var(--transition), box-shadow var(--transition); }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--emerald); margin-bottom: 4px; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* === GRID UTILITIES === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* === CARDS === */
.card { background: var(--white); border-radius: var(--radius); padding: 36px; border: 1px solid var(--border-light); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }

/* === FIT GRID (for-you / not-for-you) === */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-card { background: var(--white); border-radius: var(--radius); padding: 36px; border: 1px solid var(--border-light); transition: transform var(--transition), box-shadow var(--transition); }
.fit-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.fit-card.for-you { border-top: 3px solid var(--emerald); }
.fit-card.not-for-you { border-top: 3px solid #EF4444; }
.fit-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.fit-card.for-you h3 { color: var(--emerald); }
.fit-card.not-for-you h3 { color: #EF4444; }
.fit-card ul { display: flex; flex-direction: column; gap: 12px; }
.fit-card li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.fit-card li .icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; margin-top: 2px; }
.fit-card.for-you .icon { background: var(--emerald-glow); color: var(--emerald); }
.fit-card.not-for-you .icon { background: rgba(239,68,68,0.1); color: #EF4444; }

/* === CURRICULUM GRID === */
.curriculum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.module-card { background: var(--white); border-radius: var(--radius); padding: 36px; border: 1px solid var(--border-light); transition: transform var(--transition), box-shadow var(--transition); }
.module-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.module-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.module-number { background: var(--emerald-glow); color: var(--emerald); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: 1px; }
.module-duration { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.module-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.module-topics { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.topic { padding-left: 16px; border-left: 2px solid var(--emerald); }
.topic strong { display: block; font-size: 0.9rem; color: var(--navy); margin-bottom: 2px; }
.topic span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* === CONTACT INFO LIST === */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { width: 48px; height: 48px; background: var(--emerald-glow); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--emerald); font-size: 1.1rem; flex-shrink: 0; }

/* === PRICING / CTA === */
.cta-section { background: var(--navy); color: var(--white); text-align: center; }
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.7); }

/* === FOOTER === */
.site-footer { background: var(--navy); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.35); font-size: 0.78rem; }
.footer-links { display: flex; gap: 20px; }

/* === BRAND WORDMARK (diamond + snake text) === */
.brand-inline { display: inline-flex; align-items: center; gap: 4px; }
.snake-text { display: inline-flex; }
.letter { display: inline-block; transition: transform 0.1s; }
.letter.sym, .letter.highlight { color: var(--emerald); }
.brand-inline .diamond-logo { display: inline-block; flex-shrink: 0; width: 16px; height: 16px; margin-right: 2px; }
.brand-inline .diamond-logo svg { width: 100%; height: 100%; display: block; }
.logo .brand-inline .diamond-logo, .nav-logo .brand-inline .diamond-logo, .brand .brand-inline .diamond-logo, .brand-inline .brand-inline .diamond-logo { width: 24px; height: 24px; }
.footer-logo .brand-inline .diamond-logo, .footer-brand .brand-inline .diamond-logo { width: 20px; height: 20px; }

/* Homepage hero: large spinning diamond + name */
.hero h1 .brand-inline .diamond-logo { width: 64px; height: 64px; margin-right: 12px; }
.hero h1 .snake-text .letter { color: var(--white); }
.hero h1 .snake-text .letter.sym,
.hero h1 .snake-text .letter.highlight { color: var(--emerald); }

/* Nav + footer wordmarks: white letters (only @ and $ emerald) */
.logo, .logo .snake-text .letter, .nav-logo, .nav-logo .snake-text .letter, .brand, .brand .snake-text .letter { color: var(--white); }
.footer-brand, .footer-brand .snake-text .letter, .footer-logo, .footer-logo .snake-text .letter { color: var(--white); }
.footer-brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 20px; }

/* Section headings (h2/.section-title) that embed the wordmark */
.section-title .brand-inline .diamond-logo,
.section-header h2 .brand-inline .diamond-logo { width: 32px; height: 32px; }

/* Brand wordmark: static by default; animations trigger on hover.
   Diamond spins fast while hovered, letters wave when hovering the name. */
.brand-inline:hover .diamond-logo,
.nav-logo:hover .diamond-logo,
.brand:hover .diamond-logo,
.footer-brand:hover .diamond-logo,
.footer-logo:hover .diamond-logo {
  animation: logoSpin 0.5s linear infinite;
  transform-origin: center center;
}
.snake-text:hover .letter {
  animation: snakeWave 0.6s ease-in-out;
}
.snake-text:hover .letter:nth-child(1) { animation-delay: 0s; }
.snake-text:hover .letter:nth-child(2) { animation-delay: 0.05s; }
.snake-text:hover .letter:nth-child(3) { animation-delay: 0.1s; }
.snake-text:hover .letter:nth-child(4) { animation-delay: 0.15s; }
.snake-text:hover .letter:nth-child(5) { animation-delay: 0.2s; }
.snake-text:hover .letter:nth-child(6) { animation-delay: 0.25s; }
.snake-text:hover .letter:nth-child(7) { animation-delay: 0.3s; }
.snake-text:hover .letter:nth-child(8) { animation-delay: 0.35s; }
.snake-text:hover .letter:nth-child(9) { animation-delay: 0.4s; }

@keyframes snakeWave {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-6px); }
  75% { transform: translateY(4px); }
}
@keyframes logoSpin {
  0% { transform: perspective(800px) rotateY(0deg); }
  100% { transform: perspective(800px) rotateY(360deg); }
}

/* === FORMS === */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit; transition: border var(--transition), box-shadow var(--transition); background: var(--white); }
.form-input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-glow); }

/* === DIVIDERS === */
.divider { height: 1px; background: var(--border-light); margin: 48px 0; }

/* ===========================================================
   RESPONSIVE BREAKPOINTS
   Mobile-first: rules apply FROM desktop DOWN
   1200px → 968px (tablet landscape) → 768px (tablet/portrait) → 576px (phone landscape) → 480px (phone portrait)
   =========================================================== */

@media (max-width: 968px) {
  /* Grids collapse to 2 columns */
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fit-grid { grid-template-columns: 1fr; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row .container { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
  .page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
  .section-header h2, .section-title { font-size: 1.8rem; }
}

@media (max-width: 768px) {
  /* Mobile nav — scoped to .navbar so page-specific .nav-links rules can't leak in */
  .navbar .nav-links { display: none; height: auto; }
  .navbar .nav-links.active {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(15,23,42,0.98); backdrop-filter: blur(20px);
    padding: 12px 24px 24px; gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 50px rgba(0,0,0,0.35);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .navbar .nav-links.active li { width: 100%; }
  .navbar .nav-links.active a {
    display: block; padding: 12px 4px; font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .navbar .nav-links.active li:last-child a { border-bottom: none; }
  .navbar .nav-links.active .nav-cta {
    text-align: center; margin-top: 8px; border-bottom: none;
    padding: 12px 24px;
  }
  .hamburger { display: flex; }

  /* Hero stacks */
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 180px; height: 180px; }
  .hero-buttons { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-sub { font-size: 17px; }
  .hero-desc { font-size: 15px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  /* Sections reduce */
  .section-padding, .section { padding: 60px 0; }
  .page-hero { padding: 130px 0 60px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero .subtitle { font-size: 1rem; }
  .section-header h2, .section-title { font-size: 1.6rem; }
  .section-header p, .section-subtitle { font-size: 0.95rem; }

  /* Stats compact */
  .stat-card { padding: 24px 18px; }
  .stat-number { font-size: 1.6rem; }
}

@media (max-width: 576px) {
  /* Single column everything */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-row .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }

  /* Typography scale down */
  .page-hero h1 { font-size: 1.5rem; }
  .section-header h2, .section-title { font-size: 1.4rem; }
  .hero h1 { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  /* Smallest screens */
  .stats-grid, .stats-row .container { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .page-hero { padding: 110px 0 48px; }
  .section-padding, .section { padding: 48px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
