/* ============================================
   COURTYARD SCHOOL - MAIN STYLESHEET
   Clean Full-Width Design
   ============================================ */

/* ============================================
   1. CSS RESET & VARIABLES
   ============================================ */
:root {
    /* Colors */
    --gold: #c9a227;
    --gold-light: #e8d48b;
    --gold-dark: #9a7b1a;
    --navy: #0a0a1a;
    --navy-light: #141432;
    --navy-mid: #1e1e3f;
    --cream: #faf8f5;
    --cream-dark: #f0ede6;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: rgba(255,255,255,0.6);
    
    /* Fonts */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    
    /* Effects */
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-gold: 0 4px 20px rgba(201,162,39,0.25);
    
    /* Transitions */
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================
   2. FULL WIDTH RESET FOR WRAPPERS
   ============================================ */
.wrapper,
.main-wrapper,
.content-wrapper,
.page-wrapper,
.site-content,
.main-content,
.page-content,
#content,
#main,
main {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================
   3. CONTAINER
   ============================================ */
.cy-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .cy-container {
        padding: 0 30px;
    }
}

@media (min-width: 992px) {
    .cy-container {
        padding: 0 40px;
    }
}

/* ============================================
   4. TYPOGRAPHY
   ============================================ */
.cy-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.cy-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.cy-title--white {
    color: var(--white);
}

.cy-title--dark {
    color: var(--text-dark);
}

.cy-text {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.cy-text--light {
    color: rgba(255,255,255,0.8);
}

.cy-text--muted {
    color: #666;
}

/* ============================================
   5. BUTTONS
   ============================================ */
.cy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.cy-btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    border-color: transparent;
}

.cy-btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.cy-btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}

.cy-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.cy-btn--dark {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.cy-btn--dark:hover {
    background: var(--navy-light);
}

/* ============================================
   6. ANIMATIONS
   ============================================ */
.cy-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cy-fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   7. HERO SECTION
   ============================================ */
.cy-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 80px;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.cy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,10,26,0.92), rgba(10,10,26,0.7));
    z-index: 1;
}

.cy-hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.cy-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,162,39,0.15);
    border: 1px solid rgba(201,162,39,0.4);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
}

.cy-hero__badge i {
    font-size: 14px;
}

.cy-hero__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 7vw, 56px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--white);
    margin: 0 0 18px 0;
}

.cy-hero__title span {
    color: var(--gold);
}

.cy-hero__text {
    font-size: clamp(15px, 2vw, 17px);
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin: 0 0 28px 0;
}

.cy-hero__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================
   8. STATS SECTION
   ============================================ */
.cy-stats {
    width: 100%;
    background: var(--navy);
    padding: 50px 20px;
}

.cy-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.cy-stats__item {
    text-align: center;
    padding: 20px 15px;
}

.cy-stats__number {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}

.cy-stats__label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .cy-stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cy-stats__item {
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    
    .cy-stats__item:last-child {
        border-right: none;
    }
}

/* ============================================
   9. ABOUT SECTION
   ============================================ */
.cy-about {
    width: 100%;
    background: var(--cream);
    padding: 70px 20px;
}

.cy-about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.cy-about__image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.cy-about__image img {
    width: 100%;
    height: auto;
}

.cy-about__content .cy-title {
    color: var(--text-dark);
}

.cy-about__content .cy-text {
    color: #555;
    margin-bottom: 20px;
}

.cy-about__list {
    margin: 0 0 24px 0;
    padding: 0;
}

.cy-about__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cy-about__list li:last-child {
    border-bottom: none;
}

