/*
Theme Name: Fernando Senior Services
Theme URI: http://www.fernandosenior.com
Author: Fernando A. Senior, PhD
Description: A professional services theme for Fernando A. Senior, Learning Strategy & Online Quality consultant. Features sections for Universities, Organizations, and Individuals.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fernando-senior
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --ink: #1a1610;
    --ink-muted: #6b6257;
    --ink-faint: #b5aea4;
    --paper: #faf8f4;
    --paper-warm: #f3ede3;
    --paper-mid: #e8e0d4;
    --accent: #c4531a;
    --accent-light: #f0e4da;
    --accent-dark: #8c3810;
    --gold: #b8922a;
    --gold-light: #f5edd8;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: inherit; }

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250,248,244,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--paper-mid);
}

.site-logo {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-navigation a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.main-navigation a:hover { color: var(--accent); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2.5rem 5rem;
    position: relative;
    overflow: hidden;
    background: var(--paper);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 55%; height: 130%;
    background: var(--paper-warm);
    transform: skewX(-6deg);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    border-top: 2px solid var(--accent);
    padding-top: 8px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-body {
    font-size: 17px;
    color: var(--ink-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--paper-mid);
}

.stat-num {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label { font-size: 12px; color: var(--ink-muted); line-height: 1.4; }

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Credential Cards */
.credential-card {
    background: white;
    border: 1px solid var(--paper-mid);
    border-radius: 4px;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s forwards;
}

.credential-card:nth-child(1) { animation-delay: 0.2s; }
.credential-card:nth-child(2) { animation-delay: 0.4s; }
.credential-card:nth-child(3) { animation-delay: 0.6s; }
.credential-card:nth-child(4) { animation-delay: 0.8s; }

.cred-icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.cred-icon.orange { background: var(--accent-light); color: var(--accent); }
.cred-icon.gold   { background: var(--gold-light);   color: var(--gold); }

.cred-title { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.cred-sub   { font-size: 12px; color: var(--ink-muted); }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.content-section { padding: 6rem 2.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    border-top: 2px solid var(--accent);
    padding-top: 7px;
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.section-title em { font-style: italic; color: var(--accent); }

.section-intro {
    font-size: 17px;
    color: var(--ink-muted);
    line-height: 1.8;
    max-width: 640px;
    margin-bottom: 3.5rem;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.section-divider {
    border: none;
    border-top: 1px solid var(--paper-mid);
    margin: 0;
}

/* ============================================================
   LONG BODY TEXT
   ============================================================ */
.long-body {
    font-size: 16px;
    color: var(--ink-muted);
    line-height: 1.85;
}
.long-body p { margin-bottom: 1.2rem; }
.long-body p:last-child { margin-bottom: 0; }
.long-body strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull-quote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
}
.pull-quote p {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink);
    line-height: 1.5;
    font-style: italic;
}

/* ============================================================
   UNIVERSITIES SECTION
   ============================================================ */
.universities-section { background: white; }

.uni-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Services Offer List */
.offer-list { display: flex; flex-direction: column; gap: 1px; }

.offer-item {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--paper-mid);
    background: var(--paper);
    margin-bottom: 4px;
    border-radius: 3px;
    transition: border-color 0.2s, background 0.2s;
}
.offer-item:hover { border-color: var(--accent); background: white; }

.offer-num {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--paper-mid);
    line-height: 1;
    flex-shrink: 0;
    font-weight: 600;
    width: 28px;
    transition: color 0.2s;
}
.offer-item:hover .offer-num { color: var(--accent-light); }

.offer-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.offer-desc  { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }

/* Cases Strip */
.cases-strip {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--paper-mid);
}

.cases-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 1rem;
}

.cases-row { display: flex; flex-wrap: wrap; gap: 8px; }

.case-chip {
    font-size: 12px;
    color: var(--ink-muted);
    background: var(--paper-warm);
    border: 1px solid var(--paper-mid);
    border-radius: 2px;
    padding: 5px 12px;
    font-weight: 500;
}

/* ============================================================
   ORGANIZATIONS SECTION
   ============================================================ */
.organizations-section { background: var(--paper); }

.org-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Process Steps */
.process-steps { display: flex; flex-direction: column; gap: 0; }

.process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--paper-mid);
}
.process-step:last-child { border-bottom: none; }

.step-badge {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--accent-dark);
    font-weight: 600;
    flex-shrink: 0;
}

.step-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.step-desc  { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }

/* Sector Grid */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 2rem;
}

.sector-card {
    background: white;
    border: 1px solid var(--paper-mid);
    border-radius: 3px;
    padding: 1rem 1.1rem;
}

.sector-name   { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.sector-detail { font-size: 12px; color: var(--ink-muted); line-height: 1.5; }

/* ============================================================
   INDIVIDUALS SECTION
   ============================================================ */
.individuals-section { background: white; }

.indiv-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Program Cards */
.program-cards { display: flex; flex-direction: column; gap: 10px; }

.program-card {
    border: 1px solid var(--paper-mid);
    border-radius: 4px;
    overflow: hidden;
    background: var(--paper);
    transition: box-shadow 0.2s;
}
.program-card:hover { box-shadow: 0 4px 20px rgba(26,22,16,0.06); }

.program-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: var(--paper-warm);
    border-bottom: 1px solid var(--paper-mid);
}

.program-name { font-size: 14px; font-weight: 500; color: var(--ink); }

.program-badge {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 2px;
}
.badge-virtual   { background: #e1f0e8; color: #2d6b45; }
.badge-bilingual { background: var(--gold-light); color: var(--gold); }
.badge-inperson  { background: var(--accent-light); color: var(--accent-dark); }

.program-body { padding: 1rem 1.2rem; font-size: 13px; color: var(--ink-muted); line-height: 1.65; }

/* Outcomes Grid */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.outcome-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.outcome-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 7px;
    flex-shrink: 0;
}

.outcome-text { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    background: var(--ink);
    padding: 5rem 2.5rem;
    text-align: center;
}

.cta-band h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    color: var(--paper);
    margin-bottom: 1rem;
}
.cta-band h2 em { font-style: italic; color: #e8a070; }

.cta-band p {
    font-size: 16px;
    color: var(--ink-faint);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-dark); color: white; }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--paper-warm);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 13px 32px;
    border: 1px solid rgba(255,255,255,0.25);
    text-decoration: none;
    border-radius: 2px;
    transition: border-color 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: white; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--paper-warm);
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--paper-mid);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand { font-family: var(--serif); font-size: 1rem; color: var(--ink); }

.footer-contact {
    font-size: 13px;
    color: var(--ink-muted);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-contact a { color: var(--ink-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .uni-grid,
    .org-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 760px) {
    .site-header { padding: 1rem 1.2rem; }

    .main-navigation { display: none; }
    .main-navigation.is-open { display: block; }
    .main-navigation.is-open ul {
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(250,248,244,0.97);
        padding: 1.5rem 1.2rem;
        border-bottom: 1px solid var(--paper-mid);
    }

    .menu-toggle { display: flex; }

    .hero-inner,
    .indiv-hero { grid-template-columns: 1fr; gap: 2.5rem; }

    .hero::before { display: none; }

    .content-section { padding: 4rem 1.2rem; }
    .hero { padding: 7rem 1.2rem 4rem; }

    .outcomes-grid { grid-template-columns: 1fr; }
    .sector-grid   { grid-template-columns: 1fr; }

    .site-footer { flex-direction: column; text-align: center; }
    .footer-contact { justify-content: center; }
}
