/* ============================================================
   UrbanCraft Construction — Frontend Stylesheet
   Palette: charcoal #20262D, black #15191E, gold #C99A45,
            off-white #F7F7F5, concrete #E8E9E7, white #FFFFFF
   ============================================================ */

:root {
    --charcoal: #20262D;
    --ink: #15191E;
    --gold: #C99A45;
    --gold-dark: #B08634;
    --offwhite: #F7F7F5;
    --concrete: #E8E9E7;
    --white: #FFFFFF;
    --text: #3A424B;
    --text-light: #7A828C;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--offwhite);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--charcoal); font-weight: 700; }

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

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; border-radius: 4px; padding: .7rem 1.6rem; transition: all .25s ease; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,154,69,.35); }
.btn-dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--ink); border-color: var(--ink); color: var(--gold); transform: translateY(-2px); }
.btn-outline-light:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.btn-outline-dark { color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline-dark:hover { background: var(--charcoal); color: var(--gold); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #C7CDD4; font-size: .82rem; padding: .45rem 0; }
.topbar a { color: #C7CDD4; text-decoration: none; margin-right: 1.4rem; transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); margin-right: .35rem; }
.topbar-social a { margin: 0 0 0 .8rem; font-size: .95rem; }

/* ---------- Navigation ---------- */
.main-nav { background: var(--white); box-shadow: 0 2px 14px rgba(0,0,0,.06); padding: .9rem 0; position: sticky; top: 0; z-index: 1030; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--charcoal); color: var(--gold); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; border-radius: 4px; letter-spacing: .03em; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--charcoal); line-height: 1.15; }
.logo-text em { display: block; font-style: normal; font-weight: 600; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.site-logo { max-height: 48px; width: auto; }
.main-nav .nav-link { color: var(--charcoal); font-weight: 600; font-size: .92rem; padding: .5rem .85rem !important; position: relative; }
.main-nav .nav-link::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-link.active { color: var(--gold-dark); }
.nav-cta { margin-left: 1rem; white-space: nowrap; }
.navbar-toggler { border-color: var(--concrete); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(201,154,69,.3); }
.dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(0,0,0,.12); border-radius: 6px; }
.dropdown-item { font-weight: 500; font-size: .9rem; padding: .55rem 1.2rem; }
.dropdown-item:hover { background: var(--offwhite); color: var(--gold-dark); }

/* ---------- Hero ---------- */
.hero { background-size: cover; background-position: center; min-height: 88vh; display: flex; align-items: center; color: var(--white); }
.hero-content { max-width: 720px; padding: 6rem 0; animation: fadeUp .9s ease both; }
.hero-eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .3em; color: var(--gold); border: 1px solid rgba(201,154,69,.5); padding: .45rem 1.1rem; border-radius: 3px; margin-bottom: 1.4rem; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.3rem; }
.hero-lead { font-size: 1.13rem; color: #D5DAde; max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-grey { background: var(--concrete); }
.section-dark { background: var(--charcoal); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #B9C0C8; }
.container-narrow { max-width: 860px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.2rem; }
.section-head p { color: var(--text-light); }
.section-head.light p { color: #B9C0C8; }
.section-eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .3em; color: var(--gold-dark); margin-bottom: .7rem; }
.section-eyebrow.light { color: var(--gold); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-head.light h2 { color: var(--white); }
.lead-text { font-size: 1.06rem; color: var(--text); }
.section-dark .lead-text { color: #B9C0C8; }
.img-frame { position: relative; }
.img-frame::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--gold); border-radius: 6px; z-index: 0; }
.img-frame img { position: relative; z-index: 1; border-radius: 6px; box-shadow: 0 20px 45px rgba(0,0,0,.14); }

/* ---------- Stats ---------- */
.stats-section { background: var(--ink); padding: 3.6rem 0; }
.stat-card { padding: 1rem; }
.stat-number { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--gold); }
.stat-label { color: #B9C0C8; font-size: .92rem; }

/* ---------- Service cards ---------- */
.service-card { display: block; background: var(--white); border-radius: 8px; overflow: hidden; text-decoration: none; box-shadow: 0 4px 18px rgba(0,0,0,.06); transition: transform .3s ease, box-shadow .3s ease; height: 100%; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(0,0,0,.12); }
.service-card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body { padding: 1.6rem; }
.service-cat { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.service-card-body h3 { font-size: 1.16rem; margin: .4rem 0 .55rem; }
.service-card-body p { font-size: .92rem; color: var(--text-light); margin-bottom: .9rem; }
.service-link { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--gold-dark); }
.service-link i { transition: transform .25s; }
.service-card:hover .service-link i { transform: translateX(5px); }

/* ---------- Project cards ---------- */
.project-card { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.project-card:hover img { transform: scale(1.07); }
.project-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; background: linear-gradient(transparent 40%, rgba(21,25,30,.92)); }
.project-cat { align-self: flex-start; background: var(--gold); color: var(--ink); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .25rem .7rem; border-radius: 3px; margin-bottom: .6rem; }
.project-overlay h3 { color: var(--white); font-size: 1.15rem; margin-bottom: .2rem; }
.project-loc { color: #C7CDD4; font-size: .85rem; }
.demo-badge { position: absolute; top: 12px; right: 12px; background: rgba(21,25,30,.85); color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 3px; }
.demo-notice { font-size: .92rem; }

/* ---------- Feature cards (why choose / about) ---------- */
.feature-card { padding: 2rem 1.6rem; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; height: 100%; transition: border-color .3s, transform .3s; }
.feature-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.feature-card i { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.feature-card p { font-size: .92rem; margin: 0; }
.feature-card.light-card { background: var(--white); border: 1px solid var(--concrete); box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.feature-card.light-card h3 { color: var(--charcoal); }
.feature-card.light-card p { color: var(--text-light); }

/* ---------- Process ---------- */
.process-step { text-align: center; padding: 0 .6rem; }
.process-number { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-dark); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 1.1rem; }
.process-step h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.process-step p { font-size: .88rem; color: var(--text-light); margin: 0; }

/* ---------- Industries ---------- */
.industry-chip { display: flex; align-items: center; gap: .6rem; background: var(--white); border: 1px solid #DCDEDA; padding: .95rem 1.2rem; border-radius: 6px; font-weight: 600; font-size: .9rem; color: var(--charcoal); transition: all .25s; }
.industry-chip:hover { border-color: var(--gold); color: var(--gold-dark); }
.industry-chip i { color: var(--gold-dark); }

/* ---------- Testimonials ---------- */
.testimonial-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 2rem 1.7rem; height: 100%; }
.testimonial-quote-icon { font-size: 1.8rem; color: var(--gold); display: block; margin-bottom: .9rem; }
.testimonial-card p { color: #D5DADE; font-size: .95rem; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; color: var(--white); font-size: .95rem; }
.testimonial-author span { color: var(--gold); font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item { border: 1px solid var(--concrete); border-radius: 8px !important; margin-bottom: .8rem; overflow: hidden; }
.faq-accordion .accordion-button { font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--charcoal); background: var(--white); padding: 1.1rem 1.4rem; }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--charcoal); color: var(--gold); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(201,154,69,.25); }
.faq-accordion .accordion-body { color: var(--text-light); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta-section { background: linear-gradient(rgba(21,25,30,.88), rgba(21,25,30,.88)), var(--ink); padding: 5rem 0; color: var(--white); }
.cta-section h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .8rem; }
.cta-section p { color: #B9C0C8; margin-bottom: 1.8rem; }

/* ---------- Page banner ---------- */
.page-banner { background: var(--charcoal) center/cover no-repeat; color: var(--white); padding: 6rem 0 4.5rem; }
.page-banner h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.page-banner .breadcrumb { margin: 0; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: #C7CDD4; font-size: .88rem; }
.page-banner .breadcrumb-item a:hover { color: var(--gold); }
.page-banner .breadcrumb-item.active { color: var(--gold); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: #7A828C; }

/* ---------- Team ---------- */
.team-card { text-align: center; background: var(--white); border-radius: 8px; padding: 2rem 1.5rem; box-shadow: 0 4px 18px rgba(0,0,0,.06); height: 100%; }
.team-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 1.2rem; border: 4px solid var(--concrete); }
.team-card h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.team-position { display: block; color: var(--gold-dark); font-weight: 600; font-size: .85rem; margin-bottom: .7rem; }
.team-card p { font-size: .9rem; color: var(--text-light); margin: 0; }
.value-item { display: flex; gap: .9rem; }
.value-item i { color: var(--gold-dark); font-size: 1.2rem; margin-top: .2rem; }
.value-item strong { color: var(--charcoal); }
.value-item p { color: var(--text-light); font-size: .92rem; margin: .2rem 0 0; }

/* ---------- Forms ---------- */
.card-form { background: var(--white); border-radius: 10px; padding: 2.4rem; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--charcoal); }
.form-control, .form-select { border: 1px solid #D5D8D4; border-radius: 5px; padding: .65rem .9rem; font-size: .94rem; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,154,69,.18); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-item i { font-size: 1.35rem; color: var(--gold-dark); margin-top: .2rem; }
.contact-info-item strong { display: block; font-family: var(--font-head); color: var(--charcoal); }
.contact-info-item p { margin: 0; color: var(--text-light); font-size: .95rem; }
.contact-info-item a { color: var(--text-light); text-decoration: none; }
.contact-info-item a:hover { color: var(--gold-dark); }
.map-section iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-section.map-link { padding: 3rem 0; background: var(--concrete); }

/* ---------- Quote multi-step ---------- */
.quote-progress { height: 6px; background: var(--concrete); border-radius: 3px; margin-bottom: 1.2rem; overflow: hidden; }
.quote-progress-bar { height: 100%; width: 33.3%; background: var(--gold); border-radius: 3px; transition: width .4s ease; }
.quote-steps-indicator { display: flex; justify-content: space-between; margin-bottom: 2rem; }
.step-dot { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--text-light); }
.step-dot.active { color: var(--gold-dark); }
.quote-step { display: none; border: 0; padding: 0; margin: 0; }
.quote-step.active { display: block; animation: fadeUp .4s ease both; }
.quote-step legend { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--charcoal); margin-bottom: 1.2rem; }
.quote-nav { display: flex; justify-content: space-between; margin-top: 2rem; gap: 1rem; }

/* ---------- Portfolio toolbar ---------- */
.portfolio-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.filter-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-btn { padding: .5rem 1.1rem; border-radius: 4px; border: 1px solid #D5D8D4; color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: .86rem; transition: all .25s; }
.filter-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-btn.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--gold); }
.portfolio-search { display: flex; gap: .5rem; }
.portfolio-search input { border: 1px solid #D5D8D4; border-radius: 5px; padding: .55rem .9rem; font-size: .9rem; min-width: 220px; }
.portfolio-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,154,69,.18); }

/* ---------- Detail sidebars ---------- */
.service-sidebar, .project-details { background: var(--white); border-radius: 10px; padding: 2rem; box-shadow: 0 6px 24px rgba(0,0,0,.07); position: sticky; top: 110px; }
.service-sidebar h3, .project-details h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.service-sidebar h4, .project-details h4 { font-size: 1rem; margin: 1.2rem 0 .7rem; }
.sidebar-services { list-style: none; padding: 0; margin: 0; }
.sidebar-services li { border-bottom: 1px solid var(--concrete); }
.sidebar-services li:last-child { border-bottom: 0; }
.sidebar-services a { display: block; padding: .55rem 0; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; }
.sidebar-services a:hover { color: var(--gold-dark); }
.sidebar-services i { color: var(--gold-dark); font-size: .75rem; }
.project-details ul { list-style: none; padding: 0; margin: 0; }
.project-details ul li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--concrete); font-size: .92rem; }
.project-details ul li strong { color: var(--charcoal); }
.project-details ul li span { text-align: right; color: var(--text-light); }
.project-main-img { width: 100%; }
.gallery-thumb { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: opacity .25s; }
.lightbox-link:hover .gallery-thumb { opacity: .85; }
.service-hero-img { width: 100%; }
.tag-chip { display: inline-block; background: var(--concrete); color: var(--charcoal); font-size: .8rem; font-weight: 600; padding: .3rem .8rem; border-radius: 30px; text-decoration: none; }
a.tag-chip:hover { background: var(--gold); color: var(--ink); }
.check-item { display: flex; gap: .6rem; align-items: flex-start; background: var(--white); border: 1px solid var(--concrete); border-radius: 6px; padding: .8rem 1rem; font-size: .92rem; color: var(--text); }
.check-item i { color: var(--gold-dark); margin-top: .15rem; }

