/* =========================================================
   style.css  -  GLOBAL STYLES (loaded on EVERY page)
   ---------------------------------------------------------
   Edit here once  ->  changes on all pages.
   Contains: colours (:root variables), reset, header/menu,
   footer, offer popup, cursor effect + responsive rules
   for those parts.
   Colours: change the --primary / --navy etc. in :root.
========================================================= */

:root {
    --primary: #a51f24;
    --primary-dark: #650d12;
    --red-light: #d85b60;
    --navy: #2a090c;
    --dark: #140406;
    --light-bg: #faf7f7;
    --text: #3b3030;
    --muted: #746868;
    --white: #ffffff;
    --border: #eadcdc;
    --shadow: 0 15px 45px rgba(50, 0, 0, .12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    padding-top: 82px;
}

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

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

.container {
    width: min(1180px, 92%);
    margin: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .08);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    color: var(--primary-dark);
    white-space: nowrap;
}

.logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-icon-fallback {
    width: 42px;
    height: 42px;
    place-items: center;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
}

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

.nav-links>a, .dropdown>a {
    font-size: 13px;
    font-weight: 600;
    color: #332828;
    transition: .3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown>a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown>a i {
    font-size: 10px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #faf0f0;
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.phone {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.phone i {
    margin-right: 5px;
}

.quote-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: .3s;
}

.quote-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
    color: var(--primary);
    cursor: pointer;
}

footer {
    background: linear-gradient(135deg, #180406, #35080c);
    color: #fff;
    padding-top: 65px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 45px;
    padding-bottom: 50px;
}

.footer-col h3 {
    font-size: 17px;
    margin-bottom: 20px;
}

.footer-col p {
    color: #d9bfc0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d9bfc0;
    font-size: 14px;
    transition: .3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #d9bfc0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact i {
    color: #f08b8f;
    width: 18px;
    margin-top: 3px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: .3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    text-align: center;
    color: #bda7a8;
    font-size: 13px;
}

.nav-links a:hover, .nav-links a[aria-current="page"], .dropdown.current>a {
    color: var(--primary);
}

.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.offer-popup {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 340px;
    padding: 25px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    backdrop-filter: blur(15px);
    z-index: 10000;
    transform: translateY(130%);
    transition: .6s;
}

.offer-popup.show {
    transform: translateY(0);
}

.offer-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 20px;
    color: #777;
    cursor: pointer;
}

.offer-popup small {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
}

.offer-popup h3 {
    color: var(--navy);
    margin: 8px 0;
    font-size: 23px;
}

.offer-popup p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.offer-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 11px 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

.cursor-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    color: var(--primary);
    font-size: 17px;
    animation: particleFloat 1.5s ease-out forwards;
    text-shadow: 0 4px 12px rgba(165, 31, 36, .25);
}

@keyframes particleFloat {
    0% { opacity: .9; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--move-x), -55px) scale(.4) rotate(20deg); }
}

.offer-popup:not(.show) {
    pointer-events: none;
}

@media (max-width:1150px) {
    .nav-links {
        gap: 14px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:1100px) {
    .nav-links {
        gap: 14px;
    }
    .phone {
        display: none;
    }
}

@media (max-width:850px) {
    body {
        padding-top: 72px;
    }
    .navbar {
        min-height: 72px;
    }
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    }
    .nav-links.active {
        display: flex;
    }
    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .header-right {
        margin-left: auto;
    }
    .quote-btn {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:600px) {
    .logo span {
        font-size: 16px;
    }
    .logo-image {
        width: 40px;
        height: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width:850px) {
    .nav-links.open {
        display: flex;
    }
    .nav-links>a, .dropdown {
        width: 100%;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
}

@media (max-width:600px) {
    .offer-popup {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 15px;
    }
    .offer-popup {
        padding: 16px 18px;
    }
    .offer-popup h3 {
        font-size: 19px;
        margin: 4px 0;
    }
    .offer-popup p {
        margin-bottom: 10px;
    }
}

/* Header with logo only (showNameInHeader: false in js/components.js) */
.logo-image.logo-only {
    width: auto;
    max-width: 240px;
    height: 52px;
}

@media (max-width: 600px) {
    .logo-image.logo-only {
        width: auto;
        max-width: 190px;
        height: 42px;
    }
}
