/* style.css */

/*------------------------------------------------------------------
[Table of Contents]

1. Global Styles & CSS Variables
2. Typography
3. Layout & Container
4. Buttons & Links
5. Header & Navigation
6. Hero Section
7. About Section
8. Pricing/Services Section
9. Portfolio Section
10. Instructors/Team Section
11. Events Section (Timeline)
12. Gallery Section
13. Insights/Statistics Section
14. Blog Section
15. External Resources Section
16. Contact Section & Form
17. Footer
18. Specific Page Styles (Success, Privacy, Terms)
19. Utility Classes
20. Animations & Transitions
21. Brutalism Elements
22. Responsive Design
-------------------------------------------------------------------*/

/* 1. Global Styles & CSS Variables
-------------------------------------------------------------------*/
:root {
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    /* Analogous Color Scheme with Brutalist Touches */
    --color-primary: #1A5276; /* Deep Cerulean Blue - Base */
    --color-primary-darker: #113A53;
    --color-secondary: #2471A3; /* Picton Blue - Analogous */
    --color-accent: #5499C7; /* Lighter Picton Blue - Analogous */
    --color-highlight: #F39C12; /* Orange - Contrasting highlight for CTAs */
    --color-highlight-darker: #D68910;

    --color-text-dark: #212121;
    --color-text-medium: #424242;
    --color-text-light: #FFFFFF;

    --color-background-body: #FFFFFF;
    --color-background-light-section: #F5F5F5; /* Lighter than EAECEE for better contrast */
    --color-background-dark-section: #2C3E50;

    --color-border: #9E9E9E; /* Stronger border for Brutalism */
    --color-border-light: #E0E0E0;
    --color-brutalist-raw: #DEDEDE;

    --spacing-unit: 1rem; /* 16px */
    --border-radius-sharp: 0px;
    --border-radius-soft: 4px;
    --transition-speed: 0.3s;
    --box-shadow-strong: 5px 5px 0px 0px var(--color-border);
    --box-shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    z-index: 10000;
    transform: translateY(100%);
}

/* 2. Typography
-------------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    color: var(--color-text-dark); /* Default dark for light backgrounds */
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Adaptive typography */
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
}

h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-unit);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--color-text-medium);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

strong {
    font-weight: 600;
}

.highlight {
    color: var(--color-highlight);
}

/* 3. Layout & Container
-------------------------------------------------------------------*/
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-unit);
    padding-right: var(--spacing-unit);
}

.section-padding {
    padding-top: calc(var(--spacing-unit) * 4);
    padding-bottom: calc(var(--spacing-unit) * 4);
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    color: var(--color-text-dark); /* Ensure titles are dark on light backgrounds */
    position: relative;
    padding-bottom: calc(var(--spacing-unit) * 0.5);
}
.section-title::after { /* Brutalist underline */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-highlight);
    margin: calc(var(--spacing-unit) * 0.5) auto 0;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    color: var(--color-text-medium);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.columns {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
}

.column {
    flex: 1 1 300px; /* Grow, shrink, basis */
}

.column.is-two-thirds {
    flex-basis: 66.66%;
}
.column.is-one-third {
    flex-basis: 33.33%;
}

