/* ==========================================================================
   Norfolk Maths Tutor — stylesheet
   Colour scheme and layout matched to norfolksupplyteacher.com
   ========================================================================== */

:root {
  --navy: #1e394b;
  --navy-dark: #142530;
  --teal: #2e8b7e;
  --teal-light: #8fd8cb;
  --amber: #c9a227;
  --card-bg: #eaf2f1;
  --text: #2a2a2a;
  --muted: #999999;
  --border-radius: 8px;
  --max: 900px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal);
}

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

/* ---------- Header / hero ---------- */

header.hero {
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 64px 24px 48px;
  text-align: center;
}

.photo-wrap {
  width: 160px;
  height: 160px;
  border: 4px solid var(--teal);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

header.hero h1 {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 10px;
}

header.hero .subtitle {
  color: var(--teal-light);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.badges span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6.4px 14.4px;
  font-size: 0.85rem;
}

/* ---------- Sections ---------- */

main section {
  margin-bottom: 48px;
}

main section:last-of-type {
  margin-bottom: 0;
}

h2 {
  display: inline-block;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 19px;
  padding: 0 0 5px;
  border-bottom: 3px solid var(--teal);
}

h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.card {
  background: var(--card-bg);
  border-left: 4px solid var(--teal);
  border-radius: var(--border-radius);
  padding: 19px 22px;
}

.card.amber {
  border-left-color: var(--amber);
}

.card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin: 0 0 8px;
}

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

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- Pricing table ---------- */

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid #e2e8e7;
}

table.pricing {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}

table.pricing th, table.pricing td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8e7;
  font-size: 0.95rem;
}

table.pricing th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

table.pricing tr:last-child td {
  border-bottom: none;
}

table.pricing td.rate {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.pricing-note {
  margin-top: 16px;
}

.pricing-foot {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #5b6b6e;
}

/* ---------- Dark box (safeguarding) ---------- */

.dark-box {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--border-radius);
  padding: 25.6px;
}

.dark-box p {
  margin: 0;
  color: #eef3f2;
}

.dark-box p + p {
  margin-top: 12px;
}

/* ---------- Testimonials ---------- */

.quote-card {
  background: var(--card-bg);
  border-left: 4px solid var(--teal);
  border-radius: var(--border-radius);
  padding: 20px 22px;
}

.quote-card blockquote {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
}

.quote-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 700;
}

.quote-card cite span {
  display: block;
  font-weight: 400;
  color: #5b6b6e;
  margin-top: 2px;
}

.testimonial-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: #5b6b6e;
}

/* ---------- FAQ (plain) ---------- */

.faq-item {
  margin-bottom: 20px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  font-size: 1rem;
  color: var(--navy);
}

.faq-item p {
  margin: 0;
  color: var(--text);
}

/* ---------- Contact box ---------- */

.contact-box {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 22.4px;
  text-align: center;
}

.contact-box a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Footer ---------- */

footer {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 32px 24px;
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  header.hero {
    padding: 48px 20px 36px;
  }
  header.hero h1 {
    font-size: 1.8rem;
  }
  .wrap {
    padding: 36px 20px;
  }
  main section {
    margin-bottom: 36px;
  }
}