.cy-about__list li i {
    color: var(--gold);
    font-size: 14px;
    width: 20px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cy-about {
        padding: 90px 30px;
    }
    
    .cy-about__grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

/* ============================================
   10. FEATURES SECTION
   ============================================ */
.cy-features {
    width: 100%;
    background: var(--white);
    padding: 70px 20px;
}

.cy-features__header {
    text-align: center;
    margin-bottom: 40px;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

.cy-features__header .cy-title {
    color: var(--text-dark);
}

.cy-features__header .cy-text {
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.cy-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.cy-feature {
    background: var(--cream);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
}

.cy-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.cy-feature__icon {
    width: 60px;
    height: 60px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--gold);
    transition: all var(--transition);
}

.cy-feature:hover .cy-feature__icon {
    background: var(--gold);
    color: var(--navy);
}

.cy-feature__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.cy-feature__text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .cy-features {
        padding: 90px 30px;
    }
    
    .cy-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .cy-features__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   11. CAMPUS/GALLERY SECTION
   ============================================ */
.cy-campus {
    width: 100%;
    background: var(--navy);
    padding: 70px 20px;
}

.cy-campus__header {
    text-align: center;
    margin-bottom: 40px;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

.cy-campus__header .cy-title {
    color: var(--white);
}

.cy-campus__header .cy-text {
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto;
}

.cy-campus__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.cy-campus__item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.cy-campus__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cy-campus__item:hover img {
    transform: scale(1.05);
}

.cy-campus__item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .cy-campus {
        padding: 90px 30px;
    }
    
    .cy-campus__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   12. STEPS SECTION
   ============================================ */
.cy-steps {
    width: 100%;
    background: var(--cream);
    padding: 70px 20px;
}

.cy-steps__header {
    text-align: center;
    margin-bottom: 40px;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

.cy-steps__header .cy-title {
    color: var(--text-dark);
}

.cy-steps__header .cy-text {
    color: #666;
    max-width: 450px;
    margin: 0 auto;
}

.cy-steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.cy-step {
    display: flex;
    gap: 16px;
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.cy-step__number {
    width: 44px;
    height: 44px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
}

.cy-step__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.cy-step__text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .cy-steps {
        padding: 90px 30px;
    }
    
    .cy-steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .cy-steps__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cy-step {
        flex-direction: column;
        text-align: center;
    }
    
    .cy-step__number {
        margin: 0 auto 12px;
    }
}

/* ============================================
   13. TESTIMONIALS SECTION
   ============================================ */
.cy-reviews {
    width: 100%;
    background: var(--white);
    padding: 70px 20px;
}

.cy-reviews__header {
    text-align: center;
    margin-bottom: 40px;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

.cy-reviews__header .cy-title {
    color: var(--text-dark);
}

.cy-reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.cy-review {
    background: var(--cream);
    border-radius: 12px;
    padding: 28px 24px;
    position: relative;
}

.cy-review::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 60px;
    color: rgba(201,162,39,0.15);
    line-height: 1;
}

.cy-review__stars {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 13px;
}

.cy-review__text {
    font-family: var(--font-display);
    font-size: 17px;
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.cy-review__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cy-review__avatar {
    width: 44px;
    height: 44px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
}

.cy-review__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 2px 0;
}

.cy-review__role {
    font-size: 12px;
    color: var(--gold-dark);
    margin: 0;
}

@media (min-width: 768px) {
    .cy-reviews {
        padding: 90px 30px;
    }
    
    .cy-reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .cy-reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   14. CTA SECTION
   ============================================ */
.cy-cta {
    position: relative;
    width: 100%;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
}

.cy-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,26,0.88);
    z-index: 1;
}

.cy-cta__content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    margin: 0 auto;
}

.cy-cta .cy-title {
    color: var(--white);
}

.cy-cta .cy-text {
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}

.cy-cta__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cy-cta__contact {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.cy-cta__contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    transition: color var(--transition);
}

.cy-cta__contact a:hover {
    color: var(--gold);
}

.cy-cta__contact a i {
    color: var(--gold);
    font-size: 16px;
}

@media (min-width: 768px) {
    .cy-cta {
        padding: 100px 30px;
    }
}

/* ============================================
   15. UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }