/* ==========================================================================
   1. CORE FOUNDATION (Variables & Resets)
   ========================================================================== */
:root { --page-v-padding:70px; --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-6: 64px; --sage: #91ad91; --light-sage: #eef7ee; --cream: #fafaf8; --charcoal: #333; --white: #fff; --steel: #6f7070; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior:smooth; }
body { margin: 0; font-family: 'Open Sans', sans-serif; color: var(--charcoal); overflow-x: hidden; }
a { color:#4286dd; text-decoration:none; }
a:hover { color:#d97706; text-decoration:underline; }

/* ==========================================================================
   2. GLOBAL COMPONENTS
   ========================================================================== */
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 25px; }
.sub-heading { display: block; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; font-weight: 700; color: var(--sage); margin-bottom: var(--space-1); }

.btn-primary { display: inline-block; background: #b54040; color: var(--white); padding: 16px 32px; text-decoration: none; border-radius: 6px; font-weight: 700; margin-top: 20px; }
.btn-primary:hover { background: #9d2f2f; color: var(--white); text-decoration:none; }
@media (max-width: 961px) { .btn-primary { width:100%; } }

.btn-outline { display: inline-block; padding: 12px 30px; border: 2px solid var(--sage); color: var(--sage); text-decoration: none; font-weight: 700; border-radius: 4px; transition: all 0.3s; }
.btn-outline:hover { background: var(--sage); color: var(--white); }

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header { position: relative; background: var(--white); top: 0; left: 0; width: 100%; z-index: 10; }
.header-inner { max-width: 1280px; margin: 0 auto; padding:25px 0 20px; display: flex; justify-content: space-between; align-items: center; border-bottom:1px solid rgba(255,255,255,0.2); }
.logo { font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: 2px; color: var(--charcoal); }
.nav-menu { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; font-weight: 700; color: var(--charcoal); }
.nav-menu a:hover { border-bottom: 2px solid #333; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor:pointer; }

/* Nav bar overlay on homepage desktop */
@media (min-width: 961px) { .homepage .site-header { position: absolute; background: transparent; } .homepage .logo, .homepage .nav-menu a { color: var(--white); } }

/* ==========================================================================
   4. HOMEPAGE SPECIFIC (index.php)
   ========================================================================== */
.hero { position: relative; height: 80vh; min-height: 600px; display: flex; align-items: center; background: #000; }
.hero-image-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-image-container img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-container::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 70%); }
.hero-text-container { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding:0; color: var(--white); }
.hero-content { max-width: 700px; }
.hero-content h1 { font-size: 3.3rem; line-height: 1.1; margin-bottom: var(--space-1); letter-spacing: -1px; }
.hero-content h2 { font-size: 2rem; line-height: 1.3; max-width: 600px; margin-bottom: var(--space-2); opacity: 0.9; }
.hero-content p { font-size: 1.25rem; line-height: 1.6; max-width: 480px; margin-bottom: var(--space-4); }

.info-bar { background: var(--cream); color: var(--steel); padding: 40px 0; width: 100%; }
.info-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-item { display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 1.1rem; }
.info-item strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color:#92ad92; margin-bottom: 2px; }
@media (max-width: 961px) {
	.info-inner { max-width:fit-content; }
	.info-item { justify-content:flex-start; gap:30px; } 
	}

.classes-grid { padding: var(--page-v-padding) 0; background: #fff; }
.classes-grid .section-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.class-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.card-image { height: 300px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card-image img:hover { transform: scale(1.1); }
.card-content { padding: 40px; text-align: center; }
.card-content h3 { font-size: 2rem; margin-bottom: 15px; color: var(--sage); }
.card-content p { font-size: 1.1rem; color: #666; margin-bottom: 25px; min-height: 80px; line-height:1.6; }

.meet-nick { padding: var(--page-v-padding) 0; background: var(--cream); }
.split-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-6); align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.split-image { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); line-height: 0; }
.split-image img { width: 100%; height: auto; display: block; object-fit: cover; }
.split-content h2 { font-size: 2rem; color: var(--charcoal); line-height: 1.1; }
.split-content p { font-size: 1.1rem; margin-bottom: var(--space-3); color: var(--steel); line-height:1.6; }

.schedule { padding: var(--page-v-padding) 0; background: var(--white); }
.schedule-header { margin:0 auto var(--space-6); max-width: 900px; }
.schedule-header h2 { font-size: 2rem; color: var(--charcoal); line-height: 1.1; }
.schedule-header p { font-size: 1.1rem; margin-bottom: var(--space-3); color: var(--steel); line-height:1.6; }
.timeline { max-width: 900px; margin: 0 auto; padding:0 40px; }
.day-row { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding: 30px 0; border-top: 1px solid #eee; }
.day-row:last-child { border-bottom: 1px solid #eee; }
.day-name { font-size: 1.3rem; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 1px; }
.day-sessions { display: flex; flex-direction: column; gap: 30px; }
.session-info { display: flex; align-items: flex-start; gap: 30px; }
.session-time { font-weight: 700; color: var(--steel); min-width: 150px; font-size: 1.1rem; }
.session-details { display: flex; flex-direction: column; gap: 6px; }
.session-name { font-weight: 700; color: var(--charcoal); font-size: 1.2rem; line-height: 1.2; }
.session-location, .more-details { color: var(--steel); line-height: 1.5; max-width: 550px; }

/* ==========================================================================
   5. CLASS PAGE COMPONENTS (stretch.php)
   ========================================================================== */
.page-intro { padding: 60px 0; text-align: center; background: var(--cream); }
.page-intro h1 { margin-top:0; font-size:2.5rem; }
.lead-text { font-size: 1.25rem; max-width: 800px; margin: 20px auto 0; line-height: 1.6; color: var(--steel); }

.class-feature { padding: 60px 0; background: var(--white); }
.class-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.gallery-container { display: flex; flex-direction: column; gap: 30px; }
.main-image-viewport { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.main-image-viewport img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 20px; flex-wrap: wrap; }
.gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: 0.6; border: 2px solid transparent; transition: 0.3s; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { opacity: 1; border-color: var(--sage); }
.content-column h2 { font-size:2rem; color: var(--charcoal); }
.content-column p { font-size: 1.1rem; line-height: 1.6; color: var(--steel); }

.requirements-focused .section-inner { padding-top:40px; border-top:1px solid #e6e6e6; }
.focused-content { max-width: 700px; margin: 0 auto; }
.req-group { margin-bottom: 60px; }
.req-group h2 { font-size: 2rem; margin: 10px 0 20px; color: var(--sage); }
.req-group p { font-size: 1.1rem; line-height: 1.6; color: var(--steel); }

.testimonials-grid-section { padding:80px 0; background:#fdfdfd; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.testimonial-card { padding: 40px; border-radius: 8px; display: flex; flex-direction: column; background:var(--white); box-shadow: 0 20px 40px rgba(0,0,0,0.04); }
.testimonial-card p { font-style: italic; color: var(--steel); margin-bottom: 25px; flex-grow: 1; font-weight:700; }
.author-meta { display: flex; align-items: center; gap: 12px; border-top: 1px solid #f0f0f0; padding-top: 20px; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.author-info { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.author { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; color: var(--sage); line-height: 1.2; }
.location { font-size: 0.9rem; color: var(--steel); }

.logistics-final { padding: 60px 0; background: var(--cream); }
.logistics-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
.logistics-info h2 { font-size: 2rem; margin-bottom: 30px; color: var(--charcoal); }
.logistics-info p { font-size: 1.1rem; line-height: 1.6; color: var(--steel); }
.details-list { display: flex; flex-direction: column; gap: 20px; }
.detail-item { padding-bottom: 15px; border-bottom: 1px solid #e0e0e0; }
.detail-item strong { display: block; color: var(--sage); text-transform: uppercase; font-size: 0.9rem; margin-bottom: 15px; }
.detail-item span { font-size: 1.2rem; font-weight: 700; color: var(--steel); }
.cta-card { background: var(--white); padding: 50px; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.04); text-align: center; }
.cta-card h3 { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 15px; color: var(--charcoal); }
.cta-card p { margin-bottom: 30px; line-height: 1.6; color: var(--steel); }
.cta-card .btn-primary { width: 100%; margin-bottom: 20px; }

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.site-footer { background: #2d332d; padding: 60px 0 30px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.footer-col .logo { display: inline-block; margin-bottom: 20px; font-size: 1.4rem; color: #fff; }
.footer-col p { font-size: 0.9rem; line-height: 1.3; color: #f4f1ea; }
.footer-col span.email a { color:#aed1ff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(165,165,165,0.5); padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.85rem; color: #a5a5a5; }

/* ==========================================================================
   7. MOBILE RESPONSIVENESS (max-width: 960px)
   ========================================================================== */
@media (max-width: 960px) {
    /* 3. HEADER & NAVIGATION */
    .header-inner { padding:20px 10px 15px 10px; align-items:flex-start; }
	.logo img { max-width:250px; }
    .nav-toggle { display: block; color: var(--charcoal); }
    .nav-menu { display: none; }
    .nav-menu.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    
    /* 4. HOMEPAGE SPECIFIC */
    .hero { height: auto; min-height: 0; flex-direction: column; background: var(--white); }
    .hero-image-container { position: relative; height: 400px; }
    .hero-image-container::after { display: none; }
    .hero-text-container { background: #fdfdfd; color: var(--charcoal); text-align: center; padding: 60px 40px; }
    .hero-content { max-width:100%; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content h2 { font-size: 1.3rem; color:var(--sage); margin-top:30px; max-width:100%; }
    .hero-content p { font-size: font-size:1rem; margin-top:30px; max-width:100%; }
    .info-inner { grid-template-columns: 1fr; gap: 30px; width: 100%; max-width: 400px; }
    .classes-grid .section-inner { grid-template-columns: 1fr; }
    .split-layout { grid-template-columns: 1fr; gap: var(--space-4); }
    .split-image { width: 90%; margin: 0 auto; order: -1; }
    /*.split-image img { width: 100%; height: 300px; object-fit: cover; }*/
    .split-image img { width: 100%; height:auto; object-fit: cover; }
    .timeline { padding: 0; } 
    .day-row { grid-template-columns: 1fr; gap: 15px; padding: 25px 0; }
    .day-name { width: auto; font-size: 1.2rem; margin-bottom: 5px; }
    .session-info { flex-direction: column; gap: 8px; align-items: flex-start; }
    .session-time { min-width: auto; width: auto; font-size: 1rem; color: var(--sage); }
    .session-details { width: 100%; }
    .session-location, .more-details { max-width: 100%; }

    /* 5. CLASS PAGE COMPONENTS) */
    .class-intro-grid { grid-template-columns: 1fr; gap: 40px; }
    .gallery-thumbs img { width: 60px; height: 60px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .logistics-grid { grid-template-columns: 1fr; gap: 60px; }
    
    /* 6. FOOTER */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}