/* ========================================
   GLOBAL STYLES
======================================== */
:root {
    --primary:     #0b2545;
    --primary-dark:#081a30;
    --secondary:   #c9a227;
    --gold:        #c9a227;
    --gold-dark:   #a3831b;
    --dark:        #0a1626;
    --dark-2:      #12233c;
    --light:       #f8f6f1;
    --text-muted:  #6b7280;
    --white:       #ffffff;
    --border:      #e6e2d8;
    --shadow:      0 10px 30px rgba(10,22,38,.10);
    --radius:      12px;
    --transition:  all .3s ease;
    --font-serif:  'Playfair Display', Georgia, serif;
    --font-sans:   'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html { scroll-behavior: smooth; }

/* keep anchor targets clear of the fixed navbar */
section[id] { scroll-margin-top: 80px; }

body {
    font-family: var(--font-sans);
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.section-title {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .75rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}
.section-badge {
    display: inline-block;
    background: rgba(201,162,39,.12);
    color: var(--gold-dark);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 50px;
    margin-bottom: .75rem;
}
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: .75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11,37,69,.35);
}
.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: .75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}
.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ========================================
   NAVBAR
======================================== */
.navbar-custom {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}
.navbar-custom.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: .6rem 0;
}
.navbar-custom.scrolled .nav-link-item { color: var(--dark) !important; }
.navbar-custom.scrolled .navbar-brand-text { color: var(--dark) !important; }
.navbar-custom.scrolled .navbar-brand-dot { color: var(--gold-dark) !important; }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 46px;
}
.navbar-brand-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.brand-icon {
    width: 38px; height: 38px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
}
.navbar-brand-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
    white-space: nowrap;
}
.navbar-brand-dot { color: var(--gold); font-weight: 600; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
}
.nav-menu > li { display: flex; align-items: center; }
.nav-link-item {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,.9);
    font-weight: 500;
    font-size: .95rem;
    line-height: 1;
    white-space: nowrap;
    padding: .65rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}
.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    border-radius: 2px;
}
.nav-link-item:hover::after,
.nav-link-item.active::after { left: 10%; right: 10%; }
.nav-link-item:hover,
.nav-link-item.active {
    color: var(--gold) !important;
    background: rgba(201,162,39,.1);
}
.navbar-custom.scrolled .nav-link-item:hover,
.navbar-custom.scrolled .nav-link-item.active {
    color: var(--gold-dark) !important;
}

.nav-cta {
    background: var(--gold);
    color: var(--dark) !important;
    padding: .7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-left: .75rem;
}
.nav-cta:hover,
.navbar-custom.scrolled .nav-cta:hover {
    background: var(--gold-dark);
    color: var(--dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(201,162,39,.4);
}
.nav-cta::after { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: .5rem;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 25px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.navbar-custom.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   HERO CAROUSEL
======================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform .7s cubic-bezier(.77,0,.175,1);
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 8s ease;
}
.carousel-slide.active .slide-bg { transform: scale(1.05); }

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* dark on the left behind the headline, clearing towards the right so the
       banner subject stays visible */
    background:
        linear-gradient(90deg,
            rgba(10,22,38,.92) 0%,
            rgba(10,22,38,.78) 30%,
            rgba(10,22,38,.42) 58%,
            rgba(10,22,38,.22) 100%),
        linear-gradient(to top, rgba(10,22,38,.55) 0%, rgba(10,22,38,0) 45%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    color: var(--white);
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s .3s, transform .6s .3s;
}
.slide-badge .dot {
    width: 6px; height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.4); }
}
.slide-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s .5s, transform .6s .5s;
}
.slide-heading span { color: var(--gold); }
.slide-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    max-width: 560px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s .7s, transform .6s .7s;
}
.slide-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s .9s, transform .6s .9s;
}
.carousel-slide.active .slide-badge,
.carousel-slide.active .slide-heading,
.carousel-slide.active .slide-desc,
.carousel-slide.active .slide-actions {
    opacity: 1;
    transform: translateY(0);
}
/* set while the loop silently swaps the cloned slide for the real one */
.hero-carousel.no-anim .slide-badge,
.hero-carousel.no-anim .slide-heading,
.hero-carousel.no-anim .slide-desc,
.hero-carousel.no-anim .slide-actions,
.hero-carousel.no-anim .slide-bg { transition: none !important; }

