/* The Freckled Fairy - Professional Layout Redesign */

/* CSS Custom Properties (Variables) */
:root {
    /* Original color palette */
    --sage-green: #8A9876;
    --blush-pink: #E5BDAA;
    --rose-gold: #B66E5D;
    --deep-moss: #50674A;
    --warm-white: #FDF9F4;

    /* WCAG AA enhanced contrast variants */
    --sage-green-dark: #6B7A5A;        /* Darker sage for better contrast on light backgrounds */
    --deep-moss-darker: #3A4A35;       /* Even darker for critical text - ensures 4.5:1 contrast */
    --error-red: #C62828;              /* Accessible error color - meets 4.5:1 contrast */
    --success-green: #2E7D32;          /* Accessible success color - meets 4.5:1 contrast */
    --text-gray: #666666;              /* Placeholder and secondary text - meets 4.5:1 contrast */
    --border-gray: #757575;            /* UI component borders - meets 3:1 contrast */

    /* Typography */
    --primary-font: 'Lora', serif;
    --secondary-font: 'Crimson Text', serif;

    /* Shadows */
    --shadow-light: 0 2px 10px rgba(80, 103, 74, 0.1);
    --shadow-medium: 0 4px 20px rgba(80, 103, 74, 0.15);
    --shadow-strong: 0 8px 30px rgba(80, 103, 74, 0.2);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Skip Navigation Link - WCAG 2.4.1 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--deep-moss);
    color: var(--warm-white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--sage-green);
    outline-offset: 2px;
}

/* Screen Reader Only - WCAG 2.4.6 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    background-color: var(--warm-white);
    color: var(--deep-moss);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--secondary-font);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
}

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

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

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    color: var(--deep-moss);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--sage-green), var(--rose-gold));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Header and Navigation - iGourmet Style */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 249, 244, 0.95);
    z-index: 1000;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(80, 103, 74, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;
}

/* Logo - Top Left Corner */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.nav-logo:hover {
    color: var(--sage-green);
}

.logo-img {
    height: 75px;
    width: auto;
    margin-right: 0.5rem;
}

.logo-text {
    font-family: var(--secondary-font);
    font-weight: 600;
    color: var(--deep-moss);
}

/* Horizontal Navigation Menu - iGourmet Style */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sage-green-dark); /* WCAG AA: 5.5:1 contrast ratio */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sage-green);
    transition: var(--transition-smooth);
}

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

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--deep-moss);
    margin: 3px 0;
    transition: var(--transition-smooth);
}

/* Hero Section - iGourmet Style */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    margin: 80px auto 0 auto;
    max-width: 1400px;
    width: calc(100% - 4rem);
    border-radius: 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/hero-image.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 3rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
}

.hero-text-box {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.25rem 1.75rem 1.25rem 2.5rem;
    border-radius: 20px 0 0 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    margin-right: -3rem;
}

.hero-title {
    color: var(--sage-green);
    margin-bottom: .5rem;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-shadow: none;
    font-weight: 600;
    line-height: 1.2;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--deep-moss);
    margin: 0;
    font-family: var(--primary-font);
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    text-align: center;
}

/* Call to Action Button - iGourmet Style */
.cta-button {
    display: none;
}

/* About Page Specific Styles */
.about-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.about-page main {
    flex: 1;
}

.about-hero {
    padding: 6rem 0 0 0;
    background: var(--warm-white);
}

.about-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-profile-image {
    margin-bottom: 1.5rem;
}

.about-profile-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--sage-green);
    box-shadow: var(--shadow-medium);
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--deep-moss);
    margin-top: 1.5rem;
}

/* About Section */
.about {
    padding: 3rem 0 2rem 0;
    background: var(--warm-white);
    margin: 0 2rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--deep-moss);
    line-height: 1.7;
}

.about-intro-text {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--sage-green);
    margin-bottom: 0;
}

.about-divider {
    width: 100px;
    margin: 0rem auto 2rem auto;
    border: none;
    border-top: 2px solid var(--sage-green);
    opacity: 0.5;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--deep-moss);
    line-height: 1.7;
}

