/* =========================================================
   AF Design Studio – main stylesheet (RTL)
   ========================================================= */
:root {
    --brand: #b07562;          /* terracotta / rose-brown buttons */
    --brand-dark: #95604f;
    --accent: #c38b72;         /* highlighted words */
    --ink: #3b2f2b;            /* headings */
    --text: #6e605a;           /* body text */
    --muted: #a3958e;
    --cream: #f6f0eb;          /* page background */
    --cream-2: #efe6df;
    --card: #fbf8f5;
    --line: #e6dbd3;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(92, 64, 51, .08);
    --font: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }

.text-accent { color: var(--accent) !important; }
.text-dark-brown { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { font-weight: 500; border-radius: 6px; padding: .7rem 1.6rem; font-size: .95rem; transition: all .25s; }
.btn-brand { background: var(--brand); color: #fff; border: 1px solid var(--brand); box-shadow: 0 6px 18px rgba(176, 117, 98, .3); }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-brand { background: rgba(255, 255, 255, .55); color: var(--brand); border: 1px solid var(--brand); backdrop-filter: blur(4px); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* ---------- Common section typography ---------- */
.pill-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255, 255, 255, .75);
    color: var(--brand);
    border: 1px solid var(--line);
    font-size: .8rem; padding: .3rem .9rem; border-radius: 50px;
    margin-bottom: 1rem;
}
.pill-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.section-title { color: var(--ink); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.5; margin-bottom: .8rem; }
.section-text { color: var(--text); line-height: 1.9; font-size: 1rem; }
.small-text { font-size: .88rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile offcanvas menu. */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(246, 240, 235, .92); backdrop-filter: blur(10px);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .06); border-color: var(--line); }
.site-header .navbar { padding: .45rem 0; }
.brand-logo { height: 46px; width: auto; mix-blend-mode: multiply; }
.site-header .nav-link { color: var(--ink); font-size: .95rem; font-weight: 500; padding: .5rem .8rem !important; position: relative; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--brand); }
.site-header .nav-link.active::after {
    content: ""; position: absolute; bottom: 2px; right: .8rem; left: .8rem; height: 2px; background: var(--brand); border-radius: 2px;
}
.site-header .dropdown-toggle::after { vertical-align: .15em; margin-right: .35em; margin-left: 0; border-top-width: .3em; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: .5rem; text-align: right; }
.dropdown-item { border-radius: 6px; padding: .5rem .9rem; color: var(--ink); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--cream-2); color: var(--brand); }
.navbar-toggler { border: none; font-size: 1.8rem; color: var(--ink); padding: 0; }
.navbar-toggler:focus { box-shadow: none; }

.header-tools { display: flex; align-items: center; gap: 1rem; }
.lang-switch { font-size: .85rem; color: var(--muted); display: flex; gap: .5rem; }
.lang-switch a.active { color: var(--brand); }
.account-link { font-size: 1.2rem; color: var(--ink); }

@media (max-width: 991.98px) {
    .offcanvas { background: var(--cream); max-width: 300px; }
    .site-header .nav-link.active::after { display: none; }
    .header-tools { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; min-height: calc(100vh - 62px); max-height: 860px;
    display: flex; align-items: center;
    background-size: cover; background-position: center left;
    padding: 5rem 0;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to left, rgba(246, 240, 235, .92) 0%, rgba(246, 240, 235, .75) 35%, rgba(246, 240, 235, 0) 65%);
}
.hero-content { max-width: 560px; }
.hero-title { color: var(--ink); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.55; margin-bottom: 1rem; }
.hero-text { color: var(--text); line-height: 1.9; margin-bottom: 2rem; }