/* For sections with dark backgrounds */
.bg-light {
    background-color: var(--color-background-light-section);
}
.bg-dark {
    background-color: var(--color-background-dark-section);
}
.bg-dark .section-title,
.bg-dark .section-subtitle,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark p,
.parallax-background .section-title, /* For parallax with dark overlay */
.parallax-background .section-subtitle,
.parallax-background h1, .parallax-background h2, .parallax-background h3, .parallax-background h4, .parallax-background p {
    color: var(--color-text-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Ensure readability */
}
.bg-dark a {
    color: var(--color-accent);
}
.bg-dark a:hover {
    color: var(--color-text-light);
}

.parallax-background {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-overlay, .insights-overlay { /* For parallax readability */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}
.hero-content, .insights-content { /* Ensure content is above overlay */
    position: relative;
    z-index: 2;
}

/* 4. Buttons & Links
-------------------------------------------------------------------*/
.btn, button[type="submit"], input[type="submit"] { /* Global button styles */
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 2px solid transparent;
    padding: calc(var(--spacing-unit)*0.75) calc(var(--spacing-unit)*1.75);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.5;
    border-radius: var(--border-radius-sharp); /* Brutalism: sharp edges */
    transition: all var(--transition-speed) ease-in-out;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary, input[type="submit"].btn-primary, button[type="submit"].btn-primary {
    color: var(--color-text-light);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-primary:hover, input[type="submit"].btn-primary:hover, button[type="submit"].btn-primary:hover {
    background-color: var(--color-primary-darker);
    border-color: var(--color-primary-darker);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    color: var(--color-text-light);
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.btn-secondary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn-hero {
    padding: calc(var(--spacing-unit)*1) calc(var(--spacing-unit)*2.5);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    background-color: var(--color-highlight);
    border-color: var(--color-highlight);
    color: var(--color-text-dark); /* High contrast on highlight */
}
.btn-hero:hover {
    background-color: var(--color-highlight-darker);
    border-color: var(--color-highlight-darker);
    color: var(--color-text-dark);
}

.btn-link {
    color: var(--color-secondary);
    background-color: transparent;
    border: none;
    padding: 0;
    text-transform: none;
    text-decoration: underline;
    font-weight: 600;
}
.btn-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* 5. Header & Navigation
-------------------------------------------------------------------*/
.site-header {
    background-color: var(--color-background-body);
    padding: var(--spacing-unit) 0;
    position: sticky; /* Or fixed */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--box-shadow-subtle);
    border-bottom: 3px solid var(--color-brutalist-raw); /* Brutalist touch */
}

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

.logo {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--color-primary);
    text-decoration: none;
}
.logo-accent {
    color: var(--color-highlight);
}

.main-nav .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav .nav-menu li {
    margin-left: calc(var(--spacing-unit) * 1.5);
}

.main-nav .nav-menu li a {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-medium);
    text-decoration: none;
    padding: calc(var(--spacing-unit)*0.5) calc(var(--spacing-unit)*0.75);
    border-radius: var(--border-radius-soft);
    transition: color var(--transition-speed), background-color var(--transition-speed);
}
.main-nav .nav-menu li a:hover,
.main-nav .nav-menu li a:focus,
.main-nav .nav-menu li a.active { /* Add .active class via JS for current page */
    color: var(--color-primary);
    background-color: var(--color-background-light-section);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}
.dropdown-toggle .arrow-down {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    font-size: 0.7em;
    vertical-align: middle;
}
.dropdown-toggle .arrow-down.open {
    transform: rotate(180deg);
}
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-background-body);
    list-style: none;
    padding: calc(var(--spacing-unit) * 0.5) 0;
    margin-top: 5px;
    min-width: 200px;
    box-shadow: var(--box-shadow-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-soft);
    z-index: 1001; /* Above other header content */
}
.dropdown-menu.active { /* JS will toggle this class */
    display: block;
}
.dropdown-menu li {
    margin: 0;
}
.dropdown-menu li a {
    display: block;
    padding: calc(var(--spacing-unit)*0.5) var(--spacing-unit);
    white-space: nowrap;
    color: var(--color-text-medium);
}
.dropdown-menu li a:hover {
    background-color: var(--color-background-light-section);
    color: var(--color-primary);
}

