/* ============================================
   JA Abogados — Design System
   Contemporary human brand · Warm · Architectural
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
    /* Brand Colors */
    --warm-beige: #C9B8A8;
    --off-white: #F5F3F0;
    --broken-white: #FAF8F6;
    --soft-neutral: #E8E4DF;
    --deeper-neutral: #D9D4CE;
    --muted-warm: #B89968;
    --soft-greige: #9BA89B;
    --soft-taupe: #8B7D75;

    /* Text */
    --text-primary: #2A2A2A;
    --text-body: #3D3D3D;
    --text-secondary: #A89F96;
    --text-light: #6B6560;

    /* Functional */
    --bg-primary: var(--off-white);
    --bg-secondary: var(--broken-white);
    --bg-accent: var(--soft-neutral);
    --border-subtle: rgba(201, 184, 168, 0.3);
    --shadow-soft: 0 2px 20px rgba(139, 125, 117, 0.08);
    --shadow-hover: 0 8px 40px rgba(139, 125, 117, 0.15);

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

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

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

a, button, [role="button"], input, select, textarea, label[for] {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 500;
}

p {
    max-width: 65ch;
}

/* --- Grain Overlay --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

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

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--duration-normal) var(--ease-out),
                padding var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
    background-color: rgba(245, 243, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 2rem;
    box-shadow: 0 1px 0 var(--border-subtle);
}

.logo-link {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    position: relative;
}

.logo-link .logo-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

/* Desktop Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-nav a,
.nav-item > a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    position: relative;
    padding: 0.25rem 0;
}

.main-nav a::after,
.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--warm-beige);
    transition: width var(--duration-normal) var(--ease-out);
}

.main-nav a:hover::after,
.nav-item > a:hover::after {
    width: 100%;
}

.main-nav a:hover,
.nav-item > a:hover {
    color: var(--text-primary);
}

/* Dropdown */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--broken-white);
    border: 1px solid var(--border-subtle);
    min-width: 240px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-hover);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--text-body);
    transition: all var(--duration-fast) var(--ease-out);
}

.dropdown a::after {
    display: none;
}

.dropdown a:hover {
    color: var(--text-primary);
    background: rgba(201, 184, 168, 0.1);
    padding-left: 1.75rem;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 110;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-primary);
    position: absolute;
    left: 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }

.mobile-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(201, 184, 168, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40%;
    height: 40%;
    background: radial-gradient(ellipse, rgba(184, 153, 104, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--warm-beige);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 14ch;
    margin: 0 auto var(--space-md);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-light);
    max-width: 50ch;
    margin: 0 auto var(--space-lg);
    font-weight: 300;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.hero-phone {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color var(--duration-fast) var(--ease-out);
}

.hero-phone:hover {
    color: var(--muted-warm);
}

.hero-phone svg {
    width: 22px;
    height: 22px;
    stroke: var(--warm-beige);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid var(--warm-beige);
    color: var(--text-primary);
    background: transparent;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--warm-beige);
    transition: width var(--duration-normal) var(--ease-out);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: white;
}

.btn-solid {
    background: var(--warm-beige);
    color: white;
    border-color: var(--warm-beige);
}

.btn-solid::before {
    background: var(--soft-taupe);
}

/* --- Sections --- */
.section {
    padding: var(--space-xl) var(--space-md);
}

.section-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.section-wide {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--warm-beige);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-text {
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.8;
}

/* Alternating background */
.section-alt {
    background: var(--broken-white);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.section-alt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

/* --- Practice Area Cards --- */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.practice-card {
    padding: var(--space-md) var(--space-md) var(--space-lg);
    background: var(--broken-white);
    border: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    display: flex;
    flex-direction: column;
}

.practice-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-md);
    right: var(--space-md);
    height: 1px;
    background: var(--warm-beige);
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-out);
}

