@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root{
    --primary:#0b3d2e;
    --primary-dark:#081f17;
    --accent:#fbbf24;
    --accent-light:#fde68a;
    --text:#1f2937;
    --text-light:#f9fafb;
    --gray:#6b7280;
    --light:#f8fafc;
    --white:#ffffff;
    --shadow:0 10px 30px rgba(0,0,0,.08);
    --font-heading:'Montserrat',sans-serif;
    --font-body:'Open Sans',sans-serif;
}

body{
    font-family: var(--font-body);
    color: var(--text);
    line-height:1.6;
    overflow-x:hidden;
}

h1,h2,h3,h4,h5,h6{
    font-family: var(--font-heading);
    font-weight:700;
    letter-spacing:-.5px;
}

a{ text-decoration:none; }

/* NAVBAR */
.navbar{
    background: linear-gradient(rgba(0,0,0,.7),rgba(0,0,0,.7));
    padding:1rem 0;
    transition: all .3s ease;
}
.navbar.scrolled{
    background: rgba(8,23,15,.95) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.navbar-brand img{ filter: brightness(0) invert(1); }
.navbar .nav-link{
    color: var(--text-light) !important;
    font-weight:600;
    margin:0 .5rem;
    transition: color .3s;
}
.navbar .nav-link:hover{
    color: var(--accent) !important;
}
.navbar .phone-link{
    color: var(--accent);
    font-weight:700;
}

/* HERO */
.hero-section{
    background-size:cover;
    background-position:center;
    min-height:100vh;
    display:flex;
    align-items:center;
    text-align:center;
    position:relative;
}
.hero-section::after{
    content:'';
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:30%;
    background:linear-gradient(to top, rgba(255,255,255,.8), transparent);
    z-index:1;
}
.hero-content{
    position:relative;
    z-index:2;
    color:var(--white);
}
.hero-title{
    font-size:3.5rem;
    font-weight:800;
    text-transform:uppercase;
    margin-bottom:1rem;
    text-shadow:2px 2px 15px rgba(0,0,0,.5);
}
.hero-subtitle{
    font-size:1.2rem;
    max-width:700px;
    margin:0 auto 2rem;
    text-shadow:0 2px 5px rgba(0,0,0,.5);
}
@media(max-width:768px){
    .hero-title{ font-size:2.2rem; }
    .hero-subtitle{ font-size:1rem; }
}

/* SLIDER (carousel) */
.carousel-indicators button{
    background-color: var(--accent);
    width:40px;
    height:5px;
    border:none;
    opacity:.8;
}
.carousel-caption{
    background:rgba(0,0,0,.5);
    padding:1.5rem;
    border-radius:10px;
    bottom:3rem;
}

/* BUTTONS */
.btn-custom{
    background:var(--accent);
    color:var(--white);
    font-weight:700;
    padding:.75rem 2rem;
    border-radius:50px;
    text-transform:uppercase;
    letter-spacing:1px;
    transition: all .3s ease;
    border:none;
}
.btn-custom:hover{
    background:var(--accent-light);
    color:var(--dark);
    box-shadow:0 10px 25px rgba(251,191,36,.4);
    transform:translateY(-3px);
}
.btn-outline-custom{
    border:2px solid var(--white);
    color:var(--white);
    background:transparent;
    padding:.6rem 1.5rem;
    border-radius:50px;
    font-weight:600;
    transition:all .3s;
}
.btn-outline-custom:hover{
    background:var(--white);
    color:var(--primary);
}

/* SECTION HEADINGS */
.section-heading{
    margin-bottom:3rem;
}
.section-heading .subtitle{
    color:var(--accent);
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:3px;
    display:block;
    margin-bottom:.5rem;
}
.section-heading h2{
    font-size:2.5rem;
    color:var(--primary);
}
.section-heading p{
    color:var(--gray);
    max-width:600px;
    margin:.8rem auto 0;
}

/* CARDS */
.service-card{
    background:var(--white);
    border-radius:15px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:transform .3s, box-shadow .3s;
    height:100%;
}
.service-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.15);
}
.service-card img,
.blog-card img{
    width:100%;
    height:250px;
    object-fit:cover;
    transition:transform .5s;
}
.service-card:hover img,
.blog-card:hover img{
    transform:scale(1.05);
}
.service-card .card-body{
    padding:1.8rem;
}
.service-card h3{
    font-size:1.4rem;
    font-weight:700;
    margin-bottom:.8rem;
    color:var(--primary);
}
.service-card p{ color:var(--gray); margin-bottom:1rem; }
.service-card .card-price{
    font-size:1.5rem;
    font-weight:700;
    color:var(--accent);
}

/* STATS / COUNTERS */
.stat-box{
    background:rgba(255,255,255,.1);
    backdrop-filter:blur(5px);
    border:1px solid rgba(255,255,255,.2);
    border-radius:15px;
    padding:2rem 1rem;
    text-align:center;
    color:var(--white);
}
.stat-box .number{
    font-size:3rem;
    font-weight:800;
    font-family:var(--font-heading);
    display:block;
}
.stat-box .label{
    text-transform:uppercase;
    letter-spacing:1px;
    font-size:.9rem;
    opacity:.9;
}

