/* ===================================
   DEAS Fotos - Editorial Luxe Design
   A bold, magazine-inspired aesthetic
   =================================== */

/* ===== Custom Properties ===== */
:root {
    /* Colors - Warm Luxe Palette */
    --color-ink: #0a0a0a;
    --color-charcoal: #1a1a1a;
    --color-graphite: #2d2d2d;
    --color-slate: #4a4a4a;
    --color-stone: #8a8a8a;
    --color-ivory: #f5f0e8;
    --color-cream: #faf8f5;
    --color-white: #ffffff;
    --color-copper: #c17f59;
    --color-copper-light: #d4956f;
    --color-gold: #c9a962;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
    --duration-slower: 1.2s;

    /* Layout */
    --container-max: 1600px;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 40px 100px rgba(0, 0, 0, 0.2);
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-charcoal);
    line-height: 1.7;
    background-color: var(--color-cream);
    overflow-x: hidden;
    cursor: default;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.015;
    z-index: 10000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

::selection {
    background-color: var(--color-copper);
    color: var(--color-white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-out-quart);
}

ul {
    list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-ink);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 300;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
}

.text-display {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-style: italic;
    letter-spacing: 0.02em;
}

.text-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-copper);
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: 900px;
}

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

.section--dark {
    background-color: var(--color-ink);
    color: var(--color-ivory);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-white);
}

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

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: all var(--duration-normal) var(--ease-out-quart);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(250, 248, 245, 0.95), rgba(250, 248, 245, 0.85));
    transition: opacity var(--duration-normal) var(--ease-out-quart);
    pointer-events: none;
}

.header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header.scrolled::before {
    background: rgba(250, 248, 245, 0.98);
}

.header.scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-ink);
    letter-spacing: 0.05em;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.1em;
}

.logo span {
    font-style: italic;
    color: var(--color-copper);
    font-weight: 300;
}

/* Navigation */
.nav__list {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav__link {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-slate);
    position: relative;
    padding: var(--space-xs) 0;
    overflow: hidden;
}

.nav__link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-copper);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.nav__link:hover::before,
.nav__link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__link:hover {
    color: var(--color-ink);
}

.nav__link.active {
    color: var(--color-ink);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 1.5px;
    background-color: var(--color-ink);
    transition: all var(--duration-normal) var(--ease-out-expo);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-ink);
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transform: scale(1.1);
    transition: transform 20s linear, opacity var(--duration-slower) var(--ease-out-expo);
}

.hero:hover .hero__background img {
    transform: scale(1);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.8) 0%,
        rgba(10, 10, 10, 0.4) 50%,
        rgba(10, 10, 10, 0.6) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: var(--space-md);
    max-width: 1200px;
}

.hero__label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--color-copper-light);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s var(--ease-out-expo) 0.3s forwards;
}

.hero__title {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    font-weight: 300;
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 1.2s var(--ease-out-expo) 0.5s forwards;
}

.hero__title span {
    display: block;
    font-style: italic;
    font-size: 0.5em;
    color: var(--color-copper-light);
    margin-top: var(--space-xs);
}

.hero__subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s var(--ease-out-expo) 0.7s forwards;
}

.hero__cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s var(--ease-out-expo) 0.9s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: heroReveal 1s var(--ease-out-expo) 1.2s forwards;
}

.hero__scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero__scroll svg {
    width: 20px;
    height: 20px;
    animation: scrollBounce 2s infinite;
}

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

/* Decorative Lines */
.hero__line {
    position: absolute;
    background-color: var(--color-copper);
    opacity: 0.3;
    z-index: 2;
}

.hero__line--vertical {
    width: 1px;
    height: 120px;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
}

.hero__line--horizontal {
    height: 1px;
    width: 120px;
    right: var(--space-lg);
    top: 50%;
}

/* ===== Page Header ===== */
.page-header {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
    text-align: center;
    background-color: var(--color-ivory);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-copper), transparent);
}

.page-header__label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-copper);
    margin-bottom: var(--space-sm);
}

.page-header__title {
    margin-bottom: var(--space-sm);
}

.page-header__subtitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-slate);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1.1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    transform: translateY(101%);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn--primary {
    background-color: var(--color-copper);
    color: var(--color-white);
}

.btn--primary:hover {
    color: var(--color-copper);
}

.btn--primary:hover::before {
    transform: translateY(0);
}

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

.btn--outline:hover {
    color: var(--color-ink);
    border-color: var(--color-white);
}

.btn--outline:hover::before {
    transform: translateY(0);
}

.btn--dark {
    background: transparent;
    border: 1px solid var(--color-ink);
    color: var(--color-ink);
}