/* Carousel Controls */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px; height: 52px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-prev { left: 1.5rem; }
.carousel-next { right: 1.5rem; }
.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.6);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
    animation: scroll-anim 1.5s infinite;
}
@keyframes scroll-anim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   STATS BAND
======================================== */
.stats-band {
    background: var(--dark);
    padding: 2.75rem 0;
    border-bottom: 1px solid rgba(201,162,39,.15);
}
.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item { color: var(--white); }
.stat-icon {
    width: 52px; height: 52px;
    margin: 0 auto .9rem;
    border-radius: 50%;
    background: rgba(201,162,39,.12);
    border: 1px solid rgba(201,162,39,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.3rem;
    transition: var(--transition);
}
.stat-item:hover .stat-icon {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-4px) rotate(-6deg);
}
.stat-label {
    font-size: .88rem;
    color: rgba(255,255,255,.72);
    margin-top: .4rem;
    font-weight: 500;
    letter-spacing: .3px;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
    padding: 6rem 0;
    background: var(--white);
}
.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}
.about-image-wrap {
    position: relative;
    display: flex;
    align-self: start;
    height: 100%;
    /* a little shorter than the text column, top edges stay aligned */
    max-height: 90%;
    min-height: 440px;
}
.about-img-main {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    object-position: top center;
}
.about-img-badge {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 8px 25px rgba(11,37,69,.35);
}
.about-img-badge .num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.about-img-badge .lbl { font-size: .8rem; opacity: .85; }

.about-content .section-title { text-align: left; }
/* removes the inline-block descender gap so the column ends flush with the button */
.about-content .btn-primary-custom { vertical-align: top; }
.about-content .section-badge { }
.about-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    font-weight: 500;
}
.feature-item .check {
    width: 22px; height: 22px;
    background: rgba(11,37,69,.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: .7rem;
    flex-shrink: 0;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services-section {
    padding: 6rem 0;
    background: var(--light);
}
.services-section .text-center { margin-bottom: 0; }
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(10,22,38,.14);
}
.service-icon {
    width: 52px; height: 52px;
    background: rgba(11,37,69,.07);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.15rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--dark);
    transform: rotate(5deg) scale(1.1);
}
.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .6rem;
    color: var(--dark);
}
.service-card p {
    color: var(--text-muted);
    font-size: .86rem;
    line-height: 1.65;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: .88rem;
    margin-top: 1.25rem;
    transition: var(--transition);
}
.service-link:hover { gap: .7rem; }

