/* ===========================
   LUKE'S HOME TECH SUPPORT
   & TUITION — Stylesheet
   =========================== */

/* === Variables === */
:root {
    --green-900: #1A3028;
    --green-700: #2E5447;
    --green-500: #3D7062;
    --green-100: #EDF4F0;
    --amber-500: #E09020;
    --amber-600: #C47E1A;
    --text-900: #1C2E27;
    --text-500: #4A6B5C;
    --border: #C8DDD4;
    --white: #FFFFFF;
    --bg-alt: #F5F8F6;

    --font-display: 'DM Serif Display', serif;
    --font-body: 'DM Sans', sans-serif;

    --max-width: 1100px;
    --radius: 8px;
    --shadow: 0 2px 16px rgba(44, 84, 71, 0.10);
}

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

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-900);
    background: var(--white);
}

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

a { color: var(--green-700); }
a:hover { color: var(--green-500); }

:focus-visible {
    outline: 3px solid var(--amber-500);
    outline-offset: 2px;
    border-radius: 3px;
}

/* === Typography === */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.25;
    color: var(--text-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === Layout === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 1.5rem; }
.section > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.section--alt { background: var(--bg-alt); }
.section--green { background: var(--green-100); }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.85rem 1.9rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--amber-500);
    color: var(--white);
    border-color: var(--amber-500);
}
.btn-primary:hover {
    background: var(--amber-600);
    border-color: var(--amber-600);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--green-700);
    border-color: var(--green-700);
}
.btn-secondary:hover {
    background: var(--green-700);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: var(--white);
}

/* === Navigation === */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(44,84,71,0.07);
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--text-900);
    text-decoration: none;
}
.logo:hover { color: var(--green-700); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
}

.nav-links a:not(.btn) {
    display: block;
    padding: 0.45rem 0.85rem;
    color: var(--text-900);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 5px;
    transition: background 0.15s;
}
.nav-links a:not(.btn):hover { background: var(--green-100); color: var(--green-700); }
.nav-links a.active { color: var(--green-700); font-weight: 600; }

.btn-nav {
    background: var(--amber-500);
    color: var(--white) !important;
    border-color: var(--amber-500);
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}
.btn-nav:hover {
    background: var(--amber-600) !important;
    border-color: var(--amber-600) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--green-900);
    line-height: 1;
    padding: 0.25rem;
}

/* === Footer === */
footer {
    background: var(--green-900);
    color: rgba(255,255,255,0.75);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--white);
    text-decoration: none;
    line-height: 1.35;
    display: block;
}

footer h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 0.85rem;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 0.4rem; }
footer ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
}
footer ul a:hover { color: var(--white); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-left: 1.25rem;
    font-size: 0.85rem;
}
.footer-legal a:hover { color: var(--white); }

/* === Page Hero (inner pages) === */
.page-hero {
    background: var(--green-100);
    padding: 3.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-500); font-size: 1.1rem; max-width: 580px; margin-bottom: 0; }

/* === Section headings === */
.section-heading { margin-bottom: 2.75rem; }
.section-heading h2 { margin-bottom: 0.5rem; }
.section-heading p { color: var(--text-500); max-width: 580px; }

/* === Cards === */
.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(44,84,71,0.13);
}

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

.card-icon { font-size: 2rem; margin-bottom: 1rem; line-height: 1; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--text-500); }
.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--green-700);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.card-link:hover { text-decoration: underline; }

/* === USPs === */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.usp-item { display: flex; gap: 1rem; align-items: flex-start; }
.usp-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--green-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.usp-text h4 { font-family: var(--font-body); font-weight: 600; margin-bottom: 0.2rem; }
.usp-text p { font-size: 0.9rem; color: var(--text-500); margin: 0; }

/* === Testimonials === */
.testimonial {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.75rem;
    border-left: 4px solid var(--amber-500);
}
.testimonial blockquote {
    font-style: italic;
    color: var(--text-500);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}
.testimonial cite {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-900);
}

/* === CTA Banner === */
.cta-banner {
    background: var(--green-700);
    padding: 5rem 1.5rem;
    text-align: center;
}
.cta-banner-inner { max-width: 650px; margin: 0 auto; }
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === Service Blocks (services page) === */
.service-block {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}
.service-block:last-of-type { border-bottom: none; }
.service-block h2 { margin-bottom: 1rem; }

.service-block ul {
    list-style: none;
    margin: 1rem 0 1.25rem;
}
.service-block ul li {
    padding: 0.3rem 0 0.3rem 2rem;
    position: relative;
    color: var(--text-500);
}
.service-block ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-700);
    font-weight: 700;
}

