/* ============================================
   PATANA PAINTING — Editorial Brand Style
   Midnight Blue (#1a2f4a) + Mint (#5eead4)
   ============================================ */

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

:root {
    --midnight: #1a2f4a;
    --midnight-deep: #0f1d30;
    --midnight-light: #2a4566;
    --mint: #5eead4;
    --mint-dark: #3dd4bc;
    --mint-light: #a9f5e8;
    --cream: #f8f7f4;
    --cream-dark: #efeeea;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-mid: #4a4a4a;
    --text-light: #7a7a7a;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--sans);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background var(--ease) 0.4s, box-shadow var(--ease) 0.4s, padding var(--ease) 0.4s;
}

.nav.scrolled {
    background: rgba(26, 47, 74, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav.scrolled .nav__inner {
    height: 64px;
}

.nav__logo {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.nav__logo-mark {
    display: block;
    width: 28px;
    height: 28px;
    background: var(--mint);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    transition: color var(--ease) 0.2s;
}

.nav__links a:hover {
    color: var(--mint);
}

.nav__cta {
    background: var(--mint);
    color: var(--midnight-deep) !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600 !important;
    transition: background var(--ease) 0.2s, transform var(--ease) 0.2s !important;
}

.nav__cta:hover {
    background: var(--mint-dark);
    color: var(--midnight-deep) !important;
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--ease) 0.3s, opacity var(--ease) 0.3s;
}

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

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

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

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 29, 48, 0.88) 0%,
        rgba(26, 47, 74, 0.72) 50%,
        rgba(26, 47, 74, 0.55) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 80px;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease) 0.3s forwards;
}

.hero__headline {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    color: var(--white);
    max-width: 820px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}

.hero__sub {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease) 0.7s forwards;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease) 0.9s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--sans);
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--mint), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--ease) 0.25s;
    white-space: nowrap;
}

.btn--primary {
    background: var(--mint);
    color: var(--midnight-deep);
}

.btn--primary:hover {
    background: var(--mint-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94, 234, 212, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
    border-color: var(--mint);
    color: var(--mint);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* ============================================
   SECTION COMMON
   ============================================ */
section {
    padding: 120px 0;
}

section span.eyebrow,
section > .container > span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint-dark);
    display: block;
    margin-bottom: 16px;
}

section h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--midnight);
    max-width: 700px;
}

/* ============================================
   INTRO / SERVICES
   ============================================ */
.intro {
    background: var(--white);
}

.intro > .container {
    text-align: center;
}

.intro > .container > span {
    margin-bottom: 20px;
}

.intro > .container > h2 {
    margin: 0 auto 64px;
    max-width: 640px;
}

.intro__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--cream);
    border-radius: 8px;
    padding: 40px 32px;
    transition: transform var(--ease) 0.3s, box-shadow var(--ease) 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26, 47, 74, 0.1);
}

.card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--midnight);
    border-radius: 12px;
    color: var(--mint);
    margin-bottom: 24px;
}

.card h3 {
    font-family: var(--serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--cream);
}

.about__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint-dark);
    display: block;
    margin-bottom: 20px;
}

.about__headline {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--midnight);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.about__content p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about__stats {
    display: flex;
    gap: 40px;
    margin: 32px 0 40px;
    padding: 32px 0;
    border-top: 1px solid var(--cream-dark);
    border-bottom: 1px solid var(--cream-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat__number {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--midnight);
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: 0.8125rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about__content .btn {
    margin-top: 8px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    background: var(--white);
}

.gallery > .container {
    text-align: center;
}

.gallery > .container > span {
    margin-bottom: 20px;
}

.gallery > .container > h2 {
    margin: 0 auto 64px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease) 0.5s;
}

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

.gallery__item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(15, 29, 48, 0.85), transparent);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--ease) 0.3s, transform var(--ease) 0.3s;
}

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

/* ============================================
   PROCESS
   ============================================ */
.process {
    background: var(--midnight);
    color: var(--white);
}

.process > .container {
    text-align: center;
}

.process > .container > span {
    color: var(--mint);
    margin-bottom: 20px;
}

.process > .container > h2 {
    color: var(--white);
    margin: 0 auto 72px;
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    text-align: left;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -16px;
    width: 32px;
    height: 1px;
    background: rgba(94, 234, 212, 0.3);
}

.step__num {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--mint);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.8;
}

.step h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.step p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: var(--cream);
}

.testimonials > .container {
    text-align: center;
}

.testimonials > .container > span {
    margin-bottom: 20px;
}

.testimonials > .container > h2 {
    margin: 0 auto 64px;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial {
    background: var(--white);
    border-radius: 8px;
    padding: 40px 32px;
    text-align: left;
    transition: transform var(--ease) 0.3s, box-shadow var(--ease) 0.3s;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26, 47, 74, 0.08);
}

.testimonial__stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.testimonial p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial__author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--midnight);
    letter-spacing: 0.02em;
}

/* ============================================
   CTA / CONTACT
   ============================================ */
.cta {
    background: var(--midnight-deep);
    padding: 120px 0;
}

.cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.cta__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint);
    display: block;
    margin-bottom: 20px;
}

.cta__headline {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.cta__text p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta__contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.cta__contact-item svg {
    color: var(--mint);
    flex-shrink: 0;
}

.cta__contact-item a {
    transition: color var(--ease) 0.2s;
}

.cta__contact-item a:hover {
    color: var(--mint);
}

/* Form */
.cta__form {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
}

.cta__form-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--cream-dark);
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: border-color var(--ease) 0.2s, background var(--ease) 0.2s;
    appearance: none;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--mint-dark);
    background: var(--white);
}

.form__group textarea {
    resize: vertical;
    min-height: 100px;
}

.form__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    text-align: center;
    color: var(--midnight);
}

.form__success svg {
    color: var(--mint-dark);
}

.form__success p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--midnight-deep);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    font-family: var(--serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    display: inline-block;
    margin-bottom: 16px;
}

.footer__brand p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 300px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--ease) 0.2s;
}

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

.footer__contact p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer__contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--ease) 0.2s;
}

.footer__contact a:hover {
    color: var(--mint);
}

.footer__bottom {
    padding-top: 32px;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--midnight);
    color: var(--mint);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--ease) 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--mint);
    color: var(--midnight-deep);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .intro__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .about__split {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--midnight-deep);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--ease) 0.3s;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__links a {
        font-size: 1.125rem;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        text-align: center;
    }

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

    .about__split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image {
        aspect-ratio: 16/10;
    }

    .about__stats {
        gap: 24px;
    }

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

    .process__steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .cta__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cta__form {
        padding: 28px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

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

    .about__stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Mobile nav overlay */
.nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease) 0.3s, visibility var(--ease) 0.3s;
}

.nav__overlay.active {
    opacity: 1;
    visibility: visible;
}
