:root {
    --bg: #f4f1ec;
    --bg-alt: #ebe6dd;
    --ink: #1a1a1a;
    --ink-soft: #4a4a4a;
    --ink-mute: #8a8580;
    --accent: #c9a875;
    --line: rgba(26, 26, 26, 0.12);
    --whatsapp: #25d366;
    --font-display: 'Cormorant Garamond', 'Heebo', serif;
    --font-body: 'Heebo', sans-serif;
    --container: 1280px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    font-weight: 300;
}

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

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

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

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--ink-mute);
    font-weight: 500;
    margin-bottom: 16px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 100;
    padding: 22px 0;
    background: rgba(244, 241, 236, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(244, 241, 236, 0.96);
    border-bottom-color: var(--line);
    padding: 14px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.logo span { color: var(--accent); }

.nav {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav a {
    font-size: 0.92rem;
    color: var(--ink-soft);
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; right: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.nav-cta {
    padding: 10px 22px;
    background: var(--ink);
    color: var(--bg) !important;
    border-radius: 2px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent); }

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    height: 1.5px;
    background: var(--ink);
    transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: flex; order: -1; }
    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(80%, 320px);
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        padding: 32px;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        border-right: 1px solid var(--line);
    }
    .nav.open { transform: translateX(0); }
    .nav a { font-size: 1.2rem; }
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 2px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--ink);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-ghost:hover {
    background: var(--ink);
    color: var(--bg);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}
.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

.btn.full { width: 100%; }

.hero-meta {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.hero-meta div strong {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--ink);
    display: block;
}

.hero-meta div span {
    font-size: 0.85rem;
    color: var(--ink-mute);
}

/* Hero visual — abstract architecture composition */
.hero-visual {
    position: relative;
    aspect-ratio: 4/5;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.18) 100%),
        linear-gradient(135deg, #d8c9a8 0%, #b89968 100%);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50px; right: 50px; bottom: 50px; left: 50px;
    border: 1px solid rgba(255,255,255,0.4);
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60%; height: 100%;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 100%),
        repeating-linear-gradient(
            0deg,
            transparent 0px, transparent 28px,
            rgba(255,255,255,0.08) 28px, rgba(255,255,255,0.08) 29px
        );
}

.hero-visual-tag {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 8px 16px;
    background: var(--bg);
    color: var(--ink);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    z-index: 2;
}

.hero-visual-bottom {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    padding: 24px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    color: #fff;
    z-index: 2;
}

.hero-visual-bottom p { font-size: 0.85rem; opacity: 0.85; margin-bottom: 4px; }
.hero-visual-bottom strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 480px; margin: 0 auto; aspect-ratio: 3/4; }
}

/* ===== Section ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt { background: var(--bg-alt); }

.section-head {
    margin-bottom: 60px;
    max-width: 720px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    margin-bottom: 16px;
}

.section-head p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 560px;
}

.section-head.center p { margin: 0 auto; }

/* ===== Projects gallery ===== */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.project {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--ink);
}

.project-1 { grid-column: span 4; grid-row: span 2; }
.project-2 { grid-column: span 2; grid-row: span 2; }
.project-3 { grid-column: span 2; grid-row: span 2; }
.project-4 { grid-column: span 2; grid-row: span 2; }
.project-5 { grid-column: span 2; grid-row: span 2; }

.project-img {
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project:hover .project-img { transform: scale(1.06); }

.project::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    opacity: 0.7;
    transition: opacity 0.4s;
}
.project:hover::after { opacity: 0.85; }

.project-info {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 28px;
    color: #fff;
    z-index: 2;
    transform: translateY(8px);
    transition: transform 0.4s;
}
.project:hover .project-info { transform: translateY(0); }

.project-info span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
    display: block;
    margin-bottom: 6px;
}
.project-info h3 {
    font-size: 1.4rem;
    font-weight: 500;
}

