/* =============================================================================
   PHOLOGA SECURITY SERVICE — Global Styles
   ============================================================================= */

/* =============================================================================
   CSS Reset & Base
   ============================================================================= */

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

html { scroll-behavior: smooth; }

html, body { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button, input, textarea, select { font: inherit; }

/* =============================================================================
   CSS Variables
   ============================================================================= */

:root {
  --green: #0AAD2A;
  --green-dark: #077E1F;
  --green-light: #1DC740;
  --green-glow: rgba(10, 173, 42, 0.25);
  --black: #050505;
  --white: #FFFFFF;
  --light: #F5F7F5;
  --grey: #6B7280;
  --grey-light: #E5E7EB;
  --radius: 16px;
  --radius-sm: 12px;
  --transition: all 0.3s ease;
}

/* =============================================================================
   Typography
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; color: #222; }

.lead { font-size: 1.125rem; color: var(--grey); line-height: 1.7; }

.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-white { color: var(--white); }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.05em; }

.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  padding: 0 1rem;
}

.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }

/* =============================================================================
   Buttons
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-align: center;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(10, 173, 42, 0.35);
}

.btn-secondary {
  background: var(--black);
  color: var(--white);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(10, 173, 42, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}

.btn-outline:hover, .btn-outline:focus {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 173, 42, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-ghost:hover, .btn-ghost:focus {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--black);
}

.btn-white:hover, .btn-white:focus {
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}

.btn-block { display: block; width: 100%; }

.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.btn .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* =============================================================================
   Form States
   ============================================================================= */

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.error-message {
  color: #ef4444;
  font-size: 0.8rem;
  min-height: 1.2em;
}

/* =============================================================================
   Layout Helpers
   ============================================================================= */

.placeholder-image {
  background: var(--light);
  border-radius: var(--radius);
  border: 2px dashed var(--grey-light);
  padding: 2rem;
  text-align: center;
}

.about-tagline {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 1rem;
}

.social-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.course-list {
  max-width: 900px;
  margin-inline: auto;
}

.course-row {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--green);
}

.course-row:last-child {
  margin-bottom: 0;
}

.course-row__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-row__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.course-row__header h3 {
  color: var(--green);
  font-size: 1.3rem;
}

.course-row__header .course-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--black);
}

.course-row__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.course-row p {
  margin-top: 1rem;
  color: var(--grey);
}

.course-detail {
  background: var(--white);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* =============================================================================
   Header
   ============================================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-light);
  transition: var(--transition);
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo { display: flex; align-items: center; gap: 0.5rem; }
.header__logo img { height: 42px; width: auto; }
.header__title { font-size: 1.1rem; font-weight: 800; color: var(--green); letter-spacing: 0.05em; }

/* =============================================================================
   Navigation
   ============================================================================= */

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

.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
  position: relative;
  padding: 0.25rem 0;
  transition: var(--transition);
}

.nav a:hover, .nav a:focus, .nav a.active { color: var(--green); }

.nav a.active::after,
.nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}
.nav .btn-cta { margin-left: 1.5rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 34px;
  height: 28px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(8px);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 999;
  overflow-y: auto;
}

.nav-overlay.open { transform: translateX(0); }

.nav-overlay .nav-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-overlay .nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 6rem 1.5rem 3rem;
}

.nav-overlay .nav-mobile a {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-overlay .nav-mobile a.active { color: var(--green); }

.nav-overlay .nav-mobile .btn-cta { margin-top: 1rem; }

/* =============================================================================
   Hero
   ============================================================================= */

.hero {
  position: relative;
  min-height: 90vh;
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.78) 50%, rgba(10, 173, 42, 0.08) 100%);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(10, 173, 42, 0.12) 0%, transparent 50%);
  z-index: 0;
}

.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: -1;
}

.hero__shield {
  position: absolute;
  width: 280px; height: 280px;
  border: 2px solid rgba(10, 173, 42, 0.12);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  top: -80px; right: -100px;
  z-index: 0;
  animation: pulse 6s ease-in-out infinite;
}

.hero__shield-2 {
  position: absolute;
  width: 180px; height: 180px;
  border: 1px solid rgba(10, 173, 42, 0.08);
  border-radius: 50%;
  bottom: -60px; left: -80px;
  z-index: 0;
  animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 1rem;
}

.hero__content {
  animation: fadeUp 0.8s ease-out;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 173, 42, 0.15);
  border: 1px solid rgba(10, 173, 42, 0.35);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
  animation: fadeUp 0.8s ease-out;
  letter-spacing: 0.04em;
}