/* ---------- Blog ---------- */
.blog-card { display: block; background: var(--white); border-radius: 8px; overflow: hidden; text-decoration: none; box-shadow: 0 4px 18px rgba(0,0,0,.06); height: 100%; transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,0,0,.11); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; }
.blog-cat { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .4rem; }
.blog-card-body h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.blog-card-body p { font-size: .9rem; color: var(--text-light); }
.blog-meta { font-size: .8rem; color: var(--text-light); }
.post-meta { display: flex; gap: 1.4rem; align-items: center; margin-bottom: 1.4rem; color: var(--text-light); font-size: .9rem; flex-wrap: wrap; }
.post-tags { margin-top: 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.post-share { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--concrete); display: flex; align-items: center; gap: .8rem; }
.post-share span { font-weight: 600; font-size: .9rem; color: var(--charcoal); }
.post-share a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--concrete); color: var(--charcoal); transition: all .25s; }
.post-share a:hover { background: var(--gold); color: var(--ink); }

/* ---------- Rich content ---------- */
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 1.8rem 0 .8rem; }
.rich-content p { color: var(--text); }
.rich-content img { border-radius: 8px; margin: 1rem 0; }
.rich-content blockquote { border-left: 3px solid var(--gold); padding: .6rem 0 .6rem 1.2rem; color: var(--text-light); font-style: italic; }

