/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0em;
    color: #0E0F12;
    background-color: #F5F3EF;
    overflow-x: hidden;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    background: #000;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 2000;
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Colors */
    --color-primary: #0E0F12;
    --color-secondary: #F5F3EF;
    --color-accent: #D4BFA3;
    --color-mint: #8BD9C4;
    
    /* Typography */
    --font-headline: 'Cormorant Garamond', serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    /* Spacing Scale */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 72px;
    --space-4xl: 96px;
    
    /* Layout */
    --max-width: 1120px;
    --border-radius: 14px;
    --border-radius-pill: 9999px;
    
    /* Shadows */
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-focus: 0 0 0 2px var(--color-accent);
    
    
    /* Transitions */
    --transition-base: 250ms ease-out;
    --transition-fast: 200ms ease-out;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

h1 {
    font-size: clamp(36px, 6vw, 56px);
}

h2 {
    font-size: clamp(24px, 3vw, 32px);
}

h3 {
    font-size: clamp(20px, 2.5vw, 24px);
}

h4 {
    font-size: 20px;
}

p {
    margin-bottom: var(--space-lg);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: 600;
    text-shadow: none;
}

.btn--primary:hover {
    background-color: #c9b396;
    transform: translateY(-1px);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    font-weight: 500;
}

.btn--secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-secondary);
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(245, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 191, 163, 0.2);
    z-index: 1000;
    transition: all var(--transition-base);
}

.nav__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__brand-text {
    font-family: var(--font-headline);
    font-size: 24px;
    color: var(--color-primary);
    font-weight: 400;
}

.nav__menu {
    display: none;
    list-style: none;
    gap: var(--space-xl);
}

.nav__link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
}

.nav__link:hover {
    color: var(--color-accent);
}

.nav__link:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav__toggle-line {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-base);
}

