/* Zhiying Xin – Maths & Physics Tutor, Manchester */
:root {
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --accent: #c53030;
    --text: #1a202c;
    --text-muted: #4a5568;
    --bg-light: #f7fafc;
    --border: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #ffffff;
}

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

/* Header */
header {
    padding: 48px 0 40px;
    text-align: center;
}

.location {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 8px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--text);
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.subtitle {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 600;
    max-width: 560px;
    margin: 0 auto 12px;
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 24px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.badge {
    display: inline-block;
    font-size: 0.8125rem;
    padding: 6px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: 64px 0;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--text);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-light);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* About */
.about {
    background: var(--bg-light);
    padding: 64px 0;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.about-content h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--text);
}

.about-content h3 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
    color: var(--primary);
}

.about-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* Qualifications */
.qualifications {
    padding: 48px 0;
}

.qual-list {
    list-style: none;
    max-width: 560px;
    margin: 0 auto;
}

.qual-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.qual-list li:last-child {
    border-bottom: none;
}

/* Testimonials */
.testimonials {
    padding: 64px 0;
    background: #fff;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.testimonial h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text);
}

.testimonial .stars {
    font-size: 0.875rem;
    color: #d69e2e;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.testimonial p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.testimonials-verify {
    text-align: center;
    margin-top: 28px;
    font-size: 0.875rem;
}

.testimonials-verify a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.testimonials-verify a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* CTA – Get in touch */
.cta {
    background: var(--primary);
    color: white;
    padding: 48px 0;
}

.cta-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.cta-content p {
    margin-bottom: 12px;
    opacity: 0.95;
}

.cta-email {
    font-size: 1.125rem;
    margin-top: 16px;
}

.cta-email a {
    color: #90cdf4;
    text-decoration: underline;
    font-weight: 600;
}

.cta-email a:hover {
    color: #fff;
}

.cta-note {
    font-size: 0.9375rem;
    margin-top: 16px;
}

.cta-note a {
    color: #90cdf4;
    text-decoration: underline;
}

.cta-note a:hover {
    color: #fff;
}

/* Newsletter */
.newsletter {
    background: var(--bg-light);
    padding: 48px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 480px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text);
}

.newsletter p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

input[type="email"] {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

button:hover {
    background: var(--primary-light);
}

.privacy {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.privacy a {
    color: var(--primary);
    text-decoration: none;
}

.privacy a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 32px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Scroll-in animation */
.section.animate-in,
.service-card.animate-in,
.testimonial.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    header {
        padding: 32px 0 28px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .badges {
        gap: 8px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .form-group {
        flex-direction: column;
    }
}
