/* ===== Frontier Tutors — shared styles ===== */

:root {
  --navy: #14213D;
  --navy-light: #1e2f57;
  --gold: #C9A227;
  --gold-light: #ddc16a;
  --cream: #FAF7F0;
  --charcoal: #2B2B2B;
  --white: #FFFFFF;
  --max-width: 1140px;
  --radius: 6px;
  --shadow: 0 4px 18px rgba(20, 33, 61, 0.08);
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.section-intro {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-intro p { color: #555; font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7em;
}

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

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline-light:hover { background: rgba(250, 247, 240, 0.12); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--cream); }

.btn-block { width: 100%; text-align: center; }

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

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 46px; width: 46px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-head);
  color: var(--cream);
  font-size: 1.28rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { background: rgba(250, 247, 240, 0.1); }

.nav-links a.active { color: var(--gold); }

.nav-links .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--cream);
  padding: 96px 0 88px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: var(--white); }

.hero p.lead {
  font-size: 1.15rem;
  color: #d8dcea;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-badge-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-badge-list li {
  font-size: 0.85rem;
  color: #cfd4e6;
  padding-left: 22px;
  position: relative;
}

.hero-badge-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 340px;
}

/* Page header (non-home pages) */

.page-header {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--cream);
  padding: 64px 0;
  text-align: center;
}

.page-header h1 { color: var(--white); margin-bottom: 0.3em; }
.page-header p { color: #d8dcea; max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ===== Cards / Grids ===== */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.card h3 { margin-bottom: 0.5em; }
.card p { color: #555; margin-bottom: 0; font-size: 0.97rem; }

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0 4px;
}

/* ===== Why Choose Us ===== */

.why-us { background: var(--white); }

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-mark {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--gold);
  color: var(--navy);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.why-list h4 { margin: 0 0 4px; font-size: 1.05rem; }
.why-list p { margin: 0; color: #555; font-size: 0.95rem; }

/* ===== CTA band ===== */

.cta-band {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: #d8dcea; max-width: 560px; margin: 0 auto 28px; }

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

.grade-band {
  margin-bottom: 56px;
}

.grade-band:last-child { margin-bottom: 0; }

.grade-band-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 12px;
}

.grade-band-head h2 { margin: 0; }
.grade-band-head span { color: #777; font-size: 0.95rem; }

.subject-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.subject-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.subject-item h4 {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
}

.subject-item p { margin: 0; color: #555; font-size: 0.92rem; }

.format-note {
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 40px 0;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
}

.pricing-note {
  text-align: center;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 40px 30px;
  margin-top: 56px;
}

.pricing-note h3 { color: var(--white); }
.pricing-note p { color: #d8dcea; margin-bottom: 22px; }

/* ===== Legal pages ===== */

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  margin-top: 2em;
  font-size: 1.4rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content ul {
  padding-left: 22px;
  margin: 0 0 1em;
}

.legal-content li { margin-bottom: 0.4em; }

.form-consent {
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  margin: 14px 0 0;
}

.form-consent a { color: var(--navy); text-decoration: underline; }

/* ===== About page ===== */

.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.mission-visual {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: flex;
  justify-content: center;
}

.mission-visual img { max-width: 220px; }

.tutors { background: var(--white); }

.tutor-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.tutor-body { padding: 30px 30px 32px; }

.tutor-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.tag {
  background: rgba(201, 162, 39, 0.15);
  color: #8a6c14;
  border: 1px solid rgba(201, 162, 39, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tutor-credentials {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 10px;
}

.tutor-bio { color: #555; font-size: 0.95rem; }

.more-tutors-note {
  text-align: center;
  color: #666;
  font-style: italic;
  margin-top: 32px;
}

/* ===== Contact page ===== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dcd6c6;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.97rem;
  background: var(--cream);
  color: var(--charcoal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

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

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}

fieldset legend {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 8px;
  padding: 0;
}

.radio-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.radio-row input { width: auto; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(198, 40, 40, 0.08);
  color: #c62828;
  border: 1px solid rgba(198, 40, 40, 0.3);
}

.contact-info-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 32px;
}

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

.info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.info-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.info-row h4 { margin: 0 0 2px; color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.info-row p, .info-row a { margin: 0; color: #e6e9f2; font-size: 0.97rem; }
.info-row a:hover { color: var(--gold); }

.service-area-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 247, 240, 0.2);
  font-size: 0.88rem;
  color: #b9c0d6;
}

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

.site-footer {
  background: var(--navy);
  color: #cfd4e6;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.footer-brand img { height: 40px; width: 40px; }

.footer-brand-name {
  font-family: var(--font-head);
  color: var(--cream);
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-tagline { font-size: 0.9rem; color: #a9b0c9; max-width: 320px; }

.footer-col h4 {
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 240, 0.15);
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: #8a91ab;
}

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

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 240px; margin: 0 auto; }
  .mission { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: 1fr; }
  .subject-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; }

  section { padding: 52px 0; }
  .hero { padding: 64px 0; }

  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}
