/* ============================================
   Right Hand Academic — Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* --- Tokens --- */
:root {
  --cream:       #F5F0E6;
  --cream-card:  #EDE5D4;
  --cream-dark:  #E0D5C0;
  --text:        #2B2016;
  --text-light:  #6B5740;
  --gold:        #8A6910;
  --gold-light:  #B8960E;
  --border:      #C9B89A;
  --white:       #FDFAF4;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

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

/* --- Nav --- */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

/* --- Page header --- */
.page-header {
  padding: 3.5rem 2rem 2rem;
  max-width: 860px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-header::after {
  content: '';
  display: block;
  margin-top: 1.5rem;
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-top: 3px;
  width: 60px;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.page-header p {
  color: var(--text-light);
  font-style: italic;
  font-size: 1.05rem;
}

/* --- Main container --- */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* --- Content box --- */
.box {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
}

.box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.box p { margin-bottom: 0.85rem; }
.box p:last-child { margin-bottom: 0; }

.box ul {
  padding-left: 1.4rem;
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
}

.box ul li { margin-bottom: 0.4rem; }

/* --- About page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
}

.about-image {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.about-image img { width: 100%; height: auto; display: block; }

.image-placeholder {
  background: var(--cream-dark);
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* --- Contact button --- */
.contact-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.75rem;
  background: var(--gold);
  color: var(--white) !important;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  border-radius: 2px;
  text-decoration: none !important;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.contact-btn:hover { background: var(--gold-light); }

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 620px) {
  .about-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1.25rem; }
  .page-header h1 { font-size: 1.75rem; }
}

/* --- Services grid (3 columns inside a box) --- */
.services-intro {
  margin-bottom: 1.25rem;
  font-style: italic;
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.service-col dl { font-size: 0.97rem; }

.service-col dt {
  font-weight: 500;
  margin-top: 0.6rem;
  color: var(--text);
}

.service-col dd {
  margin-left: 0;
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* --- Testimonials --- */
.testimonial {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.testimonial:last-child { margin-bottom: 0; }

.testimonial blockquote {
  font-style: italic;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.testimonial cite {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: normal;
}

.testimonial .service-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* --- Footer icons --- */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* --- Rates page layout --- */
.rates-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.rates-sidebar .box {
  position: sticky;
  top: 1.5rem;
}

.rates-sidebar h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.student-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--cream-dark);
  border-left: 3px solid var(--gold);
  font-size: 0.93rem;
  color: var(--text);
}

.rates-list { display: flex; flex-direction: column; gap: 1.25rem; }

/* Service rate box details */
.rate-item {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.rate-item .rate-label {
  font-weight: 500;
  font-size: 0.97rem;
}

.rate-item .rate-price {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 0.97rem;
  white-space: nowrap;
}

.rate-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.2rem;
  font-style: italic;
}

.box .service-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

@media (max-width: 700px) {
  .rates-layout { grid-template-columns: 1fr; }
  .rates-sidebar .box { position: static; }
}

/* --- About page: float layout with caption --- */
.about-float {
  overflow: hidden; /* clearfix */
}

.about-float figure {
  float: left;
  width: 240px;
  margin: 0 2rem 1rem 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.about-float figure img {
  width: 100%;
  height: auto;
  display: block;
}

.about-float figcaption {
  background: var(--cream-dark);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.4;
}

.about-float p {
  margin-bottom: 1rem;
}

.about-float p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .about-float figure {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
}
