@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --primary: #D4AF37;
    --accent-gold: #D4AF37;
    --bg-light: #fbfaf9;
    --bg-dark: #0f1113;
    --surface-dark: #1c1f22;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-nav {
    background: rgba(12, 14, 18, 0.6) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium Gold Text Gradient */
.gold-text {
    background: linear-gradient(135deg, #D4AF37 0%, #B8934E 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animated Underline */
.premium-underline {
    position: relative;
    display: inline-block;
}

.premium-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-underline:hover::after {
    width: 100%;
}

/* Reveal Animations helper */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Service Card Hover */
.service-card-image {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-image {
    transform: scale(1.1);
}

/* Hero Parallax Effect simulation */
.hero-image {
    transform: scale(1.1);
    transition: transform 2s ease-out;
}

/* Dark mode overrides for consistency */
.dark body {
    background-color: var(--bg-dark);
    color: #fbfaf9;
}

/* Smooth Navigation */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* CTA Button Glow */
.btn-glow {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet Breakpoint (max-width: 1024px) */
@media (max-width: 1024px) {

    /* Typography Adjustments */
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    /* Hero Section */
    .text-5xl,
    .text-6xl,
    .text-7xl,
    .text-8xl,
    .text-9xl {
        font-size: 2.5rem !important;
    }

    /* Grid Layouts */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    .md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Spacing */
    .py-32 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .py-40 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .gap-32 {
        gap: 3rem !important;
    }

    .gap-24 {
        gap: 2rem !important;
    }

    .mb-24 {
        margin-bottom: 2rem !important;
    }

    .mb-20 {
        margin-bottom: 1.5rem !important;
    }
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {

    /* Base Typography */
    html {
        font-size: 14px;
    }

    body {
        overflow-x: hidden;
    }

    /* Headings */
    h1,
    .text-5xl,
    .text-6xl,
    .text-7xl,
    .text-8xl,
    .text-9xl {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Text sizes */
    .text-4xl {
        font-size: 1.5rem !important;
    }

    .text-3xl {
        font-size: 1.25rem !important;
    }

    .text-2xl {
        font-size: 1.125rem !important;
    }

    .text-xl {
        font-size: 1rem !important;
    }

    .text-lg {
        font-size: 0.9rem !important;
    }

    /* Header Adjustments */
    header .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    header .h-20 {
        height: 4rem;
    }

    /* Hero Section Mobile */
    .h-screen {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }

    /* Grid to Single Column */
    .grid {
        grid-template-columns: 1fr !important;
    }

    .lg\:grid-cols-2,
    .lg\:grid-cols-12 {
        grid-template-columns: 1fr !important;
    }

    .lg\:col-span-5,
    .lg\:col-span-7,
    .lg\:col-span-8 {
        grid-column: span 1 !important;
    }

    /* Spacing Reductions */
    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .py-32,
    .py-40 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-24,
    .py-20 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .pt-64 {
        padding-top: 6rem !important;
    }

    .pt-40 {
        padding-top: 5rem !important;
    }

    .gap-32 {
        gap: 2rem !important;
    }

    .gap-24,
    .gap-20 {
        gap: 1.5rem !important;
    }

    .gap-12 {
        gap: 1rem !important;
    }

    .gap-8 {
        gap: 0.75rem !important;
    }

    .mb-32,
    .mb-24 {
        margin-bottom: 1.5rem !important;
    }

    .mb-20,
    .mb-16 {
        margin-bottom: 1rem !important;
    }

    .mb-12 {
        margin-bottom: 0.75rem !important;
    }

    /* Cards and Containers */
    .rounded-\[3rem\] {
        border-radius: 1.5rem !important;
    }

    .p-12 {
        padding: 1.5rem !important;
    }

    .p-10 {
        padding: 1.25rem !important;
    }

    .p-8 {
        padding: 1rem !important;
    }

    /* Service Cards */
    .aspect-\[3\/4\] {
        aspect-ratio: 4/3;
    }

    /* Form Elements */
    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }

    .glass.p-12 {
        padding: 1.5rem !important;
    }

    /* Footer */
    footer {
        text-align: center;
    }

    footer .flex {
        flex-direction: column;
        gap: 1.5rem;
    }

    footer .gap-12 {
        gap: 1rem !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Mobile Menu Improvements */
    #mobile-menu {
        padding: 2rem;
    }

    #mobile-menu .text-5xl {
        font-size: 2rem !important;
    }

    #mobile-menu .gap-8 {
        gap: 1.25rem !important;
    }

    #mobile-menu .mb-20 {
        margin-bottom: 2rem !important;
    }

    /* Button Improvements */
    button,
    .btn-glow {
        min-height: 44px;
        /* Touch target */
        min-width: 44px;
    }

    .px-10 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .px-8 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* Hide Desktop-Only Elements */
    .hidden.md\:block {
        display: none !important;
    }

    /* Trust Strip Mobile */
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Testimonial Section */
    .text-4xl.md\:text-5xl {
        font-size: 1.25rem !important;
    }

    /* Inquiry Section */
    .lg\:translate-x-6 {
        transform: none !important;
    }

    /* Gallery Navigation Buttons */
    .size-14 {
        width: 3rem !important;
        height: 3rem !important;
    }

    /* Floating Quote Elements */
    .absolute.-bottom-10.-right-10 {
        display: none;
    }

    /* Large Background Text */
    .text-\[20vw\] {
        font-size: 8vw !important;
    }

    /* Leadership Grid */
    .aspect-square {
        aspect-ratio: 4/3 !important;
    }

    /* Specialist Cards */
    .sm\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    /* Contact Page Mobile */
    .lg\:translate-x-12 {
        transform: none !important;
    }

    .space-y-10>*+* {
        margin-top: 1.5rem !important;
    }

    /* Portfolio Grid */
    .md\:col-span-2 {
        grid-column: span 1 !important;
    }

    .lg\:col-span-1 {
        grid-column: span 1 !important;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {

    /* Extra small screen adjustments */
    h1,
    .text-5xl,
    .text-6xl,
    .text-7xl {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .text-4xl {
        font-size: 1.25rem !important;
    }

    .text-3xl {
        font-size: 1.125rem !important;
    }

    /* Padding Adjustments */
    .px-6 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Card Padding */
    .p-12,
    .p-10,
    .p-8 {
        padding: 1rem !important;
    }

    /* Button Text */
    .tracking-widest {
        letter-spacing: 0.05em !important;
    }

    .tracking-\[0\.3em\],
    .tracking-\[0\.4em\],
    .tracking-\[0\.5em\] {
        letter-spacing: 0.1em !important;
    }

    /* Form Grid */
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* Footer Mobile */
    footer .text-\[10px\] {
        font-size: 8px !important;
    }

    /* Trust Strip Numbers */
    .text-4xl.font-display {
        font-size: 1.5rem !important;
    }

    /* Mobile Menu */
    #mobile-menu {
        padding: 1.5rem;
    }

    #mobile-menu .text-5xl {
        font-size: 1.5rem !important;
    }
}