/* 
  3Brothers Family Services - Core Design System
  Oxford Blue + Mint Theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

:root {
    /* Colors - Using HSL for better control */
    --oxford-blue: hsl(222, 47%, 11%);
    --mint: hsl(142, 70%, 45%);
    --mint-hover: hsl(142, 72%, 35%);
    --accent-yellow: hsl(48, 96%, 53%);
    --bg-light: hsl(210, 40%, 98%);
    --text-dark: hsl(222, 47%, 15%);
    --text-muted: hsl(215, 16%, 47%);
    --white: hsl(0, 0%, 100%);
    --glass-bg: hsla(0, 0%, 100%, 0.7);
    --glass-border: hsla(0, 0%, 100%, 0.2);

    /* Spacing & Radii */
    --section-padding: 60px 20px;
    --container-max-width: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Shadows */
    --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--oxford-blue);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Layout */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

/* Navbar */
header {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--oxford-blue);
}

.logo span {
    color: var(--mint);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--mint);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--oxford-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--mint);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--mint-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--mint);
    color: var(--mint);
}

.btn-outline:hover {
    background-color: var(--mint);
    color: var(--white);
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    transform: translateY(50px);
}

/* Enhanced Cards */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu logic in JS */
    }

    section {
        padding: 60px 20px;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background-color: var(--oxford-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #cbd5e1;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Additional styles for Hero and Specific Sections */

.hero {
    background-color: #f0f7ff;
    padding: 60px 20px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.parent-sub {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.student-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-style: italic;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.premium-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    object-fit: cover;
}

.mint-icon {
    stroke: var(--mint);
}

.icon-svg {
    margin-bottom: 20px;
}

.placeholder-img {
    background-color: hsl(210, 20%, 94%);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
    border: 2px dashed hsl(210, 10%, 85%);
}

/* Grids */
.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card h3 {
    margin: 20px 0 15px;
}

/* Services Detail Styles */
.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.service-content.reverse {
    direction: rtl;
}

.service-text {
    direction: ltr;
}

.service-text ul {
    list-style: none;
    margin: 20px 0;
}

.service-text li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-text li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--mint);
}

.audience-notes {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.cta-strip {
    background-color: var(--mint);
    color: var(--white);
    text-align: center;
}

.cta-card {
    padding: 60px 0;
}

.cta-card h2 {
    color: var(--white);
    margin-bottom: 30px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-btns .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-btns .btn-outline:hover {
    background-color: var(--white);
    color: var(--mint);
}

/* Pricing Styles */
.pricing-card {
    text-align: center;
    padding: 25px;
}

.pricing-card.glass-card {
    border: 1px solid var(--glass-border);
}

.pricing-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.price {
    font-size: 1.2rem;
    margin: 20px 0;
    color: var(--text-muted);
}

.price span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--oxford-blue);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* About Page Styles */
.large-about-img {
    height: 500px;
    margin-top: 20px;
}

.service-text {
    padding: 20px;
}

.profile-img-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--mint);
    box-shadow: var(--shadow-premium);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card .uni {
    color: var(--mint);
    font-weight: 600;
}

.strengths {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.strengths span {
    background-color: var(--bg-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-form-container {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-grid,
    .grid-3,
    .grid-2,
    .split-layout,
    .service-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
    }

    .hero-btns,
    .cta-btns {
        justify-content: center;
    }

    .menu-toggle {
        display: flex;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

.pricing-note {
    margin-top: 60px;
    padding-top: 20px;
}