/* =====================
   VARIABLES & RESET
   ===================== */
:root {
  --blue:       #002F6C;   /* Melges deep navy */
  --red:        #C8102E;   /* Melges red */
  --white:      #FFFFFF;
  --off-white:  #F5F7FA;
  --text:       #111827;
  --text-muted: #6B7280;
  --border:     #E5E7EB;
  --nav-h:      68px;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* =====================
   NAVIGATION
   ===================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

#navbar.scrolled .logo-img {
  filter: brightness(0) saturate(100%) invert(11%) sepia(72%) saturate(1200%) hue-rotate(197deg) brightness(90%);
}

.logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  transition: color 0.3s;
  margin-left: 0.5rem;
}

#navbar.scrolled .logo-text {
  color: var(--blue);
}

.logo-img-footer {
  height: 52px;
  filter: brightness(0) invert(1);
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

#navbar.scrolled .nav-links a {
  color: var(--text-muted);
}

#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active {
  color: var(--blue);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.88;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

#navbar.scrolled .hamburger span {
  background: var(--text);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0;
}

.mobile-menu .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  padding: 0.75rem !important;
  border-radius: 8px;
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem;
}

/* Subtle diagonal stripe texture */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('image5.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

/* Red bottom accent bar */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--red);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero-m {
  height: 0.85em;
  width: auto;
  display: inline;
  vertical-align: middle;
  margin-bottom: 0.1em;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary.btn-full {
  width: 100%;
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
}

/* =====================
   SHARED LAYOUT
   ===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 7rem 0; }

.section-header {
  max-width: 560px;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =====================
   PHOTO STRIP
   ===================== */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  height: 280px;
  margin-bottom: 3rem;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.3s;
}

.photo-strip img:hover {
  opacity: 0.88;
}

@media (max-width: 720px) {
  .photo-strip {
    grid-template-columns: 1fr;
    height: auto;
  }

  .photo-strip img {
    height: 220px;
  }
}

/* =====================
   LESSONS
   ===================== */
.lessons {
  background: var(--off-white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.card-featured {
  background: var(--blue);
  border-color: var(--blue);
}

.card-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--border);
}

.card-featured .card-number {
  color: rgba(255, 255, 255, 0.25);
}

.card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}

.featured-label {
  color: rgba(255, 255, 255, 0.6) !important;
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.card-featured h3 {
  color: var(--white);
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.card-featured p {
  color: rgba(255, 255, 255, 0.65);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.card-featured .card-footer {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -1px;
}

.card-featured .price {
  color: var(--white);
}

.per {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.card-featured .per {
  color: rgba(255, 255, 255, 0.5);
}

.btn-card {
  background: var(--blue);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  transition: opacity 0.2s;
}

.btn-card:hover { opacity: 0.82; }

.btn-card-white {
  background: var(--white) !important;
  color: var(--blue) !important;
}

/* =====================
   ABOUT
   ===================== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.about-card {
  background: var(--off-white);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.avatar {
  width: 54px;
  height: 54px;
  background: var(--blue);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.about-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-note {
  max-width: 560px;
  padding: 1.5rem;
  border-left: 3px solid var(--red);
  background: var(--off-white);
  border-radius: 0 10px 10px 0;
}

.about-note p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-note strong {
  color: var(--text);
  font-weight: 600;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 560px;
}

.cert-logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
}

.cert-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.cert-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.5;
}

/* =====================
   LOCATION
   ===================== */
.location {
  background: var(--off-white);
}

.location-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.location-btn {
  margin-top: 0.5rem;
  text-align: center;
}

.location-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.map-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

/* =====================
   CONTACT
   ===================== */
.contact {
  background: var(--off-white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.info-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-item a,
.info-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.info-item a:hover {
  color: var(--blue);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--blue);
  padding: 3.5rem 2rem;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.5rem;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .location-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  section { padding: 5rem 0; }

  .contact-info {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    letter-spacing: -1.5px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