/* TESTIMONIALS */
.testimonial-card{
    background:var(--white);
    border-radius:15px;
    padding:2.5rem 2rem;
    box-shadow:var(--shadow);
    height:100%;
    text-align:center;
}
.testimonial-card .quote-icon{
    color:var(--accent);
    font-size:2rem;
    margin-bottom:1rem;
}
.testimonial-card p{
    font-style:italic;
    color:var(--text);
    margin-bottom:1.5rem;
}
.testimonial-card .client-avatar{
    width:60px;
    height:60px;
    border-radius:50%;
    background:var(--primary);
    color:var(--white);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:1.2rem;
    margin-bottom:.5rem;
}
.testimonial-card .client-name{
    font-weight:600;
    color:var(--primary);
}
.testimonial-card .client-role{ color:var(--gray); font-size:.9rem; }

/* FORMS */
.contact-form .form-control{
    background:#f9fafb;
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:.8rem 1.2rem;
    transition:all .3s;
}
.contact-form .form-control:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 .2rem rgba(251,191,36,.25);
}
.contact-form textarea.form-control{
    min-height:150px;
}

/* FOOTER */
footer{
    background:var(--primary-dark);
    color:var(--white);
    padding:4rem 0 0;
}
footer h5{
    color:var(--accent);
    margin-bottom:1.5rem;
    font-size:1.2rem;
}
footer ul{
    list-style:none;
    padding:0;
}
footer ul li{
    margin-bottom:.8rem;
}
footer ul li a{
    color:rgba(255,255,255,.8);
    transition:color .3s;
}
footer ul li a:hover{
    color:var(--accent);
}
footer .contact-info i{
    margin-right:.5rem;
    color:var(--accent);
}
footer .social-links a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    background:rgba(255,255,255,.1);
    border-radius:50%;
    margin-right:.6rem;
    color:var(--white);
    transition:all .3s;
}
footer .social-links a:hover{
    background:var(--accent);
    color:var(--dark);
}
footer .footer-bottom{
    margin-top:3rem;
    border-top:1px solid rgba(255,255,255,.1);
    padding:1.5rem 0;
    text-align:center;
    color:rgba(255,255,255,.6);
}

/* COOKIE BANNER */
.cookie-consent{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    background:rgba(20,20,20,.95);
    color:#fff;
    padding:1.5rem 2rem;
    z-index:1050;
    text-align:center;
    box-shadow:0 -5px 30px rgba(0,0,0,.3);
    display:none;
}
.cookie-consent p{
    margin-bottom:1rem;
}
.cookie-consent .cookie-btn{
    background:var(--accent);
    color:var(--dark);
    border:none;
    padding:.5rem 1.5rem;
    margin:0 .3rem;
    border-radius:30px;
    font-weight:600;
    cursor:pointer;
    transition:all .3s;
}
.cookie-consent .cookie-btn:hover{
    background:var(--accent-light);
}

/* TOAST MESSAGE */
.toast-message{
    position:fixed;
    top:1rem;
    right:1rem;
    background:var(--success, #28a745);
    color:#fff;
    padding:1rem 1.5rem;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
    z-index:9999;
    transform:translateY(-20px);
    opacity:0;
    transition:all .3s ease;
}
.toast-message.show{
    transform:translateY(0);
    opacity:1;
}
.toast-message.error{
    background:#dc3545;
}

/* BACK TO TOP */
.back-to-top{
    position:fixed;
    bottom:1.5rem;
    right:1.5rem;
    background:var(--accent);
    color:var(--dark);
    width:45px;
    height:45px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.2rem;
    cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,.2);
    z-index:1000;
    opacity:0;
    visibility:hidden;
    transition:all .3s;
}
.back-to-top.active{
    opacity:1;
    visibility:visible;
}
.back-to-top:hover{
    background:var(--accent-light);
    transform:translateY(-3px);
}

/* SECTION SPACING */
.py-6{ padding-top:5rem; padding-bottom:5rem; }
.py-7{ padding-top:6rem; padding-bottom:6rem; }
.bg-light-custom{ background-color:var(--light); }
.bg-primary-dark{ background:var(--primary); }

/* Utilities */
.text-accent{ color:var(--accent); }
.text-primary-custom{ color:var(--primary); }

/* Accordion */
.accordion-button{
    font-weight:600;
    color:var(--primary);
    background:var(--light);
}
.accordion-button:not(.collapsed){
    background:var(--primary);
    color:#fff;
}
.accordion-button:focus{
    box-shadow:0 0 0 .2rem rgba(11,61,46,.15);
}
.accordion-button::after{
    filter:invert(1);
}

/* Animated circle / decorative */
@keyframes float{
    0%{ transform:translateY(0); }
    50%{ transform:translateY(-10px); }
    100%{ transform:translateY(0); }
}
.float-animation{
    animation:float 3s ease-in-out infinite;
}

