/* style.css */

/*------------------------------------*\
  :ROOT VARIABLES
\*------------------------------------*/
:root {
    /* Color Palette - Gradient & Creative */
    --primary-color-start: #3a7bd5; /* Bright Blue */
    --primary-color-end: #00d2ff;   /* Cyan */
    --accent-color: #ff6b6b;        /* Coral Red */
    --accent-color-dark: #ee5253;   /* Darker Coral Red */
    --accent-color-success: #2ecc71; /* Green for success */
    --accent-color-success-dark: #27ae60;

    /* Text Colors */
    --text-color-dark: #222222;    /* Very Dark Grey - For section titles */
    --text-color-medium: #333333;  /* Dark Grey - For body text */
    --text-color-light: #f8f9fa;   /* Off-White */
    --text-on-hero: #FFFFFF;
    --text-link-color: var(--primary-color-start);
    --text-link-hover-color: var(--primary-color-end);

    /* Background Colors */
    --bg-body: #FFFFFF;
    --bg-light: #f4f7f6; /* Very light grey, almost white */
    --bg-dark-section: #2c3e50; /* For contrast if needed */
    --bg-gradient: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    --bg-overlay-dark: rgba(0, 0, 0, 0.5);
    --bg-overlay-light: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-family-headings: 'Roboto', sans-serif;
    --font-family-base: 'Lato', sans-serif;

    /* Adaptive Typography Sizes */
    --font-size-base: 1rem; /* Approx 16px */
    --font-size-sm: clamp(0.8rem, 0.7167rem + 0.2083vw, 0.9rem);   /* Approx 14px */
    --font-size-md: clamp(1rem, 0.9167rem + 0.4167vw, 1.125rem); /* Approx 16-18px for P */
    --font-size-lg: clamp(1.125rem, 0.9583rem + 0.8333vw, 1.5rem);/* Approx 18-24px */
    --font-size-h3: clamp(1.375rem, 1.0417rem + 1.6667vw, 2.25rem);
    --font-size-h2: clamp(1.75rem, 1.25rem + 2.5vw, 3rem);
    --font-size-h1: clamp(2rem, 1.3333rem + 3.3333vw, 3.5rem);

    /* Spacing */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem;  /* 8px */
    --spacing-md: 1rem;    /* 16px */
    --spacing-lg: 1.5rem;  /* 24px */
    --spacing-xl: 2rem;    /* 32px */
    --spacing-xxl: 3rem;   /* 48px */
    --section-padding: var(--spacing-xxl) 0;

    /* Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-color: #dee2e6;

    /* Shadows - Creative & Subtle */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-interactive: 0 8px 20px rgba(0,0,0,0.15); /* For hover states */

    /* Transitions - Non-linear */
    --transition-speed: 0.3s;
    --transition-timing: cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Elastic */
    --transition-smooth: cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth */

    /* Header */
    --header-height: 70px;
    --site-header-bg: var(--bg-body);
    --site-header-text: var(--text-color-dark);
}

/*------------------------------------*\
  BASE & RESET STYLES
\*------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%; /* For rem unit base */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-md);
    color: var(--text-color-medium);
    background-color: var(--bg-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height); /* Account for fixed header */
    overflow-x: hidden; /* Prevent horizontal scroll from subtle animations */
}

/*------------------------------------*\
  TYPOGRAPHY
\*------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--text-color-dark);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

h1 { font-size: var(--font-size-h1); font-weight: 900; }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--text-link-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-smooth);
}

a:hover, a:focus {
    color: var(--text-link-hover-color);
    text-decoration: underline;
}

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

/*------------------------------------*\
  LAYOUT & HELPERS
\*------------------------------------*/
.main-wrapper {
    overflow: hidden; /* Contains elements */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.section-padding {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color-dark); /* Enforce dark title for contrast */
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--text-color-medium);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/*------------------------------------*\
  GLOBAL COMPONENTS
\*------------------------------------*/
/* Buttons */
.button-primary,
.button-secondary {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 700;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
    border: 2px solid transparent;
    font-size: var(--font-size-md);
    white-space: nowrap;
}

.button-primary {
    background-image: var(--bg-gradient);
    color: var(--text-on-hero);
    box-shadow: var(--shadow-sm);
}

.button-primary:hover,
.button-primary:focus {
    color: var(--text-on-hero);
    text-decoration: none;
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-interactive);
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color-start);
    border-color: var(--primary-color-start);
}

.button-secondary:hover,
.button-secondary:focus {
    background-color: var(--primary-color-start);
    color: var(--text-on-hero);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    background-color: var(--bg-body);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-smooth), box-shadow var(--transition-speed) var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a grid */
    text-align: center; /* Center inline content like text */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card .image-container,
.card .card-image {
    width: 100%;
    height: 220px; /* Fixed height for card images */
    overflow: hidden;
    position: relative; /* For potential overlays */
}
.card .image-container img,
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .image-container img,
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to push footer down if card has fixed height */
    justify-content: space-between; /* Pushes button to bottom if it's the last element */
}
.card-content h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-sm);
}
.card-content p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
    flex-grow: 1; /* Allows text to take available space */
}
.card-content .price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

