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

:root {
    --bg: #fafaf9;
    --surface: #ffffff;
    --surface-alt: #f5f5f4;
    --border: #e7e5e4;
    --border-hover: #d6d3d1;

    --text: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #a8a29e;

    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-dim: rgba(15,118,110,.08);
    --primary-hover: #115e59;

    --accent: #c9a84c;

    --green: #16a34a;
    --blue: #2563eb;
    --teal: #0d9488;

    --font: 'DM Sans', -apple-system, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.08);

    --r: 12px;
    --r-lg: 20px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ═══ NAV ═══ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(250,250,249,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 64px;
}
.nav-brand { display: flex; flex-direction: column; gap: 0; }
.brand-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); line-height: 1.2; }
.brand-tag { font-size: .7rem; color: var(--text-muted); font-weight: 500; letter-spacing: .04em; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--text-secondary); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
    background: var(--primary) !important; color: #fff !important;
    padding: 8px 20px !important; border-radius: 8px;
    font-weight: 600 !important; font-size: .84rem !important;
    transition: background .2s !important;
}
.nav-cta:hover { background: var(--primary-hover) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }
.lang-toggle { display: inline-flex; gap: 2px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 6px; margin-left: 12px; }
.lang-btn { padding: 4px 10px; font-size: .75rem; font-weight: 600; color: var(--text-muted); background: none; border: none; cursor: pointer; border-radius: 5px; transition: all .15s; font-family: var(--font); }
.lang-btn.active { background: var(--primary); color: #fff; }
.lang-btn:hover:not(.active) { color: var(--text); }

/* ═══ HERO ═══ */
.hero {
    padding: 140px 24px 60px;
    max-width: 1100px; margin: 0 auto;
}
.hero-inner {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 64px; align-items: center;
}
.hero-label {
    font-size: .78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .1em; color: var(--primary);
    margin-bottom: 16px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem; line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}
.hero h1 em {
    font-style: normal;
    color: var(--primary);
}
.hero-lead {
    font-size: 1.05rem; color: var(--text-secondary);
    font-weight: 400; max-width: 480px;
    margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; }

/* Floating cards */
.hero-visual {
    display: flex; flex-direction: column; gap: 12px;
    padding-left: 24px;
}
.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}
.hero-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}
.hero-card span { font-weight: 600; font-size: .92rem; }
.hero-card small { color: var(--text-muted); font-size: .8rem; margin-left: auto; white-space: nowrap; }
.card-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.card-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(22,163,74,.4); }
.card-dot.blue { background: var(--blue); box-shadow: 0 0 8px rgba(37,99,235,.4); }
.card-dot.teal { background: var(--teal); box-shadow: 0 0 8px rgba(13,148,136,.4); }

.hero-stats {
    display: flex; gap: 48px; justify-content: center;
    padding: 48px 24px 0;
    max-width: 1100px; margin: 0 auto;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}
.stat { text-align: center; }
.stat strong {
    display: block; font-family: var(--font-display);
    font-size: 2rem; color: var(--text);
}
.stat span { font-size: .82rem; color: var(--text-muted); }

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 8px;
    font-size: .92rem; font-weight: 600;
    font-family: var(--font);
    transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 10px 20px; font-size: .84rem; }
.btn-full { width: 100%; justify-content: center; }

/* ═══ SECTIONS ═══ */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { max-width: 600px; margin-bottom: 48px; }
.label {
    font-size: .76rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .1em; color: var(--primary);
    margin-bottom: 10px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem; color: var(--text); line-height: 1.2;
}
.section-header p { margin-top: 12px; color: var(--text-secondary); }

/* ═══ WORK ═══ */
.work { background: var(--surface-alt); }

.project-featured {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 48px; align-items: center;
    margin-bottom: 48px;
}
.project-image {
    position: relative; border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--shadow-lg);
    aspect-ratio: 16/10;
}
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.project-image:hover .project-overlay { opacity: 1; }

.project-tag {
    display: inline-block; font-size: .7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    background: var(--primary-dim); color: var(--primary);
    padding: 4px 12px; border-radius: 6px;
    margin-bottom: 12px;
}
.project-info h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 12px; }
.project-info p { color: var(--text-secondary); font-size: .94rem; margin-bottom: 16px; }
.project-details { list-style: none; margin-bottom: 20px; }
.project-details li {
    font-size: .86rem; color: var(--text-secondary);
    padding: 6px 0; border-bottom: 1px solid var(--border);
}
.project-details li strong { color: var(--text); }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech span {
    font-size: .72rem; font-weight: 500;
    padding: 4px 10px; border-radius: 6px;
    background: var(--surface-alt); border: 1px solid var(--border);
    color: var(--text-secondary);
}