/* Responsive fixes */
@media(max-width:768px){
    .section-heading h2{ font-size:1.8rem; }
    .stat-box .number{ font-size:2.5rem; }
    .hero-title{ font-size:2rem; }
    .navbar-collapse{
        background:var(--primary-dark);
        border-radius:10px;
        padding:1rem;
    }
}
/* Accessibility / contrast overrides */
.btn-custom{ color:#081f17 !important; }
.btn-custom:hover{ color:#081f17 !important; background:#fde68a !important; }
.section-heading .subtitle{ color:#b45309 !important; }
.btn-link.text-accent{ color:#b45309 !important; }
footer div[style*="background-color: rgba(0,0,0,.4)"]{ background:#081f17 !important; color:#ffffff !important; }

/* ===== QA accessibility overrides ===== */

/* Dark fallback behind hero & image CTA sections so white text keeps contrast */
.hero-section,
section[style*="background-image"]{
    background-color:#0b3d2e;
}

/* Buttons on amber background use dark text for sufficient contrast */
.btn-custom{
    color:#1f2937 !important;
}
.btn-custom:hover,
.btn-custom:focus{
    color:#0b3d2e !important;
}

/* Hardcoded site cookie banner (always visible until a choice is made) */
#siteCookieBanner{
    position:fixed;
    left:16px;
    right:16px;
    bottom:16px;
    z-index:2147483000;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    max-width:1120px;
    margin:auto;
    padding:16px 18px;
    border-radius:12px;
    background:#171717;
    color:#fff;
    box-shadow:0 10px 35px rgba(0,0,0,.45);
    font:15px/1.5 'Open Sans',Arial,sans-serif;
}
#siteCookieBanner p{ margin:0; color:#fff; }
#siteCookieBanner .cookie-actions{ display:flex; gap:10px; flex-shrink:0; }
#siteCookieBanner button{
    border:1px solid #fff;
    border-radius:7px;
    padding:9px 16px;
    font:inherit;
    font-weight:700;
    cursor:pointer;
}
#siteCookieBanner #cookieDecline{ background:transparent; color:#fff; }
#siteCookieBanner #cookieAccept{ background:#fbbf24; color:#1f2937; border-color:#fbbf24; }
@media(max-width:640px){
    #siteCookieBanner{ left:8px; right:8px; bottom:8px; flex-direction:column; align-items:stretch; }
    #siteCookieBanner .cookie-actions{ width:100%; }
    #siteCookieBanner .cookie-actions button{ flex:1; }
}

/* Readable footer copyright bar */
footer .text-center.py-3{
    color:#ffffff !important;
    background-color:#050a08 !important;
}

/* ===== Price page contrast fixes ===== */
/* Outline buttons sitting on white/light card backgrounds need dark text + border */
.bg-white .btn-outline-custom,
section.bg-white .btn-outline-custom{
    color:#0b3d2e !important;
    border-color:#0b3d2e !important;
    background:transparent !important;
}
.bg-white .btn-outline-custom:hover,
.bg-white .btn-outline-custom:focus,
section.bg-white .btn-outline-custom:hover,
section.bg-white .btn-outline-custom:focus{
    background:#0b3d2e !important;
    color:#ffffff !important;
    border-color:#0b3d2e !important;
}
/* Price / accent text on white card backgrounds must be dark enough to read */
.bg-white .text-accent{
    color:#92400e !important;
}

/* ===== Thank-you page: step number circles ===== */
/* White text on the amber accent bg fails contrast. Use the dark brand green so
   the white numerals remain clearly readable. */
.rounded-circle.bg-accent.text-white{
    background-color:#0b3d2e !important;
}

/* ===== Static, always-visible cookie banner (server-rendered #page-cookie-consent) ===== */
#page-cookie-consent{
    position:fixed;
    left:16px;
    right:16px;
    bottom:16px;
    z-index:2147483647;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    max-width:1120px;
    margin:auto;
    padding:16px 18px;
    border-radius:12px;
    background:#171717;
    color:#fff;
    box-shadow:0 10px 35px rgba(0,0,0,.45);
    font:15px/1.5 'Open Sans',Arial,sans-serif;
}
#page-cookie-consent p{ margin:0; color:#fff; }
#page-cookie-consent .page-cookie-actions{ display:flex; gap:10px; flex-shrink:0; }
#page-cookie-consent button{
    border:1px solid #fff;
    border-radius:7px;
    padding:9px 16px;
    font:inherit;
    font-weight:700;
    cursor:pointer;
}
#page-cookie-consent #page-cookie-decline{ background:transparent; color:#fff; }
#page-cookie-consent #page-cookie-accept{ background:#fbbf24; color:#1f2937; border-color:#fbbf24; }
@media(max-width:640px){
    #page-cookie-consent{ left:8px; right:8px; bottom:8px; flex-direction:column; align-items:stretch; }
    #page-cookie-consent .page-cookie-actions{ width:100%; }
    #page-cookie-consent .page-cookie-actions button{ flex:1; }
}
/* Where a page-level consent banner exists, hide the auto-injected runtime banner
   so visitors never see two overlapping cookie bars. */
body:has(#page-cookie-consent) #generator-cookie-consent{ display:none !important; }