.practice-card:hover {
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.practice-card:hover::after {
    transform: scaleX(1);
}

.practice-card-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--deeper-neutral);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.practice-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.practice-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
    flex: 1;
}

.practice-card-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-beige);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--duration-normal) var(--ease-out);
}

.practice-card:hover .practice-card-link {
    gap: 0.8rem;
}

.practice-card-link svg {
    width: 14px;
    height: 14px;
}

/* --- Why Choose Us --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    max-width: var(--max-width);
    margin: var(--space-lg) auto 0;
}

.value-card {
    background: var(--bg-primary);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: background var(--duration-normal) var(--ease-out);
}

.value-card:hover {
    background: var(--broken-white);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--warm-beige);
    stroke-width: 1;
    fill: none;
}

.value-card h3 {
    margin-bottom: var(--space-sm);
}

.value-card p {
    margin: 0 auto;
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.95rem;
}

/* --- Reviews --- */
.reviews-section {
    position: relative;
    overflow: hidden;
    background: var(--text-primary);
    color: var(--soft-neutral);
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    max-width: 720px;
    max-height: 720px;
    background: radial-gradient(circle, rgba(201, 184, 168, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

.reviews-section .section-wide {
    position: relative;
    z-index: 1;
}

.reviews-section .section-title {
    color: var(--off-white);
}

.reviews-section .section-text {
    color: var(--deeper-neutral);
}

.reviews-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.reviews-head .section-title {
    margin-bottom: var(--space-sm);
}

.reviews-summary {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.35rem;
    padding-bottom: 0.4rem;
}

.reviews-score {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: var(--font-heading);
    line-height: 1;
    color: var(--warm-beige);
}

.reviews-score span {
    font-size: 3.4rem;
    font-weight: 300;
}

.reviews-score small {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--soft-taupe);
}

.review-stars {
    color: var(--warm-beige);
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    line-height: 1;
}

.reviews-summary .review-stars {
    font-size: 1.1rem;
}

.reviews-count {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soft-taupe);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(201, 184, 168, 0.16);
    border: 1px solid rgba(201, 184, 168, 0.16);
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-md) 1.75rem;
    background: var(--text-primary);
    transition: background var(--duration-normal) var(--ease-out);
}

.review-card:hover {
    background: #323232;
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: 0.7rem;
    right: 1.4rem;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(201, 184, 168, 0.22);
    pointer-events: none;
}

.review-quote {
    flex: 1;
    max-width: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.65;
    color: var(--off-white);
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(201, 184, 168, 0.18);
}

.review-name {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--warm-beige);
}

.review-role {
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--soft-taupe);
}

/* --- 404 Page --- */
.error-main {
    flex: 1;
    display: flex;
}

.error-section {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9rem var(--space-md) var(--space-xl);
    overflow: hidden;
    text-align: center;
}

.error-section::before {
    content: '404';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(20rem, 48vw, 40rem);
    font-weight: 300;
    line-height: 1;
    color: var(--soft-neutral);
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}

.error-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.error-code {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(5rem, 12vw, 7.5rem);
    font-weight: 300;
    line-height: 0.9;
    color: var(--warm-beige);
    margin-bottom: var(--space-sm);
}

.error-inner h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
}

.error-inner .section-text {
    margin: 0 auto var(--space-lg);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.error-links {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.error-links-label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.error-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
}

.error-links-list a {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-light);
    border-bottom: 1px solid transparent;
    transition: color var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
}

.error-links-list a:hover {
    color: var(--text-primary);
    border-color: var(--warm-beige);
}

/* --- FAQ --- */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    gap: var(--space-xl);
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 8rem;
}

.faq-intro .section-title {
    margin-bottom: var(--space-sm);
}

.faq-intro .section-text {
    max-width: 36ch;
}

.faq-cta-text {
    margin-top: var(--space-md);
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.faq-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 1px solid var(--warm-beige);
    transition: color var(--duration-fast) var(--ease-out);
}