/* Read More Link */
.read-more-link {
  display: inline-block;
  margin-top: var(--spacing-sm);
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  transition: color var(--transition-speed) var(--transition-smooth), transform var(--transition-speed) var(--transition-smooth);
}
.read-more-link::after {
  content: ' \2192'; /* Right arrow */
  margin-left: var(--spacing-xs);
}
.read-more-link:hover, .read-more-link:focus {
  color: var(--accent-color-dark);
  text-decoration: underline;
  transform: translateX(4px);
}


/*------------------------------------*\
  HEADER & NAVIGATION
\*------------------------------------*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--site-header-bg);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: background-color var(--transition-speed) var(--transition-smooth);
}

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

.logo {
    font-family: var(--font-family-headings);
    font-size: clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
    font-weight: 900;
    color: var(--primary-color-start);
    text-decoration: none;
}
.logo:hover {
    color: var(--primary-color-end);
    text-decoration: none;
}

.main-navigation .nav-list {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.main-navigation .nav-list a {
    font-family: var(--font-family-headings);
    color: var(--site-header-text);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-xs);
    position: relative;
    font-weight: 700;
    font-size: var(--font-size-md);
}

.main-navigation .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) var(--transition-smooth);
}

.main-navigation .nav-list a:hover::after,
.main-navigation .nav-list a:focus::after,
.main-navigation .nav-list a.active::after { /* Add .active class via JS for current page */
    width: 100%;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--site-header-text);
    position: relative;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: inherit;
    transition: top 0.3s ease-in-out 0.1s, bottom 0.3s ease-in-out 0.1s, transform 0.3s ease-in-out;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.nav-toggle[aria-expanded="true"] .hamburger { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { bottom: 0; transform: rotate(-45deg); }


/*------------------------------------*\
  MAIN CONTENT AREA
\*------------------------------------*/
main {
    /* margin-top: var(--header-height); Already handled by body padding-top */
    /* This ensures that content below the fixed header starts correctly */
}

/*------------------------------------*\
  HERO SECTION
\*------------------------------------*/
.hero-section {
    color: var(--text-on-hero);
    padding: calc(var(--spacing-xxl) * 2) 0; /* More padding for hero */
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* For pseudo-element overlay if not using inline style for gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(80vh - var(--header-height)); /* Ensure it's substantial */
}

.hero-content h1 {
    color: var(--text-on-hero); /* Enforce white as per prompt */
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-hero); /* Enforce white as per prompt */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/*------------------------------------*\
  WORKSHOPS/SERVICES SECTION
\*------------------------------------*/
.workshops-grid,
.projects-grid,
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

/* Style for carousel appearance if used with JS */
.content-carousel {
  display: flex;
  overflow-x: auto; /* Enables horizontal scrolling */
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-md); /* Space for scrollbar if it appears */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--primary-color-start) var(--bg-light); /* Firefox */
}
.content-carousel::-webkit-scrollbar {
  height: 8px;
}
.content-carousel::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: var(--border-radius-sm);
}
.content-carousel::-webkit-scrollbar-thumb {
  background-color: var(--primary-color-start);
  border-radius: var(--border-radius-sm);
}

.content-carousel > .card {
  flex: 0 0 auto; /* Prevent cards from shrinking */
  width: 320px; /* Adjust card width for carousel view */
  max-width: 90vw;
}


/*------------------------------------*\
  ACCOLADES (Testimonials) SECTION
\*------------------------------------*/
.accolades-carousel .testimonial-card {
    background-color: var(--bg-body); /* Ensure contrast on bg-light sections */
}
.testimonial-card .card-image { /* Specific for circular testimonial images */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md) auto; /* Center the image container */
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--accent-color);
}
.testimonial-card .card-image img {
    border-radius: 50%; /* Ensure image inside is also circular */
}
.testimonial-card blockquote p {
    font-size: var(--font-size-md);
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color-medium);
}
.testimonial-card blockquote footer {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--primary-color-start);
}

/*------------------------------------*\
  EVENTS SECTION
\*------------------------------------*/
.events-list {
    display: grid;
    gap: var(--spacing-xl);
}
.event-item {
    /* Uses .card styles */
}
.event-item .event-date {
    font-size: var(--font-size-sm);
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

/*------------------------------------*\
  HISTORY SECTION
\*------------------------------------*/
.history-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}
.history-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}
.history-text p {
    font-size: var(--font-size-md);
    line-height: 1.8;
}

