/* ============================================
   Currier Tutoring — Stylesheet
   Brand: deep red #b71301, near-black header #333,
   PT Serif for headings, system sans for body.
   ============================================ */

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-red: #b71301;
    --brand-red-dark: #8f0f01;
    --ink: #333333;
    --ink-soft: #5a5a5a;
    --cream: #fdfaf5;
    --paper: #ffffff;
    --page-bg: #f5f5f5;
    --border: #e4dfd6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Global Styles */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: var(--page-bg);
    color: var(--ink);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pt-serif-regular {
    font-family: "PT Serif", serif;
    font-weight: 400;
    font-style: normal;
}

h1, h2, h3, h4 {
    font-family: "PT Serif", serif;
}

a {
    color: inherit;
}

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

/* Header Styles */
header {
    background-color: var(--ink);
    color: #fff;
    padding: 18px 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

header h1 {
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 20px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
    border-bottom-color: var(--brand-red);
    color: #fff;
}

/* Hero Styles */
/* Placeholder treatment until a real photo is added — swap the
   background below for: background: url('Photos/your-photo.jpg') left center/cover no-repeat; */
.hero {
    color: #fff;
    text-align: center;
    position: relative;
    height: 38vh;
    min-height: 280px;
    background-image: linear-gradient(135deg, var(--brand-red), #d94a34);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 5%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff);
}

.hero-label {
    position: relative;
    z-index: 2;
    font-family: "PT Serif", serif;
    font-style: italic;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--brand-red);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--brand-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(183, 19, 1, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--ink);
}

/* Brand Section */
.brand {
    padding-top: 100px;
    padding-bottom: 30px;
    background-color: var(--paper);
    display: block;
    width: 100%;
    color: var(--brand-red);
    font-family: "PT Serif", serif;
    text-align: center;
    border-bottom: 5px solid var(--brand-red);
}

.brand h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink-soft);
    font-family: Arial, sans-serif;
}

.brandlogo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Text-based logo (no image asset yet) */
.site-logo {
    font-family: "PT Serif", serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--brand-red);
    margin-bottom: 6px;
}

.site-logo span {
    color: var(--ink);
}

/* Placeholder for the logo graphic until a real logo file is added */
.placeholder-logo {
    width: 440px;
    max-width: 85%;
    aspect-ratio: 2 / 1;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--brand-red), #d94a34);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: "PT Serif", serif;
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
    padding: 10px;
}

/* Page header banner (used on interior pages instead of the full hero) */
.page-banner {
    margin-top: 0;
    padding: 130px 0 40px;
    background-color: var(--paper);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-banner h1 {
    font-size: 2.4rem;
    color: var(--ink);
    margin-bottom: 10px;
}

.page-banner p {
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Rate highlight badge shown below the page banner on service pages */
.rate-highlight {
    max-width: 480px;
    margin: 20px auto 0;
    padding: 14px 22px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-red);
    border-radius: 4px;
    text-align: center;
}

.rate-highlight .rate-amount {
    font-family: "PT Serif", serif;
    font-weight: 700;
    color: var(--brand-red);
    font-size: 1.15rem;
}

.rate-highlight a {
    color: var(--brand-red);
    font-weight: bold;
    text-decoration: underline;
}

/* Services Section */
.services {
    padding: 70px 0;
}

.services h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 auto 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service {
    margin-bottom: 0;
    background: var(--paper);
    padding: 32px 26px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--brand-red);
    transition: transform 0.2s ease;
}

.service:hover {
    transform: translateY(-4px);
}

.service h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--ink);
}

.service p {
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.service a.learn-more {
    color: var(--brand-red);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.92rem;
}

.service a.learn-more:hover {
    text-decoration: underline;
}

/* About Section */
.about {
    padding: 70px 0;
    background-color: var(--cream);
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    text-align: center;
}

.about-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: var(--ink-soft);
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat .stat-num {
    font-family: "PT Serif", serif;
    font-size: 2.2rem;
    color: var(--brand-red);
    font-weight: 700;
}

.stat .stat-label {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
    background-color: #f8f9fa;
    padding: 70px 0;
}

.testimonial-slider-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.swiper {
    width: 100%;
    height: 260px;
    display: block;
}

.testimonial-heading {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.swiper-slide {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 3.5rem;
    height: 100%;
    background: var(--paper);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.quote {
    font-style: italic;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    max-width: 600px;
    text-align: center;
}

.author {
    align-self: center;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--brand-red);
    font-weight: bold;
    text-align: center;
}

.swiper-button-next,
.swiper-button-prev {
    --swiper-navigation-color: var(--brand-red) !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 22px;
}

.swiper-pagination-bullet-active {
    background: var(--brand-red) !important;
}

/* Contact / CTA band */
.contact {
    padding: 70px 0;
    text-align: center;
}

.contact h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.contact p {
    color: var(--ink-soft);
    max-width: 500px;
    margin: 0 auto 26px;
}

/* Footer Styles */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer .footer-links {
    margin-bottom: 12px;
}

footer .footer-links a {
    color: #cfcfcf;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

footer .footer-links a:hover {
    color: #fff;
}

footer p {
    color: #9a9a9a;
    font-size: 0.85rem;
}

/* Compact logo + wordmark shown in the footer of interior pages,
   for brand continuity now that the full logo only appears at the
   top of the landing page. */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-logo-placeholder {
    width: 64px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--brand-red), #d94a34);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: "PT Serif", serif;
    font-style: italic;
    font-size: 0.6rem;
    text-align: center;
    padding: 4px;
}

.footer-wordmark {
    font-family: "PT Serif", serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}

.footer-wordmark span {
    color: #e58a7a;
}

/* ============================================
   Rates page
   ============================================ */
.rates-container {
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4%;
    margin-top: 30px;
    background-color: var(--paper);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 40px;
}

.rates-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background-color: #fafafa;
}

.rates-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.rates-section-header h2 {
    margin: 0;
}

.rates-price,
.rates-price-contact {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--brand-red);
}

