/* ========================================
   CSS Variables & Design Tokens
   ======================================== */

:root {
    /* Colors */
    --color-primary: #2C3E50;
    --color-primary-light: #34495E;
    --color-primary-dark: #1A252F;
    --color-accent: #E67E22;
    --color-accent-light: #F39C12;
    --color-accent-dark: #D35400;

    --color-text: #2C3E50;
    --color-text-light: #7F8C8D;
    --color-text-lighter: #95A5A6;
    --color-background: #FFFFFF;
    --color-background-alt: #F8F9FA;
    --color-background-dark: #ECF0F1;

    --color-border: #E8E8E8;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-shadow-dark: rgba(0, 0, 0, 0.15);

    /* Retro Cartoon Colors */
    --color-cream: #FFF9F0;
    --color-peach: #FFE5D4;
    --color-sky: #E8F4F8;
    --color-light-green: #FFF3E6;

    /* Typography */
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Rubik Dirt', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

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

    /* Layout */
    --container-width: 1200px;
    --container-padding: 2rem;
    --nav-height: 80px;

    /* Border Radius - Retro */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Retro Hard Shadows */
    --shadow-offset: 6px;
    --shadow-offset-hover: 3px;
    --shadow-offset-large: 8px;
    --shadow-offset-xlarge: 12px;

    /* Legacy soft shadows (keeping for nav) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

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

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

ul, ol {
    list-style: none;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: 0.02em;
}

h3 {
    font-size: clamp(var(--font-size-xl), 2.5vw, var(--font-size-3xl));
}

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

/* ========================================
   Layout Components
   ======================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.section {
    padding: var(--spacing-4xl) 0;
    position: relative;
}

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

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--radius-full);
    animation: lineExpand 0.8s ease-out;
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Retro Color Blocking for Sections */
.section-about {
    background-color: var(--color-light-green);
}

.section-about .section-title,
.section-about .section-subtitle,
.section-about p {
    color: var(--color-primary-dark);
}

.section-services {
    background-color: var(--color-cream);
}

.section-services .section-title,
.section-services .section-subtitle,
.section-services p,
.section-services h3,
.section-services h4 {
    color: var(--color-primary-dark);
}

.section-gallery {
    background-color: white;
}

.section-contact {
    background-color: var(--color-peach);
}

.section-contact .section-title,
.section-contact .section-subtitle,
.section-contact p,
.section-contact label {
    color: var(--color-primary-dark);
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: white;
    border-bottom: 3px solid var(--color-primary);
    box-shadow: 0 4px 0 var(--color-accent);
    z-index: 1000;
    transition: transform var(--transition-base);
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav.nav-scrolled {
    box-shadow: 0 6px 0 var(--color-accent);
}

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

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform var(--transition-base);
}

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

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

.nav-link {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    padding: var(--spacing-xs) var(--spacing-sm);
    position: relative;
    transition: color var(--transition-base);
}

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

.nav-link:hover {
    color: var(--color-accent);
}

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

/* CTA Nav Link - Retro Cutting Board Button */
.nav-item-cta {
    position: relative;
}

.nav-link-cutting-board {
    display: inline-block;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 20px;
    background-color: var(--color-accent);
    color: white;
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    box-shadow: 4px 4px 0 var(--color-primary);
    transition: all var(--transition-fast);
}

.nav-link-cutting-board:hover {
    background-color: var(--color-accent-light);
    box-shadow: 2px 2px 0 var(--color-primary);
    transform: translate(2px, 2px);
}


.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1001;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    position: absolute;
    width: 28px;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition-base);
}

.nav-toggle-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    left: 0;
}

.nav-toggle-icon::before {
    top: -8px;
}

.nav-toggle-icon::after {
    top: 8px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Language Switch - Split Pill Style */
.lang-switch {
    background-color: transparent;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    display: inline-flex;
    gap: 0;
}

.lang-switch-text {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.lang-option {
    cursor: pointer;
    padding: 8px 14px;
    background-color: var(--color-accent);
    color: white;
    transition: all var(--transition-fast);
    position: relative;
    border: 3px solid var(--color-primary);
}

/* Left half of pill (PT) */
.lang-option:first-child {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    border-right-width: 1.5px;
}

/* Right half of pill (EN) */
.lang-option:last-child {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    border-left-width: 1.5px;
}

/* Inactive (raised) */
.lang-option:not(.active) {
    box-shadow: 0 3px 0 var(--color-accent);
}

.lang-option:not(.active):hover {
    background-color: var(--color-accent-light);
    box-shadow: 0 2px 0 var(--color-accent-dark);
    transform: translateY(1px);
}

/* Active (pressed down) */
.lang-option.active {
    background-color: var(--color-primary-dark);
    transform: translateY(3px);
    box-shadow: none;
}

.lang-separator {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-xl) var(--container-padding);
        gap: var(--spacing-md);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--transition-base);
        z-index: 999;
        border-top: 3px solid var(--color-primary);
        box-shadow: 0 4px 0 var(--color-accent);
        overflow-y: auto;
    }

    .nav-menu.nav-menu-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        font-size: var(--font-size-lg);
        width: 100%;
        text-align: center;
    }

    /* Mobile contact button - full width */
    .nav-link-cutting-board {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-xl) var(--container-padding);
    margin-top: var(--nav-height);
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: var(--color-primary-dark);
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.7) 0%,
        rgba(44, 62, 80, 0.5) 50%,
        rgba(44, 62, 80, 0.7) 100%
    );
}

