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

:root {
    --dark-green: #2d4a3e;
    --light-green: #5a7a6b;
    --beige: #e8dcc4;
    --light-beige: #f5f0e6;
    --dark-beige: #baa484;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --accent: #8b7355;
}

body {
    font-family: Cambria, Georgia, "Times New Roman", Times, serif;
    background-color: var(--light-beige);
    background-image: url('/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography - Prevent orphans and widows */
p {
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

li {
    text-wrap: pretty;
}

.hero-subtitle,
.section-subtitle,
.mission-intro,
.services-intro,
.services-note,
.pricing-note,
.virtual-note {
    text-wrap: balance;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(45, 74, 62, 0.7) 0%, rgba(90, 122, 107, 0.6) 100%);
    color: white;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--beige);
    color: var(--dark-green);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: var(--dark-beige);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Container & Sections */
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-green);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 95%;
}

/* About Section */
.about {
    background-color: rgba(255, 255, 255, 0.85);
}

.definition-card {
    max-width: 550px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: rgba(232, 220, 196, 0.85);
    border-radius: 12px;
    border-left: 4px solid var(--dark-green);
}

.definition-card h2 {
    font-size: 2rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.pronunciation {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.part-of-speech {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.definition {
    font-size: 1.1rem;
    line-height: 1.8;
}

.profile {
    max-width: 850px;
    margin: 0 auto;
}

.profile h2 {
    font-size: 2.5rem;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 3rem;
}

.profile-section {
    margin-bottom: 3rem;
}

.profile-section h3 {
    font-size: 1.8rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.profile-section ul {
    list-style: none;
    padding-left: 0;
}

.profile-section ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.profile-section ul li:before {
    content: "•";
    color: var(--accent);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
}

.mission-intro {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-item {
    padding: 1.5rem;
    background: rgba(232, 220, 196, 0.85);
    border-radius: 8px;
}

.mission-item .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    background: linear-gradient(to bottom, rgba(245, 240, 230, 0.85), rgba(255, 255, 255, 0.85));
}

.services-intro,
.services-note {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

.services-note {
    font-style: italic;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.90);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.service-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.service-card li {
    margin: 0.5rem 0;
}

/* Pricing Section */
.pricing {
    background: var(--dark-green);
    color: white;
}

.pricing .section-title {
    color: var(--beige);
}

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tier {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--beige);
}

.tier h3 {
    font-size: 1.5rem;
    color: var(--beige);
    margin-bottom: 1rem;
}

.pricing-note {
    text-align: center;
    font-size: 1.1rem;
    margin: 2rem 0;
    font-style: italic;
}

.mission-statement {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.mission-statement h3 {
    color: var(--beige);
    margin-bottom: 1rem;
}

.price-list-title {
    font-size: 2rem;
    color: var(--beige);
    text-align: center;
    margin: 3rem 0 1rem;
}

.virtual-note {
    text-align: center;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.price-tables {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.price-table {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
}

.price-table h4 {
    font-size: 1.8rem;
    color: var(--beige);
    margin-bottom: 1rem;
}

.small-note {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.class-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.class-list li {
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.class-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--beige);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

th {
    color: var(--beige);
    font-weight: 600;
}

td {
    color: white;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 1rem;
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .definition-card {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .definition-card h2 {
        font-size: 1.5rem;
    }

    .profile h2 {
        font-size: 2rem;
    }

    .profile-section h3 {
        font-size: 1.5rem;
    }

    .mission-intro {
        font-size: 1.1rem;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-item {
        padding: 1.25rem;
    }

    .services-intro,
    .services-note {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .pricing-tiers {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tier {
        padding: 1.5rem;
    }

    .tier h3 {
        font-size: 1.3rem;
    }

    .mission-statement {
        padding: 1.5rem;
    }

    .price-list-title {
        font-size: 1.5rem;
    }

    .price-table {
        padding: 1rem;
        overflow-x: auto;
    }

    .price-table h4 {
        font-size: 1.5rem;
    }

    /* Make tables scroll horizontally on small screens */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    th:first-child,
    td:first-child {
        padding-left: 0.25rem;
    }

    th:last-child,
    td:last-child {
        padding-right: 0.25rem;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .definition-card {
        padding: 1rem;
    }

    .profile-section h3 {
        font-size: 1.3rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .tier {
        padding: 1.25rem;
    }

    .price-table {
        padding: 0.75rem;
    }

    th, td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }

    .pricing-note,
    .virtual-note {
        font-size: 0.95rem;
    }
}