.btn--dark::before {
    background-color: var(--color-ink);
}

.btn--dark:hover {
    color: var(--color-white);
}

.btn--dark:hover::before {
    transform: translateY(0);
}

/* Button Arrow */
.btn__arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* ===== About Section ===== */
.about {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__visual {
    position: relative;
}

.about__image-wrapper {
    position: relative;
    overflow: hidden;
}

.about__image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--color-copper);
    z-index: -1;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.about__visual:hover .about__image-wrapper::before {
    transform: translate(10px, 10px);
}

.about__image-wrapper img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.about__visual:hover .about__image-wrapper img {
    transform: scale(1.03);
}

.about__badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background-color: var(--color-copper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    padding: var(--space-sm);
}

.about__badge-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
}

.about__badge-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: var(--space-xs);
}

.about__content {
    padding: var(--space-md) 0;
}

.about__label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-copper);
    margin-bottom: var(--space-sm);
}

.about__content h2 {
    margin-bottom: var(--space-md);
}

.about__content p {
    color: var(--color-slate);
    margin-bottom: var(--space-sm);
}

.about__signature {
    font-family: var(--font-display);
    font-size: 2rem;
    font-style: italic;
    color: var(--color-copper);
    margin-top: var(--space-md);
}

/* Legacy support */
.about__subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-copper);
    margin-bottom: var(--space-sm);
}

.about__image {
    position: relative;
}

.about__image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about__image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--color-copper);
    z-index: -1;
}

/* ===== Services Section ===== */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.service-card {
    position: relative;
    padding: var(--space-lg) var(--space-md);
    background: var(--color-white);
    text-align: left;
    transition: all var(--duration-normal) var(--ease-out-expo);
    border: 1px solid transparent;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-copper);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: var(--color-ivory);
    line-height: 1;
    margin-bottom: var(--space-md);
    transition: color var(--duration-normal) var(--ease-out-expo);
}

.service-card:hover .service-card__number {
    color: var(--color-copper);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-ivory);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.service-card:hover .service-card__icon {
    background-color: var(--color-copper);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-copper);
    transition: stroke var(--duration-normal) var(--ease-out-expo);
}

.service-card:hover .service-card__icon svg {
    stroke: var(--color-white);
}

.service-card__title {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

.service-card__text {
    font-size: 0.95rem;
    color: var(--color-slate);
    line-height: 1.7;
}

/* ===== Gallery / Portfolio ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.gallery__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.gallery__item:hover img {
    transform: scale(1.08);
}

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.8) 0%,
        rgba(10, 10, 10, 0) 60%
    );
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: var(--space-md);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.gallery__item:hover .gallery__icon {
    transform: translateY(0);
    opacity: 1;
}

.gallery__icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-white);
}

/* Masonry variant */
.gallery--masonry {
    columns: 3;
    column-gap: var(--space-sm);
}

.gallery--masonry .gallery__item {
    break-inside: avoid;
    margin-bottom: var(--space-sm);
    aspect-ratio: auto;
}

/* ===== CTA Section ===== */
.cta {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
}

.cta__decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-copper-light);
    margin-bottom: var(--space-md);
}

.cta h2 {
    max-width: 800px;
    margin: 0 auto var(--space-md);
}

.cta p {
    max-width: 500px;
    margin: 0 auto var(--space-lg);
    opacity: 0.7;
}

/* ===== Contact Section ===== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
}

.contact__info {
    padding-right: var(--space-lg);
}

.contact__info h3 {
    margin-bottom: var(--space-lg);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-ivory);
}

.contact__item:last-child {
    border-bottom: none;
}

.contact__item-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.contact__item:hover .contact__item-icon {
    background-color: var(--color-copper);
}

.contact__item-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-copper);
    transition: stroke var(--duration-normal) var(--ease-out-expo);
}

.contact__item:hover .contact__item-icon svg {
    stroke: var(--color-white);
}

.contact__item-content h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-xs);
    color: var(--color-ink);
}

.contact__item-content p,
.contact__item-content a {
    color: var(--color-slate);
    font-size: 1rem;
}

.contact__item-content a:hover {
    color: var(--color-copper);
}

/* Contact Form */
.contact__form {
    background: var(--color-ivory);
    padding: var(--space-lg);
    position: relative;
}

.contact__form::before {
    content: '';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 60px;
    height: 60px;
    border-top: 1px solid var(--color-copper);
    border-right: 1px solid var(--color-copper);
}

.contact__form::after {
    content: '';
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    width: 60px;
    height: 60px;
    border-bottom: 1px solid var(--color-copper);
    border-left: 1px solid var(--color-copper);
}

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