.nav-toggle { /* Hamburger */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav menu on mobile */
}
.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    position: relative;
    transition: background-color 0s 0.1s; /* Delay background clear during animation */
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    position: absolute;
    left: 0;
    transition: transform 0.2s ease-in-out, top 0.2s 0.2s ease-in-out;
}
.hamburger-icon::before {
    top: -8px;
}
.hamburger-icon::after {
    top: 8px;
}
/* Active Hamburger State (X) */
.nav-toggle.active .hamburger-icon {
    background-color: transparent; /* Middle bar disappears */
}
.nav-toggle.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
    transition: top 0.2s ease-in-out, transform 0.2s 0.2s ease-in-out;
}
.nav-toggle.active .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
    transition: top 0.2s ease-in-out, transform 0.2s 0.2s ease-in-out;
}


/* 6. Hero Section
-------------------------------------------------------------------*/
.hero-section {
    color: var(--color-text-light); /* IMPORTANT: Text must be white */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Adjust as needed, but not fixed 400px */
    position: relative; /* For overlay */
}
.hero-content {
    position: relative; /* Above overlay */
    z-index: 2;
    padding: calc(var(--spacing-unit) * 2);
}
.hero-title {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-unit);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.hero-subtitle {
    color: var(--color-text-light);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: calc(var(--spacing-unit) * 2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* 7. About Section
-------------------------------------------------------------------*/
#about .columns {
    align-items: center; /* Vertically align text and image */
}
#about .image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sharp);
    border: 3px solid var(--color-border);
    box-shadow: var(--box-shadow-strong);
}


/* 8. Pricing/Services Section
-------------------------------------------------------------------*/
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}
.service-card {
    background-color: var(--color-background-body);
    border: 2px solid var(--color-brutalist-raw);
    border-radius: var(--border-radius-sharp);
    padding: calc(var(--spacing-unit) * 1.5);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-strong);
}
.service-card .card-image { /* Container for image */
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    margin-bottom: var(--spacing-unit);
    overflow: hidden; /* Ensures image respects container bounds */
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Or 'cover' if images are photographic */
}
.service-title {
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-highlight);
    margin-bottom: var(--spacing-unit);
}
.service-description {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1; /* Allows description to take space before button */
}

/* 9. Portfolio Section
-------------------------------------------------------------------*/
.portfolio-carousel { /* Basic styling, JS needed for carousel functionality */
    display: grid; /* Fallback for non-JS or simple grid display */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 1.5);
}
.portfolio-item {
    background-color: var(--color-background-light-section);
    border: 2px solid var(--color-brutalist-raw);
    text-align: center;
    border-radius: var(--border-radius-sharp);
    overflow: hidden; /* To contain the image */
    display: flex;
    flex-direction: column;
}
.portfolio-item .card-image {
    width: 100%;
    height: 250px; /* Fixed height */
    overflow: hidden;
}
.portfolio-item .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.portfolio-item:hover .card-image img {
    transform: scale(1.05);
}
.portfolio-item .card-content {
    padding: var(--spacing-unit);
    flex-grow: 1;
}
.portfolio-item h4 {
    color: var(--color-secondary);
}

/* 10. Instructors/Team Section
-------------------------------------------------------------------*/
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}
.team-member-card {
    background-color: var(--color-background-body);
    border: 2px solid var(--color-brutalist-raw);
    text-align: center;
    padding: var(--spacing-unit);
    border-radius: var(--border-radius-sharp);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team-member-card .card-image {
    width: 180px; /* Fixed size for round/square image */
    height: 180px;
    border-radius: 50%; /* Circular images */
    overflow: hidden;
    margin-bottom: var(--spacing-unit);
    border: 3px solid var(--color-primary);
}
.team-member-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-member-card .card-content {
    flex-grow: 1;
}
.team-member-card h4 {
    color: var(--color-primary);
}
.team-member-title {
    color: var(--color-highlight);
    font-weight: 600;
    font-style: italic;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* 11. Events Section (Timeline)
-------------------------------------------------------------------*/
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after { /* The central line */
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-brutalist-raw);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px; /* Half of its width */
}
.timeline-item {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2.5);
    position: relative;
    background-color: inherit;
    width: 50%;
}
/* Icon on the timeline */
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px; /* Half of its width to center on line */
    background-color: var(--color-highlight);
    border: 3px solid var(--color-background-body);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-light);
    font-weight: bold;
}
/* Alternating items */
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}
/* Content box */
.timeline-content {
    padding: calc(var(--spacing-unit)*1.25) calc(var(--spacing-unit)*1.875);
    background-color: var(--color-background-light-section);
    position: relative;
    border-radius: var(--border-radius-sharp);
    border: 2px solid var(--color-brutalist-raw);
}
.timeline-item:nth-child(even) .timeline-content {
    /* Brutalist arrow pointing left */
}
.timeline-item:nth-child(odd) .timeline-content {
    /* Brutalist arrow pointing right */
}
.timeline-date {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: calc(var(--spacing-unit)*0.5);
}
.timeline-content h4 {
    color: var(--color-primary);
}

