/*
--- THE ZENETIC - STYLE.CSS ---
- Font Imports & Root Variables
- Global Styles & Resets
- Header & Navigation
- Hero Section
- Story & Knowledge Section
- Gallery Section
- Testimonials Section (Revised)
- Certifications Section
- Pricing Section (Program Cards - Revised)
- Apply & FAQ Section
- Modal Styles
- Footer
- Responsive Design
*/

/* 1. FONT IMPORTS & ROOT VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@600;800&family=Poppins:wght@300;400;700&family=Lato:wght@300;400;900&display=swap');

:root {
  /* Color Palette */
  --steel-grey: #3A3A3A;
  --gunmetal-black: #1E1E1E;
  --chrome-silver: #A9A9A9;
  --matte-white: #F5F5F5;
  --arctic-cyan: #8FE3F4;
  --icy-blue-grey: #CBD5E1;
  
  /* Typography */
  --font-heading: 'Bebas Neue', sans-serif;
  --font-subheading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-accent: 'Lato', sans-serif;
  
  /* Spacing & Border Radius */
  --header-height: 80px;
  --section-padding: 6rem 2rem;
  --border-radius: 8px;
}

/* 2. GLOBAL STYLES & RESETS */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--gunmetal-black);
  color: var(--matte-white);
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-padding); }
.section-dark { background-color: var(--gunmetal-black); color: var(--matte-white); }
.section-light { background-color: var(--matte-white); color: var(--steel-grey); }
.section-title {
  font-family: var(--font-subheading);
  font-weight: 800;
  font-size: 32px;
  color: var(--steel-grey);
  margin-bottom: 4rem;
}
.section-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    color: var(--gunmetal-black);
    margin-bottom: 4rem;
}
.text-center { text-align: center; }
button:focus-visible, a:focus-visible, .program-card:focus-visible, .cert-card-new:focus-visible {
    outline: 2px solid var(--arctic-cyan);
    outline-offset: 2px;
}
/* ADDED: This is the new rule to prevent page scrolling when a modal is open */
body.modal-open {
    overflow: hidden;
}

/* 3. HEADER & NAVIGATION */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease-in-out;
}
.header.scrolled {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.navbar { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.nav-logo a { font-family: var(--font-subheading); font-weight: 800; font-size: 1.5rem; color: var(--matte-white); text-decoration: none; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 2.5rem; }
.nav-link { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--matte-white); text-decoration: none; transition: color 0.3s; }
.nav-link:hover { color: var(--arctic-cyan); }
.nav-toggle { display: none; }

/* 4. HERO SECTION (REVISED) */
.hero { 
    height: 100vh; /* Strict viewport height */
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    background-image: url('https://images.unsplash.com/photo-1549060279-7e168fcee0c2?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(30, 30, 30, 0.7); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; }
.hero-headline { font-family: var(--font-heading); font-size: clamp(3.5rem, 8vw, 7rem); color: var(--matte-white); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 2rem; }
.button-primary { font-family: var(--font-subheading); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; padding: 1rem 3rem; border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: background-color 0.3s ease; border-radius: var(--border-radius); }
.hero-cta { background-color: var(--chrome-silver); color: var(--gunmetal-black); }
.hero-cta:hover { background-color: var(--icy-blue-grey); }

/* 5. STORY & KNOWLEDGE SECTION */
.story-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
.story-content p { font-size: 1.1rem; line-height: 1.7; }
.story-visual { height: 100%; }
.story-image { width: 100%; height: 100%; min-height: 400px; object-fit: cover; border-radius: var(--border-radius); }

/* 6. GALLERY SECTION */
.gallery-grid { display: grid; grid-gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; }
.gallery-item { overflow: hidden; border-radius: var(--border-radius); }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(100%); transition: all 0.4s ease; border-radius: var(--border-radius); }
.gallery-item:hover img { filter: grayscale(0%); transform: scale(1.05); }

/* 7. TESTIMONIALS SECTION (REVISED) */
.testimonial-section { 
    padding: 0; 
}
.testimonial-case { 
    display: grid; 
    grid-template-columns: 40% 55%; 
    gap: 5%; 
    align-items: center; 
    min-height: 100vh;
    padding: 4rem 24px;
    border-bottom: 1px solid var(--steel-grey);
}
.testimonial-case:last-child {
    border-bottom: none;
}
.testimonial-case:nth-child(even) { 
    grid-template-columns: 55% 40%; 
}
.testimonial-case:nth-child(even) .case-details { order: 2; }
.testimonial-case:nth-child(even) .case-images { order: 1; }
.case-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.image-stack {
    aspect-ratio: 3 / 4; /* Fixed aspect ratio for consistent container size */
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
}
.image-stack img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Ensures image fills container without distortion */
}
.case-label { text-align: center; display: block; margin-bottom: 0.5rem; font-family: var(--font-subheading); font-weight: 800; text-transform: uppercase; color: var(--chrome-silver); }
.case-details { display: flex; flex-direction: column; justify-content: center; }
.case-details .quote { font-family: var(--font-body); font-style: italic; font-weight: 300; font-size: 1.5rem; line-height: 1.5; border-left: 3px solid var(--arctic-cyan); padding-left: 2rem; margin-bottom: 2rem; }
.case-stats { list-style: none; }
.case-stats li { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--steel-grey); }
.case-stats li:first-child { border-top: 1px solid var(--steel-grey); }
.case-stats li strong { color: var(--matte-white); }