.service-toggle {
    background: none;
    border: none;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .3px;
    /* pushes the button to the card bottom so all four line up */
    margin-top: auto;
    align-self: flex-start;
    padding: 1.25rem 0 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: var(--transition);
}
.service-toggle i { transition: transform .3s ease; font-size: .75rem; }
.service-toggle:hover { color: var(--gold); gap: .7rem; }
.service-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.service-sublist {
    list-style: none;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--border);
    display: grid;
    gap: .55rem;
}
.service-sublist li {
    position: relative;
    padding-left: 1.1rem;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.service-sublist li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ========================================
   PORTFOLIO / WORK SECTION
======================================== */
.portfolio-section {
    padding: 6rem 0;
    background: var(--white);
}
/* Gallery slider — three photos per row, slides when there are more than three */
.gallery-slider {
    --gallery-visible: 3;
    --gallery-gap: 1.5rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.gallery-viewport {
    overflow: hidden;
    border-radius: var(--radius);
}
.portfolio-grid {
    display: flex;
    gap: var(--gallery-gap);
    transition: transform .6s cubic-bezier(.77,0,.175,1);
    will-change: transform;
}
.portfolio-item {
    position: relative;
    flex: 0 0 calc((100% - (var(--gallery-visible) - 1) * var(--gallery-gap)) / var(--gallery-visible));
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

/* Shared slider arrows — hidden when everything already fits in one row */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(10,22,38,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}
.slider-nav:hover {
    background: var(--primary);
    color: var(--white);
}
.slider-prev { left: 0; }
.slider-next { right: 0; }
.is-static .slider-nav { display: none; }
.portfolio-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,30,46,.9) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 { color: var(--white); font-size: 1.05rem; font-weight: 700; }
.portfolio-overlay p { color: rgba(255,255,255,.7); font-size: .82rem; }

/* ========================================
   TESTIMONIALS
======================================== */
.testimonials-section {
    padding: 6rem 0;
    background: var(--dark);
}
.testimonials-section .section-title { color: var(--white); }
/* Compact review cards on a slider — moves when there are more than fit a row */
.testimonials-slider {
    --tst-visible: 4;
    --tst-gap: 1.25rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
/* vertical padding keeps the card hover-lift from being clipped */
.testimonials-viewport { overflow: hidden; padding: 6px 0; }
.testimonials-grid {
    display: flex;
    align-items: stretch;
    gap: var(--tst-gap);
    transition: transform .6s cubic-bezier(.77,0,.175,1);
    will-change: transform;
}
.testimonial-card {
    flex: 0 0 calc((100% - (var(--tst-visible) - 1) * var(--tst-gap)) / var(--tst-visible));
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 1.4rem;
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.testimonial-card:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(201,162,39,.35);
    transform: translateY(-4px);
}
.stars { color: var(--gold); font-size: .82rem; margin-bottom: .7rem; }
.testimonial-card p {
    color: rgba(255,255,255,.8);
    font-size: .86rem;
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 1.1rem;
    /* keeps every box the same compact size regardless of review length */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.author-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}
/* initials badge used when a review has no photo */
.author-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,162,39,.15);
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}
.author-info h5 { color: var(--white); font-size: .85rem; font-weight: 700; line-height: 1.3; }
.author-info span { color: rgba(255,255,255,.5); font-size: .75rem; }

.testimonials-empty {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
}
.testimonials-empty i { font-size: 2rem; color: var(--gold); margin-bottom: 1rem; }
.testimonials-empty p { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; line-height: 1.8; }

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 400px; height: 400px;
    background: rgba(201,162,39,.08);
    border-radius: 50%;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%; right: -5%;
    width: 350px; height: 350px;
    background: rgba(201,162,39,.08);
    border-radius: 50%;
}
.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }
.cta-section h2 { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-actions { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; }
/* both buttons share one height, padding and icon spacing so they line up */
.cta-actions .btn-white,
.cta-actions .btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    /* fixed height on both so the Call and WhatsApp pills are identical */
    height: 54px;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: 50px;
    white-space: nowrap;
    box-sizing: border-box;
}
.cta-actions .btn-outline-custom { border-color: var(--white); }
/* WhatsApp green on hover — the plain white hover was indistinguishable
   from the Call button sitting next to it */
.cta-actions .btn-outline-custom:hover {
    background: #25d366;
    border-color: #25d366;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,.4);
}
.cta-actions i { font-size: 1.05rem; line-height: 1; }
.cta-actions .fa-whatsapp { font-size: 1.25rem; }
.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: .85rem 2.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
}
.btn-white:hover {
    background: var(--light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: #0d0d1a;
    padding-top: 4.5rem;
    color: rgba(255,255,255,.7);
}
.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    /* Practice Areas holds the longest labels, Contact the widest email */
    grid-template-columns: 1.7fr .9fr 1.2fr 1.4fr;
    gap: 2.5rem;
    align-items: start;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
    font-size: .9rem;
    line-height: 1.8;
    margin: 1rem 0 1.5rem;
    color: rgba(255,255,255,.55);
}
.social-links { display: flex; gap: .75rem; }
.social-link {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    transition: var(--transition);
    text-decoration: none;
}
.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
    transform: translateY(-3px);
}
.footer-heading {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: .75rem;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .7rem; }
.footer-links li:last-child { margin-bottom: 0; }
.footer-links a {
    color: rgba(255,255,255,.55);
    font-size: .88rem;
    line-height: 1.5;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.footer-links a:hover { color: var(--gold); padding-left: .3rem; }
.footer-links a::before {
    content: '›';
    font-size: 1rem;
    color: var(--gold);
    opacity: 0;
    transition: var(--transition);
}
.footer-links a:hover::before { opacity: 1; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
    font-size: .88rem;
    line-height: 1.6;
    color: rgba(255,255,255,.55);
    word-break: break-word;
}
.footer-contact-item:last-child { margin-bottom: 0; }
.footer-contact-icon {
    width: 32px; height: 32px;
    background: rgba(201,162,39,.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: .85rem;
    flex-shrink: 0;
}
.footer-contact-item a { color: rgba(255,255,255,.75); transition: var(--transition); }
.footer-contact-item a:hover { color: var(--gold); }
.newsletter-form {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}
.newsletter-form input {
    flex: 1;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .65rem 1rem;
    color: var(--white);
    font-size: .88rem;
    outline: none;
    transition: var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form input:focus { border-color: var(--primary); background: rgba(255,255,255,.09); }
.newsletter-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: .65rem 1.1rem;
    cursor: pointer;
    font-size: .9rem;
    transition: var(--transition);
}
.newsletter-form button:hover { background: var(--primary-dark); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { font-size: .85rem; color: rgba(255,255,255,.4); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
    font-size: .83rem;
    color: rgba(255,255,255,.4);
    transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ========================================
   SCROLL TO TOP
======================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px; height: 46px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(11,37,69,.4);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ========================================
   PHILOSOPHY (Understand / Prepare / Represent)
======================================== */
.philosophy-section {
    padding: 6rem 0;
    background: var(--light);
}
.philosophy-steps {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    position: relative;
}
.philosophy-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    position: relative;
    transition: var(--transition);
}
.philosophy-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.step-number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 800;
    color: rgba(11,37,69,.08);
    line-height: 1;
    margin-bottom: .5rem;
}
.step-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(201,162,39,.12);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
    transition: var(--transition);
}
.philosophy-step:hover .step-icon { background: var(--primary); color: var(--gold); }
.philosophy-step h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .6rem;
}
.philosophy-step p { color: var(--text-muted); font-size: .88rem; line-height: 1.65; }

