/* ===== Arivu Foundation – static rebuild ===== */
:root {
  --yellow: #ffd703;
  --gold-dark: #8a7401;
  --gold: #ad9202;
  --ink: #1b1b1b;
  --text: #5e5e5e;
  --field: #f1f1f1;
  --line: rgba(0, 0, 0, 0.18);
  --wa: #455a64;
  --head-font: "Fjalla One", Arial, sans-serif;
  --body-font: "Source Sans Pro", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section > .container,
.section > .container.grid-2 { max-width: 1160px; }

.center { text-align: center; }

/* ===== Top bar ===== */
.topbar {
  background: var(--yellow);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar a {
  color: #000;
  font-size: 18px;
  line-height: 1;
}
.topbar a:hover { text-decoration: none; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  transition: box-shadow 0.25s ease;
}
.header-inner {
  position: relative;
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.logo {
  position: absolute;
  left: 24px;
  top: 26px;
  z-index: 2;
  transition: all 0.25s ease;
}
.logo img {
  width: 179px;
  height: 176px;
  object-fit: contain;
  transition: all 0.25s ease;
}
.header.scrolled { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.header.scrolled .logo { top: 5px; }
.header.scrolled .logo img { width: 68px; height: 67px; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 18px;
  line-height: 1.5;
  color: var(--gold-dark);
  padding-bottom: 4px;
  border-bottom: 1.6px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--ink); }
.nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--gold-dark);
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 90;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 320px;
  max-width: 85vw;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  padding: 72px 24px 24px;
}
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li { border-bottom: 1px solid var(--line); }
.drawer a {
  display: block;
  padding: 16px 0;
  font-size: 20px;
  color: var(--gold-dark);
}
.drawer a.active { color: var(--ink); }
.drawer-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 36px;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--yellow);
  color: #161514;
  font-family: var(--body-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 40px;
  padding: 8px 32px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
}
.btn:hover { background: #e9c400; text-decoration: none; }
.btn-sm {
  font-size: 14px;
  line-height: 24px;
  padding: 6px 16px;
}
.btn.full { display: block; width: 100%; }

/* ===== Hero ===== */
.hero { padding-bottom: 56px; }
.hero-image {
  height: 500px;
  background: #222 url("https://img1.wsimg.com/isteam/ip/7ef46350-7aa8-4fe9-90d3-3f8b65b17cf0/6391c174-0c1c-4125-8a0c-01b681db02d2.jpg/:/rs=w:2046,m") center / cover no-repeat;
}
.hero-text {
  max-width: 1090px;
  margin: 56px auto 0;
  text-align: center;
}
.hero-text h1 {
  font-family: var(--head-font);
  font-weight: 400;
  font-size: 48px;
  line-height: 60px;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin: 0 0 24px;
}
.hero-text p {
  max-width: 750px;
  margin: 0 auto 28px;
  color: var(--text);
  line-height: 32.4px;
}

/* ===== Sections ===== */
.section { padding: 32px 0 56px; }
.section.tight { padding: 32px 0 32px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 32px;
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 25.2px;
  color: var(--ink);
  text-align: center;
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.heading {
  font-family: var(--head-font);
  font-weight: 400;
  font-size: 36px;
  line-height: 45px;
  color: var(--gold);
  text-transform: uppercase;
  margin: 24px 0 24px;
}

.text p,
.teacher-info p,
.contact-info p,
.muted {
  color: var(--text);
  line-height: 32.4px;
}
.muted { margin-bottom: 24px; }
.dark { color: var(--ink); line-height: 32.4px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.align-center { align-items: center; }

/* Videos */
.video {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ratio-2-1 { aspect-ratio: 2 / 1; }
.ratio-teacher { aspect-ratio: 532 / 274; }

/* About */
.circle {
  width: 100%;
  max-width: 339px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}
.toggle {
  margin-top: 16px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 18px;
  color: var(--gold-dark);
  padding: 0;
}
.toggle .sign { display: inline-block; width: 14px; }
.toggle:hover .label { text-decoration: underline; }

/* Trusted */
.trusted { padding: 56px 0; }
.quote-mark {
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 0.8;
  color: #c4c4c4;
  height: 40px;
}
.heading.big { margin: 16px 0; }
.short-rule {
  width: 40px;
  border: 0;
  border-top: 1px solid #bdbdbd;
  margin: 24px auto;
}
.short-rule.light { border-top-color: #e3e3e3; margin-top: 16px; }
.trusted-img { width: 100%; }

/* Social */
.social { display: inline-block; }
.social:hover { opacity: 0.85; }

/* Files */
.file-card {
  display: inline-block;
  min-width: 334px;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  padding: 24px 32px 28px;
}
.file-name { color: var(--ink); margin-bottom: 12px; }

/* Mailing */
.mailing {
  display: flex;
  align-items: center;
  gap: 24px;
}
.mailing .heading { margin: 0; white-space: nowrap; }
.mailing input { flex: 1; }

input, textarea {
  width: 100%;
  background: var(--field);
  border: 0;
  border-bottom: 0.8px solid rgba(0, 0, 0, 0.09);
  border-radius: 0;
  padding: 0 16px;
  height: 56px;
  font-family: var(--body-font);
  font-size: 18px;
  color: var(--ink);
  outline: none;
}
input::placeholder, textarea::placeholder { color: #595959; }
input:focus, textarea:focus { border-bottom-color: var(--gold); }
textarea { height: 223px; padding: 16px; resize: vertical; }
input.invalid { border-bottom: 2px solid #d32f2f; }

.form-msg {
  margin-top: 16px;
  text-align: center;
  color: var(--ink);
}

/* Teachers */
.teacher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.teacher:last-child { margin-bottom: 0; }
.teacher.reverse .video { order: 2; }
.teacher-info { text-align: center; }
.teacher-info .heading { margin-top: 0; }

/* Contact */
.contact-form {
  max-width: 725px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.contact-form .btn { margin-top: 8px; }
.seo { max-width: 760px; margin: 56px auto 32px; }

.whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 286px;
  height: 56px;
  padding: 0 24px;
  background: var(--wa);
  color: #fff;
  border-radius: 4px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.whatsapp:hover { background: #37474f; text-decoration: none; }
.whatsapp.full { display: flex; width: 100%; min-width: 0; margin-bottom: 12px; }

.contact-info {
  max-width: 760px;
  margin: 56px auto 0;
}
.contact-info .heading { margin-top: 0; }
.contact-info .link-line { margin-top: 24px; }

/* Footer */
.footer { padding: 56px 0 40px; }
.footer p { color: var(--text); font-size: 16px; }

/* Chat */
.chat-fab {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: var(--yellow);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 80;
  transition: transform 0.2s;
}
.chat-fab:hover { transform: scale(1.05); }
.chat-panel {
  position: fixed;
  right: 40px;
  bottom: 120px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 80;
}
.chat-panel[hidden] { display: none; }
.chat-panel p { color: var(--text); font-size: 16px; line-height: 1.5; margin-bottom: 16px; }
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: var(--ink);
}
.chat-close {
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav ul { gap: 20px; }
  .nav a { font-size: 16px; }
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .logo { top: 10px; }
  .logo img { width: 110px; height: 108px; }
  .header.scrolled .logo img { width: 60px; height: 59px; }
  .hero-image { height: 380px; }
  .grid-3 { gap: 32px; }
  .heading { font-size: 30px; line-height: 38px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .topbar a { font-size: 16px; }
  .header-inner { height: 64px; }
  .logo { left: 16px; top: 6px; }
  .logo img { width: 80px; height: 79px; }
  .header.scrolled .logo { top: 4px; }
  .header.scrolled .logo img { width: 56px; height: 55px; }
  .container { padding: 0 16px; }
  .hero-image { height: 240px; margin-top: 24px; }
  .hero-text { margin-top: 32px; }
  .hero-text h1 { font-size: 32px; line-height: 40px; }
  .grid-2, .grid-3, .teacher { grid-template-columns: 1fr; gap: 32px; }
  .teacher.reverse .video { order: 0; }
  .heading { font-size: 26px; line-height: 33px; }
  .mailing { flex-direction: column; align-items: stretch; text-align: center; gap: 16px; }
  .mailing .heading { white-space: normal; }
  .file-card { min-width: 0; width: 100%; }
  .whatsapp { min-width: 0; width: 100%; }
  .chat-fab { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .chat-panel { right: 16px; bottom: 84px; }
}