.hero-content {
    max-width: 900px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
    margin-top: var(--spacing-4xl);
}

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

.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.hero-title-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(var(--font-size-4xl), 6vw, var(--font-size-6xl));
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out backwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-title-line-accent {
    color: var(--color-accent-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(var(--font-size-lg), 2vw, var(--font-size-xl));
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.scroll-icon {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-text-light);
    border-radius: var(--radius-full);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 20% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* ========================================
   Buttons - Retro Cartoon Style
   ======================================== */

.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.02em;
    text-align: center;
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent-light);
    box-shadow: var(--shadow-offset-hover) var(--shadow-offset-hover) 0 var(--color-primary);
    transform: translate(3px, 3px);
}

.btn-primary:active {
    box-shadow: 1px 1px 0 var(--color-primary);
    transform: translate(5px, 5px);
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
    border: 3px solid var(--color-primary);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-cream);
    box-shadow: var(--shadow-offset-hover) var(--shadow-offset-hover) 0 var(--color-accent);
    transform: translate(3px, 3px);
}

.btn-secondary:active {
    box-shadow: 1px 1px 0 var(--color-accent);
    transform: translate(5px, 5px);
}

.btn-small {
    padding: 10px 20px;
    font-size: var(--font-size-sm);
    border-width: 2px;
}

.btn-full {
    width: 100%;
}

/* ========================================
   About Section
   ======================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-text {
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-paragraph {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.about-highlight {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
    font-style: italic;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    border-left: 4px solid var(--color-accent);
    background-color: rgba(230, 126, 34, 0.05);
    border-radius: var(--radius-md);
}

.about-image {
    animation: fadeInRight 0.8s ease-out;
}

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

.about-image-placeholder {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
    transition: transform var(--transition-base);
}

.about-image-placeholder:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-image-photo {
    width: 100%;
    height: auto;
    border: 4px solid var(--color-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-offset-xlarge) var(--shadow-offset-xlarge) 0 var(--color-accent);
    transform: rotate(2deg);
    transition: all 0.3s var(--ease-bounce);
    object-fit: cover;
}

.about-image-photo:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 16px 16px 0 var(--color-accent);
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .about-image {
        order: -1;
    }
}

/* ========================================
   Services Section
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background-color: white;
    padding: 32px;
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-offset-large) var(--shadow-offset-large) 0 var(--color-accent);
    transition: all 0.3s var(--ease-bounce);
    animation: fadeInUp 0.6s ease-out backwards;
    position: relative;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-offset-xlarge) var(--shadow-offset-xlarge) 0 var(--color-accent);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--color-accent);
    background: var(--color-peach);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 var(--color-accent);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 2px;
}

.service-card:hover .service-icon {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 6px 6px 0 var(--color-accent);
}

.service-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.service-description {
    color: var(--color-text-light);
    line-height: var(--line-height-relaxed);
}

/* ========================================
   Gallery Section - Retro Style
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    padding: 16px;
    background-color: var(--color-cream);
    border: 4px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-offset-xlarge) var(--shadow-offset-xlarge) 0 var(--color-accent);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: 4px 4px 0 var(--color-primary);
    transition: all 0.3s var(--ease-bounce);
    animation: fadeInUp 0.6s ease-out backwards;
    background-color: white;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 var(--color-primary);
}

.gallery-placeholder {
    aspect-ratio: 1;
    background-color: var(--color-background-dark);
}

/* Instagram Widget Container */
.instagram-widget-container {
    width: 100%;
    padding: 16px;
    background-color: var(--color-cream);
    border: 4px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-offset-xlarge) var(--shadow-offset-xlarge) 0 var(--color-accent);
}

/* ========================================
   Contact Section
   ======================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: var(--spacing-md);
    /* Align shadows: form has 8px shadow, cards have 6px shadow */
    /* Shift up by 2px to align top shadows, add 2px bottom to align bottom shadows */
    margin-top: -2px;
    margin-bottom: 2px;
}

.contact-card {
    padding: 24px;
    background-color: white;
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--color-accent);
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-offset-large) var(--shadow-offset-large) 0 var(--color-accent);
}

.contact-card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.contact-link {
    color: var(--color-accent);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-base);
}

.contact-link:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.contact-text {
    color: var(--color-text-light);
    line-height: var(--line-height-relaxed);
}

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

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: white;
    border: 3px solid white;
    border-radius: var(--radius-md);
    box-shadow: 3px 3px 0 var(--color-primary-dark);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-accent-light);
    box-shadow: 2px 2px 0 var(--color-primary-dark);
    transform: translate(1px, 1px);
}

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