/* 12. Gallery Section
-------------------------------------------------------------------*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-unit);
}
.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for gallery images */
    object-fit: cover;
    border-radius: var(--border-radius-sharp);
    border: 2px solid var(--color-brutalist-raw);
    transition: transform var(--transition-speed), filter var(--transition-speed);
}
.gallery-item img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* 13. Insights/Statistics Section
-------------------------------------------------------------------*/
#insights { /* Parallax background applied globally */
    text-align: center;
}
.stats-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}
.stat-widget {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle glassmorphism on parallax */
    backdrop-filter: blur(5px);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: var(--border-radius-soft);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
}
.stat-icon {
    font-size: 2.5rem;
    color: var(--color-highlight);
    margin-bottom: calc(var(--spacing-unit)*0.5);
}
.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: calc(var(--spacing-unit)*0.25);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    opacity: 0.9;
}

/* 14. Blog Section
-------------------------------------------------------------------*/
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}
.blog-post-preview { /* Card styling reused */
    background-color: var(--color-background-body);
    border: 2px solid var(--color-brutalist-raw);
    border-radius: var(--border-radius-sharp);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.blog-post-preview .card-image {
    width: 100%;
    height: 200px; /* Fixed height */
}
.blog-post-preview .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-post-preview .card-content {
    padding: var(--spacing-unit);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left; /* Blog posts typically left-aligned */
}
.blog-post-preview .card-content h4 {
    color: var(--color-primary);
}
.post-meta {
    font-size: 0.85rem;
    color: var(--color-text-medium);
    margin-bottom: calc(var(--spacing-unit)*0.5);
    font-style: italic;
}
.blog-post-preview .card-content p:not(.post-meta) {
    flex-grow: 1; /* Pushes button to bottom */
    margin-bottom: var(--spacing-unit);
}
.blog-post-preview .btn-link {
    align-self: flex-start; /* Align button to left */
    margin-top: auto; /* Pushes button to bottom */
}

/* 15. External Resources Section
-------------------------------------------------------------------*/
.resources-list .resource-item {
    background-color: var(--color-background-body);
    padding: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
    border: 2px solid var(--color-brutalist-raw);
    border-radius: var(--border-radius-sharp);
}
.resource-title a {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-primary);
}
.resource-title a:hover {
    color: var(--color-highlight);
}
.resource-description {
    font-size: 0.95rem;
    margin-bottom: calc(var(--spacing-unit)*0.5);
}
.resource-source {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-medium);
    text-align: right;
}

