/* ═══════════════════════════════════════════
   ANDRÉ BRAGA — ENGLISH TEACHER
   main.css
═══════════════════════════════════════════ */

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

:root {
  --navy:  #0d1f3c;
  --teal:  #2a7f8f;
  --gold:  #f5c435;
  --cream: #faf8f3;
  --white: #ffffff;
  --text:  #1a1a2e;
  --muted: #667085;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(13,31,60,0.97);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.25); }
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--navy);
  padding: 0.55rem 1.4rem; border-radius: 4px;
  font-weight: 600; font-size: 0.875rem;
  text-decoration: none; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }
.nav-burger {
  display: none; background: none; border: none;
  color: white; font-size: 1.4rem; cursor: pointer;
}

/* Mobile nav drawer */
.nav-mobile {
  display: none; flex-direction: column;
  position: fixed; top: 62px; left: 0; right: 0; z-index: 99;
  background: var(--navy); padding: 1rem 5%;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  padding: 0.85rem 0; font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile .mobile-cta {
  margin-top: 0.75rem; border: none;
  background: var(--gold); color: var(--navy);
  border-radius: 6px; text-align: center; font-weight: 700;
  padding: 0.85rem 0;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg, transparent, transparent 79px,
    rgba(255,255,255,0.03) 80px
  );
}
.hero-accent {
  position: absolute; right: -80px; top: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(42,127,143,0.35) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-accent-2 {
  position: absolute; left: 38%; bottom: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(245,196,53,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  padding: 8rem 5% 6rem 8%;
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245,196,53,0.12); border: 1px solid rgba(245,196,53,0.3);
  color: var(--gold); padding: 0.4rem 1rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease both;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; }
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900; line-height: 1.08;
  color: var(--white);
  animation: fadeUp 0.7s 0.1s ease both;
}
h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem; line-height: 1.7;
  max-width: 480px;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-actions {
  margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: var(--navy);
  padding: 0.9rem 2rem; border-radius: 6px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px rgba(245,196,53,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,196,53,0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.25); color: var(--white);
  padding: 0.9rem 2rem; border-radius: 6px;
  font-weight: 500; font-size: 1rem;
  text-decoration: none; transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.07); }
.hero-stats {
  margin-top: 3.5rem; display: flex; gap: 2.5rem;
  animation: fadeUp 0.7s 0.4s ease both;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 900; color: var(--gold);
}
.stat-label { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin-top: 0.1rem; }

.hero-image {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  padding-top: 7rem;
  animation: fadeIn 0.9s 0.15s ease both;
}
.hero-image-frame { position: relative; width: 380px; }
.hero-photo {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: top center;
  border-radius: 12px 12px 0 0; display: block;
}
.hero-img-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(135deg, #2a7f8f 0%, #1a4a6e 60%, #0d2a4a 100%);
  border-radius: 12px 12px 0 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em; text-align: center; padding: 2rem;
}
.hero-card {
  position: absolute; bottom: 32px; left: -40px;
  background: white; border-radius: 10px; padding: 1rem 1.4rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-card-icon { font-size: 1.8rem; }
.hero-card-label { font-size: 0.75rem; color: var(--muted); }
.hero-card-value { font-weight: 700; font-size: 0.95rem; color: var(--navy); }

/* ── RIBBON ── */
.ribbon {
  background: var(--teal); color: var(--white);
  padding: 0.9rem 0; overflow: hidden; white-space: nowrap;
}
.ribbon-track {
  display: inline-flex; gap: 3rem;
  animation: scroll 22s linear infinite;
}
.ribbon-item {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.7rem;
}
.ribbon-item::before { content: '◆'; font-size: 0.55rem; color: var(--gold); }

/* ── ABOUT ── */
#about {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  padding: 7rem 8%;
  background: var(--white);
}
.about-img-wrap { position: relative; }
.about-img-bg {
  position: absolute; top: -20px; left: -20px;
  width: 100%; height: 100%;
  background: var(--teal); border-radius: 16px; opacity: 0.12;
}
.about-photo {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 1;
  object-fit: cover; object-position: top center;
  border-radius: 16px; display: block;
  border: 1px solid rgba(42,127,143,0.15);
}
.about-img-placeholder {
  position: relative; z-index: 1;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #e8f4f7, #d0e8ee);
  border-radius: 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid rgba(42,127,143,0.15);
}
.about-img-placeholder span:first-child { font-size: 4rem; }
.about-img-placeholder span:last-child { color: var(--muted); font-size: 0.85rem; }
.about-tag {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--navy); color: var(--gold);
  padding: 1rem 1.5rem; border-radius: 10px; z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
}
.about-tag span { display: block; font-family: 'DM Sans', sans-serif; font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 400; }