/* ---------- Stats ---------- */
.stats-section { position: relative; padding: 5rem 0 4rem; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); overflow: hidden; }
.stats-globe { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: 55%; object-fit: cover; opacity: .9;
    -webkit-mask-image: linear-gradient(to right, #000 60%, transparent); mask-image: linear-gradient(to right, #000 60%, transparent); }
.stats-head { max-width: 440px; margin-bottom: 2.5rem; }
.stat-card {
    background: rgba(251, 248, 245, .92); backdrop-filter: blur(6px);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem 1rem; text-align: center; height: 100%;
    box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(92, 64, 51, .14); }
.stat-icon { height: 72px; width: auto; mix-blend-mode: multiply; margin-bottom: .75rem; }
.stat-value { color: var(--ink); font-size: 1.7rem; font-weight: 700; direction: ltr; }
.stat-value small { font-size: .9rem; margin-left: .2rem; }
.stat-label { color: var(--ink); font-size: .92rem; margin-top: .3rem; }
.stat-note { color: var(--muted); font-size: .72rem; margin-top: .5rem; }

/* ---------- Passion ---------- */
.passion-section { padding: 6rem 0; background-size: cover; background-position: center; position: relative; }
.glass-card {
    background: rgba(251, 248, 245, .8); backdrop-filter: blur(12px);
    border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .6);
}
.mini-feature { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink); }
.mini-feature-icon {
    width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
    border: 1px solid var(--line); color: var(--brand); background: #fff; flex-shrink: 0;
}

/* ---------- Projects ---------- */
.projects-section { padding: 5rem 0; background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.projects-intro { text-align: center; }
.icon-feature { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .5rem .2rem; }
.icon-feature i { font-size: 1.6rem; color: var(--accent); margin-bottom: .3rem; }
.icon-feature strong { color: var(--ink); font-size: .95rem; font-weight: 600; }
.icon-feature small { color: var(--muted); font-size: .72rem; }
.projects-intro .col-3 + .col-3 .icon-feature { border-right: 1px solid var(--line); }

.project-carousel { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(92, 64, 51, .18); }
.project-carousel .carousel-item img { aspect-ratio: 16 / 10.5; object-fit: cover; }
.project-tag {
    position: absolute; bottom: 1rem; left: 1rem;
    background: rgba(255, 255, 255, .9); color: var(--ink);
    padding: .3rem 1rem; border-radius: 50px; font-size: .85rem;
}
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 1.2rem; }
.carousel-controls > button { background: none; border: none; color: var(--brand); font-size: 1rem; }
.carousel-dots { display: flex; gap: .4rem; }
.carousel-dots button { width: 22px; height: 3px; border: none; border-radius: 3px; background: var(--line); padding: 0; transition: all .3s; }
.carousel-dots button.active { width: 36px; background: var(--brand); }

/* ---------- Testimonials + map ---------- */
.testimonials-section { padding: 5rem 0 4rem; }
.map-title { color: var(--ink); font-size: 1.6rem; font-weight: 700; line-height: 1.5; }
.map-title span { display: block; }
.map-wrap { position: relative; }
.map-wrap img { width: 100%; mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse at center, #000 62%, transparent 100%); }
.map-pulse { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); transform: translate(50%, -50%); }
.map-pulse::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand);
    animation: pulse 2s infinite ease-out;
}
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.5); opacity: 0; } }

.testimonial-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 100%; transition: transform .3s, box-shadow .3s; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testimonial-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.testimonial-body { padding: 1rem 1.1rem 1.1rem; position: relative; }
.quote-mark { position: absolute; top: -1.1rem; right: .9rem; font-size: 2rem; color: var(--accent); }
.testimonial-body p { font-size: .85rem; color: var(--ink); line-height: 1.8; margin-bottom: .8rem; min-height: 3.6em; }
.testimonial-city { font-size: .8rem; color: var(--muted); }
.testimonial-city i { color: var(--brand); }

.summary-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.summary-item { text-align: center; padding: .5rem 1rem; }
.summary-item + .summary-item { border-right: 1px solid var(--line); }
.summary-value { color: var(--ink); font-size: 1.35rem; font-weight: 700; }
.summary-value i { color: var(--accent); margin-left: .3rem; }
.summary-label { color: var(--muted); font-size: .85rem; margin-top: .2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-2); padding-top: 3.5rem; border-top: 1px solid var(--line); }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer-cta-title { color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; margin: 0; }
.footer-social { text-align: center; }
.footer-social-label { display: block; font-size: .85rem; color: var(--text); margin-bottom: .6rem; }
.social-icons { display: flex; gap: .6rem; }
.social-icons a {
    width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line); color: var(--brand); font-size: 1.05rem; transition: all .25s;
}
.social-icons a:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }

.footer-main { padding: 2.5rem 0; }
.footer-logo { height: 80px; mix-blend-mode: multiply; margin-bottom: 1rem; }
.footer-about { font-size: .9rem; line-height: 1.9; color: var(--text); }
.footer-title { color: var(--accent); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; font-size: .9rem; }
.footer-links a { color: var(--ink); }
.footer-links a:hover { color: var(--brand); padding-right: 4px; }

.newsletter-form { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.newsletter-form input { flex: 1; border: none; padding: .7rem 1rem; font-family: var(--font); font-size: .9rem; outline: none; background: transparent; min-width: 0; }
.newsletter-form button { border: none; background: var(--brand); color: #fff; width: 50px; transition: background .2s; }
.newsletter-form button:hover { background: var(--brand-dark); }
.newsletter-form button i { display: inline-block; transform: scaleX(-1); }
.newsletter-msg { font-size: .85rem; color: var(--brand); margin-top: .6rem; }

.footer-bottom { border-top: 1px solid var(--line); padding: 1.2rem 0; text-align: center; font-size: .82rem; color: var(--muted); }

/* ---------- WhatsApp ---------- */
.whatsapp-float {
    position: fixed; bottom: 24px; left: 24px; z-index: 1040;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 1.6rem;
    display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37, 211, 102, .4);
    transition: transform .25s;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* =========================================================
   Inner pages
   ========================================================= */
.section-pad { padding: 5rem 0; }
.section-alt { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.section-head { max-width: 720px; margin: 0 auto 3rem; }
.intro-text { max-width: 820px; margin: 0 auto 2.5rem; }
.intro-text strong { color: var(--ink); }
.lead-text { font-size: 1.05rem; }
.sub-title { color: var(--ink); font-size: 1.2rem; font-weight: 700; margin: 2.2rem 0 1rem; }
.rounded-img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 3; }
.link-more { color: var(--brand); font-weight: 500; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.link-more i { transition: transform .25s; }

/* Page hero / banner */
.page-hero { position: relative; padding: 5.5rem 0 4.5rem; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to left, rgba(246,240,235,.95) 0%, rgba(246,240,235,.85) 45%, rgba(246,240,235,.55) 100%); }
.page-hero-title { color: var(--ink); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.45; max-width: 760px; margin-bottom: .8rem; }
.page-hero-text { color: var(--text); max-width: 640px; line-height: 1.9; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 1.2rem; }
.breadcrumb-item a { color: var(--brand); }
.breadcrumb-item.active { color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: .5rem; padding-right: 0; content: "‹"; color: var(--muted); }

/* About */
.image-stack { position: relative; padding: 0 0 2rem 2rem; }
.image-stack::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; border: 2px solid var(--accent); border-radius: 20px; opacity: .5; }
.image-stack-main { position: relative; width: 100%; border-radius: 20px; box-shadow: 0 20px 50px rgba(92,64,51,.18); aspect-ratio: 1 / 1; object-fit: cover; }
.image-stack-badge { position: absolute; right: -10px; bottom: 3rem; background: var(--brand); color: #fff; border-radius: 14px; padding: 1rem 1.4rem; text-align: center; box-shadow: 0 12px 30px rgba(176,117,98,.35); }
.image-stack-badge strong { display: block; font-size: 1.8rem; line-height: 1; }
.image-stack-badge span { font-size: .85rem; }

.info-card, .value-card, .category-card, .side-card, .form-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.info-card { padding: 2.2rem; height: 100%; }
.info-card h3, .value-card h3, .category-card h3 { color: var(--ink); font-size: 1.25rem; font-weight: 700; margin: 1rem 0 .6rem; }
.info-card p, .value-card p, .category-card p { line-height: 1.9; margin: 0; }
.info-card-icon, .value-icon, .category-icon {
    width: 56px; height: 56px; border-radius: 14px; display: inline-grid; place-items: center;
    background: linear-gradient(135deg, #f3e6de, #fff); color: var(--brand); font-size: 1.5rem; border: 1px solid var(--line); flex-shrink: 0;
}
.value-card { padding: 1.8rem 1.5rem; height: 100%; text-align: center; transition: transform .3s; }
.value-card:hover, .category-card:hover { transform: translateY(-6px); }
.value-card p { font-size: .9rem; }

.numbers-grid { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.number-item { padding: 2rem 1rem; text-align: center; }
.number-item + .number-item { border-right: 1px solid var(--line); }
.number-item strong { display: block; color: var(--accent); font-size: 2rem; font-weight: 800; margin-bottom: .3rem; }
.number-item > span { color: var(--ink); font-size: .9rem; }
.number-item small { display: block; color: var(--muted); font-size: .72rem; margin-top: .3rem; }

/* Services */
.service-card { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; color: inherit; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(92,64,51,.15); color: inherit; }
.service-card:hover .link-more i { transform: translateX(-4px); }
.service-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-num { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,.9); color: var(--brand); font-weight: 800; border-radius: 8px; padding: .2rem .6rem; font-size: .9rem; }
.service-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { color: var(--ink); font-size: 1.2rem; font-weight: 700; margin: .9rem 0 .5rem; }
.service-card-body p { font-size: .92rem; line-height: 1.8; }
.service-card-body .link-more { margin-top: auto; }
.service-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-2); color: var(--brand); font-size: 1.3rem; margin-top: -2.6rem; position: relative; border: 3px solid var(--card); }
.service-card-cta { background: linear-gradient(160deg, #fff, var(--cream-2)); }
.service-card-cta .service-icon { margin-top: 0; }

.advantage { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; height: 100%; }
.advantage .value-icon { width: 46px; height: 46px; font-size: 1.2rem; border-radius: 12px; }
.advantage h3 { color: var(--ink); font-size: 1.02rem; font-weight: 700; margin-bottom: .3rem; }
.advantage p { font-size: .86rem; line-height: 1.75; margin: 0; }

.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; counter-reset: step; }
.process-step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.2rem; }
.process-num { display: inline-block; font-size: 1.8rem; font-weight: 800; color: var(--accent); opacity: .7; line-height: 1; margin-bottom: .6rem; }
.process-step h3 { color: var(--ink); font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.process-step p { font-size: .85rem; line-height: 1.75; margin: 0; }

.detail-cover { width: 100%; border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.5rem; }
.check-list li { color: var(--ink); display: flex; gap: .5rem; align-items: center; }
.check-list i { color: var(--brand); font-size: 1.15rem; }

.sidebar-sticky { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.side-card { padding: 1.5rem; }
.side-title { color: var(--ink); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links a { display: flex; align-items: center; gap: .6rem; padding: .8rem .2rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.side-links li:last-child a { border-bottom: none; }
.side-links a i:first-child { color: var(--brand); }
.side-links a:hover { color: var(--brand); padding-right: .5rem; }
.side-card-brand { background: linear-gradient(140deg, var(--brand), var(--brand-dark)); border: none; color: #fff; }
.side-card-brand .side-title { color: #fff; }
.side-card-brand p { color: rgba(255,255,255,.88); font-size: .92rem; }
.side-card-brand .btn-light { color: var(--brand-dark); font-weight: 700; }
.side-card-brand .btn-outline-light:hover { color: var(--brand-dark); }

/* Projects / designs */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-tabs a { padding: .5rem 1.4rem; border-radius: 50px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .92rem; }
.filter-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.filter-tabs a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.project-card, .post-card { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; transition: transform .3s, box-shadow .3s; }
.project-card:hover, .post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(92,64,51,.15); color: inherit; }
.project-card-img, .post-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project-card-img img, .post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover img, .post-card:hover img { transform: scale(1.06); }
.project-card-img .project-tag, .post-card-img .project-tag { bottom: auto; top: 1rem; left: auto; right: 1rem; }
.project-card-body { padding: 1.2rem 1.3rem; }
.project-card-body h3, .post-card-body h3 { color: var(--ink); font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .85rem; }
.project-meta i { color: var(--brand); }

.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; width: 90px; height: 64px; opacity: .6; transition: all .25s; background: none; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--brand); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin: 0 0 1rem; }
.facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.facts > div:last-child { border-bottom: none; }
.facts dt { font-weight: 500; color: var(--muted); }
.facts dt i { color: var(--brand); margin-left: .3rem; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }

.design-grid { columns: 3 280px; column-gap: 1.2rem; }
.design-item { position: relative; display: block; width: 100%; margin-bottom: 1.2rem; break-inside: avoid; border: none; padding: 0; border-radius: var(--radius); overflow: hidden; background: none; box-shadow: var(--shadow); }
.design-item img { width: 100%; display: block; transition: transform .6s; }
.design-item:nth-child(3n+1) img { aspect-ratio: 4 / 5; object-fit: cover; }
.design-item:nth-child(3n+2) img { aspect-ratio: 4 / 3; object-fit: cover; }
.design-item:nth-child(3n) img { aspect-ratio: 1; object-fit: cover; }
.design-item:hover img { transform: scale(1.05); }
.design-caption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; text-align: right; color: #fff; background: linear-gradient(to top, rgba(40,28,22,.75), transparent); }
.design-caption strong { display: block; font-size: 1.05rem; }
.design-caption small { opacity: .85; }
.design-modal { border-radius: 16px; overflow: hidden; border: none; }
.design-modal .btn-close { position: absolute; top: 1rem; left: 1rem; z-index: 2; background-color: #fff; border-radius: 50%; padding: .6rem; opacity: .9; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--accent); }

/* Products */
.category-card { padding: 2rem 1.6rem; height: 100%; transition: transform .3s; display: flex; flex-direction: column; }
.category-card p { font-size: .92rem; margin-bottom: 1rem; }
.category-card .link-more { margin-top: auto; }

/* Blog */
.post-card-body { padding: 1.3rem; }
.post-card-body time { display: block; color: var(--muted); font-size: .82rem; margin-bottom: .5rem; }
.post-card-body time i { color: var(--brand); }
.post-card-body p { font-size: .9rem; line-height: 1.8; }
.article p { color: var(--ink); font-size: 1.05rem; line-height: 2.1; margin-bottom: 1.3rem; }
.article-meta { display: flex; gap: 1.5rem; color: var(--muted); font-size: .88rem; margin: 1.2rem 0 1.5rem; }
.article-meta i { color: var(--brand); }
.article-share { display: flex; align-items: center; gap: .6rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2rem; color: var(--muted); }
.article-share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--brand); }
.article-share a:hover { background: var(--brand); color: #fff; }
.side-posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.side-posts a { display: flex; gap: .8rem; align-items: center; color: var(--ink); }
.side-posts img { width: 72px; height: 56px; border-radius: 8px; object-fit: cover; }
.side-posts strong { display: block; font-size: .92rem; line-height: 1.5; }
.side-posts small { color: var(--muted); }

/* Forms */
.form-card { padding: 2rem; }
.form-label { color: var(--ink); font-weight: 500; font-size: .92rem; margin-bottom: .35rem; }
.req { color: var(--brand); }
.opt { color: var(--muted); font-size: .8rem; }
.form-control, .form-select { border-color: var(--line); border-radius: 10px; padding: .7rem .9rem; font-family: var(--font); background-color: #fff; }
.form-select { background-position: left .75rem center; padding-left: 2.25rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(195,139,114,.18); }
.form-control::placeholder { color: #bdb0a9; }
.form-control[dir="ltr"]::placeholder { text-align: right; }
.form-control.input-validation-error, .form-select.input-validation-error { border-color: #c0574a; }
.field-error { display: block; color: #c0574a; font-size: .82rem; margin-top: .3rem; }
.form-success { text-align: center; background: #f1f7ef; border: 1px solid #cfe3c8; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.form-success i { font-size: 2.4rem; color: #4f9a4a; }
.form-success h3 { color: var(--ink); font-size: 1.2rem; font-weight: 700; margin: .5rem 0; }
.form-success p { margin: 0; }
.form-note { text-align: center; color: var(--muted); font-size: .85rem; margin: 1.2rem 0 0; }
.upload-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; border: 2px dashed var(--line); border-radius: 12px; padding: 1.6rem 1rem; background: #fff; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.upload-box:hover, .upload-box.dragover { border-color: var(--accent); background: #fdf9f6; }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box i { font-size: 2rem; color: var(--brand); }
.upload-box .upload-text { color: var(--ink); font-weight: 500; }
.upload-box small { color: var(--muted); }

.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 500; }
.contact-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.15rem; flex-shrink: 0; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.4) sepia(.15); }

.calc-result { position: sticky; top: 90px; background: linear-gradient(150deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 20px 45px rgba(149,96,79,.3); }
.calc-result .pill-badge { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.calc-result .pill-badge::before { background: #fff; }
.calc-total { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin: .5rem 0 1rem; }
.calc-total small { font-size: 1rem; font-weight: 500; }
.calc-result .facts > div { border-color: rgba(255,255,255,.25); }
.calc-result .facts dt { color: rgba(255,255,255,.75); }
.calc-result .facts dd { color: #fff; }
.calc-result .btn-light { color: var(--brand-dark); font-weight: 700; }
.calc-note { font-size: .78rem; opacity: .8; margin: 1rem 0 0; }

/* CTA band */
.cta-band { padding: 0 0 5rem; }
.cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; background: linear-gradient(120deg, #fff 0%, var(--cream-2) 100%); border: 1px solid var(--line); border-radius: 20px; padding: 2.5rem; box-shadow: var(--shadow); }
.cta-card > div:first-child { max-width: 620px; }

.footer-contact { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; font-size: .9rem; }
.footer-contact i { color: var(--brand); margin-left: .4rem; }

/* 404 */
.not-found { min-height: 60vh; display: flex; align-items: center; }
.not-found-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; color: var(--accent); opacity: .35; line-height: 1; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .map-pulse::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero { min-height: auto; padding: 4rem 0; }
    .hero-overlay { background: rgba(246, 240, 235, .82); }
    .stats-globe { opacity: .35; max-width: 100%; }
    .projects-intro { margin-bottom: 1rem; }
}
@media (max-width: 991.98px) {
    .numbers-grid { grid-template-columns: repeat(3, 1fr); }
    .number-item:nth-child(4) { border-right: none; }
    .number-item:nth-child(n+4) { border-top: 1px solid var(--line); }
    .sidebar-sticky, .calc-result { position: static; }
}
@media (max-width: 767.98px) {
    .section-pad { padding: 3.5rem 0; }
    .page-hero { padding: 3.5rem 0 3rem; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .number-item:nth-child(n) { border-right: none; border-top: 1px solid var(--line); }
    .number-item:nth-child(2n) { border-right: 1px solid var(--line); }
    .number-item:nth-child(-n+2) { border-top: none; }
    .check-list { grid-template-columns: 1fr; }
    .form-card, .cta-card { padding: 1.5rem; }
    .image-stack { padding: 0 0 1.5rem 1.5rem; }
    .summary-bar { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
    .summary-item:nth-child(3) { border-right: none; }
    .footer-cta { flex-direction: column; text-align: center; }
    .glass-card { padding: 1.5rem; }
    .stat-icon { height: 56px; }
    .stat-value { font-size: 1.35rem; }
    .projects-intro .col-3 + .col-3 .icon-feature { border-right: none; }
}

/* Products */
.product-summary { font-size: .88rem; line-height: 1.7; color: var(--text); margin-bottom: .8rem; min-height: 3em; }
.product-price { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .8rem; color: var(--brand); }
.product-price strong { color: var(--ink); font-size: 1.15rem; }
.product-price small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.product-price span { font-weight: 500; }
.product-detail-price { margin: .3rem 0 1rem; color: var(--brand); }
.product-detail-price strong { font-size: 1.8rem; font-weight: 800; color: var(--ink); }