.hero__badge img {
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero__text {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  max-width: 640px;
  line-height: 1.7;
  font-weight: 400;
}

.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero__btns .btn { min-height: 52px; padding: 1rem 2.25rem; font-size: 1rem; }

.hero__image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.hero__image .badge {
  position: absolute;
  bottom: -20px;
  color: var(--green);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   Trust Section
   ============================================================================= */

.trust {
  background: var(--light);
  padding: 5rem 0;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  border: 1px solid var(--grey-light);
  border-top: 4px solid var(--green);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.trust__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--green);
}

.trust__icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.25rem;
  background: rgba(10, 173, 42, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust__icon img { height: 28px; }

.trust__card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.trust__card p { color: var(--grey); font-size: 0.9rem; }

/* =============================================================================
   About / Section Header
   ============================================================================= */

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-header--narrow {
  max-width: 700px;
}

.section-header h2 { color: var(--black); }
.section-header .lead { font-size: 1.15rem; color: var(--grey); line-height: 1.7; }
.section-header .lead--muted { color: #cbd5e1; }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--green);
  margin-bottom: 1rem;
}

.about__content .tagline { font-size: 1.5rem; font-weight: 800; color: var(--black); margin-bottom: 1rem; }
.about__content p { color: var(--grey); line-height: 1.7; }

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}

.about__image img { display: block; width: 100%; height: auto; }

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

.values-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.values-list li img {
  height: 20px;
  filter: brightness(0) saturate(500%) hue-rotate(80deg) invert(40%);
}

/* =============================================================================
   Training / Courses Pricing
   ============================================================================= */

.training { background: var(--light); }

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

.course-card {
  background: var(--black);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  border: 2px solid var(--green);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  transition: var(--transition);
}

.course-card:hover::before {
  height: 6px;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(10, 173, 42, 0.25);
  border-color: var(--green-light);
}

.course-card .course-icon {
  width: 70px; height: 70px;
  margin: 0 auto 1.5rem;
  background: rgba(10, 173, 42, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.course-card .course-price { 
  font-size: 2.5rem; 
  font-weight: 800; 
  color: var(--green); 
  margin: 1rem 0; 
  letter-spacing: -0.02em; 
  text-shadow: 0 0 30px var(--green-glow);
  position: relative;
  display: inline-block;
}

.course-card .course-price::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  opacity: 0.6;
}
.course-card p { color: #cbd5e1; font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.course-card .btn { margin-top: auto; }

/* =============================================================================
   Services
   ============================================================================= */

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  border: 1px solid var(--grey-light);
  border-top: 4px solid var(--green);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--green);
}

.service-card .service-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  background: rgba(10, 173, 42, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--grey); font-size: 0.9rem; }

/* =============================================================================
   Why Phologa
   ============================================================================= */

.why {
  background: var(--black);
  color: var(--white);
  text-align: center;
}

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

.why__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.why__icon {
  width: 60px; height: 60px;
  background: rgba(10, 173, 42, 0.1);
  border: 1px solid rgba(10, 173, 42, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why__icon img { height: 28px; filter: brightness(0) invert(1) saturate(500%) hue-rotate(80deg); }

.why__item h3 { font-size: 1rem; }

/* =============================================================================
   Branches
   ============================================================================= */

.branches__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.branch-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  border: 1px solid var(--grey-light);
  border-top: 4px solid var(--green);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--green);
}

.branch-card h3 { color: var(--green); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.branch-card .address { margin-bottom: 1.5rem; line-height: 1.8; }
.branch-card .branch-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.branch-card .branch-actions .btn { flex: 1; min-width: 120px; }

/* =============================================================================
   FAQ Accordion
   ============================================================================= */

.faq-item {
  border-bottom: 1px solid var(--grey-light);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.faq-question:hover { color: var(--green); }

.faq-question::after {
  content: '';
  width: 20px; height: 20px;
  background: url('../assets/icons/chevron-down.svg') no-repeat center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer { padding: 0 0 1.25rem; max-height: 500px; }

/* =============================================================================
   TikTok / Social
   ============================================================================= */

.social {
  text-align: center;
  background: var(--light);
}

.social .social-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--black);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.social .social-icon img { height: 32px; }
.social a { color: var(--black); }

/* =============================================================================
   Contact Form / Enquiry
   ============================================================================= */

.form-section { background: var(--light); }

.form-container {
  max-width: 700px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 3.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--grey-light);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
}

.form-group .required::after { content: ' *'; color: var(--green); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 173, 42, 0.15);
}

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

.form-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.form-actions .btn { flex: 1; }
.form-help { text-align: center; margin-top: 1.5rem; }
.form-help a { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }

