@charset "utf-8";

/* ==============================
   Fonts
   ============================== */

@font-face {
    font-family: 'HK_Grotesk';
    src: url('../webfonts/hkgrotesk-regular-webfont.woff2') format('woff2'),
         url('../webfonts/hkgrotesk-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HK_Grotesk';
    src: url('../webfonts/hkgrotesk-italic-webfont.woff2') format('woff2'),
         url('../webfonts/hkgrotesk-italic-webfont.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'HK_Grotesk';
    src: url('../webfonts/hkgrotesk-semibold-webfont.woff2') format('woff2'),
         url('../webfonts/hkgrotesk-semibold-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ==============================
   Custom Properties
   ============================== */

:root {
    --font: 'HK_Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --color-bg: #ffffff;
    --color-text: #2c2c2c;
    --color-text-light: #666666;
    --color-accent: #1a1a1a;
    --color-accent-hover: #333333;
    --color-border: #e0e0e0;
    --color-surface: #f7f7f7;
    --max-width: 1140px;
    --section-pad: 80px;
    --transition: 0.3s ease;
}

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

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

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

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
}

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

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

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

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

section {
    padding: var(--section-pad) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 32px;
    width: auto;
    transition: filter var(--transition);
}

.nav.scrolled .nav-logo img {
    filter: invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: opacity var(--transition);
}

.nav.scrolled .nav-links a {
    color: var(--color-text);
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero nav — white text/lines on dark background */
.nav:not(.scrolled) .nav-links a {
    color: #fff;
}
.nav:not(.scrolled) .nav-toggle span {
    background: #fff;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

.hero-content {
    max-width: 820px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.btn:hover {
    background: #fff;
    color: var(--color-accent);
}

.btn-dark {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-dark:hover {
    background: var(--color-accent);
    color: #fff;
}

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

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

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.service-card {
    background: var(--color-bg);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==============================
   Portfolio
   ============================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 2;
}

.portfolio-item picture,
.portfolio-item picture img {
    width: 100%;
    height: 100%;
}

.portfolio-item picture {
    display: block;
}

.portfolio-item img {
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: background var(--transition);
}

.portfolio-item:hover .overlay {
    background: rgba(0, 0, 0, 0.3);
}

.portfolio-item .overlay span {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition);
}

.portfolio-item:hover .overlay span {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
}

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

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.about-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
}

.about-text p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

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

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

.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form textarea {
    height: 140px;
    resize: vertical;
}

.contact-form .btn-dark {
    width: 100%;
    margin-top: 8px;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.form-status.error {
    display: block;
    background: #ffebee;
    color: #c62828;
}

/* ==============================
   Footer
   ============================== */

.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
}

.footer p + p {
    margin-top: 8px;
}

.footer a {
    transition: opacity var(--transition);
}

.footer a:hover {
    opacity: 0.6;
}

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

@media (max-width: 767px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        padding: 16px 24px;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        color: var(--color-text) !important;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-toggle {
        display: block;
    }
}

/* ==============================
   Tablet (768px+)
   ============================== */

@media (min-width: 768px) {
    :root {
        --section-pad: 100px;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

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

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

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==============================
   Desktop (1024px+)
   ============================== */

@media (min-width: 1024px) {
    :root {
        --section-pad: 120px;
    }

    .hero h1 {
        font-size: 3.6rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content {
        gap: 48px;
    }
}