/* 16. Contact Section & Form
-------------------------------------------------------------------*/
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-background-light-section);
    padding: calc(var(--spacing-unit) * 2);
    border: 2px solid var(--color-brutalist-raw);
    border-radius: var(--border-radius-sharp);
    box-shadow: var(--box-shadow-strong);
}
.form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.25);
}
.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit)*0.4);
    color: var(--color-text-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: calc(var(--spacing-unit)*0.75);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sharp);
    font-family: var(--font-secondary);
    font-size: 1rem;
    background-color: var(--color-background-body);
    color: var(--color-text-dark);
    transition: border-color var(--transition-speed);
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-accent_alpha); /* Needs --color-accent_alpha defined or use a solid shadow */
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-group input[type="checkbox"] {
    margin-right: calc(var(--spacing-unit)*0.5);
    vertical-align: middle;
}
.form-group .checkbox-label {
    display: inline;
    font-weight: normal;
}
.form-group .checkbox-label a {
    text-decoration: underline;
}
.btn-submit { /* Specific form submit button, inherits from .btn */
    width: 100%;
    padding-top: var(--spacing-unit);
    padding-bottom: var(--spacing-unit);
    background-color: var(--color-highlight);
    border-color: var(--color-highlight);
    color: var(--color-text-dark);
}
.btn-submit:hover {
    background-color: var(--color-highlight-darker);
    border-color: var(--color-highlight-darker);
    color: var(--color-text-dark);
}

/* 17. Footer
-------------------------------------------------------------------*/
.site-footer {
    background-color: var(--color-background-dark-section);
    color: var(--color-text-light);
    padding: calc(var(--spacing-unit)*3) 0;
    border-top: 5px solid var(--color-primary); /* Brutalist accent */
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit)*2);
}
.footer-column h4 {
    color: var(--color-text-light);
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-unit);
    position: relative;
    padding-bottom: calc(var(--spacing-unit)*0.5);
}
.footer-column h4::after { /* Underline for footer titles */
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-highlight);
    margin-top: calc(var(--spacing-unit)*0.25);
}
.footer-column p {
    color: #bdc3c7; /* Lighter gray for footer text */
    font-size: 0.95rem;
    margin-bottom: calc(var(--spacing-unit)*0.5);
}
.footer-nav, .social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav li, .social-links li {
    margin-bottom: calc(var(--spacing-unit)*0.5);
}
.footer-nav li a, .social-links li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color var(--transition-speed);
}
.footer-nav li a:hover, .social-links li a:hover {
    color: var(--color-highlight);
    text-decoration: underline;
}
.footer-column .logo-accent { /* Ensure footer logo accent is visible */
    color: var(--color-highlight);
}

/* 18. Specific Page Styles
-------------------------------------------------------------------*/
/* Success Page */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.success-page main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.success-content {
    background-color: var(--color-background-light-section);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius-soft);
    border: 2px solid var(--color-brutalist-raw);
    box-shadow: var(--box-shadow-strong);
}
.success-content h1 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
}
.success-content p {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* Privacy & Terms Pages */
body.privacy-page main,
body.terms-page main {
    padding-top: 100px; /* Ensure content below fixed header */
}
.legal-content-container {
    max-width: 800px;
    margin: calc(var(--spacing-unit) * 2) auto;
    padding: calc(var(--spacing-unit) * 2);
    background-color: var(--color-background-body);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-soft);
}
.legal-content-container h1 {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    text-align: center;
}
.legal-content-container h2 {
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-brutalist-raw);
    padding-bottom: calc(var(--spacing-unit) * 0.25);
}
.legal-content-container ul {
    list-style-position: inside;
    margin-left: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
}

/* 19. Utility Classes
-------------------------------------------------------------------*/
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.margin-top-md { margin-top: calc(var(--spacing-unit) * 2); }
.margin-bottom-md { margin-bottom: calc(var(--spacing-unit) * 2); }
.hidden { display: none; }

/* 20. Animations & Transitions (Animate.css used for entry, CSS for hovers)
-------------------------------------------------------------------*/
/* General transitions already applied to buttons, links, etc. */