/* Contact Form - Retro Style */
.contact-form-container {
    background-color: white;
    padding: 32px;
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-offset-large) var(--shadow-offset-large) 0 var(--color-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: white;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: white;
    box-shadow: 4px 4px 0 var(--color-accent);
    transform: translate(-2px, -2px);
}

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

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

/* ========================================
   Footer - Retro Style
   ======================================== */

.footer {
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    border-top: 4px solid var(--color-primary-dark);
    box-shadow: 0 -6px 0 var(--color-accent);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 3px solid var(--color-accent);
}

.footer-logo {
    margin-bottom: var(--spacing-md);
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

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

.footer-links-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.95);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-base);
}

.footer-links-list a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social .social-link {
    background-color: var(--color-accent);
    border-color: var(--color-accent-light);
}

.footer-social .social-link:hover {
    background-color: var(--color-accent-light);
    border-color: white;
}

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

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-credit {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-sm);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-base);
}

.footer-credit a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ========================================
   Cookie Banner
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg) var(--container-padding);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.cookie-banner.cookie-banner-show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.cookie-banner-text {
    flex: 1;
    color: var(--color-text-light);
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.cookie-link {
    color: var(--color-accent);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-base);
}

.cookie-link:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.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;
}

/* Scroll animations - elements fade in when scrolled into view */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
    :root {
        --container-padding: 1.5rem;
        --spacing-3xl: 5rem;
        --spacing-4xl: 6rem;
    }
}

@media (max-width: 968px) {
    :root {
        --container-padding: 1.25rem;
        --spacing-3xl: 4rem;
        --spacing-4xl: 5rem;
        --nav-height: 70px;
    }

    .section {
        padding: var(--spacing-3xl) 0;
    }

    /* Hero adjustments for tablets */
    .hero-content {
        max-width: 700px;
        margin-top: var(--spacing-2xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 768px) {
    /* Navigation improvements */
    .nav-link {
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 44px; /* Better touch target */
        display: flex;
        align-items: center;
    }

    /* Button touch targets */
    .btn {
        min-height: 48px;
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    /* Form inputs */
    .form-input,
    .form-textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Service cards */
    .service-card {
        padding: var(--spacing-xl);
    }

    /* Contact section */
    .contact-content {
        flex-direction: column;
        gap: var(--spacing-2xl);
    }

    .contact-info,
    .contact-form-container {
        width: 100%;
    }

    .contact-info {
        height: auto;
        gap: var(--spacing-lg);
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    :root {
        --container-padding: 1rem;
        --spacing-2xl: 2.5rem;
        --spacing-3xl: 3rem;
        --spacing-4xl: 4rem;
    }

    /* Hero Section Mobile Optimizations */
    .hero {
        min-height: 100vh;
        min-height: 100svh; /* Safari mobile viewport */
        padding: var(--spacing-md) var(--container-padding);
    }

    .hero-video-background {
        /* Ensure video covers full viewport on mobile */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .hero-video {
        /* Better mobile video positioning */
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        /* Performance optimization for mobile */
        will-change: auto;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .hero-content {
        /* Reduce top margin on mobile for better centering */
        margin-top: var(--spacing-xl);
        padding: 0 var(--spacing-xs);
    }

    .hero-title {
        margin-bottom: var(--spacing-lg);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xl);
        line-height: var(--line-height-relaxed);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .hero-cta .btn {
        width: 100%;
        min-height: 48px; /* Better touch target */
        font-size: var(--font-size-base);
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Improve overlay opacity on mobile for better text readability */
    .hero-video-overlay {
        background: linear-gradient(
            135deg,
            rgba(44, 62, 80, 0.8) 0%,
            rgba(44, 62, 80, 0.6) 50%,
            rgba(44, 62, 80, 0.8) 100%
        );
    }

    /* Navigation mobile menu */
    .nav-menu {
        padding: var(--spacing-md) 0;
    }

    /* Footer improvements */
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    /* Cookie banner mobile */
    .cookie-banner {
        padding: var(--spacing-md);
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }
}

/* Extra small devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-content {
        padding: 0;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
}

/* ========================================
   WhatsApp Floating Button - Retro Style
   ======================================== */

.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: #25d366;
    border: 3px solid #128c7e;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 5px 0 #128c7e;
    transition: all var(--transition-fast);
    z-index: 999;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-button svg {
    width: 36px;
    height: 36px;
    color: white;
    transition: transform var(--transition-fast);
}

.whatsapp-button:hover {
    background: #128c7e;
    border-color: #25d366;
    box-shadow: 3px 3px 0 #0d6b5c;
    transform: translate(2px, 2px);
}

.whatsapp-button:hover svg {
    transform: rotate(-5deg);
}

.whatsapp-button:active {
    box-shadow: 1px 1px 0 #0d6b5c;
    transform: translate(4px, 4px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 60px;
        height: 60px;
    }

    .whatsapp-button svg {
        width: 32px;
        height: 32px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .nav,
    .cookie-banner,
    .whatsapp-button,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .section {
        page-break-inside: avoid;
    }
}
