@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
    --blue-deep:    #1e3a8a;
    --blue-mid:     #2563eb;
    --blue-soft:    #dbeafe;
    --blue-pale:    #eff6ff;
    --cream:        #faf8f5;
    --ink:          #0d1117;
    --ink-soft:     #374151;
    --ink-muted:    #9ca3af;
    --white:        #ffffff;
    --border:       #e5e7eb;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--ink-soft);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.75rem 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease);
}

.nav.scrolled {
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 22px;
    width: auto;
    display: block;
    transition: opacity 0.3s var(--ease);
}

.logo:hover .logo-img {
    opacity: 0.75;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--blue-mid);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    padding: 12rem 3rem 6rem;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-inner {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 4rem;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-label::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 1px;
    background: var(--ink-muted);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .italic {
    font-style: italic;
    color: var(--blue-deep);
    padding-left: 4rem;
}

.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 480px;
    font-weight: 300;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--white);
    background: var(--blue-deep);
    text-decoration: none;
    padding: 1.1rem 2.25rem;
    white-space: nowrap;
    transition: background 0.3s var(--ease), gap 0.3s var(--ease);
}

.cta:hover {
    background: var(--blue-mid);
    gap: 1.25rem;
}

.arrow {
    transition: transform 0.3s var(--ease);
}

.cta:hover .arrow {
    transform: translateX(4px);
}

/* ===== SECTION HEADER ===== */
.section-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* ===== SERVICES ===== */
.services {
    padding: 8rem 0;
    background: var(--cream);
}

.services-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
}

.service-item {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 2rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease);
    cursor: default;
}

.service-item:first-child {
    border-top: 1px solid var(--border);
}

.service-item:hover .service-num {
    color: var(--blue-mid);
}

.service-item:hover h3 {
    color: var(--blue-deep);
}

.service-num {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 300;
    color: var(--ink-muted);
    padding-top: 0.25rem;
    transition: color 0.3s var(--ease);
}

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

.service-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--ink);
    transition: color 0.3s var(--ease);
}

.service-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ink-soft);
    font-weight: 300;
    padding-top: 0.4rem;
}

/* ===== PORTFOLIO ===== */
.portfolio {
    padding: 8rem 0;
    background: var(--white);
}

.portfolio-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.project-item {
    display: grid;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.project-item--right .project-image {
    margin-left: 8rem;
}

.project-image {
    overflow: hidden;
    background: var(--blue-pale);
}

.project-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease);
}

.project-item:hover .project-image img {
    transform: scale(1.03);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 0.5rem;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--ink-muted);
    font-weight: 300;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-mid);
    border: 1px solid var(--blue-soft);
    padding: 0.4rem 1rem;
}

/* ===== CONTACT ===== */
.contact {
    padding: 8rem 0;
    background: var(--cream);
}

.contact-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 300;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 3rem;
}

.contact-title em {
    font-style: italic;
    color: var(--blue-deep);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-details a {
    font-size: 1rem;
    color: var(--blue-mid);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s var(--ease);
}

.contact-details a:hover {
    color: var(--blue-deep);
}

.contact-details span {
    font-size: 0.9rem;
    color: var(--ink-muted);
    font-weight: 300;
}

/* FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.field label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.field input,
.field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    outline: none;
    transition: border-color 0.3s var(--ease);
    resize: none;
}

.field input:focus,
.field textarea:focus {
    border-bottom-color: var(--blue-mid);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-muted);
}

.submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--white);
    background: var(--blue-deep);
    border: none;
    padding: 1.1rem 2.25rem;
    cursor: pointer;
    transition: background 0.3s var(--ease), gap 0.3s var(--ease);
}

.submit:hover {
    background: var(--blue-mid);
    gap: 1.25rem;
}

/* ===== LEGAL PAGE ===== */
.legal-page {
    min-height: 100vh;
    padding: 10rem 3rem 4rem;
    background: var(--bg-white);
}

.legal-inner {
    max-width: 800px;
    margin: 0 auto;
}

.legal-inner h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.legal-intro {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-bottom: 3rem;
}

.legal-inner h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--ink);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-inner h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--ink);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-inner p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 1.25rem;
}

.legal-inner ul {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.legal-inner li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
}

.legal-inner a {
    color: var(--blue-mid);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.legal-inner a:hover {
    color: var(--blue-deep);
}

.legal-back {
    margin-top: 4rem;
    text-align: center;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 8rem 1.5rem 3rem;
    }
}

/* ===== THANK YOU PAGE ===== */
.thank-you {
    min-height: 100vh;
    padding: 12rem 3rem 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-white) 100%);
}

.thank-you-inner {
    max-width: 600px;
    text-align: center;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: var(--blue-deep);
    color: var(--white);
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.thank-you-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.thank-you-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 3rem;
}

/* ===== FOOTER ===== */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-img {
    height: 32px;
    width: 32px;
    opacity: 0.9;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--ink-muted);
    font-weight: 300;
}

.footer-copy a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.footer-copy a:hover {
    color: var(--blue-mid);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero { padding: 10rem 2rem 5rem; }
    .nav-inner, .section-header, .services-inner,
    .portfolio-inner, .contact-inner, .footer-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .project-item--right .project-image {
        margin-left: 4rem;
    }
}

@media (max-width: 768px) {
    .hero { padding: 8rem 1.5rem 4rem; }

    .hero-title { font-size: clamp(2.8rem, 10vw, 4.5rem); }

    .hero-title .italic { padding-left: 2rem; }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-inner { padding: 0 1.5rem; }
    .nav-links { gap: 1.5rem; }
    .nav-links a { font-size: 0.8rem; }

    .section-header, .services-inner,
    .portfolio-inner, .contact-inner, .footer-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .service-item {
        grid-template-columns: 3rem 1fr;
        gap: 1rem;
        padding: 2rem 0;
    }

    .project-item--right .project-image {
        margin-left: 0;
    }

    .services, .portfolio, .contact {
        padding: 5rem 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .hero-title .italic { padding-left: 1rem; }
    .nav-links { gap: 1rem; }
}