.faq-cta svg {
    width: 14px;
    height: 14px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.faq-cta:hover {
    color: var(--muted-warm);
}

.faq-cta:hover svg {
    transform: translateX(4px);
}

.faq-list {
    border-top: 1px solid var(--border-subtle);
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--duration-fast) var(--ease-out);
}

.faq-item:hover {
    background: rgba(201, 184, 168, 0.07);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 1.35rem 0.75rem 1.35rem 0;
    list-style: none;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--muted-warm);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--warm-beige);
    outline-offset: 4px;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-primary);
    transition: color var(--duration-fast) var(--ease-out);
}

.faq-item summary:hover .faq-question {
    color: var(--muted-warm);
}

.faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--warm-beige);
    transition: transform var(--duration-normal) var(--ease-out),
                opacity var(--duration-normal) var(--ease-out);
}

.faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

.faq-icon::after {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
}

.faq-item[open] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 2.5rem 1.5rem 0;
}

.faq-answer p {
    max-width: 60ch;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.8;
}

.faq-item[open] .faq-answer {
    animation: faqFade 0.35s var(--ease-out);
}

@keyframes faqFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Contact Section --- */
.contact-block {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--broken-white);
    border: 1px solid var(--border-subtle);
}

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

.contact-block p {
    margin: 0 auto var(--space-md);
    color: var(--text-light);
    font-weight: 300;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

/* --- Service Page Hero --- */
.service-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-2xl) var(--space-md) var(--space-lg);
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(201, 184, 168, 0.08) 100%);
    pointer-events: none;
}

.service-hero .hero-eyebrow {
    margin-bottom: var(--space-sm);
}

.service-hero h1 {
    max-width: 20ch;
    margin-bottom: var(--space-md);
}

.service-hero p {
    max-width: 55ch;
    color: var(--text-light);
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- Service Content --- */
.service-content {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.service-section {
    margin-bottom: var(--space-xl);
}

.service-section h2 {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
}

.service-section h3 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--soft-taupe);
}

.service-section p {
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.service-section ul,
.service-section ol {
    list-style: none;
    margin-bottom: var(--space-md);
}

.service-section ul li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.7;
    border-bottom: 1px solid rgba(201, 184, 168, 0.1);
}

.service-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 6px;
    height: 1px;
    background: var(--warm-beige);
}

.service-section ul li strong {
    font-weight: 500;
    color: var(--text-primary);
}

.service-section ol {
    counter-reset: step;
}

.service-section ol li {
    counter-increment: step;
    padding: 0.8rem 0;
    padding-left: 3rem;
    position: relative;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.7;
}

.service-section ol li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.8rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--deeper-neutral);
    font-weight: 300;
}

.service-section ol li strong {
    font-weight: 500;
    color: var(--text-primary);
}

/* --- CTA Section --- */
.cta-section {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    background: var(--broken-white);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.cta-section h2 {
    margin-bottom: var(--space-sm);
}

.cta-section > p {
    color: var(--text-light);
    font-weight: 300;
    margin: 0 auto var(--space-md);
}

.cta-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.cta-phone {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-phone:hover {
    color: var(--muted-warm);
}

/* --- Footer --- */
.site-footer {
    background: var(--text-primary);
    color: var(--soft-neutral);
    padding: var(--space-xl) var(--space-md) var(--space-md);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto var(--space-lg);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-beige);
    margin-bottom: var(--space-md);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--deeper-neutral);
    font-weight: 300;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--deeper-neutral);
    font-weight: 300;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-col ul li a:hover {
    color: var(--warm-beige);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(201, 184, 168, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--soft-taupe);
    font-weight: 300;
}

.footer-bottom a {
    color: var(--deeper-neutral);
}