.service-note {
    background: var(--green-100);
    border-radius: var(--radius);
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-500);
    border-left: 3px solid var(--border);
}

.exclusions-box {
    background: #FFF8EE;
    border: 1px solid #F0D4A0;
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin-top: 2rem;
}
.exclusions-box h3 { font-family: var(--font-body); font-weight: 700; color: #7A5200; margin-bottom: 0.75rem; font-size: 1rem; }
.exclusions-box ul { list-style: none; }
.exclusions-box ul li {
    padding: 0.3rem 0 0.3rem 1.75rem;
    position: relative;
    color: #5A4000;
    font-size: 0.95rem;
}
.exclusions-box ul li::before { content: '✗'; position: absolute; left: 0; color: #C47E1A; font-weight: 700; }

/* === FAQ === */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-900);
    gap: 1rem;
}
.faq-question:hover { color: var(--green-700); }
.faq-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--green-700);
    transition: transform 0.2s;
    line-height: 1;
}
.faq-answer {
    display: none;
    padding-bottom: 1.25rem;
    color: var(--text-500);
    font-size: 0.95rem;
    line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* === Pricing === */
.pricing-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.pricing-box {
    background: var(--white);
    border: 2px solid var(--green-700);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.price-amount {
    font-family: var(--font-display);
    font-size: 4.5rem;
    color: var(--green-700);
    line-height: 1;
}
.price-label { font-size: 1rem; color: var(--text-500); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; text-align: left; margin: 1.5rem 0 2rem; }
.pricing-features li {
    padding: 0.6rem 0 0.6rem 1.75rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green-700); font-weight: 700; }

.pricing-info h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; margin-top: 2rem; }
.pricing-info h3:first-child { margin-top: 0; }
.pricing-info ul { list-style: none; }
.pricing-info ul li { padding: 0.3rem 0 0.3rem 1.5rem; position: relative; font-size: 0.95rem; color: var(--text-500); }
.pricing-info ul li::before { content: '·'; position: absolute; left: 0.3rem; color: var(--green-700); font-weight: 900; font-size: 1.2rem; line-height: 1.5; }

/* === Booking page === */
.booking-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}
.booking-placeholder {
    background: var(--green-100);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3.5rem 2rem;
    text-align: center;
    color: var(--text-500);
    font-size: 0.9rem;
}
.booking-placeholder p { margin: 0.5rem 0 0; }

.phone-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.phone-card h3 { margin-bottom: 0.5rem; }
.phone-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--green-700);
    text-decoration: none;
    margin: 0.5rem 0 0.25rem;
}
.phone-number:hover { color: var(--green-500); }
.phone-card p { font-size: 0.9rem; color: var(--text-500); margin-top: 0.5rem; }

.what-to-expect { margin-top: 2rem; }
.expect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.expect-item { text-align: center; }
.expect-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--green-100);
    background: var(--green-700);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.2rem;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
}
.expect-item h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.expect-item p { font-size: 0.9rem; color: var(--text-500); margin: 0; }

/* === About page === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3.5rem;
    align-items: start;
}
.about-photo {
    background: var(--green-100);
    border-radius: var(--radius);
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-500);
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid var(--border);
    padding: 1rem;
    line-height: 1.5;
}
.about-content h2 { margin-bottom: 1rem; }
.badge-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.badge {
    background: var(--green-100);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-700);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* === Legal pages === */
.legal-wrap { max-width: 760px; }
.legal-wrap h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 2rem 0 0.6rem; color: var(--text-900); }
.legal-wrap h3:first-child { margin-top: 0; }
.legal-wrap ul, .legal-wrap ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-wrap ul li, .legal-wrap ol li { margin-bottom: 0.35rem; font-size: 0.95rem; color: var(--text-500); }
.legal-wrap p { font-size: 0.95rem; color: var(--text-500); }
.legal-meta {
    background: var(--green-100);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-500);
    margin-bottom: 2rem;
}

/* === Responsive === */
@media (max-width: 900px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .usp-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-wrap { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { display: none; }
    .booking-grid { grid-template-columns: 1fr; }
    .expect-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1.5rem 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        gap: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--green-100); }
    .nav-links li:last-child { border-bottom: none; padding-top: 0.75rem; }
    .nav-links a:not(.btn) { padding: 0.75rem 0.25rem; }
    .btn-nav { display: block; text-align: center; }

    .card-grid-4,
    .card-grid-3 { grid-template-columns: 1fr; }
    .usp-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .section { padding: 3.5rem 1.25rem; }
    .page-hero { padding: 2.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