/* ========================================
   WHY CHOOSE US
======================================== */
.why-us-section {
    padding: 5rem 0 6rem;
    background: var(--white);
}
.why-us-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}
.why-us-card {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.why-us-card:hover { background: var(--light); transform: translateY(-4px); }
.why-us-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}
.why-us-card:hover .why-us-icon { background: var(--gold); color: var(--dark); transform: scale(1.08); }
.why-us-card h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .6rem;
}
.why-us-card p { color: var(--text-muted); font-size: .87rem; line-height: 1.6; }

/* ========================================
   CERTIFICATIONS / CREDENTIALS
======================================== */
.certifications-section {
    padding: 6rem 0;
    background: var(--dark);
    background-image: radial-gradient(circle at 15% 20%, rgba(201,162,39,.08), transparent 40%),
                       radial-gradient(circle at 85% 80%, rgba(201,162,39,.08), transparent 40%);
}
.certifications-section .section-title { color: var(--white); }
.certifications-section .section-subtitle { color: rgba(255,255,255,.55); }
.certifications-section .section-badge { background: rgba(201,162,39,.15); color: var(--gold); }
.certs-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}
.cert-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(201,162,39,.2);
    border-radius: var(--radius);
    padding: 2.25rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.cert-card:hover {
    border-color: var(--gold);
    background: rgba(201,162,39,.06);
    transform: translateY(-6px);
}
.cert-icon {
    width: 58px; height: 58px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    border: 1px solid rgba(201,162,39,.35);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.cert-card h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: .5rem; font-family: var(--font-serif); }
.cert-card p { color: rgba(255,255,255,.55); font-size: .85rem; line-height: 1.6; }

/* ========================================
   LEGAL INSIGHTS
======================================== */
.insights-section {
    padding: 6rem 0;
    background: var(--light);
}
/* Cards auto-scroll right-to-left in a continuous loop (see .is-marquee below) */
.insights-slider {
    --ins-visible: 4;
    --ins-gap: 1.5rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
/* vertical padding keeps the card hover-lift from being clipped */
.insights-viewport { overflow: hidden; padding: 6px 0; }
.insights-grid {
    display: flex;
    align-items: stretch;
    gap: var(--ins-gap);
    transition: transform .6s cubic-bezier(.77,0,.175,1);
    will-change: transform;
}
.insight-card {
    flex: 0 0 calc((100% - (var(--ins-visible) - 1) * var(--ins-gap)) / var(--ins-visible));
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.9rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.insight-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(10,22,38,.12); border-color: transparent; }
.insight-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: rgba(11,37,69,.07);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.insight-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: .6rem;
}
.insight-card h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .6rem;
    line-height: 1.4;
}
.insight-card p { color: var(--text-muted); font-size: .86rem; line-height: 1.65; }
/* description comes from CKEditor, so it can hold paragraphs, lists and links */
.insight-card .insight-desc { color: var(--text-muted); font-size: .86rem; line-height: 1.65; }
.insight-desc p + p,
.insight-desc p + ul, .insight-desc p + ol,
.insight-desc ul + p, .insight-desc ol + p { margin-top: .5rem; }
.insight-desc ul, .insight-desc ol { padding-left: 1.1rem; }
.insight-desc a { color: var(--primary); text-decoration: underline; }
/* continuous right-to-left auto-scroll — no pagination needed */
.insights-slider .slider-nav { display: none; }
.insights-grid.is-marquee {
    animation: insightsMarquee 28s linear infinite;
}
.insights-slider:hover .insights-grid.is-marquee,
.insights-slider:focus-within .insights-grid.is-marquee { animation-play-state: paused; }
.insights-grid.is-marquee.is-paused { animation-play-state: paused; }
@keyframes insightsMarquee {
    from { transform: translateX(0); }
    /* --ins-shift = one full set of cards + gaps, measured in main.js */
    to   { transform: translateX(calc(-1 * var(--ins-shift, 50%))); }
}

