/*
Theme Name: Scholar & Scribe
Theme URI:
Author: Christiane Marshall
Description: Professional single-page theme for Scholar & Scribe — white papers and case studies for the education industry.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: scholar-scribe
*/

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

:root {
  --navy:      #0d1f3c;
  --navy-mid:  #1a3560;
  --gold:      #c9a84c;
  --gold-light:#e8c878;
  --white:     #ffffff;
  --off-white: #f8f6f1;
  --text-dark: #1a1a2e;
  --text-mid:  #4a4a6a;
  --text-light:#7a7a9a;
  --border:    #ddd8cc;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: var(--white); line-height: 1.7; }

/* ── Navigation ── */
nav#site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 1.3rem;
  color: var(--gold); letter-spacing: 0.02em; text-decoration: none;
}
.nav-logo span { color: var(--white); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* ── Hero ── */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1f4080 100%);
  color: var(--white); padding: 100px 2rem 90px; text-align: center;
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold); padding: 6px 18px; border-radius: 2px; margin-bottom: 28px;
}
#hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700;
  line-height: 1.2; margin-bottom: 24px; color: var(--white);
}
#hero h1 em { font-style: normal; color: var(--gold); }
#hero p.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,0.82);
  max-width: 620px; margin: 0 auto 40px; font-weight: 300; line-height: 1.8;
}

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 15px 38px; border-radius: 3px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.25s; cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.5); margin-left: 1rem;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Trust Bar ── */
#trust {
  background: var(--off-white);
  border-top: 3px solid var(--gold); border-bottom: 1px solid var(--border);
  padding: 28px 2rem;
}
.trust-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap; text-align: center;
}
.trust-item strong {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--navy);
}
.trust-item span { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mid); }
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ── */
section { padding: 90px 2rem; }
.section-inner { max-width: 1060px; margin: 0 auto; }
.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy); margin-bottom: 18px; line-height: 1.25;
}
.section-subtitle { font-size: 1.05rem; color: var(--text-mid); max-width: 640px; line-height: 1.8; }

/* ── Services ── */
#services { background: var(--white); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.service-card {
  border: 1px solid var(--border); border-top: 4px solid var(--gold);
  padding: 2.2rem 2rem; border-radius: 2px; background: var(--white);
  transition: box-shadow 0.25s, transform 0.25s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(13,31,60,0.1); transform: translateY(-3px); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--navy); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.97rem; color: var(--text-mid); line-height: 1.75; }
.service-card .service-detail {
  margin-top: 1.2rem; padding-top: 1.2rem;
  border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-light);
}

/* ── Why Us ── */
#why { background: var(--off-white); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 1rem; }
.why-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.why-point { display: flex; gap: 1rem; align-items: flex-start; }
.why-point-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  background: var(--navy); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem;
}
.why-point-text h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.why-point-text p { font-size: 0.93rem; color: var(--text-mid); line-height: 1.7; }
.why-callout { background: var(--navy); color: var(--white); padding: 3rem; border-radius: 3px; position: relative; }
.why-callout::before {
  content: '\201C'; font-family: 'Playfair Display', serif;
  font-size: 8rem; color: var(--gold); opacity: 0.2;
  position: absolute; top: -10px; left: 20px; line-height: 1;
}
.why-callout p {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  line-height: 1.6; color: rgba(255,255,255,0.92); position: relative;
}
.why-callout cite {
  display: block; margin-top: 1.2rem; font-size: 0.85rem;
  font-style: normal; color: var(--gold);
  font-family: 'Inter', sans-serif; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ── About ── */
#about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; margin-top: 2rem; }
.about-photo-wrap { position: relative; }
.about-photo-wrap img {
  width: 100%; border-radius: 3px;
  display: block; object-fit: cover;
}
.about-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 3px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.85rem; text-align: center; padding: 2rem; gap: 0.5rem;
}
.about-photo-accent {
  position: absolute; bottom: -16px; right: -16px;
  width: 60%; height: 60%; border: 3px solid var(--gold);
  border-radius: 3px; z-index: -1;
}
.about-text p { font-size: 1rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 1.2rem; }
.about-text p strong { color: var(--navy); }
.credentials { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.credential-tag {
  background: var(--off-white); border: 1px solid var(--border);
  color: var(--navy); font-size: 0.82rem; font-weight: 600;
  padding: 6px 14px; border-radius: 2px; letter-spacing: 0.04em;
}

/* ── Testimonials ── */
#testimonials { background: var(--navy); }
#testimonials .section-title { color: var(--white); }
#testimonials .section-label { color: var(--gold); }
#testimonials .section-subtitle { color: rgba(255,255,255,0.65); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem; margin-top: 3rem;
}
.testimonial-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--gold); padding: 2rem; border-radius: 2px; position: relative;
}
.testimonial-card::before {
  content: '\201C'; font-family: 'Playfair Display', serif;
  font-size: 4rem; color: var(--gold); opacity: 0.4;
  position: absolute; top: 10px; left: 18px; line-height: 1;
}
.testimonial-card p { font-size: 0.97rem; color: rgba(255,255,255,0.85); line-height: 1.75; margin-top: 1.5rem; }
.testimonial-card cite {
  display: block; margin-top: 1.2rem; font-size: 0.82rem;
  font-style: normal; color: var(--gold); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── Process ── */
#process { background: var(--off-white); }
.process-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0; margin-top: 3rem; position: relative;
}
.process-step { padding: 2rem 1.5rem; text-align: center; position: relative; }
.process-step:not(:last-child)::after {
  content: '→'; position: absolute; right: -12px; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); z-index: 1;
}
.step-number {
  width: 52px; height: 52px; background: var(--navy); color: var(--gold);
  font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.process-step h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; }

/* ── Contact ── */
#contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2.5rem; }
.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 1rem; }
.contact-info p { font-size: 0.97rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail { display: flex; align-items: center; gap: 1rem; }
.contact-detail-icon {
  width: 40px; height: 40px; background: var(--off-white);
  border: 1px solid var(--border); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-detail a, .contact-detail span { font-size: 0.97rem; color: var(--text-dark); text-decoration: none; }
.contact-detail a:hover { color: var(--gold); }
.contact-form {
  background: var(--off-white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); padding: 2.5rem; border-radius: 2px;
}
.contact-form h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 2px; font-family: 'Inter', sans-serif; font-size: 0.95rem;
  color: var(--text-dark); background: var(--white); outline: none; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--navy); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-submit { margin-top: 0.5rem; }
.form-submit .btn { width: 100%; text-align: center; display: block; }

/* ── Footer ── */
site-footer { background: var(--navy); color: rgba(255,255,255,0.55); text-align: center; padding: 2.5rem 2rem; font-size: 0.85rem; }
#site-footer strong { color: var(--gold); }
#site-footer p + p { margin-top: 0.4rem; }
#site-footer a { color: inherit; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-step:not(:last-child)::after { display: none; }
  .nav-links { display: none; }
  .btn-outline { margin-left: 0; margin-top: 1rem; display: block; }
  .trust-divider { display: none; }
}