@media (min-width: 769px) {
    .history-content {
        grid-template-columns: 2fr 3fr; /* Image on left, text on right */
    }
    .history-content.image-right { /* Optional class to switch order */
        grid-template-columns: 3fr 2fr;
    }
    .history-content.image-right .history-image {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
}

/*------------------------------------*\
  PROJECTS SECTION
\*------------------------------------*/
/* Uses .projects-grid and .card styles */
.project-card .card-image {
    height: 250px; /* Slightly taller images for projects */
}

/*------------------------------------*\
  EXTERNAL LINKS SECTION
\*------------------------------------*/
.link-item.card {
    background-color: var(--bg-body); /* Ensure cards are distinct on bg-light */
    text-align: left; /* Override default card text-align if needed */
}
.link-item .card-content {
    justify-content: flex-start;
}
.link-item h4 a {
    color: var(--primary-color-start);
    font-family: var(--font-family-headings);
    text-decoration: none;
    font-size: var(--font-size-lg);
}
.link-item h4 a:hover {
    color: var(--primary-color-end);
    text-decoration: underline;
}
.link-item p {
    font-size: var(--font-size-sm);
    color: var(--text-color-medium);
    margin-top: var(--spacing-xs);
}

/*------------------------------------*\
  CONTACT SECTION
\*------------------------------------*/
.contact-form-container {
    max-width: 700px;
    margin: 0 auto var(--spacing-xl) auto;
    background-color: var(--bg-body);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}
.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}
.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color-dark);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-base);
    font-size: var(--font-size-md);
    transition: border-color var(--transition-speed) var(--transition-smooth), box-shadow var(--transition-speed) var(--transition-smooth);
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color-start);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-start), 0.1); /* Simplified RGB for RGBA */
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form button[type="submit"] {
    width: 100%;
    padding: var(--spacing-md); /* Larger padding for submit */
}

.contact-details {
    text-align: center;
}
.contact-details h3 {
    margin-bottom: var(--spacing-sm);
}
.contact-details p {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-xs);
}

/*------------------------------------*\
  FOOTER
\*------------------------------------*/
.site-footer {
    background-color: var(--text-color-dark); /* Dark footer */
    color: var(--bg-light);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.site-footer h4 {
    font-family: var(--font-family-headings);
    color: var(--text-on-hero);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: var(--spacing-xs);
}

.site-footer ul li a {
    color: var(--bg-light); /* Light text for links on dark bg */
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-smooth), padding-left var(--transition-speed) var(--transition-smooth);
}

.site-footer ul li a:hover,
.site-footer ul li a:focus {
    color: var(--accent-color);
    text-decoration: underline;
    padding-left: var(--spacing-xs);
}

.footer-social ul li a {
    /* Text-based social links, specific styling if needed */
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--font-size-sm);
}
.footer-bottom p {
    margin-bottom: 0;
}

/*------------------------------------*\
  SPECIFIC PAGE STYLES
\*------------------------------------*/
/* Privacy & Terms Pages */
/* These pages get default body padding-top from fixed header.
   Their main content block needs this specific padding. */
.page-content-wrapper { /* Add this class to the main content div on privacy/terms.html */
    padding-top: var(--spacing-xl); /* Generous padding for content readability */
    padding-bottom: var(--spacing-xl);
}
.page-content-wrapper h1 {
    margin-bottom: var(--spacing-lg);
}
.page-content-wrapper h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

/* Success Page */
body.success-page { /* Add class="success-page" to body tag of success.html */
    display: flex; /* For vertical centering of content if needed */
    flex-direction: column;
    /* padding-top is already applied by global body style if header is present */
}

.success-page main { /* If success.html uses header/main/footer structure */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl);
}

.success-message-box {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
}

.success-message-box h1 {
    color: var(--accent-color-success);
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-md);
}
.success-message-box p {
    font-size: var(--font-size-lg);
    color: var(--text-color-medium);
    margin-bottom: var(--spacing-lg);
}


/*------------------------------------*\
  MEDIA QUERIES (Responsive Design)
\*------------------------------------*/
@media (max-width: 768px) {
    .nav-toggle {
        display: block; /* Show hamburger */
    }
    .main-navigation .nav-list {
        display: none; /* Hide nav list by default */
        position: absolute;
        top: var(--header-height); /* Align below header */
        left: 0;
        right: 0;
        background-color: var(--site-header-bg);
        flex-direction: column;
        align-items: stretch; /* Stretch items to full width */
        padding: var(--spacing-sm) 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }
    .main-navigation .nav-list.is-active { /* JS adds this class */
        display: flex;
    }
    .main-navigation .nav-list li {
        width: 100%;
        text-align: center;
    }
    .main-navigation .nav-list li a {
        padding: var(--spacing-md);
        display: block;
        border-bottom: 1px solid var(--border-color);
    }
    .main-navigation .nav-list li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-list a::after { /* Mobile nav link indicator */
        display: none; /* Simpler mobile nav links */
    }

    .hero-section {
        padding: var(--spacing-xl) 0;
        min-height: calc(60vh - var(--header-height));
    }
    .hero-content h1 {
        font-size: clamp(1.8rem, 1rem + 4vw, 2.8rem); /* Slightly smaller on mobile */
    }
    .hero-content p {
        font-size: var(--font-size-md);
    }

    .workshops-grid,
    .projects-grid,
    .links-grid,
    .accolades-carousel { /* If not using flex for carousel on mobile */
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .content-carousel > .card {
        width: 85vw; /* Cards in carousel take more width on mobile */
    }

    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .site-footer ul {
        margin-bottom: var(--spacing-md);
    }
}