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

:root {
    --bg: #ffffff;
    --bg-alt: #f7f5f2;
    --bg-dark: #14181d;
    --text: #1a1d22;
    --text-muted: #5b6470;
    --text-light: #9aa3af;
    --accent: #d97757;
    --accent-dark: #b85a3e;
    --accent-light: #fbe8de;
    --border: #e8e4dd;
    --shadow-sm: 0 2px 8px rgba(20, 24, 29, 0.06);
    --shadow: 0 8px 30px rgba(20, 24, 29, 0.08);
    --shadow-lg: 0 20px 60px rgba(20, 24, 29, 0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(217, 119, 87, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 119, 87, 0.45); }

.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all var(--transition);
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
    transition: color var(--transition);
}
.header.scrolled .logo { color: var(--text); }

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(217, 119, 87, 0.4);
}
.logo-text {
    font-size: 19px;
    letter-spacing: -0.01em;
    line-height: 1;
}
.logo-text small {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    letter-spacing: 0.1em;
    margin-top: 3px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 32px;
    margin-left: auto;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}
.nav-links a:hover { color: #fff; }
.header.scrolled .nav-links a { color: var(--text-muted); }
.header.scrolled .nav-links a:hover { color: var(--accent); }

.nav-cta { padding: 11px 22px; font-size: 14px; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.menu-toggle span {
    width: 26px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}
.header.scrolled .menu-toggle span { background: var(--text); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(217, 119, 87, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(45, 90, 140, 0.4) 0%, transparent 60%),
        linear-gradient(135deg, #0f1419 0%, #1e2a3a 50%, #2c3e50 100%);
}
.hero-bg::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: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 20, 25, 0.4) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-eyebrow {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 28px;
    font-weight: 800;
}
.accent { color: var(--accent); font-style: italic; }

.hero-text {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.stat {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
}
.stat-number, .stat-suffix {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.stat-suffix { color: var(--accent); margin-left: -4px; }
.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
    margin-left: 4px;
}

/* ===== Section heads ===== */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-head.light h2, .section-head.light p { color: #fff; }
.section-head.light p { color: rgba(255, 255, 255, 0.75); }
.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 18px;
}
.section-head p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ===== Services ===== */
.services { padding: 120px 0; background: var(--bg-alt); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card.featured {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}
.service-card.featured h3, .service-card.featured p { color: #fff; }
.service-card.featured p { color: rgba(255, 255, 255, 0.75); }
.service-card.featured .service-icon {
    background: rgba(217, 119, 87, 0.15);
    color: var(--accent);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-light);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 15px; }

.link-arrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: gap var(--transition);
    gap: 4px;
}
.link-arrow:hover { gap: 10px; }

/* ===== Projects ===== */
.projects { padding: 120px 0; }

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

.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}
.project-large { grid-column: span 2; grid-row: span 2; }
.project-wide { grid-column: span 2; }

.project-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}
.project-card:hover .project-img { transform: scale(1.05); }
.project-card:hover { box-shadow: var(--shadow-lg); }

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
    color: #fff;
}
.project-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.project-info h3 { font-size: 1.5rem; margin-bottom: 6px; color: #fff; }
.project-info p { font-size: 14px; color: rgba(255, 255, 255, 0.85); }

/* ===== About ===== */
.about { padding: 120px 0; background: var(--bg-alt); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image { position: relative; }
.about-photo {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
}
.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: #fff;
    padding: 24px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.about-badge strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
}
.about-badge span { font-size: 13px; color: var(--text-muted); margin-top: 6px; display: block; }

.about-content .eyebrow { margin-bottom: 16px; }
.about-content h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 24px; }
.about-content > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; }

.about-list { margin-bottom: 32px; }
.about-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}
.about-list li:last-child { border-bottom: none; }
.about-list svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 120px 0;
    background: var(--bg-dark);
    color: #fff;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 36px;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.testimonial:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(217, 119, 87, 0.4);
    transform: translateY(-4px);
}
.stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial footer { display: flex; flex-direction: column; gap: 4px; }
.testimonial footer strong { font-weight: 600; }
.testimonial footer span { font-size: 13px; color: var(--text-light); }

/* ===== CTA strip ===== */
.cta-strip { padding: 80px 0; background: var(--accent); color: #fff; }
.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-strip h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 8px; }
.cta-strip p { font-size: 1.05rem; opacity: 0.95; }
.cta-strip .btn-primary {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.cta-strip .btn-primary:hover { background: var(--text); color: #fff; }

/* ===== Contact ===== */
.contact { padding: 120px 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info .eyebrow { margin-bottom: 16px; }
.contact-info h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 36px; font-size: 1.05rem; }

.contact-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.contact-list a { font-weight: 500; transition: color var(--transition); }
.contact-list a:hover { color: var(--accent); }

.contact-form {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 4px; }

/* ===== Footer ===== */
.footer { background: var(--bg-dark); color: rgba(255, 255, 255, 0.75); padding: 80px 0 30px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .logo { color: #fff; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.footer ul li { padding: 6px 0; font-size: 14px; }
.footer ul a { transition: color var(--transition); }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
}
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== Demo modal ===== */
.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.demo-modal.open { opacity: 1; pointer-events: auto; }

.demo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.demo-modal-content {
    position: relative;
    background: #fff;
    max-width: 460px;
    width: 100%;
    padding: 44px 36px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-modal.open .demo-modal-content { transform: translateY(0) scale(1); }

.demo-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
}
.demo-modal-close:hover { background: var(--bg-alt); color: var(--text); }

.demo-modal-badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 18px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.demo-modal-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.demo-modal-content p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.6;
}
.demo-modal-ok { min-width: 160px; }

body.modal-open { overflow: hidden; }

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .nav-links, .nav-cta { display: none; }
    .menu-toggle { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow);
    }
    .nav-links.open a { color: var(--text); }

    .hero-stats { grid-template-columns: 1fr; gap: 14px; }
    .stat { white-space: normal; }
    .project-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .project-large, .project-wide { grid-column: span 1; grid-row: span 1; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-badge { right: 20px; bottom: -20px; padding: 18px 24px; }
    .about-badge strong { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .services, .projects, .about, .testimonials, .contact { padding: 80px 0; }
}

@media (max-width: 560px) {
    .hero { padding: 100px 0 60px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 28px 22px; }
}