/* 8. CERTIFICATIONS SECTION (REBUILT) */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.cert-card-new {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding: 1.5rem; /* Add padding to the whole card */
}
.cert-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
.cert-card-image {
    width: 100%;
    height: auto; /* Allow image to determine its height */
    object-fit: contain;
    background-color: var(--matte-white);
    margin-bottom: 1.5rem; /* Space between image and text below */
    border-radius: calc(var(--border-radius) / 2);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.cert-card-body {
    padding: 0; /* Remove padding from body as it's on the parent card */
}
.cert-card-title {
    font-family: var(--font-subheading);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--gunmetal-black);
    margin-bottom: 0.25rem;
}
.cert-card-subtitle {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--steel-grey);
    margin-bottom: 1rem;
}
.cert-card-features {
    list-style: none;
    padding: 0;
    color: var(--steel-grey);
}
.cert-card-features li {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}
.cert-card-features li::before {
    content: '✔';
    color: var(--arctic-cyan);
    margin-right: 0.75rem;
    font-weight: bold;
    margin-top: 2px;
}

/* 9. PRICING SECTION (PROGRAM CARDS - REVISED) */
.program-cards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.program-card {
    background-color: var(--matte-white);
    color: var(--steel-grey);
    border: 1px solid var(--chrome-silver);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; /* This is crucial for the badge effect */
}
.program-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--steel-grey);
    margin-bottom: 0.5rem;
}
.program-description {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--steel-grey);
    margin-bottom: 1rem;
    flex-grow: 1;
}
.program-tiers {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.tier-base, .tier-pro { color: var(--chrome-silver); }
.tier-elite { color: var(--arctic-cyan); }
.button-read-more {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    background-color: var(--chrome-silver);
    color: var(--gunmetal-black);
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: auto;
}
.button-read-more:hover { background-color: var(--arctic-cyan); }
.program-card.highlighted {
    border: 2px solid var(--arctic-cyan);
    box-shadow: 0 0 12px rgba(143, 227, 244, 0.3);
}
.highlight-badge {
    position: absolute;
    top: 10px; 
    right: -35px;
    background-color: var(--arctic-cyan);
    color: var(--gunmetal-black);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 12px;
    padding: 0.5rem 2rem;
    transform: rotate(45deg);
    width: 150px;
    text-align: center;
}
.premium-callout {
    background-color: rgba(203, 213, 225, 0.2);
    border-radius: var(--border-radius);
    padding: 8px;
    margin-bottom: 1.5rem;
}
.premium-callout h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--gunmetal-black);
    margin-bottom: 0.5rem;
}
.premium-callout ul { list-style: none; padding: 0; }
.premium-callout ul li {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: var(--gunmetal-black);
}

