/* ============================================
   SHS - Standard Higher Secondary School
   Single Page Template - Variables & Base
   ============================================ */

:root {
    --color-primary: #1a5f4a;
    --color-primary-dark: #134a3a;
    --color-accent: #c9a227;
    --color-accent-light: #e4c04a;
    --color-bg: #faf8f5;
    --color-bg-dark: #2d2a26;
    --color-text: #2d2a26;
    --color-text-muted: #5c5854;
    --color-white: #ffffff;
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --header-height: 100px;
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Top Header
   ============================================ */

.top-header {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.top-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-accent-light);
    font-size: 1.05rem;
}

.header-contact:hover {
    color: var(--color-white);
}

.header-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.header-address-block {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 320px;
    margin: 0;
}

.header-address-block .header-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.header-center {
    display: flex;
    justify-content: center;
}

.logo-placeholder,
.footer-logo .logo-text {
    text-align: center;
}

.logo-text {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.logo-tagline {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-light);
    margin-top: 0.15rem;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

/* ============================================
   Hero - Scrolling Images
   ============================================ */

.hero-section {
    position: relative;
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.hero-slider {
    display: flex;
    width: 300%;
    height: 100%;
    animation: heroScroll 12s ease-in-out infinite;
}

.hero-slide {
    flex: 0 0 33.333%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-1 {
    background: linear-gradient(rgba(26, 95, 74, 0.6), rgba(26, 95, 74, 0.6)), url('assets/image_1.jpg') center/cover;
}

.hero-slide-2 {
    background: linear-gradient(rgba(19, 74, 58, 0.6), rgba(19, 74, 58, 0.6)), url('assets/image_2.jpg') center/cover;
}

.hero-slide-3 {
    background: linear-gradient(rgba(26, 95, 74, 0.6), rgba(26, 95, 74, 0.6)), url('assets/image_1.jpg') center/cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    opacity: 0.95;
}

@keyframes heroScroll {
    0%, 28% { transform: translateX(0); }
    33%, 61% { transform: translateX(-33.333%); }
    66%, 94% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

/* ============================================
   Section Common
   ============================================ */

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ============================================
   About Section
   ============================================ */

.about-section {
    padding: 4rem 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content .about-lead {
    font-size: 1.15rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.about-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(26, 95, 74, 0.2);
}

/* ============================================
   Why Section
   ============================================ */

.why-section {
    padding: 4rem 0;
    background: var(--color-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-card {
    background: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(26, 95, 74, 0.12);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials-section {
    padding: 4rem 0;
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.testimonials-section .section-title {
    color: var(--color-white);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-card cite {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   Footer
   ============================================ */

.main-footer {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: 3rem 1.5rem 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-left .footer-logo .logo-text {
    color: var(--color-white);
}

.footer-left .logo-tagline {
    color: var(--color-accent-light);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-white);
}

.social-link:hover {
    background: var(--color-accent);
    color: var(--color-bg-dark);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-accent-light);
}

.footer-center .footer-phone a,
.footer-center .footer-address {
    color: rgba(255, 255, 255, 0.9);
}

.footer-center .footer-phone {
    margin-bottom: 0.5rem;
}

.footer-newsletter-text {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 180px;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-form button {
    padding: 0.65rem 1.25rem;
    background: var(--color-accent);
    color: var(--color-bg-dark);
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: var(--color-accent-light);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-header-inner {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding: 1rem 0;
    }

    .header-left {
        order: 2;
        align-items: center;
    }

    .header-address-block {
        max-width: none;
    }

    .header-center {
        order: 1;
    }

    .header-right {
        order: 3;
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-visual {
        order: -1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: 350px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: 100%;
    }
}