.form__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
    color: var(--color-charcoal);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid var(--color-stone);
    background-color: transparent;
    transition: all var(--duration-normal) var(--ease-out-expo);
    color: var(--color-ink);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-copper);
    background-color: var(--color-white);
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--color-stone);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-ink);
    color: var(--color-white);
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-copper), transparent);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding-top: var(--space-lg);
}

.footer__brand .logo {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    display: inline-block;
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 320px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer__title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
    color: var(--color-copper-light);
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__links a,
.footer__links li {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: color var(--duration-fast) var(--ease-out-quart);
}

.footer__links a:hover {
    color: var(--color-white);
}

.footer__bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    transition: color var(--duration-fast) var(--ease-out-quart);
}

.footer__legal a:hover {
    color: var(--color-copper-light);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.97);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
    backdrop-filter: blur(20px);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox__content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: var(--shadow-xl);
}

.lightbox__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 50px;
    height: 50px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.lightbox__close:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.lightbox__close svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-white);
    transition: stroke var(--duration-normal) var(--ease-out-expo);
}

.lightbox__close:hover svg {
    stroke: var(--color-ink);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: var(--space-sm);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.lightbox__nav:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.lightbox__nav svg {
    width: 30px;
    height: 30px;
    stroke: var(--color-white);
    transition: stroke var(--duration-normal) var(--ease-out-expo);
}

.lightbox__nav:hover svg {
    stroke: var(--color-ink);
}

.lightbox__prev {
    left: var(--space-md);
}

.lightbox__next {
    right: var(--space-md);
}

/* ===== Text Content Pages ===== */
.text-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.text-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 1.75rem;
}

.text-content h3 {
    margin-top: var(--space-md);
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.text-content p {
    margin-bottom: var(--space-sm);
    color: var(--color-slate);
}

.text-content ul {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
}

.text-content li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
    color: var(--color-slate);
}

.text-content a {
    color: var(--color-copper);
    border-bottom: 1px solid transparent;
}

.text-content a:hover {
    border-color: var(--color-copper);
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

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

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity var(--duration-normal) var(--ease-out-expo),
        transform var(--duration-normal) var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal animations */
.reveal {
    position: relative;
    overflow: hidden;
}

.reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-copper);
    transform: translateX(-101%);
}

.reveal.visible::after {
    animation: revealSlide 1.2s var(--ease-out-expo) forwards;
}

@keyframes revealSlide {
    0% { transform: translateX(-101%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(101%); }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .gallery {
        gap: var(--space-xs);
    }

    .about {
        gap: var(--space-lg);
    }
}

@media (max-width: 1024px) {
    :root {
        --space-xl: 6rem;
        --space-2xl: 8rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery__item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery--masonry {
        columns: 2;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer__brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-cream);
        padding: calc(var(--header-height) + var(--space-lg)) var(--space-md) var(--space-md);
        transition: right var(--duration-normal) var(--ease-out-expo);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav__link {
        font-size: 2rem;
        font-family: var(--font-display);
        text-transform: none;
        letter-spacing: 0;
        font-weight: 400;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--color-ivory);
        width: 100%;
    }

    .nav__link::before {
        display: none;
    }

    /* Hero adjustments */
    .hero__line {
        display: none;
    }

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

    /* Layout adjustments */
    .about {
        grid-template-columns: 1fr;
    }

    .about__image::before,
    .about__image-wrapper::before {
        display: none;
    }

    .about__badge {
        right: 0;
        bottom: -20px;
        width: 100px;
        height: 100px;
    }

    .about__badge-number {
        font-size: 2rem;
    }

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

    .gallery {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .gallery__item:nth-child(1) {
        grid-column: span 1;
    }

    .gallery--masonry {
        columns: 1;
    }

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

    .contact__info {
        padding-right: 0;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .footer__brand {
        grid-column: span 1;
    }

    .footer__brand p {
        margin: 0 auto;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero__scroll {
        display: none;
    }

    /* Cursor hidden on touch */
    .cursor {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 2.5rem;
        --space-xl: 3rem;
    }

    .header__inner {
        padding: var(--space-sm);
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 0.7rem;
    }

    .service-card {
        padding: var(--space-md);
    }

    .service-card__number {
        font-size: 3rem;
    }

    .contact__form {
        padding: var(--space-md);
    }

    .contact__form::before,
    .contact__form::after {
        display: none;
    }

    .cta__decoration {
        width: 250px;
        height: 250px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .hero__scroll,
    .lightbox,
    .cursor {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--space-lg) 0;
    }

    .section {
        padding: var(--space-md) 0;
    }
}