.footer-bottom a:hover {
    color: var(--warm-beige);
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

/* --- Horizontal Rule --- */
.divider {
    width: 40px;
    height: 1px;
    background: var(--warm-beige);
    border: none;
    margin: var(--space-md) 0;
}

.divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(85vw, 360px);
        height: 100vh;
        background: var(--broken-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--duration-normal) var(--ease-out);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a,
    .nav-item > a {
        font-size: 0.85rem;
        padding: 0.8rem 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border-subtle);
    }

    .main-nav a::after,
    .nav-item > a::after {
        display: none;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: unset;
        padding: 0;
    }

    .dropdown a {
        padding: 0.6rem 0 0.6rem 1.5rem;
        font-size: 0.8rem;
        color: var(--text-light);
    }

    .dropdown a:hover {
        padding-left: 1.5rem;
        background: transparent;
        color: var(--text-primary);
    }

    .hero {
        min-height: 90vh;
        padding: var(--space-xl) var(--space-sm);
    }

    h1 {
        font-size: 2.2rem;
    }

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

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

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

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .footer-legal {
        gap: var(--space-sm);
    }

    .service-hero {
        min-height: 50vh;
        padding: var(--space-xl) var(--space-sm) var(--space-md);
    }

    .section {
        padding: var(--space-lg) var(--space-sm);
    }

    .service-content {
        padding: var(--space-lg) var(--space-sm);
    }
}

/* --- Contact Form --- */
.contact-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    padding: 0.85rem 1rem;
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--warm-beige);
    box-shadow: 0 0 0 3px rgba(201, 184, 168, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--deeper-neutral);
    font-weight: 300;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A89F96' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-privacy {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.form-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 0.15rem;
    accent-color: var(--warm-beige);
}

.form-privacy label {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
}

.form-privacy a {
    color: var(--warm-beige);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-turnstile {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    min-height: 65px;
    margin-top: var(--space-sm);
}

.form-status {
    grid-column: 1 / -1;
    min-height: 1.5rem;
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
}

.form-status--info {
    color: var(--text-light);
}

.form-status--error {
    color: #b23b3b;
}

.form-noscript {
    grid-column: 1 / -1;
    margin: var(--space-sm) 0 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-light);
}

.form-noscript a {
    color: var(--muted-warm);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-submit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: var(--space-sm);
}

.form-success {
    display: none;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
}

.form-success.visible {
    display: block;
}

.form-success h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-success p {
    color: var(--text-light);
    font-weight: 300;
    margin: 0 auto;
}

.contact-channels {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.contact-channels span {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    transition: color var(--duration-fast) var(--ease-out);
}

.channel-link:hover {
    color: var(--muted-warm);
}

.channel-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.whatsapp-link svg {
    color: #25D366;
}

.thanks-page {
    flex: 1;
    display: grid;
    place-items: center;
    padding: var(--space-lg) var(--space-sm);
    background: var(--bg-secondary);
}

.thanks-card {
    width: 100%;
    max-width: 640px;
    padding: clamp(2rem, 6vw, 4rem);
    text-align: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.thanks-card h1 {
    margin: var(--space-sm) 0;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
}

.thanks-card p {
    margin: 0 auto var(--space-sm);
    max-width: 480px;
    font-weight: 300;
    color: var(--text-light);
}

.thanks-card p a {
    color: var(--muted-warm);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.thanks-card .btn {
    display: inline-flex;
    margin-top: var(--space-sm);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-channels {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .whatsapp-float {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

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

    .faq-intro {
        position: static;
    }

    .faq-item summary {
        padding: 1.2rem 0.5rem 1.2rem 0;
    }

    .faq-question {
        font-size: 1.15rem;
    }

    .faq-answer {
        padding-right: 0.5rem;
    }

    .reviews-head {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .reviews-summary {
        align-items: flex-start;
        text-align: left;
    }

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

    .review-quote {
        font-size: 1.1rem;
    }

    .error-section {
        padding-top: 7rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-actions .btn {
        justify-content: center;
    }
}

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

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