@media (min-width: 768px) {
    .nav__menu {
        display: flex;
    }
    
    .nav__toggle {
        display: none;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero__content {
    text-align: center;
    color: var(--color-secondary);
    z-index: 2;
    padding: var(--space-4xl) 0;
    position: relative;
}

.hero__title {
    margin-bottom: var(--space-lg);
    color: var(--color-secondary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(18px, 2vw, 22px);
    margin-bottom: var(--space-2xl);
    font-weight: 500;
    color: #ffffff;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.hero__actions .btn--secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.hero__actions .btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border-color: #ffffff;
}

@media (min-width: 640px) {
    .hero__actions {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-lg);
    }
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--space-4xl) 0;
    background-color: var(--color-secondary);
}

.services__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.services__title {
    color: var(--color-primary);
    font-weight: 600;
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.services__intro {
    font-size: clamp(18px, 2.5vw, 22px);
    color: rgba(14, 15, 18, 0.65);
    margin-bottom: 0;
    font-weight: 400;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-style: italic;
    text-align: center;
}

.services__grid {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media (min-width: 640px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background-color: var(--color-secondary);
    padding: var(--space-2xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(212, 191, 163, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(212, 191, 163, 0.4);
}

.service-card__title {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    font-size: 22px;
    font-weight: 600;
    font-family: var(--font-body);
}

.service-card__text {
    color: rgba(14, 15, 18, 0.75);
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

/* ===== TEAM SECTION ===== */
.team {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.team__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.team__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: var(--space-md);
    text-align: center;
    letter-spacing: -0.02em;
}

.team__description {
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.5;
    color: rgba(90, 108, 125, 0.65);
    margin-bottom: 32px;
    font-weight: 400;
    font-style: italic;
    text-align: left;
    max-width: 650px;
}

.team__highlights {
    display: grid;
    gap: 24px;
}

.team__highlight h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.team__highlight p {
    color: #5a6c7d;
    line-height: 1.6;
}

.team__visual {
    position: relative;
}

.team__image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .team__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .team__image {
        height: 300px;
    }
}

/* ===== GALLERY SECTION ===== */
.gallery {
    padding: 80px 0;
    background: #ffffff;
}

.gallery__header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.gallery__subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: rgba(90, 108, 125, 0.65);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery__item:hover .gallery__image {
    transform: scale(1.05);
}

.gallery__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 32px 24px 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery__item:hover .gallery__overlay {
    transform: translateY(0);
}

.gallery__overlay h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.gallery__overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .gallery__overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    }
}

/* ===== SOUND SECTION ===== */
.sound {
    padding: var(--space-4xl) 0;
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.sound__content {
    display: grid;
    gap: var(--space-3xl);
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .sound__content {
        grid-template-columns: 1fr 1fr;
    }
}

.sound__title {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.sound__description {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: var(--space-xl);
    opacity: 0.65;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    max-width: 650px;
    text-align: left;
}

.sound__visual {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.sound__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .sound__image {
        height: 400px;
    }
}

/* ===== CLOSING SECTION ===== */
.closing {
    padding: var(--space-4xl) 0;
    background-color: var(--color-secondary);
    text-align: center;
}

.closing__title {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.02em;
}

.closing__text {
    font-size: clamp(18px, 2.5vw, 22px);
    color: rgba(14, 15, 18, 0.65);
    margin-bottom: var(--space-2xl);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

.closing__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

@media (min-width: 640px) {
    .closing__actions {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-lg);
    }
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--space-4xl) 0;
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.contact__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.contact__title {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.contact__subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    opacity: 0.65;
    margin-bottom: 0;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.contact__content {
    max-width: 600px;
    margin: 0 auto;
}

.contact__info {
    display: grid;
    gap: var(--space-2xl);
    text-align: center;
}

.contact__company h3 {
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.contact__address {
    font-style: normal;
    opacity: 0.9;
    line-height: 1.6;
}

.contact__persons {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 640px) {
    .contact__persons {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact__person h4 {
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
    font-size: 18px;
}

.contact__phone {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: color var(--transition-base);
}

.contact__phone:hover {
    color: var(--color-mint);
}

.contact__phone:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.contact__email-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    transition: color var(--transition-base);
}

.contact__email-link:hover {
    color: var(--color-mint);
}

.contact__email-link:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===== FOOTER ===== */
.footer {
    padding: var(--space-xl) 0;
    background-color: var(--color-primary);
    border-top: 1px solid rgba(212, 191, 163, 0.2);
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__links {
    display: flex;
    gap: var(--space-xl);
}

.footer__link {
    color: var(--color-secondary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.footer__link:hover {
    opacity: 1;
}

.footer__link:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.footer__copy {
    color: var(--color-secondary);
    opacity: 0.6;
}

.footer__copy p {
    margin-bottom: 0;
    font-size: 14px;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    background-color: var(--color-accent);
    color: var(--color-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-soft);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #c9b396;
    transform: translateY(-2px);
}

.back-to-top:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSoft {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    50% {
        opacity: 0.3;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSmooth {
    0% {
        opacity: 0;
        transform: translateY(5px) scale(0.98);
    }
    20% {
        opacity: 0.1;
        transform: translateY(4px) scale(0.985);
    }
    40% {
        opacity: 0.3;
        transform: translateY(3px) scale(0.99);
    }
    60% {
        opacity: 0.6;
        transform: translateY(2px) scale(0.995);
    }
    80% {
        opacity: 0.85;
        transform: translateY(1px) scale(0.998);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-secondary: #ffffff;
        --color-accent: #0066cc;
    }
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 767px) {
    .nav__menu.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-secondary);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-soft);
        border-top: 1px solid rgba(212, 191, 163, 0.2);
    }
    
    .nav__toggle.active .nav__toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav__toggle.active .nav__toggle-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle.active .nav__toggle-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav,
    .back-to-top {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
    }
    
    .hero__background {
        display: none;
    }
    
    .hero__content {
        color: var(--color-primary);
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}