.form-help--success {
  display: none;
  color: var(--green);
  font-weight: 600;
  text-align: center;
  margin-top: 1.5rem;
}

.form-help--success.visible {
  display: block;
}

.section--light { background: var(--light); }
.section--dark { background: var(--black); }

.footer-bottom a { color: #9ca3af; transition: var(--transition); }
.footer-bottom a:hover { color: var(--green); }

.hero--short { min-height: 60vh; }
.hero--medium { min-height: 65vh; }

.hero__container--centered {
  max-width: 780px;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-inline: auto;
}

.hero__title--white { color: var(--white); }

.section-header--margin-top { margin-top: 3rem; }

.text-green--bold { font-weight: 700; }

.icon-white { filter: brightness(0) invert(1); }

.img-logo {
  max-width: 320px;
  opacity: 0.85;
}

.text-green--bold-lg {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
  background: var(--black);
  color: var(--light);
  padding: 5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.footer__col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.25rem; font-weight: 700; }

.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col ul li a { color: #cbd5e1; font-size: 0.9rem; transition: var(--transition); }
.footer__col ul li a:hover { color: var(--green); }

.footer .footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer .footer-logo img { height: 36px; }
.footer .footer-title { color: var(--green); font-size: 1.1rem; font-weight: 800; }
.footer .footer-tagline { color: var(--green); font-size: 0.85rem; letter-spacing: 0.08em; }

.footer .contact-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; color: #cbd5e1; font-size: 0.9rem; }
.footer .contact-item img { height: 18px; filter: brightness(0) invert(0.7); }

.footer .social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer .social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer .social-links a:hover { background: var(--green); }
.footer .social-links img { height: 20px; filter: brightness(0) invert(1); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #9ca3af;
  font-size: 0.8rem;
}

.footer-bottom .footer-credit {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.footer-bottom .footer-credit a {
  color: #9ca3af;
  transition: var(--transition);
}

.footer-bottom .footer-credit a:hover {
  color: var(--green);
}

/* =============================================================================
   Utility
   ============================================================================= */

.divider { height: 1px; background: var(--grey-light); width: 100%; margin: 3rem 0; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================================================
   Responsive Design
   ============================================================================= */

@media (max-width: 1024px) {
  .hero__container { grid-template-columns: 1fr; gap: 2rem; }
  .hero__image { display: none; }
  .hero { padding: 7rem 0 5rem; min-height: 75vh; }
  .hero__btns { justify-content: center; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .course-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .branches__grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .hero__shield { display: none; }
}

@media (max-width: 768px) {
  .nav ul { display: none; }
  .hamburger { display: flex; }
  .nav .btn-cta { display: none; }
  .hero__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero__text { font-size: 1.05rem; }

  .trust__grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .branch-card .branch-actions { flex-direction: column; }
  .branch-card .branch-actions .btn { flex: none; width: 100%; }
  .form-actions { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; }
  .form-container { padding: 2rem; }
}

@media (max-width: 375px) {
  .hero__btns { flex-direction: column; }
  .trust__card { padding: 1.5rem; }
}

/* Focus states for accessibility */
*:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }

/* =============================================================================
   WhatsApp Floating Button
   ============================================================================= */

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 998;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

.whatsapp-float {
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* =============================================================================
   Images & Gallery
   ============================================================================= */

.hero__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45;
  z-index: -1;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--light);
  border: 1px solid var(--grey-light);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-color: var(--green);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.image-section {
  padding: 5rem 0;
}

.image-section .section-header {
  margin-bottom: 3rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.image-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grey-light);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.image-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--green);
}

.image-card .image-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--light);
}

.image-card .image-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.image-card:hover .image-card__media img {
  transform: scale(1.05);
}

.image-card .image-card__body {
  padding: 1.5rem;
}

.image-card .image-card__body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.image-card .image-card__body p {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .image-grid { grid-template-columns: 1fr; }
}

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

/* =============================================================================
   Preloader
   ============================================================================= */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader img {
  width: 120px;
  height: auto;
  animation: logoBounce 1.4s ease-in-out;
}

@keyframes logoBounce {
  0% {
    transform: translateY(0) scale(0.92);
    opacity: 0.4;
  }
  20% {
    transform: translateY(-18px) scale(1);
    opacity: 1;
  }
  40% {
    transform: translateY(0) scale(0.98);
    opacity: 1;
  }
  60% {
    transform: translateY(-10px) scale(1);
    opacity: 1;
  }
  80% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  #preloader img {
    width: 100px;
  }
}

@media (max-width: 375px) {
  #preloader img {
    width: 90px;
  }
}