/* 10. APPLY & FAQ SECTION (NEW) */
.apply-content { margin-bottom: 8rem; }
.faq-section .section-title { font-size: 28px; }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--chrome-silver); }
.faq-question {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--steel-grey);
    background-color: var(--matte-white);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}
.faq-answer p { padding: 16px; font-size: 14px; color: var(--gunmetal-black); }
.faq-item.active .faq-answer {
    max-height: 200px;
}
.faq-chevron {
    transition: transform 0.3s ease;
    color: var(--chrome-silver);
}
.faq-question:hover .faq-chevron { color: var(--arctic-cyan); }
.faq-item.active .faq-chevron { transform: rotate(90deg); }

/* 11. MODAL STYLES */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal-content {
    background-color: var(--matte-white);
    color: var(--steel-grey);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-backdrop.active .modal-content { transform: scale(1); }
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--chrome-silver);
    z-index: 10;
}
.modal-close:hover { color: var(--arctic-cyan); }
.modal-headline { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px; text-transform: uppercase; margin-bottom: 2rem; }
.modal-body { margin-bottom: 2rem; }
.modal-section h3 { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--steel-grey); margin-bottom: 1rem; }
.modal-section ul { list-style: none; padding: 0; }
.modal-section ul li { margin-bottom: 0.5rem; font-size: 14px; }
#modal-cta-btn { width: 100%; text-align: center; }

/* CERTIFICATE MODAL STYLES (REBUILT) */
.cert-modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 90vh; /* Safety constraint */
    overflow-y: auto; /* Safety scrollbar, will be hidden if content fits */
    padding: 2.5rem;
}
#cert-modal-image {
    width: 100%;
    height: auto;
    max-height: 55vh; /* This is the FIX: Constrains the image height */
    object-fit: contain; /* Ensures the image scales properly */
    border-radius: var(--border-radius);
    margin-bottom: 2rem; /* Space between image and text */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
#cert-modal-details {
    padding: 0;
}
#cert-modal-title {
    font-family: var(--font-subheading);
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--gunmetal-black);
    margin-bottom: 0.5rem;
}
#cert-modal-subtitle {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
    color: var(--steel-grey);
    margin-bottom: 2rem;
}
#cert-modal-features {
    list-style: none;
    padding: 0;
}
#cert-modal-features li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--steel-grey);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}
#cert-modal-features li::before {
    content: '✔';
    color: var(--arctic-cyan);
    margin-right: 0.75rem;
    font-weight: bold;
    margin-top: 3px;
}

/* 12. FOOTER */
.footer { background-color: #000; padding: 3rem 0; text-align: center; border-top: 1px solid var(--steel-grey); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.social-links { display: flex; gap: 2rem; }
.social-links a { color: var(--chrome-silver); transition: color 0.3s ease; }
.social-links a:hover { color: var(--arctic-cyan); }
.footer p { color: #888; }

/* 13. RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .program-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .container { padding: 0 16px; }
}
@media (max-width: 992px) {
    .story-container, .testimonial-case { grid-template-columns: 1fr; }
    .story-visual { display: none; }
    .testimonial-case { text-align: center; min-height: auto; padding: 4rem 24px; height: auto; }
    .testimonial-section { height: auto; overflow: visible; }
    .testimonial-case .case-images { order: 1 !important; margin-bottom: 2rem; }
    .testimonial-case .case-details { order: 2 !important; }
    .case-details .quote { border-left: none; padding-left: 0; }
}
@media (max-width: 768px) {
  .nav-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; flex-direction: column; justify-content: center; background: var(--gunmetal-black); transition: right 0.5s ease-in-out; }
  .nav-menu.active { right: 0; }
  .nav-toggle { display: block; cursor: pointer; border: none; background: none; z-index: 1001; }
  .nav-toggle span { display: block; width: 25px; height: 3px; background-color: var(--matte-white); margin: 5px 0; transition: all 0.3s ease-in-out; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
  .case-images { grid-template-columns: 1fr; }
  .program-cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .container { padding: 0 12px; }
  .testimonial-case { grid-template-columns: 1fr; }
  .cert-modal-content { padding: 1.5rem; } /* Less padding on small screens */
}