/* The Tutor Vault - site theme
   Cream and navy palette with gold accents, serif headings, clean sans-serif body text. */

:root {
    --cream: #f6f1e8;
    --paper: #fbf8f2;
    --white: #ffffff;
    --ink: #0f1b2d;
    --ink-soft: #2a3648;
    --gold: #b28b4f;
    --gold-deep: #8f6d37;
    --gold-soft: #e7d6b4;
    --blue: #1d3b6b;
    --muted: #5f6878;
    --line: rgba(15, 27, 45, 0.12);
    --danger: #9b2c2c;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --max: 1180px;
    --shadow: 0 30px 60px -30px rgba(15, 27, 45, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 400 16px/1.7 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.6rem);
}

h2 {
    font-size: clamp(2rem, 3.6vw, 3rem);
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin: 0 0 1em;
    color: var(--muted);
}

em {
    font-style: italic;
    color: var(--gold);
}

figure {
    margin: 0;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

section {
    padding: 112px 0;
}

.section-alt {
    background: var(--paper);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.section-head {
    max-width: 680px;
    margin-bottom: 64px;
}

.section-head p {
    font-size: 1.05rem;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head.center .eyebrow {
    justify-content: center;
}

.lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font: 600 0.78rem/1 var(--sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--gold-deep);
}

.btn-ink {
    background: var(--ink);
    color: var(--white);
}

.btn-ink:hover {
    background: var(--ink-soft);
}

.btn-ghost {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-light {
    border-color: var(--cream);
    color: var(--cream);
    background: transparent;
}

.btn-light:hover {
    background: var(--cream);
    color: var(--ink);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-nav {
    padding: 12px 20px;
    font-size: 0.72rem;
}

/* ---------- Header and navigation ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 241, 232, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border: 1px solid var(--blue);
    background: var(--blue);
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--gold-soft);
}

.brand-name {
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1.1;
    color: var(--ink);
}

.brand-sub {
    display: block;
    margin-top: 6px;
    font: 600 0.58rem/1 var(--sans);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--ink-soft);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 104px;
}

.hero::after {
    content: '';
    position: absolute;
    right: -220px;
    top: -240px;
    width: 640px;
    height: 640px;
    border: 1px solid var(--gold-soft);
    border-radius: 50%;
    opacity: 0.55;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: center;
}

.hero-lead {
    max-width: 560px;
    margin-bottom: 40px;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    font-size: 0.88rem;
}

.hero-note i {
    color: var(--gold);
}

.profile-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 44px;
    box-shadow: var(--shadow);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 44px;
    right: 44px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.profile-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.profile-name {
    margin: 12px 0 4px;
    font-size: 2rem;
}

.profile-role {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.profile-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.profile-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.profile-list li:last-child {
    border-bottom: 0;
}

.profile-list i {
    width: 18px;
    margin-top: 4px;
    color: var(--gold);
}

/* ---------- Stats strip ---------- */

.stats {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 44px 24px;
    border-left: 1px solid var(--line);
}

.stat:first-child {
    border-left: 0;
}

.stat-num {
    font-family: var(--serif);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--ink);
}

.stat-label {
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--muted);
}

/* ---------- Cards and grids ---------- */

.grid-2,
.grid-3 {
    display: grid;
    gap: 28px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card,
.pack {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 44px 36px;
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.card:hover,
.pack:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -30px rgba(15, 27, 45, 0.35);
    border-color: var(--gold-soft);
}

.card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border: 1px solid var(--gold-soft);
    color: var(--gold);
    font-size: 1.1rem;
}

.card-level,
.tag {
    display: block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.card ul,
.subject-row ul {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.card li,
.subject-row li {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.card li i,
.subject-row li i {
    margin-right: 12px;
    font-size: 0.8rem;
    color: var(--gold);
}

.card-link {
    margin-top: auto;
    padding-top: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
}

.card-link i {
    margin-left: 6px;
    color: var(--gold);
}

/* ---------- Process steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step {
    padding-top: 28px;
    border-top: 1px solid var(--gold);
}

.step-num {
    display: block;
    margin-bottom: 20px;
    font-family: var(--serif);
    font-size: 3.2rem;
    line-height: 1;
    color: var(--gold);
}

/* ---------- Stories and quotes ---------- */

.story {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 48px 40px;
}

.story blockquote {
    margin: 0 0 28px;
    font-family: var(--serif);
    font-size: 1.12rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--ink-soft);
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}

.story-meta strong {
    color: var(--ink);
}

.result {
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Pricing ---------- */

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--line);
}

.price-table th,
.price-table td {
    padding: 22px 28px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.price-table th {
    background: var(--paper);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.price-table td {
    color: var(--ink-soft);
}

.price-table tr:last-child td {
    border-bottom: 0;
}

.price-table .amount {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
}

.note-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.note-list li {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.note-list i {
    margin-top: 5px;
    color: var(--gold);
}

/* ---------- Page header ---------- */

.page-hero {
    padding: 88px 0 80px;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(2.4rem, 4.6vw, 3.8rem);
}

.page-hero p {
    max-width: 620px;
    font-size: 1.12rem;
    color: var(--ink-soft);
}

/* ---------- Subject rows (courses page) ---------- */

.subject-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
}

.subject-row:first-child {
    padding-top: 0;
}

.subject-row h3 {
    font-size: 1.9rem;
}

/* ---------- Study packs ---------- */

.pack-desc {
    margin-bottom: 28px;
}

.pack-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: auto 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.pack-price strong {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--ink);
}

.pack-price s {
    font-size: 0.95rem;
    color: var(--muted);
}

.pack .btn {
    align-self: flex-start;
}

/* ---------- Split layouts ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
    font-family: var(--serif);
    font-size: 5.5rem;
    letter-spacing: 0.06em;
    color: var(--gold);
}

.portrait::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(231, 214, 180, 0.45);
}

.portrait-caption {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--muted);
}

.values-list {
    display: grid;
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid var(--line);
}

.values-list div {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.values-list h4 {
    margin-bottom: 6px;
}

/* ---------- Forms ---------- */

.form-wrap {
    max-width: 860px;
}

.promise-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.promise {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.promise i {
    margin-top: 4px;
    color: var(--gold);
}

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 56px;
    box-shadow: var(--shadow);
}

.form-card h3 {
    margin-bottom: 8px;
}

.form-section-title {
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.form-section-title:first-of-type {
    margin-top: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.field label {
    display: flex;
    align-items: flex-end;
    min-height: 2.8em;
    line-height: 1.4;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    font: 400 1rem var(--sans);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field select {
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230f1b2d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(178, 139, 79, 0.18);
}

.consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--muted);
}

.consent input {
    margin-top: 5px;
    accent-color: var(--gold);
}

.form-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}

.form-foot small {
    color: var(--muted);
}

.form-status {
    display: none;
    padding: 14px 18px;
    background: var(--paper);
    border-left: 3px solid var(--gold);
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.form-status.show {
    display: block;
}

.form-status.error {
    border-color: var(--danger);
}

.pack-note {
    margin-bottom: 24px;
    padding: 14px 18px;
    background: var(--paper);
    border-left: 3px solid var(--gold);
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.pack-note[hidden] {
    display: none;
}

/* ---------- Contact ---------- */

.contact-list {
    border-top: 1px solid var(--line);
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.contact-item i {
    width: 20px;
    margin-top: 4px;
    font-size: 1.05rem;
    color: var(--gold);
}

.contact-item h4 {
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-soft);
}

.faq {
    max-width: 820px;
}

.faq details {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq p {
    margin: 14px 0 0;
}

/* ---------- Dark call to action band ---------- */

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 112px 0;
    background: var(--ink);
    text-align: center;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(178, 139, 79, 0.28), transparent 60%);
}

.cta-band .container {
    position: relative;
}

.cta-band h2 {
    color: var(--white);
}

.cta-band p {
    max-width: 620px;
    margin: 0 auto 36px;
    color: rgba(246, 241, 232, 0.75);
}

.cta-band .eyebrow {
    justify-content: center;
}

.cta-band .hero-actions {
    justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 88px 0 32px;
    background: var(--ink);
    color: rgba(246, 241, 232, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 56px;
}

.site-footer h3 {
    margin-bottom: 14px;
    font-size: 1.5rem;
    color: var(--white);
}

.site-footer h4 {
    margin-bottom: 22px;
    font: 600 0.72rem/1 var(--sans);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.site-footer p {
    max-width: 380px;
    color: rgba(246, 241, 232, 0.7);
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 12px;
}

.site-footer a {
    color: rgba(246, 241, 232, 0.8);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--gold-soft);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 72px;
    padding-top: 28px;
    border-top: 1px solid rgba(246, 241, 232, 0.12);
    font-size: 0.85rem;
}

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    section {
        padding: 80px 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 28px 24px;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.3s, transform 0.3s;
    }

    .nav-menu.active {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--line);
    }

    .nav-menu li:last-child {
        border-bottom: 0;
        padding-top: 16px;
    }

    .nav-link {
        display: block;
        padding: 16px 0;
    }

    .nav-link::after {
        display: none;
    }

    .hero-grid,
    .split,
    .footer-grid,
    .subject-row,
    .promise-row {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 56px;
    }

    .grid-3,
    .steps {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(3) {
        border-left: 0;
    }

    .stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .header-inner {
        height: 74px;
    }

    .nav-menu {
        top: 100%;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .profile-card,
    .form-card {
        padding: 32px 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .pack,
    .story {
        padding: 36px 26px;
    }

    .price-table th,
    .price-table td {
        padding: 18px 16px;
    }
}
