/* ========================================
   PI Home Tuitions - Professional Landing Page
   Color Palette: Navy Blue (#1B3A5F) + Golden Yellow (#D4A84B)
   Design: Institutional, Professional, Trustworthy
   ======================================== */

/* CSS Variables - Institutional Theme */
:root {
    --primary: #1B3A5F;
    --primary-dark: #0F2238;
    --primary-light: #2A5080;
    --accent: #D4A84B;
    --accent-light: #E8C97D;
    --accent-dark: #B8923F;
    --text-dark: #0F172A;
    --text-medium: #475569;
    --text-light: #64748B;
    --text-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.15);
    --transition: all 0.2s ease;
    --radius: 6px;
    --radius-lg: 8px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons - Institutional Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

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

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

.btn-lg {
    padding: 12px 28px;
    font-size: 13px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
    background: #128C7E;
    box-shadow: var(--shadow);
}

/* ========================================
   Header - Institutional Design
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 8px 0;
}

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

.logo svg {
    height: 42px;
    width: auto;
}

.footer-logo {
    margin-bottom: 16px;
}

.nav-list {
    display: flex;
    gap: 28px;
}

.nav-list a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 12px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a:hover {
    color: var(--primary);
}

.header-cta {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero Section - Institutional
   ======================================== */
.hero {
    padding: 100px 0 50px;
    background: linear-gradient(180deg, #FAFBFC 0%, var(--bg-white) 100%);
    min-height: auto;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

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

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 10px;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--accent);
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero h1 .highlight {
    color: var(--accent-dark);
    display: block;
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 24px;
    max-width: 540px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(27, 58, 95, 0.03) 0%, rgba(212, 168, 75, 0.05) 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* ========================================
   Info Bar - Professional Contact Strip
   ======================================== */
.info-bar {
    background: var(--primary);
    padding: 14px 0;
    border-top: 3px solid var(--accent);
}

.info-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-white);
}

.info-icon {
    font-size: 20px;
    margin-top: 2px;
}

.info-text strong {
    display: block;
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-text p {
    font-size: 15px;
    font-weight: 500;
}

.info-text a {
    color: var(--text-white);
    text-decoration: none;
}

.info-text a:hover {
    color: var(--accent);
}

.info-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 60px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-light) 100%);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius);
    font-size: 20px;
    font-weight: 700;
}

.service-card h3 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.6;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.section-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.about-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.about-features {
    margin-bottom: 32px;
}

.about-features li {
    padding: 8px 0;
    font-weight: 500;
    color: var(--text-dark);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-years {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.about-label {
    display: block;
    font-size: 1rem;
    color: var(--text-white);
    margin-top: 10px;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 60px 0;
    background: var(--bg-white);
}

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

.testimonial-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    border-left: 4px solid var(--accent);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.author-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 60px 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary);
}

.contact-item a:hover {
    color: var(--accent-dark);
}

.cta-card {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}

.cta-card h3 {
    font-size: 1.35rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.cta-card .btn {
    display: block;
    margin: 12px 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--primary-dark);
    padding: 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }

    .hero-logo {
        width: 200px;
        height: 200px;
    }

    .info-bar-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .info-divider {
        display: none;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-card {
        padding: 40px;
    }

    .about-years {
        font-size: 3.5rem;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}