/*
Theme Name: Craig Borne Law
Theme URI: https://craigbornelaw.com
Author: Craig Borne Law
Author URI: https://craigbornelaw.com
Description: A professional, modern theme for Craig Borne Law - Estate Planning Attorney in Maryland. Built for trust, warmth, and conversions.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: craig-borne-law
Tags: one-column, custom-menu, featured-images, theme-options, blog, legal, law-firm
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
    /* Colors */
    --navy: #1a2f4a;
    --navy-dark: #0f1c2e;
    --navy-light: #2a4266;
    --gold: #c4a35a;
    --gold-light: #d4b76a;
    --gold-dark: #a8893d;
    --cream: #faf8f5;
    --warm-white: #fffefb;
    --sage: #7a9e8e;
    --sage-light: #e8f0ec;
    --charcoal: #2d3436;
    --gray: #636e72;
    --light-gray: #b2bec3;
    --border: #e8e4de;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-width: 1200px;
    --container-narrow: 800px;
    --container-padding: clamp(1.5rem, 5vw, 3rem);
    
    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--warm-white);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--gray);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

strong, b {
    font-weight: 600;
    color: var(--charcoal);
}

em, i {
    font-style: italic;
}

blockquote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--navy);
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* ============================================
   LAYOUT
============================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--section-padding) 0;
}

.section-light {
    background: var(--warm-white);
}

.section-cream {
    background: var(--cream);
}

.section-dark {
    background: var(--navy);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header p {
    margin-top: 1rem;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-dark);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
}

.btn-primary:hover::before {
    transform: translateY(0);
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 163, 90, 0.3);
}

.btn-secondary {
    background: var(--navy);
    color: var(--warm-white);
}

.btn-secondary:hover {
    background: var(--navy-light);
    color: var(--warm-white);
}

.btn-outline {
    background: transparent;
    color: var(--warm-white);
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: var(--warm-white);
    color: var(--navy);
    border-color: var(--warm-white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
}

.btn-outline-dark:hover {
    background: var(--navy);
    color: var(--warm-white);
}

.btn-text {
    padding: 0;
    color: var(--gold);
    font-weight: 500;
    background: none;
}

.btn-text:hover {
    color: var(--gold-dark);
}

.btn-text svg {
    transition: transform 0.3s var(--ease-out);
}

.btn-text:hover svg {
    transform: translateX(4px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

/* ============================================
   HEADER
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out);
}

.site-header.scrolled {
    background: rgba(255, 254, 251, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-mark {
    width: 48px;
    height: 48px;
    background: var(--gold);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-dark);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--warm-white);
    transition: color 0.4s var(--ease-out);
    line-height: 1.2;
}

.site-header.scrolled .logo-text {
    color: var(--navy);
}

.logo-tagline {
    display: block;
    font-size: 0.7rem;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 2px;
}

/* Custom logo image */
.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.site-header.scrolled .nav-menu a {
    color: var(--charcoal);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--gold);
}

/* Dropdown menus */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--warm-white);
    min-width: 220px;
    padding: 0.75rem 0;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(26, 47, 74, 0.15);
    border-top: 3px solid var(--gold);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu .sub-menu a {
    color: var(--charcoal);
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.nav-menu .sub-menu a:hover {
    background: var(--cream);
    color: var(--gold);
}

/* Header Phone */
.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warm-white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-header.scrolled .header-phone {
    color: var(--navy);
}

.header-phone:hover {
    color: var(--gold);
}

.header-phone svg {
    width: 18px;
    height: 18px;
}

/* Header CTA */
.header-cta {
    margin-left: 1rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--warm-white);
    transition: all 0.3s ease;
}

.site-header.scrolled .menu-toggle span {
    background: var(--navy);
}

/* Mobile Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-dark);
    z-index: 999;
    padding: 100px var(--container-padding) 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    color: var(--warm-white);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-menu a:hover {
    color: var(--gold);
}

.mobile-nav-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-contact a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--warm-white);
    margin-bottom: 1rem;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.hero-accent {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    height: 120%;
    background: linear-gradient(180deg, rgba(196, 163, 90, 0.05) 0%, transparent 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(196, 163, 90, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(122, 158, 142, 0.06) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    color: var(--warm-white);
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-text {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.trust-item svg {
    color: var(--gold);
    width: 20px;
    height: 20px;
}

/* ============================================
   INTRO SECTION
============================================ */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.intro-image {
    position: relative;
}

.intro-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(26, 47, 74, 0.15);
}

.intro-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.intro-image-frame {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    z-index: -1;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   SERVICES SECTION
============================================ */
.services-section {
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: var(--gold);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--warm-white);
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s var(--ease-out);
    border: 1px solid var(--border);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 47, 74, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--sage-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--sage);
    transition: all 0.4s var(--ease-out);
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--navy-dark);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out);
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   ATTORNEY SECTION
============================================ */
.attorney-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.attorney-image {
    position: relative;
}

.attorney-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(26, 47, 74, 0.12);
}

.attorney-image-wrapper img {
    width: 100%;
    height: auto;
}

.attorney-frame {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80%;
    height: 80%;
    border: 2px solid var(--gold);
    border-radius: 8px;
    z-index: -1;
}

.attorney-badge {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background: var(--gold);
    color: var(--navy-dark);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(196, 163, 90, 0.3);
}

.attorney-badge-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.attorney-badge-text {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.attorney-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.attorney-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    margin: 2rem 0;
}

.attorney-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.attorney-feature svg {
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 2px;
    width: 20px;
    height: 20px;
}