.section-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.15; color: var(--navy);
}
h2 em { font-style: italic; color: var(--teal); }
.about-body { margin-top: 1.2rem; color: var(--muted); line-height: 1.85; font-size: 1rem; }
.about-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.about-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.95rem; color: var(--text);
}
.about-item::before {
  content: '✓'; flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--gold); color: var(--navy);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; margin-top: 1px;
}

/* ── SERVICES ── */
#services { padding: 7rem 8%; background: var(--cream); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--white); border-radius: 14px; padding: 2.2rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.service-card.featured { background: var(--navy); }
.service-icon { font-size: 2.2rem; margin-bottom: 1.2rem; display: block; }
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.75rem;
}
.service-card.featured h3 { color: var(--gold); }
.service-card p { color: var(--muted); line-height: 1.7; font-size: 0.95rem; }
.service-card.featured p { color: rgba(255,255,255,0.65); }
.service-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 1.5rem; color: var(--teal);
  font-weight: 600; font-size: 0.875rem;
  text-decoration: none; transition: gap 0.2s;
}
.service-card.featured .service-link { color: var(--gold); }
.service-link:hover { gap: 0.6rem; }

/* ── PROCESS ── */
#process { padding: 7rem 8%; background: var(--navy); }
#process .section-label { color: var(--gold); }
#process h2 { color: var(--white); }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 4rem; position: relative;
}
.steps::before {
  content: ''; position: absolute;
  top: 28px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.step { text-align: center; padding: 0 1rem; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; position: relative; z-index: 1;
  border: 3px solid var(--navy);
}
.step:last-child .step-num { background: var(--gold); color: var(--navy); }
.step h4 { color: var(--white); font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem; }
.step p { color: rgba(255,255,255,0.5); font-size: 0.875rem; line-height: 1.6; }

/* ── TESTIMONIALS ── */
#testimonials { padding: 7rem 8%; background: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.testi-card {
  background: var(--cream); border-radius: 14px; padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06);
}
.stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 1rem; }
.testi-text { color: var(--text); line-height: 1.75; font-size: 0.95rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: 0.9rem;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.9rem; }
.author-role { font-size: 0.78rem; color: var(--muted); }

/* ── CONTACT ── */
#contact {
  padding: 7rem 8%;
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--muted); line-height: 1.75; margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border-radius: 10px; padding: 1.1rem 1.4rem;
  border: 1px solid rgba(0,0,0,0.06);
  text-decoration: none; color: var(--text);
  transition: box-shadow 0.2s;
}
.contact-method:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.contact-method-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.whatsapp-bg { background: #dcfce7; }
.insta-bg { background: #fce7f3; }
.contact-method strong { display: block; font-size: 0.9rem; }
.contact-method span { font-size: 0.8rem; color: var(--muted); }
.contact-form {
  background: var(--white); border-radius: 16px; padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--navy); margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.8rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.1); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--text);
  background: var(--cream); transition: border-color 0.2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%; padding: 1rem;
  background: var(--navy); color: var(--white);
  border: none; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s; margin-top: 0.5rem;
}
.form-submit:hover { background: var(--teal); }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  text-align: center; padding: 2.5rem 5%; font-size: 0.875rem;
}
footer strong { color: var(--gold); }

/* ── FLOATING WA ── */
.float-wa {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; text-decoration: none;
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
  animation: pulse 2.5s ease-in-out infinite;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 8px 48px rgba(37,211,102,0.65); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content { padding: 7rem 6% 5rem; }
  #about { grid-template-columns: 1fr; }
  .about-img-wrap { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  #contact { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}