/* card stays collapsed to 5 lines — full detail opens in a centered modal */
.insight-card { cursor: pointer; }
.insight-desc {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.insight-bullets {
    display: none;
    margin: .8rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: .86rem;
    line-height: 1.65;
}

/* Insight detail modal — opens centered on click, closes on outside click */
.insight-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.insight-modal.is-visible { display: flex; }
.insight-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,22,38,.6);
}
.insight-modal-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.2rem;
    width: 80vw;
    height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(10,22,38,.35);
}
.insight-modal-close {
    position: absolute;
    top: .9rem; right: .9rem;
    width: 34px; height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(11,37,69,.07);
    color: var(--primary);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}
.insight-modal-close:hover { background: var(--primary); color: var(--white); }
.insight-modal-body .insight-icon { margin-bottom: 1.2rem; }
.insight-modal-body .insight-desc {
    -webkit-line-clamp: unset;
    overflow: visible;
}
.insight-modal-body .insight-bullets { display: block; }

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
    padding: 6rem 0;
    background: var(--white);
}
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 3rem;
    /* both columns share the taller column's height */
    align-items: stretch;
}
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-info-icon {
    width: 46px; height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.contact-info-item:hover .contact-info-icon { background: var(--gold); color: var(--dark); transform: rotate(-6deg) scale(1.05); }
.contact-info-item h4 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .2rem; }
.contact-info-item a, .contact-info-item span { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }
.contact-info-item a:hover { color: var(--primary); }
/* full-width strip beneath both columns */
.contact-map {
    position: relative;
    grid-column: 1 / -1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
/* address label pinned over the map, matching the red map marker */
.map-address {
    position: absolute;
    top: .75rem;
    left: .75rem;
    max-width: calc(100% - 1.5rem);
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .5rem .95rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--dark);
    box-shadow: 0 4px 14px rgba(10,22,38,.18);
    pointer-events: none;
}
.map-address i { color: #e53935; font-size: .95rem; flex-shrink: 0; }
.contact-map iframe {
    display: block;
    width: 100%;
    height: 200px;
    filter: grayscale(15%);
}

.contact-form-wrap {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: .5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--dark);
    outline: none;
    transition: var(--transition);
    resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}
.form-submit {
    width: 100%;
    border: none;
    text-align: center;
    background: var(--primary);
    border-color: var(--primary);
}
.form-submit:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.form-note { margin-top: .9rem; font-size: .78rem; color: var(--text-muted); text-align: center; }

/* ========================================
   FLOATING ACTION BUTTONS
======================================== */
.floating-actions {
    position: fixed;
    left: 1.75rem;
    bottom: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.fab {
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    transition: var(--transition);
    position: relative;
}
.fab:hover { transform: translateY(-4px) scale(1.06); }
.fab-whatsapp { background: #25d366; }
.fab-call { background: var(--gold); color: var(--dark); font-size: 1.2rem; }
.fab-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: fab-pulse 1.8s infinite;
}
@keyframes fab-pulse {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ========================================
   GALLERY LIGHTBOX
======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,22,38,.94);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25);
    color: var(--white);
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ========================================
   RESPONSIVE