.attorney-feature span {
    font-size: 0.95rem;
    color: var(--charcoal);
}

/* ============================================
   PROCESS SECTION
============================================ */
.process-section {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 100%, rgba(196, 163, 90, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(122, 158, 142, 0.06) 0%, transparent 50%);
}

.process-section .section-header h2 {
    color: var(--warm-white);
}

.process-section .section-header p {
    color: rgba(255,255,255,0.7);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

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

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    position: relative;
    transition: all 0.4s var(--ease-out);
}

.process-step:hover .step-number {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
    transform: scale(1.1);
}

.process-step h3 {
    color: var(--warm-white);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.process-step p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ============================================
   TESTIMONIALS
============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--warm-white);
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--border);
}

.testimonial-quote {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--gold);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--sage-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--sage);
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--navy);
}

.testimonial-location {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   RESOURCES SECTION
============================================ */
.resources-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.resources-list {
    margin: 2rem 0;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.resource-item:hover {
    padding-left: 1rem;
}

.resource-icon {
    width: 40px;
    height: 40px;
    background: var(--sage-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage);
    flex-shrink: 0;
}

.resource-icon svg {
    width: 20px;
    height: 20px;
}

.resource-text {
    flex: 1;
    font-weight: 500;
    color: var(--charcoal);
}

.resource-arrow {
    color: var(--gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s var(--ease-out);
}

.resource-arrow svg {
    width: 20px;
    height: 20px;
}

.resource-item:hover .resource-arrow {
    opacity: 1;
    transform: translateX(0);
}

.resources-form {
    background: var(--cream);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid var(--border);
}

.resources-form h3 {
    margin-bottom: 0.5rem;
}

.resources-form > p {
    margin-bottom: 1.5rem;
}

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(196, 163, 90, 0.1) 0%, transparent 60%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--warm-white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-phone {
    margin-top: 2rem;
    color: rgba(255,255,255,0.6);
}

.cta-phone a {
    color: var(--warm-white);
    font-weight: 500;
}

.cta-phone a:hover {
    color: var(--gold);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.footer-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy-dark);
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--warm-white);
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-column h4 {
    color: var(--warm-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--gold);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--gold);
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   FORMS
============================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--charcoal);
    font-size: 0.9rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--warm-white);
    color: var(--charcoal);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--light-gray);
}

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

/* ============================================
   BLOG STYLES
============================================ */
.blog-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.blog-header h1 {
    color: var(--warm-white);
    margin-bottom: 1rem;
}

.blog-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.post-card {
    background: var(--warm-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 47, 74, 0.1);
}

.post-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.post-category {
    color: var(--gold);
    font-weight: 500;
}

.post-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-card h2 a {
    color: var(--navy);
}

.post-card h2 a:hover {
    color: var(--gold);
}

.post-excerpt {
    margin-bottom: 1.5rem;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--cream);
    border-radius: 8px;
    padding: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.widget-links li {
    margin-bottom: 0.75rem;
}

.widget-links a {
    color: var(--charcoal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-links a:hover {
    color: var(--gold);
}

.widget-count {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Single Post */
.single-post-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 10rem 0 4rem;
    text-align: center;
}

.single-post-header h1 {
    color: var(--warm-white);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.single-post-header .post-meta {
    justify-content: center;
    color: rgba(255,255,255,0.7);
}

.single-post-header .post-category {
    color: var(--gold);
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--section-padding) var(--container-padding);
}

.single-post-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.single-post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.single-post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post-content ul,
.single-post-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.single-post-content ul {
    list-style: disc;
}

.single-post-content ol {
    list-style: decimal;
}

.single-post-content li {
    margin-bottom: 0.75rem;
    color: var(--gray);
    font-size: 1.1rem;
}

.single-post-content a {
    color: var(--gold);
    text-decoration: underline;
}

.single-post-content img {
    border-radius: 8px;
    margin: 2rem 0;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.nav-previous,
.nav-next {
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    background: var(--sage-light);
}

.nav-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--navy);
}

.nav-next {
    text-align: right;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a {
    background: var(--cream);
    color: var(--charcoal);
}

.pagination a:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

.pagination .current {
    background: var(--navy);
    color: var(--warm-white);
}

/* ============================================
   PAGE STYLES
============================================ */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 10rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    color: var(--warm-white);
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: var(--section-padding) 0;
}

.page-content.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content.entry-content p {
    font-size: 1.1rem;
    line-height: 1.9;
}

/* ============================================
   404 PAGE
============================================ */
.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-padding) var(--container-padding);
}

.error-content h1 {
    font-size: 8rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-content h2 {
    margin-bottom: 1rem;
}

.error-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ============================================
   WORDPRESS SPECIFIC
============================================ */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
    font-style: italic;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Comments */
.comments-area {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.comments-title {
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--navy);
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

.comment-content {
    padding-left: 68px;
}

.comment-reply-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .header-phone {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .intro-grid,
    .attorney-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .intro-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .attorney-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 6rem 0 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }
    
    .intro-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .attorney-features {
        grid-template-columns: 1fr;
    }
    
    .attorney-badge {
        position: relative;
        left: 0;
        margin-top: 1.5rem;
        display: inline-block;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-brand {
        max-width: none;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .resources-form {
        padding: 2rem;
    }
    
    .post-card-content {
        padding: 1.5rem;
    }
    
    .single-post-content {
        padding: 2rem var(--container-padding);
    }
    
    .error-content h1 {
        font-size: 5rem;
    }
}