.rates-price-contact {
    font-style: italic;
    font-size: 1rem;
}

.rates-section-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.rates-section-content-description {
    padding-top: 15px;
}

.rates-section-content img,
.placeholder-img {
    width: 30%;
    flex-shrink: 0;
    height: auto;
    border-radius: 5px;
}

.rates-section-content p {
    width: 70%;
    margin: 0;
}

/* Placeholder image block — stand-in until real photos are added */
.placeholder-img {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--brand-red), #d94a34);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    font-family: "PT Serif", serif;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
}

/* Once main.js swaps in a real photo (via images-config.js), the
   placeholder background/padding gets replaced by the image itself. */
.placeholder-img.has-image,
.placeholder-logo.has-image,
.footer-logo-placeholder.has-image {
    background: none;
    padding: 0;
    overflow: hidden;
}

.placeholder-img.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-logo.has-image img,
.footer-logo-placeholder.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ============================================
   Interior support pages (School Support / SAT Prep)
   ============================================ */
.page-section {
    padding: 60px 0;
}

.page-section.alt {
    background-color: var(--cream);
}

.page-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.two-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.two-col .placeholder-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: 8px;
}

.checklist {
    list-style: none;
    margin-top: 18px;
}

.checklist li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    color: var(--ink-soft);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-red);
    font-weight: bold;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.subject-tags.subject-tags-row2 {
    margin-top: 10px;
}

.subject-tags span {
    background: var(--paper);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--ink);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.process-step {
    text-align: center;
    padding: 24px 16px;
    background: var(--paper);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.process-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-red);
    color: #fff;
    font-weight: bold;
    margin-bottom: 12px;
    font-family: "PT Serif", serif;
}

.process-step h4 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.score-band {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
    text-align: center;
}

.score-band .score-num {
    font-family: "PT Serif", serif;
    font-size: 2.4rem;
    color: var(--brand-red);
    font-weight: 700;
}

.score-band .score-label {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.cta-band {
    background-color: var(--ink);
    color: #fff;
    text-align: center;
    padding: 50px 0;
}

.cta-band h2 {
    margin-bottom: 12px;
}

.cta-band p {
    color: #cfcfcf;
    margin-bottom: 24px;
}

/* ============================================
   Contact page
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    padding: 50px 0 80px;
    align-items: start;
}

.contact-layout.single {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-card {
    background: var(--paper);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.contact-form-card h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.contact-form-card .sub {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--cream);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--brand-red);
    outline-offset: 1px;
    background: #fff;
}

.form-confirm {
    display: none;
    background: #eefaf0;
    border: 1px solid #b8e6c1;
    color: #1e6b2e;
    padding: 14px 16px;
    border-radius: 5px;
    margin-top: 16px;
    font-size: 0.9rem;
}

.form-confirm.show {
    display: block;
}

.form-confirm.error {
    background: #fdecea;
    border-color: #f3b6b0;
    color: #8a1f11;
}

@media (max-width: 600px) {
    .contact-form-card {
        padding: 16px;
    }
}

.contact-details {
    padding: 0 0 40px;
    text-align: center;
    color: var(--ink-soft);
}

.contact-details strong {
    color: var(--ink);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    nav ul {
        gap: 4px 10px;
    }
    nav ul li a {
        font-size: 0.8rem;
    }
    /* Hide the "•" separator items (they sit at even positions between
       each link) so the nav wraps to fewer, shorter lines on narrow phones. */
    nav ul li:nth-child(even) {
        display: none;
    }
    .brand {
        padding-top: 130px;
    }
    .page-banner {
        padding-top: 150px;
    }
    .page-banner h1 {
        font-size: 1.65rem;
        line-height: 1.3;
        padding: 0 10px;
    }
    .page-banner p {
        font-size: 0.95rem;
    }
    .hero-label {
        padding: 0 20px;
    }
    .swiper {
        height: 320px;
    }
    .swiper-slide {
        padding: 1.4rem 1.8rem;
    }
    .contact-form-card {
        padding: 22px;
    }
    .process-steps {
        grid-template-columns: 1fr;
    }
    .rates-section-content {
        flex-direction: column;
    }
    .rates-section-content img,
    .rates-section-content .placeholder-img {
        width: 100%;
    }
    .rates-section-content p {
        width: 100%;
    }
}