/* Card general styling */
.card { /* Ensure this is a common base for service-card, portfolio-item, etc. */
    background-color: var(--color-background-body);
    border: 2px solid var(--color-brutalist-raw);
    border-radius: var(--border-radius-sharp);
    padding: calc(var(--spacing-unit) * 1.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow-subtle);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--box-shadow-strong);
}
.card .card-image { /* Container for image */
    width: 100%;
    /* height: 200px; Set specific heights per card type if needed */
    margin-bottom: var(--spacing-unit);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Default, can be overridden */
}
.card .card-content {
    flex-grow: 1; /* Pushes content/button to bottom */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* If content needs to space out */
}
.card .card-content h3, .card .card-content h4 {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.card .card-content p {
    margin-bottom: var(--spacing-unit);
    flex-grow: 1; /* Allow p to take space if needed */
}
.card .btn { /* Button at the bottom of the card */
    margin-top: auto; /* Pushes button to bottom of card-content */
    align-self: center; /* Center button if card is text-align: center */
}

/* 21. Brutalism Elements
-------------------------------------------------------------------*/
/* Sharp borders, strong shadows, raw backgrounds are integrated above. */
/* Optional: text-shadow for headings for a more 'stamped' look */
/* h1, h2 { text-shadow: 1px 1px 0px var(--color-brutalist-raw); } */

/* 22. Responsive Design
-------------------------------------------------------------------*/
@media (max-width: 992px) {
    .column.is-two-thirds, .column.is-one-third {
        flex-basis: 100%;
    }
    .timeline::after {
        left: 30px; /* Move line to the left */
    }
    .timeline-item {
        width: 100%;
        padding-left: calc(var(--spacing-unit) * 3.75); /* 30px (line) + 30px (gap) */
        padding-right: calc(var(--spacing-unit) * 1.25);
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0; /* All items to the right of the line */
    }
    .timeline-icon {
        left: 5px; /* Icon position relative to the left line */
    }
     .timeline-item:nth-child(even) .timeline-icon,
     .timeline-item:nth-child(odd) .timeline-icon {
        left: 5px;
    }
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px; /* Adjust arrow */
        border-width: 10px 15px 10px 0;
        border-color: transparent var(--color-brutalist-raw) transparent transparent;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block; /* Show hamburger */
    }
    .main-nav .nav-menu {
        display: none; /* Hide menu by default */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--color-background-body);
        border-top: 1px solid var(--color-border-light);
        box-shadow: var(--box-shadow-subtle);
        padding: var(--spacing-unit) 0;
    }
    .main-nav .nav-menu.active { /* JS toggles this class */
        display: flex;
    }
    .main-nav .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav .nav-menu li a {
        display: block;
        padding: var(--spacing-unit);
        border-bottom: 1px solid var(--color-border-light);
    }
    .main-nav .nav-menu li:last-child a {
        border-bottom: none;
    }
    .dropdown-menu { /* Full width dropdown on mobile */
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px dashed var(--color-border-light);
        margin-top: 0;
        padding-left: var(--spacing-unit); /* Indent dropdown items */
    }
    .dropdown-menu li a {
        padding: calc(var(--spacing-unit)*0.75) var(--spacing-unit);
    }

    .hero-section {
        min-height: 70vh;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .footer-container {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center;
    }
    .footer-column h4::after {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .btn, button[type="submit"] {
        padding: calc(var(--spacing-unit)*0.6) calc(var(--spacing-unit)*1.2);
        font-size: 0.85rem;
    }
    .section-padding {
        padding-top: calc(var(--spacing-unit) * 3);
        padding-bottom: calc(var(--spacing-unit) * 3);
    }
    /* Cookie consent popup adjustments for small screens */
    #cookieConsentPopup div {
        flex-direction: column;
        align-items: flex-start;
    }
    #cookieConsentPopup p {
        margin-bottom: 10px; /* Add space before button on new line */
    }
    #cookieConsentPopup button {
        width: 100%;
        text-align: center;
    }
}

/* Cookie Consent Popup - inherits body font, basic styling for the example */
/* The HTML provided has inline styles, this is just a placeholder for completeness if moved to CSS */
/* #cookieConsentPopup { ... } */
/* #acceptCookieButton { ... } */