/* =========================================================
   WEIGHGRID — New Design System (v3)
   Headings: Sora  |  Body: Inter
   Colors kept from original: Red #e52323, Dark #0f1720, White.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@500;600;700;800&display=swap');

:root {
    --red: #e52323;
    --red-dark: #c41c1c;
    --ink: #0f1720;
    --ink-soft: #1a1f2b;
    --grey: #5a6270;
    --light-grey: #8a92a3;
    --line: #e6e9ef;
    --bg: #ffffff;
    --bg-soft: #f7f9fc;
    --bg-tint: #f2f6ff;
    --radius: 14px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.05);
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Sora', 'Inter', system-ui, sans-serif;
    --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: #fff;
    color-scheme: light only;
    forced-color-adjust: none;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    forced-color-adjust: none;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--grey); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.brand:hover { color: inherit; }

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand-tag {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-top: 6px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.94rem;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--red);
    transition: width .25s ease;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--red);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    transition: all .25s ease;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    padding: 120px 0 100px;
    color: #fff;
    overflow: hidden;
    background: var(--ink);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 32, 0.82) 0%, rgba(15, 23, 32, 0.68) 100%);
}

.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }

.hero h1 {
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

.hero p {
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all .25s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover {
    background: var(--red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(229, 35, 35, 0.28);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn-outline:hover { background: #fff; color: var(--ink); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }

.section-head {
    max-width: 780px;
    margin: 0 auto 60px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--red);
    vertical-align: middle;
    margin-right: 10px;
    transform: translateY(-3px);
}

.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.02rem; }

/* =========================================================
   IMAGE FADE
   ========================================================= */
.fade-corners {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: transparent;
}
.fade-corners img {
    width: 100%;
    display: block;
    transition: transform .6s ease;
}
.fade-corners:hover img { transform: scale(1.03); }

.fade-corners::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.85) 0%, transparent 35%),
        radial-gradient(circle at top right, rgba(255,255,255,0.85) 0%, transparent 35%),
        radial-gradient(circle at bottom left, rgba(255,255,255,0.85) 0%, transparent 35%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.85) 0%, transparent 35%);
}

.section-soft .fade-corners::after {
    background:
        radial-gradient(circle at top left, rgba(247,249,252,0.9) 0%, transparent 35%),
        radial-gradient(circle at top right, rgba(247,249,252,0.9) 0%, transparent 35%),
        radial-gradient(circle at bottom left, rgba(247,249,252,0.9) 0%, transparent 35%),
        radial-gradient(circle at bottom right, rgba(247,249,252,0.9) 0%, transparent 35%);
}

.section-tint .fade-corners::after {
    background:
        radial-gradient(circle at top left, rgba(242,246,255,0.9) 0%, transparent 35%),
        radial-gradient(circle at top right, rgba(242,246,255,0.9) 0%, transparent 35%),
        radial-gradient(circle at bottom left, rgba(242,246,255,0.9) 0%, transparent 35%),
        radial-gradient(circle at bottom right, rgba(242,246,255,0.9) 0%, transparent 35%);
}

/* =========================================================
   TWO-COLUMN FEATURE
   ========================================================= */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
.feature-text h2 { margin-bottom: 18px; }
.feature-text p { margin-bottom: 16px; }

/* =========================================================
   CARD GRIDS
   ========================================================= */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 38px 32px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: linear-gradient(180deg, var(--red), #8a1414);
    transition: height .35s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.card:hover::before { height: 100%; }

.card h3 { margin-bottom: 14px; color: var(--ink); }
.card p { font-size: 0.97rem; }

.cat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    transition: all .3s ease;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.cat-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--ink);
    font-weight: 600;
}
.cat-card p { font-size: 0.85rem; color: var(--grey); }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { display: grid; gap: 22px; }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
    padding: 14px 4px 4px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.005em;
    font-family: var(--font-body);
}

/* =========================================================
   CONTACTS
   ========================================================= */
.contacts {
    background: var(--ink);
    color: #b6bece;
    padding: 100px 0;
}

.contacts .section-head h2 { color: #fff; }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform .3s ease, background .3s ease;
}
.contact-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.contact-card h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-card p,
.contact-card a {
    color: #d4d9e2;
    font-size: 0.95rem;
    line-height: 1.6;
    display: block;
    margin-bottom: 4px;
}
.contact-card a:hover { color: #fff; }

/* =========================================================
   FORM
   ========================================================= */
.quote-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    padding: 48px 44px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.form-row.single { grid-template-columns: 1fr; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

input, textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: #fafbfd;
    transition: border-color .2s ease, background .2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(229, 35, 35, 0.1);
}

textarea { resize: vertical; min-height: 130px; }
.form-submit { margin-top: 24px; text-align: center; }
.form-submit .btn { width: 100%; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: #0e1830;
    color: #b6bece;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer-logo-wrap {
    display: inline-block;
    background: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.footer-logo { height: 48px; width: auto; display: block; }

.footer-tagline {
    font-size: 0.92rem;
    color: #8a94a8;
    max-width: 300px;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col a, .footer-col p {
    display: block;
    color: #a8b0c2;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color .2s ease;
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: #6f7a92;
}

/* =========================================================
   FADE-UP
   ========================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .feature { grid-template-columns: 1fr; gap: 44px; }
    .feature.reverse { direction: ltr; }
    .grid-4, .gallery-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .hero { padding: 80px 0 70px; }

    .grid-2, .grid-3, .grid-4,
    .gallery-4, .gallery-3 { grid-template-columns: 1fr; }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh;
        width: 280px;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
        transition: right .35s ease;
        z-index: 200;
    }
    .nav-links.open { right: 0; }

    .brand-logo { height: 40px; }
    .brand-name { font-size: 1.15rem; }
    .brand-tag { font-size: 0.55rem; letter-spacing: 0.15em; margin-top: 5px; }

    .contact-cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .quote-form-wrap { padding: 32px 24px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
    .brand-logo { height: 36px; }
    .brand-name { font-size: 1.05rem; }
    .brand-tag { font-size: 0.52rem; letter-spacing: 0.13em; }
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(229, 35, 35, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, background .25s ease;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
}
@media (max-width: 768px) {
    .back-to-top { width: 44px; height: 44px; bottom: 20px; right: 20px; font-size: 1.2rem; }
}

/* =========================================================
   GALLERY CATEGORY HEADINGS
   ========================================================= */
.gallery-category {
    text-align: center;
    margin-bottom: 24px;
}

.gallery-cat-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .gallery-cat-title {
        font-size: 1.05rem;
    }
}