/* Self-hosted fonts - Latin subset only */

/* Caveat Regular 400 */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Wnz6HAc5bAfYB2Q7ZjYY.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Caveat Bold 700 */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Wnz6HAc5bAfYB2Q7ZjYY.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter Regular 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter Medium 500 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter SemiBold 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter Bold 700 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display Regular 400 */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display Bold 700 */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ==========================================================================
   JM Custom Tile and Stone - Stylesheet
   ========================================================================== */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* CSS Variables */
:root {
    /* Brand Colors */
    --color-primary: #1a365d;
    --color-primary-dark: #0f2642;
    --color-primary-rgb: 26, 54, 93;
    --color-secondary: #d4a574;
    --color-secondary-rgb: 212, 165, 116;
    --color-accent: #c17a3c;

    /* Neutrals */
    --color-text: #1a202c;
    --color-text-light: #4a5568;
    --color-bg: #ffffff;
    --color-bg-alt: #f7fafc;
    --color-bg-dark: #2d3748;
    --color-border: #e2e8f0;

    /* Tinted Cards */
    --color-card-tint-1: rgba(26, 54, 93, 0.08);
    --color-card-tint-2: rgba(15, 38, 66, 0.06);
    --color-card-tint-3: rgba(193, 122, 60, 0.09);
    --color-card-tint-neutral: rgba(245, 247, 250, 1);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Caveat', cursive;

    /* Layout */
    --nav-height: 80px;
    --max-width: 1200px;
    --max-width-wide: 1400px;
    --content-width: 65ch;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    --space-4xl: 12rem;

    /* Elevation */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;

    /* Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
}

/* Base Typography */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    z-index: 100;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Container Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.prose {
    max-width: var(--content-width);
}

.prose-centered {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-tint-1 { background: var(--color-card-tint-1); box-shadow: none; }
.card-tint-2 { background: var(--color-card-tint-2); box-shadow: none; }
.card-tint-3 { background: var(--color-card-tint-3); box-shadow: none; }
.card-tint-neutral { background: var(--color-card-tint-neutral); box-shadow: none; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    display: block;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 48px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    transition: var(--transition);
}

.logo-initials {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.logo-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: -0.35rem;
    transition: var(--transition);
}

.navbar.scrolled .logo-initials {
    font-size: 2.75rem;
}

.navbar.scrolled .logo-name {
    font-size: 0.85rem;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    width: 100%;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: var(--space-sm);
    min-width: 200px;
    list-style: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    display: block !important;
}

.dropdown a {
    display: block;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown a:hover {
    background: var(--color-bg-alt);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* Footer */
footer {
    background: var(--color-bg-dark);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-3xl);
}

.footer-container {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.footer-entity h3 {
    color: white;
    margin-bottom: var(--space-sm);
}

.footer-entity address {
    font-style: normal;
    line-height: 1.8;
}

.footer-entity a {
    transition: var(--transition);
}

.footer-entity a:hover {
    color: var(--color-secondary);
}

.footer-links h4,
.footer-services h4,
.footer-hours h4 {
    color: white;
    margin-bottom: var(--space-sm);
}

.footer-links ul,
.footer-services ul,
.footer-hours ul {
    list-style: none;
    line-height: 2;
}

.footer-links a,
.footer-services a {
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--color-secondary);
}

/* Footer Legal Links */
.footer-legal-links {
    max-width: var(--max-width-wide);
    margin: var(--space-xl) auto var(--space-md);
    padding: 0 var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.footer-legal-links a {
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--color-secondary);
}

.footer-legal-divider {
    margin: 0 var(--space-sm);
    opacity: 0.5;
}

/* Footer Bottom */
.footer-bottom {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: var(--space-md);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--color-secondary);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: white;
}

/* Sticky Mobile CTA Bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: var(--space-sm);
    gap: var(--space-sm);
}

.mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--space-sm);
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.mobile-cta-call {
    background: var(--color-primary);
    color: white;
}

.mobile-cta-quote {
    background: var(--color-accent);
    color: white;
}

/* Form Styles */
input,
select,
textarea {
    font-size: 1rem;
    font-family: var(--font-body);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    transition: var(--transition);
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .mobile-cta-bar {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .logo-initials {
        font-size: 2.5rem;
    }

    .logo-name {
        font-size: 0.85rem;
    }

    .navbar.scrolled .logo-initials {
        font-size: 2rem;
    }

    .navbar.scrolled .logo-name {
        font-size: 0.75rem;
    }
}

/* Advanced Visual Techniques */

/* Clip-path image shapes */
.img-diagonal {
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
}

.img-blob {
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.img-arch {
    clip-path: ellipse(100% 85% at 50% 100%);
}

/* Image reveal on scroll */
.img-reveal {
    overflow: hidden;
}

.img-reveal img {
    transition: transform 0.6s ease;
}

.img-reveal:hover img {
    transform: scale(1.08);
}

/* Asymmetric grid layouts */
.grid-asymmetric {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-lg);
}

.grid-asymmetric--reverse {
    grid-template-columns: 1fr 1fr 2fr;
}

/* Floating decorative accents */
.floating-accent {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.float-animate {
    animation: float 6s ease-in-out infinite;
}

.float-animate-slow {
    animation: float 12s ease-in-out infinite;
}

/* Scroll reveal animations */
html.js-anim .reveal-up {
    opacity: 0;
    transform: translateY(24px);
}

html.js-anim .reveal-down {
    opacity: 0;
    transform: translateY(-24px);
}

html.js-anim .reveal-left {
    opacity: 0;
    transform: translateX(24px);
}

html.js-anim .reveal-right {
    opacity: 0;
    transform: translateX(-24px);
}

html.js-anim .reveal-scale {
    opacity: 0;
    transform: scale(0.95);
}

.revealed {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Text accent font */
.text-accent {
    font-family: var(--font-accent);
    color: var(--color-accent);
    font-size: 1.1em;
}

/* Section dividers */
.section-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.section-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-divider--top {
    transform: rotate(180deg);
}

/* Background blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Eyebrow labels */
.eyebrow-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-subtitle {
    display: block;
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-top: var(--space-sm);
}

/* Stats */
.stat-block {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Split layouts */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.split-reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.split-reverse > * {
    direction: ltr;
}

/* Hero answer block */
.hero-answer {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 65ch;
    margin: var(--space-md) auto;
}

/* Answer blocks for AEO */
.answer-block {
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-accent);
    padding: var(--space-lg);
    border-radius: var(--radius);
    margin: var(--space-lg) 0;
}

.answer-block h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

/* Image stack with depth */
.image-stack {
    position: relative;
    display: grid;
}

.image-stack img:first-child {
    grid-row: 1;
    grid-column: 1;
    z-index: 2;
    box-shadow: var(--shadow-xl);
}

.image-stack img:last-child {
    grid-row: 1;
    grid-column: 1;
    z-index: 1;
    transform: translate(2rem, 2rem);
    opacity: 0.5;
}

/* 3D card tilt effect on hover */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

/* CSS counters for numbered lists */
.numbered-list {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.numbered-list li {
    counter-increment: item;
    position: relative;
    padding-left: 3rem;
    margin-bottom: var(--space-md);
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Mobile responsive grid */
@media (max-width: 1024px) {
    .grid-asymmetric,
    .grid-asymmetric--reverse {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .split,
    .split-reverse {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-asymmetric,
    .grid-asymmetric--reverse {
        grid-template-columns: 1fr;
    }
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Card with Image */
.service-card-with-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card-with-image:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__image {
    position: relative;
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.service-card-with-image:hover .service-card__image img {
    transform: scale(1.08);
}

.service-card__body {
    padding: var(--space-lg) var(--space-md) var(--space-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -44px;
    margin-bottom: var(--space-xs);
    color: var(--color-accent);
}

.service-card__icon svg {
    width: 26px;
    height: 26px;
}

.service-card-with-image h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.service-card__desc {
    color: var(--color-text);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.service-card-with-image ul {
    list-style: none;
    padding: 0;
    margin: var(--space-xs) 0 0;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: var(--space-md);
}

.service-card-with-image ul li {
    font-size: 0.9rem;
    color: var(--color-text);
    padding-left: 1.25rem;
    position: relative;
}

.service-card-with-image ul li::before {
    content: "•";
    color: var(--color-accent);
    font-weight: 700;
    position: absolute;
    left: 0.25rem;
    top: 0;
}

.service-card__cta {
    margin-top: auto;
    padding-top: var(--space-sm);
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
    text-align: center;
    padding: var(--space-sm) 0 0;
    transition: color var(--transition);
}

.service-card__cta::after {
    content: " →";
    display: inline-block;
    transition: transform var(--transition);
}

.service-card__cta:hover {
    color: var(--color-primary);
}

.service-card__cta:hover::after {
    transform: translateX(3px);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step__number {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-lg);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.process-step p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
}

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05' /%3E%3C/svg%3E");
    z-index: 1;
}

.cta-banner > * {
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-banner p {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    opacity: 0.95;
}

/* Section Spacing */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section--alt {
    background: var(--color-bg-alt);
}

/* Why Choose Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.why-item {
    text-align: center;
}

.why-item__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    box-shadow: var(--shadow);
}

.why-item__icon svg {
    width: 36px;
    height: 36px;
}

.why-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.why-item p {
    color: var(--color-text-light);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* --------------------------------------------------------------------------
   LEGAL PAGE STYLES (v6.1)
   -------------------------------------------------------------------------- */

.hero--legal {
    background: var(--color-bg-alt);
    min-height: 40vh;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
}

.hero--legal .hero__copy {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

.hero--legal h1 {
    color: var(--color-primary);
}

.hero--legal .eyebrow-label {
    color: var(--color-primary);
}

.hero--legal .section-subtitle {
    color: var(--color-primary);
}

.hero--legal .hero__phone {
    opacity: 0.8;
}

.legal-prose {
    max-width: 65ch;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

.legal-prose h2 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
    scroll-margin-top: calc(var(--nav-height) + 20px);
}

.legal-prose h3 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    font-size: 1.15rem;
    scroll-margin-top: calc(var(--nav-height) + 20px);
}

.legal-prose p {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.legal-prose ul,
.legal-prose ol {
    margin-left: var(--space-md);
    margin-bottom: var(--space-md);
}

.legal-prose li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.legal-prose a {
    color: var(--color-primary);
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.2);
    transition: var(--transition);
}

.legal-prose a:hover {
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.legal-disclaimer {
    background: var(--color-card-tint-3, rgba(0, 0, 0, 0.03));
    border-left: 4px solid var(--color-primary);
    padding: var(--space-md);
    margin: var(--space-xl) 0;
    font-size: 0.92rem;
    font-style: italic;
    border-radius: var(--radius);
}

/* Breadcrumb (used site-wide, defined here once) */
.breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
    font-size: 0.88rem;
}

.breadcrumb .container {
    display: flex;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: var(--color-text-light);
    transition: var(--transition);
}

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

.breadcrumb li[aria-current="page"] {
    color: var(--color-primary);
    font-weight: 600;
}

.breadcrumb .breadcrumb-sep {
    color: rgba(0, 0, 0, 0.25);
    font-size: 1rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: var(--space-md);
    right: var(--space-md);
    bottom: 76px; /* sits above sticky mobile CTA bar */
    z-index: 990;
    background: var(--color-bg-dark, #1a1a1a);
    color: #fff;
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
    transform: translateY(120%);
    transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__text {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__text a {
    color: var(--color-secondary, #ffd54f);
    text-decoration: underline;
}

.cookie-banner__dismiss {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.cookie-banner__dismiss:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        bottom: 70px;
        padding: var(--space-md);
    }

    .cookie-banner__dismiss {
        width: 100%;
    }
}
