/* ==========================================================================
   Juan Zeledon - Public Speaker Website
   Design System & Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Professional & Trustworthy */
    --color-primary: #1a365d;      /* Deep Navy */
    --color-primary-light: #2c5282;
    --color-primary-dark: #0f2744;
    --color-accent: #c9a227;       /* Gold */
    --color-accent-light: #dbb93a;
    --color-accent-dark: #a68620;

    --color-text: #1a202c;
    --color-text-light: #4a5568;
    --color-text-muted: #5a6778; /* Darkened for WCAG AA contrast */

    --color-bg: #ffffff;
    --color-bg-alt: #f7fafc;
    --color-bg-dark: #0f2744;

    --color-border: #e2e8f0;
    --color-border-dark: #cbd5e0;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --container-max: 1200px;
    --navbar-height: 80px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    z-index: 10000;
    font-weight: 500;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: var(--space-md);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

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

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-header .section-description {
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--color-primary);
    color: #fff;
}

.btn-outline:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn-full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-link {
    color: var(--color-text);
}

.navbar.scrolled .nav-logo .logo-text {
    color: var(--color-primary);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
}

.nav-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    transition: color var(--transition-base);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-link:focus {
    outline: none;
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--color-accent);
    color: var(--color-primary-dark) !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--color-accent-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background: var(--color-text);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    background-image: url('https://images.unsplash.com/photo-1475721027785-f74eccf877e2?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 39, 68, 0.92) 0%,
        rgba(26, 54, 93, 0.85) 50%,
        rgba(44, 82, 130, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    max-width: 900px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-tagline {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    animation: scrollBounce 2s ease infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
    padding: var(--space-5xl) 0;
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-frame img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    background: var(--color-accent);
    opacity: 0.1;
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content {
    padding: var(--space-xl) 0;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.7;
}

.about-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.credential {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    color: var(--color-text);
}

.credential-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.credential-icon svg {
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------
   Topics Section
   -------------------------------------------------------------------------- */
.topics {
    position: relative;
    padding: var(--space-5xl) 0;
    background: var(--color-bg-alt);
    overflow: hidden;
}

.topics-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 54, 93, 0.05) 0%, transparent 50%);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    position: relative;
}

.topic-card {
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.topic-card:hover .card-inner,
.topic-card:focus .card-inner,
.topic-card.flipped .card-inner {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.topic-card:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
}

.card-front {
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base);
}

.topic-card:hover .card-front {
    box-shadow: var(--shadow-lg);
}

.card-back {
    background: var(--color-primary);
    color: #fff;
    transform: rotateY(180deg);
    justify-content: center;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    color: var(--color-accent);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.card-excerpt {
    color: var(--color-text-light);
    flex-grow: 1;
}

.card-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-back h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.card-back ul {
    margin-bottom: var(--space-lg);
}

.card-back li {
    font-size: 0.9375rem;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-back li:last-child {
    border-bottom: none;
}

.card-duration {
    font-size: 0.8125rem;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Videos Section
   -------------------------------------------------------------------------- */
.videos {
    padding: var(--space-5xl) 0;
    background: var(--color-bg);
}

.videos-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
}

.video-main {
    position: relative;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-placeholder:hover img {
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.play-button svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.video-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.video-info {
    padding: var(--space-xl) 0;
}

.video-info h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.video-info p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.video-thumbnail {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.video-thumbnail img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.video-thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-title {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Gallery Section
   -------------------------------------------------------------------------- */
.gallery {
    position: relative;
    padding: var(--space-5xl) 0;
    background: var(--color-bg-alt);
    overflow: hidden;
}

.gallery-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 20%, var(--color-bg-alt) 80%, var(--color-bg) 100%);
}

.gallery-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: var(--space-lg);
    position: relative;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 39, 68, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.gallery-location {
    color: var(--color-accent);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials {
    padding: var(--space-5xl) 0;
    background: var(--color-bg);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-card {
    min-width: 100%;
    padding: 0 var(--space-3xl);
}

.testimonial-content {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: var(--space-lg);
    left: var(--space-xl);
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-accent);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-md);
}

.star {
    color: var(--color-accent);
    font-size: 1.25rem;
}

blockquote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-left: var(--space-xl);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--color-text);
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.testimonial-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all var(--transition-base);
}

.testimonial-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.testimonial-btn svg {
    width: 20px;
    height: 20px;
}

.testimonial-dots {
    display: flex;
    gap: var(--space-xs);
}

.testimonial-dots .dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.testimonial-dots .dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    transition: all var(--transition-base);
}

.testimonial-dots .dot:hover::before,
.testimonial-dots .dot:focus::before {
    background: var(--color-primary-light);
}

.testimonial-dots .dot:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

.testimonial-dots .dot.active::before {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   Clients Section
   -------------------------------------------------------------------------- */
.clients {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.clients-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xl);
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3xl);
}

.client-logo {
    font-weight: 600;
    color: var(--color-text-light);
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.client-logo:hover {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    position: relative;
    padding: var(--space-5xl) 0;
    background: var(--color-bg);
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--color-bg-alt);
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    position: relative;
}

.contact-info {
    padding-right: var(--space-2xl);
}

.contact-details {
    margin: var(--space-2xl) 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.contact-item a {
    color: var(--color-text);
    transition: color var(--transition-base);
}

.contact-item a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all var(--transition-base);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--color-primary);
    color: #fff;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    grid-column: span 2;
    margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.footer-column h4 {
    color: #fff;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8); /* Increased for WCAG contrast */
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

.footer-column a:hover,
.footer-column a:focus {
    color: var(--color-accent);
}

.footer-column a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-xl);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6); /* Increased for better readability */
}