/* visual placeholders for projects */
.proj-bg-1 { background: linear-gradient(135deg, #a89578 0%, #5a4a37 100%); }
.proj-bg-2 { background: linear-gradient(160deg, #d8d2c6 0%, #7a7066 100%); }
.proj-bg-3 { background: linear-gradient(135deg, #6b6155 0%, #2d2823 100%); }
.proj-bg-4 { background: linear-gradient(135deg, #c9a875 0%, #6b5638 100%); }
.proj-bg-5 { background: linear-gradient(180deg, #8a8275 0%, #3d362d 100%); }

.proj-bg-1::before, .proj-bg-2::before, .proj-bg-3::before, .proj-bg-4::before, .proj-bg-5::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

@media (max-width: 900px) {
    .projects-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .project-1, .project-2, .project-3, .project-4, .project-5 {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service {
    padding: 50px 36px;
    border-right: 1px solid var(--line);
    transition: var(--transition);
    cursor: default;
}

.service:last-child { border-right: 0; }
.service:hover { background: var(--bg-alt); }

.service-num {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 24px;
    letter-spacing: 0.2em;
}

.service h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.service p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service ul {
    list-style: none;
}

.service li {
    padding: 8px 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.service li::before {
    content: '—';
    color: var(--accent);
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
    .service { border-right: 0; border-bottom: 1px solid var(--line); }
    .service:last-child { border-bottom: 0; }
}

/* ===== Process ===== */
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    align-items: start;
    transition: var(--transition);
}

.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { padding-right: 12px; }

.step-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 500;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.process-visual {
    aspect-ratio: 4/5;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 100%),
        linear-gradient(135deg, #5a5045 0%, #2a2520 100%);
    position: relative;
    overflow: hidden;
}

.process-visual::before {
    content: '';
    position: absolute;
    top: 40px; right: 40px; bottom: 40px; left: 40px;
    border: 1px solid rgba(201, 168, 117, 0.4);
}

.process-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(201, 168, 117, 0.25), transparent 50%),
        repeating-linear-gradient(45deg, transparent 0px, transparent 60px, rgba(255,255,255,0.03) 60px, rgba(255,255,255,0.03) 61px);
}

@media (max-width: 900px) {
    .process-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-visual { max-width: 480px; margin: 0 auto; aspect-ratio: 3/4; }
}

/* ===== Quote / Testimonial ===== */
.quote-block {
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.quote-block .mark {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--accent);
    line-height: 0.5;
    margin-bottom: 24px;
}

.quote-block blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    margin-bottom: 32px;
    font-style: italic;
    color: var(--ink);
}

.quote-author {
    font-size: 0.95rem;
    color: var(--ink-mute);
    letter-spacing: 0.05em;
}

.quote-author strong {
    color: var(--ink);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info p {
    color: var(--ink-soft);
    margin-bottom: 32px;
    font-size: 1.05rem;
    max-width: 460px;
}

.contact-list {
    list-style: none;
    margin-bottom: 32px;
}

.contact-list li {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}

.contact-list li:last-child { border-bottom: 1px solid var(--line); }

.contact-list .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-mute);
}

.contact-list .value {
    color: var(--ink);
    font-weight: 400;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border: 1px solid var(--line);
}

.field { margin-bottom: 22px; }

.field label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-mute);
    margin-bottom: 8px;
}

.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    direction: rtl;
    transition: var(--transition);
}

.field select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a1a1a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 24px;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.form-note {
    font-size: 0.85rem;
    color: var(--ink-mute);
    text-align: center;
    margin-top: 12px;
    min-height: 18px;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form { padding: 28px; }
}

/* ===== Footer ===== */
.site-footer {
    background: var(--ink);
    color: var(--bg);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    color: var(--bg);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 18px;
    color: var(--ink-mute);
}

.footer-brand .logo { color: var(--bg); }
.footer-brand p { color: var(--ink-mute); margin-top: 12px; max-width: 360px; }

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a {
    color: var(--bg);
    opacity: 0.7;
    transition: var(--transition);
    font-size: 0.95rem;
}
.footer-grid a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    color: var(--ink-mute);
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 12px auto 0; }
}

/* ===== Reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