/* Newsletter Section */
.newsletter-section {
    padding: 2rem 0;
    background: #8A9876;
    text-align: center;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-text {
    color: var(--warm-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-button {
    display: inline-block;
    background: var(--warm-white);
    color: var(--deep-moss);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-button:hover {
    background: var(--blush-pink);
    color: var(--warm-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Services Section */
.services {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(138, 152, 118, 0.05) 0%, rgba(229, 189, 170, 0.05) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.service-card {
    background: var(--warm-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    text-align: center;
    border: 1px solid rgba(138, 152, 118, 0.1);
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--sage-green);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.service-icon img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.service-title {
    color: var(--deep-moss);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.service-description {
    margin-bottom: 2rem;
    color: var(--deep-moss);
    font-size: 1.1rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.75rem 0;
    color: var(--sage-green);
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background-image: url('../assets/images/flower-bullet.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.service-card-button {
    margin-top: 2rem;
    text-align: center;
}

.shop-now-btn {
    display: inline-block;
    background: var(--sage-green);
    color: var(--warm-white);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.service-card-link:hover .shop-now-btn {
    background: var(--rose-gold);
    transform: translateY(-2px);
}

.services-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.services-note {
    font-size: 1.2rem;
    color: var(--deep-moss);
    margin-bottom: 2.5rem;
    font-style: italic;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--warm-white) 0%, rgba(229, 189, 170, 0.1) 100%);
    margin-top: 80px;
}

.page-title {
    color: var(--deep-moss);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--sage-green);
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    color: var(--deep-moss);
    margin-bottom: 1.5rem;
}

.contact-info > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--deep-moss);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--sage-green);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--deep-moss);
    margin-bottom: 0;
}

.response-time {
    background: rgba(138, 152, 118, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--sage-green);
}

.response-time p {
    margin: 0;
    font-size: 1rem;
}

/* Form Styles */
.contact-form-container {
    background: var(--warm-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(138, 152, 118, 0.1);
}

/* Fieldset Styles - WCAG 1.3.1 */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

fieldset legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-moss);
    margin-bottom: 1rem;
    padding: 0;
}

.form-group-fieldset {
    display: contents; /* Makes fieldset transparent to CSS Grid */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--deep-moss);
    font-weight: 500;
}

/* Required Field Indicator */
.required-indicator {
    color: #c0504d;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-gray); /* WCAG AA: 3.6:1 contrast ratio for UI components */
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--primary-font);
    transition: var(--transition-smooth);
    background: var(--warm-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(138, 152, 118, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error-red); /* WCAG AA: 7.1:1 contrast ratio */
}

.form-help {
    font-size: 0.9rem;
    color: var(--sage-green);
    margin-top: 0.25rem;
    display: block;
}

.error-message {
    color: var(--error-red); /* WCAG AA: 7.1:1 contrast ratio */
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

/* Placeholder text accessibility - WCAG 1.4.3 */
::placeholder {
    color: var(--text-gray); /* WCAG AA: 5.7:1 contrast ratio */
    opacity: 1;
}

/* Success message styling - WCAG 1.4.3 */
.form-success,
.success-message {
    color: var(--success-green); /* WCAG AA: 6.2:1 contrast ratio */
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

.submit-button {
    width: 100%;
    background: var(--sage-green);
    color: var(--warm-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--rose-gold);
    transition: var(--transition-smooth);
    z-index: -1;
}

.submit-button:hover::before {
    left: 0;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-success {
    background: rgba(138, 152, 118, 0.1);
    border: 1px solid var(--sage-green);
    color: var(--deep-moss);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.form-success p {
    margin: 0;
}

/* Footer */
.footer {
    background: var(--deep-moss);
    color: var(--warm-white);
    padding: 1rem 0 0.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    cursor: default;
}

.footer-tagline {
    font-style: italic;
    color: var(--blush-pink);
    margin: 0;
}

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

.footer-contact p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-cta {
    color: var(--warm-white);
    background: var(--sage-green);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-cta:hover {
    background: var(--blush-pink);
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    color: var(--warm-white);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--sage-green);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(253, 249, 244, 0.2);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(253, 249, 244, 0.8);
}

/* Responsive Design */
@media (min-width: 1600px) {
    .hero {
        width: calc(100% - 8rem);
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .about {
        margin: 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        height: 60vh;
        min-height: 400px;
        margin: 80px auto 0 auto;
        width: calc(100% - 2rem);
        border-radius: 0;
    }

    .hero-overlay {
        justify-content: flex-end;
        padding: 2rem;
    }

    .hero-tagline {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        gap: 1.5rem;
        align-items: flex-end;
    }

    .hero-text-box {
        padding: 0.75rem 1rem;
        margin-right: -2rem;
        max-width: 75%;
        text-align: center;
    }

    .hero-title {
        margin-bottom: 0;
    }

    .container {
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    .contact-hero {
        padding: 2rem 0 1.5rem;
    }

    .contact-content {
        padding: 2rem 0;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
        margin-bottom: 0;
    }

    .footer-logo {
        margin-bottom: 0.5rem;
    }

    .footer-social {
        justify-content: center;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 50px;
    }

    .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 65vh;
        min-height: 450px;
        margin: 80px auto 0 auto;
        width: calc(100% - 1rem);
        border-radius: 0;
    }
    
    .hero-overlay {
        justify-content: flex-end;
        padding: 1.5rem;
    }

    .hero-text-box {
        padding: 0.625rem 0.875rem;
        margin-right: -1.5rem;
        max-width: 80%;
        text-align: center;
    }

    .hero-title {
        margin-bottom: 0;
    }
    
    .about {
        margin: 0;
        padding: 1.5rem 0 3rem 0;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .nav-container {
        padding: 0.5rem 0.5rem;
        height: 60px;
    }

    .logo-img {
        height: 45px;
    }

    .logo-text {
        font-size: 1.4rem;
    }
}

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

.service-card,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

.about-content {
    animation: none;
}

.about-text {
    animation: none;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   FOCUS INDICATORS - WCAG 2.4.7
   Enhanced keyboard navigation visibility
   ============================================ */

/* Global focus styles - visible focus indicator required */
*:focus {
    outline: 3px solid var(--sage-green);
    outline-offset: 2px;
}

/* Modern focus-visible for mouse vs keyboard distinction */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--sage-green);
    outline-offset: 2px;
}

/* Enhanced focus for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--sage-green);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(138, 152, 118, 0.2);
}

/* Navigation link focus */
.nav-link:focus-visible {
    outline: 3px solid var(--sage-green);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Button focus - prominent for CTAs */
.cta-button:focus-visible,
.btn-next:focus-visible,
.btn-secondary:focus-visible,
.btn-payment:focus-visible,
.submit-button:focus-visible {
    outline: 3px solid var(--deep-moss);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(80, 103, 74, 0.15);
}

/* Service card focus (when used as links) */
.service-card:focus-visible,
.workshop-card:focus-visible {
    outline: 3px solid var(--sage-green);
    outline-offset: 4px;
    box-shadow: var(--shadow-medium);
}

/* Form input focus - use box-shadow for cleaner appearance */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(138, 152, 118, 0.25);
    outline: none; /* Using box-shadow instead for forms */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --sage-green: #4a5c3a;
        --deep-moss: #2d3d26;
        --rose-gold: #8b4513;
    }
}

/* Header scroll effect enhancement */
.header.scrolled {
    box-shadow: var(--shadow-medium);
}

/* Professional hover effects */
.service-card:hover .service-icon {
    transform: scale(1.1);
    transition: var(--transition-smooth);
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
    transition: var(--transition-smooth);
}

/* ============================================
   DARK AFFIRMATIONS - Easter Egg Styles
   ============================================ */

/* Affirmations Section */
.affirmations-section {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background-color: var(--warm-white);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(80, 103, 74, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(80, 103, 74, 0.03) 0%, transparent 50%);
    position: relative;
}

/* Decorative stars in background */
.affirmations-section::before {
    content: '✦';
    position: absolute;
    top: 15%;
    left: 10%;
    font-size: 1.5rem;
    color: var(--deep-moss);
    opacity: 0.08;
}

.affirmations-section::after {
    content: '✦';
    position: absolute;
    bottom: 20%;
    right: 15%;
    font-size: 1.2rem;
    color: var(--deep-moss);
    opacity: 0.08;
}

.affirmations-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.affirmations-subtitle {
    text-align: center;
    font-style: italic;
    color: var(--sage-green);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

/* Card Container - 3D Perspective */
.card-container {
    perspective: 1000px;
    margin: 0 auto 2.5rem;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

/* Card - 3D Transform */
.card {
    position: relative;
    width: 300px;
    height: 450px;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

.card.spinning {
    transform: rotateY(360deg);
}

/* Card Front */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.card-front {
    background: linear-gradient(135deg, #2a3d28 0%, var(--deep-moss) 100%);
    border: 3px solid var(--rose-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Card Decorations */
.card-decoration-top,
.card-decoration-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    position: relative;
}

.decoration-symbol {
    color: var(--rose-gold);
    font-size: 2.5rem;
    opacity: 0.85;
}

.decoration-line {
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
    opacity: 0.7;
}

.card-decoration-top {
    margin-bottom: 2rem;
}

.card-decoration-bottom {
    margin-top: 2rem;
}


/* Affirmation Text */
.affirmation-text {
    font-family: var(--primary-font);
    font-style: italic;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    line-height: 1.6;
    color: var(--warm-white);
    text-align: center;
    margin: 0;
}

/* Card Back */
.card-back {
    background: linear-gradient(135deg, #2a3d28 0%, var(--deep-moss) 100%);
    border: 3px solid var(--rose-gold);
    transform: rotateY(180deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card-back-pattern {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Ornate corner decorations */
.card-back-pattern::before,
.card-back-pattern::after {
    content: '✦';
    position: absolute;
    font-size: 1.5rem;
    color: var(--rose-gold);
    opacity: 0.6;
}

.card-back-pattern::before {
    top: 1.5rem;
    left: 1.5rem;
}

.card-back-pattern::after {
    bottom: 1.5rem;
    right: 1.5rem;
}

.card-back-symbol {
    font-size: 5rem;
    color: var(--warm-white);
    opacity: 0.8;
    text-shadow: 0 0 20px rgba(253, 249, 244, 0.3);
    position: relative;
}

/* Additional decorative elements */
.card-back-symbol::before,
.card-back-symbol::after {
    content: '✦';
    position: absolute;
    font-size: 1.2rem;
    color: var(--rose-gold);
    opacity: 0.7;
}

.card-back-symbol::before {
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
}

.card-back-symbol::after {
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Subtle pattern overlay */
.card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(253, 249, 244, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(253, 249, 244, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Draw Button */
.draw-button {
    display: block;
    margin: 0 auto;
    min-width: 220px;
    padding: 1rem 2.5rem;
    background: var(--rose-gold);
    color: var(--warm-white);
    text-decoration: none;
    font-family: var(--secondary-font);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(182, 110, 93, 0.3);
    position: relative;
    overflow: hidden;
}

.draw-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(182, 110, 93, 0.4);
}

.draw-button:active {
    transform: translateY(0);
}

.draw-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.draw-button:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(182, 110, 93, 0.3);
}

/* Footer Easter Egg - Shimmer Effect */
.footer-logo.shimmer {
    animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
    0%, 100% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 10px rgba(182, 110, 93, 0.5));
        transform: scale(1.05);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .affirmations-section {
        padding: 7rem 1.5rem 3rem;
    }

    .card {
        width: 280px;
        height: 420px;
    }

    .card-front,
    .card-back {
        padding: 2rem;
    }

    .affirmations-subtitle {
        font-size: 1rem;
    }

    /* Scale down decorative elements for medium screens */
    .decoration-symbol {
        font-size: 2rem;
    }

    .decoration-line {
        width: 2.5rem;
    }
}

@media (max-width: 480px) {
    .affirmations-section {
        padding: 6rem 1rem 2rem;
    }

    .card {
        width: 260px;
        height: 390px;
    }

    .card-front,
    .card-back {
        padding: 1.5rem;
    }

    .affirmation-text {
        font-size: 1rem;
    }

    .draw-button {
        min-width: 180px;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Further scale down decorative elements for small screens */
    .decoration-symbol {
        font-size: 1.75rem;
    }

    .decoration-line {
        width: 2rem;
    }

    .card-decoration-top,
    .card-decoration-bottom {
        gap: 0.75rem;
    }

    /* Reduce spacing */
    .card-decoration-top {
        margin-bottom: 1.5rem;
    }

    .card-decoration-bottom {
        margin-top: 1.5rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }

    .card.flipped {
        transform: none;
    }

    .footer-logo.shimmer {
        animation: none;
    }
}

/* ============================================
   MOBILE TOUCH TARGETS - WCAG 2.5.5
   Minimum 44x44 pixel touch targets for mobile
   ============================================ */
@media (max-width: 768px) {
    /* Navigation links */
    .nav-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
    }

    /* All buttons */
    button,
    .cta-button,
    .btn-next,
    .btn-secondary,
    .btn-primary,
    .submit-button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 24px;
    }

    /* Hamburger menu button */
    .hamburger {
        min-width: 44px;
        min-height: 44px;
    }

    /* Form inputs on mobile */
    input,
    select,
    textarea,
    .form-input,
    .form-select,
    .form-textarea {
        min-height: 44px;
        padding: 12px 16px;
    }

    /* Checkbox and radio inputs */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
    }

    /* Links in general */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}