/**
 * Summit Bridge Legal — Main Stylesheet
 * 
 * Custom styles that extend Tailwind CSS.
 * Design tokens, component overrides, and utility classes.
 * 
 * @package SummitBridgeLegal
 * @version 1.1.0
 */

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */

:root {
    --color-primary: #C5B39A;
    --color-primary-dark: #B09A7D;
    --color-primary-light: #D4C7B3;
    --color-charcoal: #1A1A1A;
    --color-true-black: #000000;
    --color-soft-gray: #F5F5F5;
    --color-light-gray: #E5E5E5;
    --color-dark-footer: #0F0F0F;

    --font-display: 'Inter', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

/* ============================================================
   BASE STYLES
   ============================================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: #fff;
    color: var(--color-charcoal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================================
   HERO OVERLAY
   ============================================================ */

.hero-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 5;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */

.hero-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

.hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
    backface-visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    filter: grayscale(100%) brightness(1.1);
    opacity: 0.4;
}

/* ============================================================
   TYPOGRAPHY — WATERMARK
   ============================================================ */

.text-huge-watermark {
    font-size: clamp(6rem, 20vw, 24rem);
    line-height: 1;
    letter-spacing: -0.05em;
    opacity: 0.05;
}

/* ============================================================
   MATERIAL SYMBOLS
   ============================================================ */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

details summary::-webkit-details-marker {
    display: none;
}

details summary {
    list-style: none;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */

.mobile-menu {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mobile-menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children for grid animations */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.revealed>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger.revealed>*:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-stagger.revealed>*:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-stagger.revealed>*:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-stagger.revealed>* {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   HEADER TRANSITIONS
   ============================================================ */

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   COUNTER ANIMATION
   ============================================================ */

.counter-value {
    display: inline-block;
}

/* ============================================================
   DROPDOWN MENU (Pages)
   ============================================================ */

.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-dropdown-trigger:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================================
   MOBILE RESPONSIVE STYLES
   ============================================================ */

@media (max-width: 767px) {

    /* --- Global Mobile Spacing --- */
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* --- Section Padding Reduction --- */
    .py-32 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .py-40 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .py-48 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    /* --- Hero Sizing --- */
    section.h-screen {
        min-height: 80vh;
        height: auto;
    }

    section[class*="h-[80vh]"] {
        min-height: 60vh;
        height: auto;
    }

    section[class*="min-h-[85vh]"] {
        min-height: 70vh;
        height: auto;
    }

    /* --- Typography Scaling --- */
    .text-huge-watermark {
        font-size: clamp(3rem, 20vw, 8rem);
        word-break: break-all;
        overflow: hidden;
    }

    /* --- Stats counters on mobile --- */
    .text-7xl {
        font-size: 3rem;
        line-height: 1;
    }

    /* --- Footer Adjustments --- */
    footer .grid {
        gap: 2.5rem;
    }

    footer .relative.pt-10.pb-20 {
        padding-top: 0.5rem;
        padding-bottom: 1.5rem;
    }

    /* --- FAQ Accordion --- */
    details summary {
        padding: 1.25rem 1rem;
    }

    details summary span:first-child {
        font-size: 1rem;
    }

    details>div {
        padding: 0 1rem 1.25rem;
    }

    /* --- Image Height Adjustments --- */
    img.h-\[600px\],
    img.h-\[700px\] {
        height: 350px;
    }

    img.h-\[400px\] {
        height: 250px;
    }

    /* --- Decorative elements hide on mobile --- */
    .absolute.-bottom-10.-right-10 {
        display: none;
    }

    /* --- Team detail hero --- */
    .text-8xl {
        font-size: 3.5rem;
    }

    /* --- CTA bottom spacing --- */
    section.py-40 .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .text-huge-watermark {
        font-size: clamp(4rem, 15vw, 12rem);
    }
}

/* ============================================================
   HERO SLIDER (SWIPER)
   ============================================================ */

.hero-swiper-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.hero-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    transition-property: transform, opacity;
}

.hero-swiper .swiper-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* Ensure active slide is visible */
.hero-swiper .swiper-slide-active,
.hero-swiper .swiper-slide-active img {
    opacity: 1;
}

/* Fade effect fixes */
.hero-swiper.swiper-fade .swiper-slide {
    opacity: 0 !important;
    transition-timing-function: ease-in-out;
}

.hero-swiper.swiper-fade .swiper-slide-active {
    opacity: 1 !important;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {

    header,
    footer,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }
}