/* ---------- Search ---------- */
.search-results { display: grid; gap: .8rem; }
.search-result { display: block; background: var(--white); border: 1px solid var(--concrete); border-radius: 8px; padding: 1.1rem 1.3rem; text-decoration: none; transition: border-color .25s; }
.search-result:hover { border-color: var(--gold); }
.search-result strong { color: var(--charcoal); display: block; }
.search-result p { margin: .2rem 0 0; font-size: .88rem; color: var(--text-light); }

/* ---------- Empty states / pagination / errors ---------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-light); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; color: var(--concrete); }
.pagination { display: flex; gap: .4rem; justify-content: center; }
.page-link { padding: .5rem .95rem; border: 1px solid #D5D8D4; border-radius: 5px; color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: .9rem; }
.page-link:hover { border-color: var(--gold); color: var(--gold-dark); }
.page-link.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--gold); }
.error-page { padding: 8rem 0; }
.error-code { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(4.5rem, 12vw, 8rem); color: var(--gold); line-height: 1; }
.error-page h1 { margin: 1rem 0; }

/* ---------- Newsletter & footer ---------- */
.newsletter-section { background: var(--concrete); padding: 3.4rem 0; }
.newsletter-section h3 { margin-bottom: .3rem; }
.newsletter-section p { color: var(--text-light); margin: 0; }
.site-footer { background: var(--ink); color: #B9C0C8; padding: 4.5rem 0 0; font-size: .92rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-bottom: 1.2rem; }
.footer-brand .logo-text { color: var(--white); }
.footer-about { color: #97A0AA; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.07); color: #C7CDD4; transition: all .25s; }
.footer-social a:hover { background: var(--gold); color: var(--ink); }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #B9C0C8; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { margin-bottom: .7rem; display: flex; gap: .6rem; }
.footer-contact i { color: var(--gold); margin-top: .2rem; }
.footer-contact a { color: #B9C0C8; text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .85rem; }
.footer-legal { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.footer-legal a { color: #97A0AA; text-decoration: none; font-size: .85rem; }
.footer-legal a:hover { color: var(--gold); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(15,18,22,.94); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; padding: .5rem 1rem; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--gold); }

.back-to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--charcoal); color: var(--gold); font-size: 1.1rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 1050; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .nav-cta { margin: .8rem 0 .4rem; }
    .main-nav .navbar-collapse { padding-top: .8rem; }
    .hero { min-height: 70vh; }
    .img-frame::before { inset: 12px -12px -12px 12px; }
}
@media (max-width: 767.98px) {
    .section { padding: 3.6rem 0; }
    .card-form { padding: 1.6rem; }
    .quote-steps-indicator { flex-direction: column; gap: .3rem; }
    .portfolio-toolbar { flex-direction: column; align-items: stretch; }
    .portfolio-search input { min-width: 0; flex: 1; }
    .footer-bottom { flex-direction: column; }
    .process-step { margin-bottom: 1.6rem; }
}

/* Accessibility: keyboard focus */
a:focus-visible, button:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
    outline: 3px solid rgba(201,154,69,.55);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