======================================== */
/* four practice-area cards only stay one-per-row on wide screens */
@media (max-width: 1199px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 1199px) {
    .testimonials-slider { --tst-visible: 3; }
    .insights-slider { --ins-visible: 3; }
}
@media (max-width: 1024px) {
    .gallery-slider { --gallery-visible: 2; }
    .insights-slider { --ins-visible: 2; }
}
@media (max-width: 900px) {
    .testimonials-slider { --tst-visible: 2; }
}
@media (max-width: 640px) {
    .gallery-slider { --gallery-visible: 1; }
    .testimonials-slider { --tst-visible: 1; }
    .insights-slider { --ins-visible: 1; }
    .slider-nav { width: 38px; height: 38px; font-size: .85rem; }
}
@media (max-width: 1024px) {
    .services-grid,
    .philosophy-steps,
    .why-us-grid,
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .about-grid { gap: 2.5rem; }
}
@media (max-width: 768px) {
    /* portrait crops the banner tightly — even coverage keeps the text readable */
    .slide-bg::after { background: linear-gradient(180deg, rgba(10,22,38,.82) 0%, rgba(10,22,38,.68) 55%, rgba(10,22,38,.85) 100%); }
    .hamburger { display: flex; }
    .nav-menu {
        position: absolute;
        top: 100%; left: 0; right: 0;
        margin-left: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.25rem;
        gap: .25rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 8px 30px rgba(0,0,0,.1);
        transform: translateY(-110%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-menu > li { width: 100%; }
    .nav-link-item { color: var(--dark) !important; width: 100%; padding: .85rem 1rem; }
    .nav-link-item::after { display: none; }
    .nav-cta { text-align: center; justify-content: center; margin: .5rem 0 0; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-image-wrap { height: 360px; min-height: 0; max-height: none; }
    .about-img-badge { bottom: 1rem; right: 1rem; }
    .services-grid,
    .philosophy-steps,
    .why-us-grid,
    .certs-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 2.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-section h2 { font-size: 1.9rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 1.75rem; }
    .contact-map iframe { height: 180px; }
    .map-address { font-size: .75rem; padding: .45rem .8rem; }
    .floating-actions { left: 1rem; bottom: 1.5rem; }
    .fab { width: 48px; height: 48px; font-size: 1.25rem; }
    .lightbox-prev { left: .5rem; }
    .lightbox-next { right: .5rem; }
}
@media (min-width: 1400px) {
    .nav-container,
    .slide-content,
    .stats-grid,
    .about-grid,
    .services-grid,
    .gallery-slider,
    .testimonials-slider,
    .footer-top,
    .footer-bottom,
    .philosophy-steps,
    .why-us-grid,
    .certs-grid,
    .insights-slider,
    .contact-grid { max-width: 1320px; }
}

@media (max-width: 576px) {
    .nav-container { padding: 0 1rem; }
    .navbar-brand-text { font-size: 1.05rem; }
    .brand-icon { width: 32px; height: 32px; font-size: .95rem; }
    .slide-content,
    .about-grid,
    .stats-grid,
    .services-grid,
    .gallery-slider,
    .testimonials-slider,
    .footer-top,
    .philosophy-steps,
    .why-us-grid,
    .certs-grid,
    .insights-slider,
    .contact-grid { padding-left: 1rem; padding-right: 1rem; }
    .about-features { grid-template-columns: 1fr; }
    .about-image-wrap { height: 300px; min-height: 0; max-height: none; }
    .about-img-badge { padding: 1rem; }
    .about-img-badge .num { font-size: 1.5rem; }
    .about-img-badge .lbl { font-size: .72rem; }
    .carousel-prev, .carousel-next { width: 40px; height: 40px; font-size: 1rem; }
    .carousel-prev { left: .6rem; }
    .carousel-next { right: .6rem; }
    .scroll-indicator { display: none; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn-white,
    .cta-actions .btn-outline-custom { padding: 0 1.25rem; font-size: .95rem; }
    .lightbox { padding: 1rem; }
    .lightbox-close, .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: .85rem; }
    .lightbox-close { top: .75rem; right: .75rem; }
    .lightbox-prev { left: .25rem; }
    .lightbox-next { right: .25rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .slide-actions { flex-direction: column; align-items: flex-start; }
    .slide-actions a { width: 100%; text-align: center; }
    .section-title { font-size: 1.75rem; }
    .section-subtitle { font-size: .95rem; }
}

/* Short / landscape viewports — hero shouldn't force excess scroll */
@media (max-height: 560px) and (orientation: landscape) {
    .hero-carousel { height: auto; min-height: 480px; padding: 6.5rem 0 3rem; }
    .scroll-indicator { display: none; }
}

/* Extra-small devices (older/small phones) */
@media (max-width: 360px) {
    .navbar-brand-dot { display: block; font-size: .78rem; line-height: 1.1; }
    .slide-heading { font-size: 1.75rem; }
    .stat-label { font-size: .78rem; }
    .contact-form-wrap { padding: 1.25rem; }
    .why-us-grid, .certs-grid { gap: 1.25rem; }
}

/* uploaded logo (Site Settings → Logo Image); the icon mark is used until one is set */
.brand-logo { height: 56px; width: auto; display: block; }
.navbar-custom.scrolled .brand-logo { height: 50px; }

/* ========================================
   SCROLL REVEAL EFFECTS
   Every section animates in its own way as it
   reaches the lower part of the screen. The
   [data-anim] value is assigned in main.js.
======================================== */
[data-anim] {
    opacity: 0;
    will-change: opacity, transform;
    transition:
        opacity .8s cubic-bezier(.22,.61,.36,1),
        transform .8s cubic-bezier(.22,.61,.36,1),
        clip-path .9s cubic-bezier(.22,.61,.36,1),
        filter .8s ease;
}

/* --- resting (pre-scroll) positions ------------------------------------ */
[data-anim="fade-up"]     { transform: translateY(46px); }
[data-anim="fade-down"]   { transform: translateY(-28px); }
[data-anim="slide-right"] { transform: translateX(-70px); }   /* enters from the left  */
[data-anim="slide-left"]  { transform: translateX(70px); }    /* enters from the right */
[data-anim="zoom-in"]     { transform: scale(.86); }
[data-anim="flip-up"]     { transform: perspective(900px) rotateX(-24deg) translateY(40px); transform-origin: bottom center; }
[data-anim="tilt-in"]     { transform: rotate(-4deg) scale(.92) translateY(34px); }
[data-anim="rise"]        { transform: translateY(60px) scale(.96); }
[data-anim="mask-up"]     { clip-path: inset(100% 0 0 0); transform: translateY(28px); }
[data-anim="blur-in"]     { filter: blur(10px); transform: translateY(24px); }

/* --- settled state ----------------------------------------------------- */
[data-anim].is-visible {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
    filter: none;
}

/* the hero runs its own timeline, and slider tracks must never be offset */
.carousel-slide [data-anim],
.portfolio-grid [data-anim],
.testimonials-grid [data-anim],
.insights-grid [data-anim] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    [data-anim],
    [data-anim].is-visible {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        filter: none !important;
        transition: none !important;
    }
    .insights-grid.is-marquee { animation: none !important; }
}

/* ========================================
   BCI DISCLAIMER OVERLAY
======================================== */
.disclaimer-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 22, 38, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease, visibility 0s linear 0s;
}

.disclaimer-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
}

body.disclaimer-locked {
    overflow: hidden;
}

.disclaimer-box {
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius);
    border-top: 4px solid var(--secondary);
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    padding: 2rem 2.25rem 1.75rem;
    animation: disclaimerRise .45s cubic-bezier(.22,.61,.36,1);
}

@keyframes disclaimerRise {
    from { opacity: 0; transform: translateY(24px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border);
}

.disclaimer-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.disclaimer-header h2 {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    margin: 0;
}

.disclaimer-body p {
    font-family: var(--font-sans);
    font-size: .93rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.disclaimer-body p:last-child {
    margin-bottom: 0;
    color: var(--primary);
    font-weight: 600;
}

.disclaimer-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.btn-disclaimer-agree {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: .04em;
    font-size: .9rem;
    color: var(--primary);
    background: var(--secondary);
    border: none;
    padding: .75rem 2.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-disclaimer-agree:hover,
.btn-disclaimer-agree:focus {
    background: var(--gold-dark);
    color: var(--white);
}

@media (max-width: 576px) {
    .disclaimer-box { padding: 1.5rem 1.35rem 1.35rem; }
    .disclaimer-header h2 { font-size: 1.2rem; }
    .disclaimer-footer { justify-content: stretch; }
    .btn-disclaimer-agree { width: 100%; }
}