.projects-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px 24px;
    transition: all .25s;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.project-card-top {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 14px;
}
.project-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.project-card p { font-size: .86rem; color: var(--text-secondary); margin-bottom: 16px; }
.project-card .project-tech { margin-bottom: 16px; }
.project-link {
    font-size: .86rem; font-weight: 600; color: var(--primary);
    transition: gap .2s; display: inline-flex; align-items: center; gap: 4px;
}
.project-link:hover { gap: 8px; }

/* ═══ PROCESS ═══ */
.process { background: var(--surface); }
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.process-step {
    padding: 28px 24px;
    border-radius: var(--r);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    transition: all .25s;
}
.process-step:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}
.step-num {
    font-family: var(--font-display);
    font-size: 2rem; color: var(--primary);
    margin-bottom: 12px; line-height: 1;
}
.process-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.process-step p { font-size: .86rem; color: var(--text-secondary); }

/* ═══ PRICING ═══ */
.pricing { background: var(--surface-alt); }
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 48px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
    max-width: 900px; margin: 0 auto;
}
.price {
    font-family: var(--font-display);
    font-size: 3.4rem; color: var(--text);
    line-height: 1; margin: 8px 0 6px;
}
.price-note { font-size: .88rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-list { list-style: none; }
.pricing-list li {
    font-size: .9rem; padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 10px;
}
.pricing-list li::before {
    content: ''; width: 6px; height: 6px;
    background: var(--primary); border-radius: 50%;
    flex-shrink: 0;
}

/* ═══ ABOUT ═══ */
.about { background: var(--surface); }
.about-grid {
    display: grid; grid-template-columns: 0.8fr 1fr;
    gap: 56px; align-items: center;
}
.about-image {
    border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-text h2 {
    font-family: var(--font-display);
    font-size: 1.8rem; margin-bottom: 20px;
}
.about-text p { color: var(--text-secondary); font-size: .94rem; margin-bottom: 14px; }
.about-highlights {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 24px;
}
.highlight {
    font-size: .88rem; padding: 10px 16px;
    background: var(--surface-alt); border-radius: 8px;
    border: 1px solid var(--border);
}
.highlight strong { color: var(--primary); }

/* ═══ CONTACT ═══ */
.contact { background: var(--surface-alt); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 48px; align-items: start;
}
.contact-text h2 {
    font-family: var(--font-display);
    font-size: 1.8rem; margin-bottom: 14px;
}
.contact-text > p { color: var(--text-secondary); font-size: .94rem; margin-bottom: 32px; }
.contact-methods { display: flex; flex-direction: column; gap: 12px; }
.contact-method {
    display: flex; flex-direction: column; gap: 2px;
    padding: 16px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r);
    transition: border-color .2s;
}
.contact-method:hover { border-color: var(--primary); }
.contact-method strong { font-size: .82rem; color: var(--text-muted); }
.contact-method span { font-size: .94rem; color: var(--primary); font-weight: 500; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: .82rem; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 6px;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: 8px;
    font-family: var(--font); font-size: .9rem;
    transition: border-color .2s;
    background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ═══ FOOTER ═══ */
.footer {
    padding: 40px 24px; border-top: 1px solid var(--border);
    background: var(--surface);
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand p { font-size: .82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .84rem; color: var(--text-muted); font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: .78rem; color: var(--text-muted); width: 100%; text-align: center; margin-top: 16px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { padding-left: 0; }
    .hero h1 { font-size: 2.4rem; }
    .project-featured { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .pricing-card { grid-template-columns: 1fr; padding: 36px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { max-width: 400px; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 32px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 640px) {
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--surface); flex-direction: column;
        padding: 24px; gap: 16px;
        box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .hero { padding: 110px 20px 40px; }
    .hero h1 { font-size: 1.9rem; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .stat strong { font-size: 1.6rem; }
    section { padding: 56px 20px; }
    .section-header h2 { font-size: 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; justify-content: center; }
    .contact-form { padding: 24px; }
    .pricing-card { padding: 28px; }
    .price { font-size: 2.6rem; }
}
