/* Darya Law — static site styles (recreated from Elementor theme) */

:root {
    --color-primary: #00B2FF;
    --color-secondary: #4E555E;
    --color-text-muted: #CECECE;
    --color-light: #FBFBFB;
    --color-white: #ffffff;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Source Sans Pro', 'Segoe UI', sans-serif;
    --container-max: 1140px;
    --header-height: 120px;
    --font-size-h1: 50px;
    --font-size-h2: 30px;
    --font-size-h3: 20px;
    --font-size-h4: 16px;
    --line-height-h1: 85px;
    --line-height-h2: 30px;
    --line-height-h3: 20px;
    --font-size-hero-display: 59px;
    --line-height-hero-display: 88px;
    --font-size-hero-subtitle: 25px;
    --font-size-hero-bar: 30px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--color-secondary);
    background: var(--color-white);
    overflow-x: clip;
}

body.menu-open { overflow: hidden; }

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

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-top: 0;
    font-weight: normal;
    line-height: 1.3;
    text-transform: none;
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    line-height: var(--line-height-h1);
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: normal;
    line-height: var(--line-height-h2);
}

h3 {
    font-family: var(--font-body);
    font-size: var(--font-size-h3);
    font-weight: 500;
    color: var(--color-primary);
    text-transform: capitalize;
    line-height: var(--line-height-h3);
}

h3 a {
    color: inherit;
}

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

h4 {
    font-family: var(--font-body);
    font-size: var(--font-size-h4);
    font-weight: 600;
    line-height: 1.25;
}

p { margin: 0 0 1em; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--color-primary);
    color: var(--color-white);
}

.skip-link:focus { left: 10px; top: 10px; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
    border: 1px solid var(--color-primary);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
}

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

.btn-outline {
    background: var(--color-light);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-light);
}

.btn-block { display: block; width: 100%; }

/* ========== HEADER ========== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top, 0);
}

.top-bar {
    background: var(--color-primary);
    text-align: center;
    padding: 10px 20px;
}

.top-bar p {
    margin: 0;
    color: var(--color-light);
    font-size: 15px;
    font-weight: 400;
}

.main-nav {
    border-bottom: 1px solid var(--color-light);
    background: transparent;
}

.main-nav .nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: block;
    line-height: 0;
    flex-shrink: 1;
    min-width: 0;
}

.logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 47px;
    max-width: min(348px, 100%);
    aspect-ratio: 348 / 47;
    object-fit: contain;
    object-position: left center;
}

.nav-menu-wrap {
    position: relative;
    z-index: 200;
    display: flex;
    align-items: center;
}

.nav-mobile-cta { display: none; margin: 0; }

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    display: flex;
    align-items: center;
}

.nav-menu > li { position: relative; }

.nav-menu a {
    display: block;
    padding: 3px 10px;
    color: var(--color-light);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 20px;
}

.nav-menu a:hover { color: var(--color-primary); }
.nav-menu a.active { color: var(--color-light); }

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-light);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 200;
}

.nav-menu li:hover > .sub-menu { display: block; }

.nav-menu .sub-menu a {
    color: var(--color-secondary);
    text-transform: uppercase;
    font-size: 13px;
    padding: 8px 16px;
}

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

.nav-cta { flex-shrink: 0; }

.menu-toggle {
    display: none;
    background: var(--color-light);
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 22px;
    color: var(--color-secondary);
    line-height: 1;
}

.menu-toggle .icon-close { display: none; }
.menu-toggle.is-open .icon-open { display: none; }
.menu-toggle.is-open .icon-close { display: inline; }

/* ========== HERO ========== */
.hero {
    background: var(--color-primary) url('../images/Oakland-Image2.jpg') center/cover no-repeat;
    color: var(--color-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.hero-content {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 600px;
    max-width: 1150px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.hero h2.hero-title {
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: var(--font-size-hero-display);
    font-weight: normal;
    line-height: var(--line-height-hero-display);
    margin-bottom: 0;
}

.page-hero h1,
.page-hero h2 {
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    font-weight: normal;
    line-height: var(--line-height-h2);
    text-transform: none;
    margin: 0;
}

.hero h2.hero-subtitle,
.hero .hero-subtitle {
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: var(--font-size-hero-subtitle);
    font-weight: normal;
    margin: 0.35em 0 0;
    line-height: 1.35;
}

.page-hero .subtitle {
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    font-weight: normal;
    margin: 0.35em 0 0;
    line-height: var(--line-height-h2);
}

.hero-bar {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    border-top: 1px solid var(--color-light);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    padding: 10px 20px 20px;
}

.hero-bar-col {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    gap: 5px;
    padding: 10px;
}

.hero-bar-col:first-child {
    justify-items: start;
    text-align: left;
}

.hero-bar-col:last-child {
    justify-items: center;
    text-align: center;
}

.hero-bar .label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-light);
    margin-bottom: 0;
}

.hero-bar-col:last-child .label {
    justify-content: center;
}

.hero-bar .label i { color: var(--color-primary); }

.hero-bar h2 {
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: var(--font-size-hero-bar);
    font-weight: normal;
    margin: 0;
}

.hero-bar a { color: var(--color-light); }
.hero-bar a:hover { color: var(--color-primary); }

/* ========== SECTIONS ========== */
.section { padding: 32px 0; }
.section-light { background: var(--color-light); }
.section-white { background: var(--color-white); }

/* Avoid double padding when back-to-back sections share a background */
.section-light + .section-light,
.section-light + .testimonials-section,
.testimonials-section + .section-light {
    padding-top: 0;
}

.section-white + .section-white {
    padding-top: 0;
}

.section-light:has(+ .section-light),
.section-light:has(+ .testimonials-section),
.testimonials-section:has(+ .section-light) {
    padding-bottom: 16px;
}

.section-white:has(+ .section-white) {
    padding-bottom: 16px;
}

/* Tighter gaps when section background alternates */
.section-light + .section-white,
.section-white + .section-light,
.section-white + .testimonials-section,
.testimonials-section + .section-white,
.section-light + .consultation-section,
.section-white + .consultation-section {
    padding-top: 0;
}

.section-light:has(+ .section-white),
.section-white:has(+ .section-light),
.section-white:has(+ .testimonials-section),
.testimonials-section:has(+ .section-white),
.section-light:has(+ .consultation-section),
.section-white:has(+ .consultation-section) {
    padding-bottom: 16px;
}

.consultation-section + .affiliations {
    padding-top: 0;
}

.consultation-section:has(+ .affiliations) {
    padding-bottom: 16px;
}

.section-centered { text-align: center; }
.section-centered .container { max-width: 800px; }

.section h1:first-child,
.section h2:first-child { margin-top: 0; }

.section h2.text-center { margin-bottom: 24px; }

.consultation-page-band h1,
.contact-info h2 {
    font-size: var(--font-size-h2);
    font-weight: normal;
    line-height: var(--line-height-h2);
    font-family: var(--font-heading);
    color: var(--color-secondary);
    text-transform: none;
}

.section-cta { margin-top: 20px; }

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

/* Practice cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.card {
    background: var(--color-white);
    border-top: 5px solid var(--color-primary);
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.1);
    padding: 25px 20px 20px 40px;
    transition: box-shadow 0.3s;
}

.card:hover { box-shadow: 0 0 20px rgba(51, 51, 51, 0.32); }

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 20px; font-size: 18px; }

.card-link {
    color: var(--color-primary);
    font-size: 25px;
    display: inline-block;
    transition: transform 0.2s;
}

.card-link:hover { transform: scale(1.1); color: var(--color-primary); }

/* Two column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.two-col .img-float-right,
.img-float-right {
    float: right;
    margin: 0 0 20px 30px;
    max-width: 300px;
}

.img-float-left {
    float: left;
    margin: 0 20px 20px 0;
    max-width: 250px;
}

/* Contain floated images so text does not overlap */
.page-content > .container,
.practice-main,
.section .container-wide:has(.img-float-left),
.section .container-wide:has(.img-float-right) {
    display: flow-root;
}

.practice-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
}

.practice-sidebar h4 {
    font-family: var(--font-body);
    font-size: var(--font-size-h4);
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: none;
    margin: 0 0 15px;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-text-muted);
}

.sidebar-links a:hover,
.sidebar-links a.active {
    color: var(--color-primary);
}

.consultation-page-band h1 {
    text-transform: none;
    margin: 30px 0 15px;
}

.consultation-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 20px;
}

.feedback-banner {
    display: block;
    margin: 0 auto 30px;
    max-width: 575px;
}

.feedback-thumbs {
    text-align: center;
    margin: 30px 0 40px;
}

.feedback-thumbs a.is-selected {
    background: rgba(0, 86, 179, 0.12);
    border-radius: 8px;
}

.feedback-thumbs a {
    display: inline-block;
    padding: 20px;
}

.feedback-thumbs img {
    display: inline-block;
    width: 175px;
    height: 175px;
    object-fit: contain;
}

.positive-feedback,
.negative-feedback {
    display: none;
}

.positive-feedback {
    text-align: center;
    margin: 30px 0 40px;
}

.positive-feedback a {
    display: inline-block;
    padding: 20px;
}

.positive-feedback img {
    display: inline-block;
    width: 175px;
    height: 175px;
    object-fit: contain;
}

.thumb-up,
.thumb-down {
    cursor: pointer;
}

.contact-form-block .contact-form {
    margin-top: 20px;
}

.contact-form button[type="submit"] {
    width: 100%;
}

/* Philosophy grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.philosophy-item {
    padding: 0 15px 16px 0;
    border-bottom: 1px solid var(--color-text-muted);
    margin-bottom: 16px;
}

.philosophy-item:nth-child(even) { padding: 0 0 20px 15px; }

/* ========== TESTIMONIALS CAROUSEL ========== */
.testimonials-section { padding: 32px 0; background: var(--color-light); }

.testimonial-carousel { position: relative; }

.testimonial-viewport {
    overflow: hidden;
    transition: height 0.35s ease;
}

.testimonial-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    flex: 0 0 50%;
    padding: 0 10px;
    min-width: 0;
    box-sizing: border-box;
}

.testimonial {
    padding: 12px 10px;
}

.testimonial-text {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 10px;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 300;
    font-style: normal;
}

.testimonial-title {
    display: block;
    color: var(--color-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
}

.carousel-dot.active { background: var(--color-primary); }

/* Testimonials list page */
.testimonials-list {
    padding: 40px 0;
    background: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
}

.testimonials-list .testimonial-item {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.testimonials-list .testimonial-text {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    margin: 0 0 15px;
}

.testimonials-list .testimonial-meta {
    margin-top: 0;
}

.testimonials-list .testimonial-name {
    font-size: 18px;
    font-weight: 300;
    font-style: normal;
    margin: 0;
}

.testimonials-list .testimonial-title {
    display: block;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 20px;
    margin-top: 4px;
}

/* ========== ACCORDION ========== */
.accordion-item { border-bottom: 1px solid var(--color-text-muted); }

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 0 5px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--color-primary);
}

.accordion-header:hover { color: var(--color-primary); }

.accordion-icon { color: var(--color-primary); margin-left: 10px; flex-shrink: 0; }
.accordion-icon .open-icon { display: none; }
.accordion-item.is-open .accordion-icon .closed-icon { display: none; }
.accordion-item.is-open .accordion-icon .open-icon { display: inline; }

.accordion-content {
    display: none;
    padding: 0 0 15px;
    font-size: 18px;
}

.accordion-item.is-open .accordion-content { display: block; }

.accordion-content ul { padding-left: 20px; }
.accordion-content li { margin-bottom: 8px; }

/* ========== CONSULTATION SECTION ========== */
.consultation-section {
    padding: 32px 0;
    background: var(--color-white);
}

.consultation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.contact-info h2 { margin-bottom: 15px; }
.contact-info h2 br { display: none; }

.contact-info .attorney-name {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    color: var(--color-secondary);
    margin: 20px 0 10px;
}

.icon-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.icon-list li { margin-bottom: 8px; }

.icon-list a {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

.icon-list i { color: var(--color-primary); margin-top: 4px; flex-shrink: 0; }

.counties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

/* ========== FORMS ========== */
.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    background: var(--color-light);
    border: 1px solid var(--color-text-muted);
    border-radius: 0;
}

.form-group textarea { resize: vertical; min-height: 100px; text-transform: none; }

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-secondary);
    opacity: 0.7;
    text-transform: uppercase;
}

.form-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0;
}

.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-form-wrap { width: 100%; }

.contact-form .elementor-form-fields-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-form .form-field { margin-bottom: 15px; }

.contact-form .elementor-field {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    background: var(--color-light);
    border: 1px solid var(--color-text-muted);
    border-radius: 0;
    box-sizing: border-box;
}

.contact-form textarea.elementor-field {
    resize: vertical;
    min-height: 100px;
    text-transform: none;
}

.contact-form .elementor-field::placeholder {
    color: var(--color-secondary);
    opacity: 0.7;
    text-transform: uppercase;
}

.contact-form textarea.elementor-field::placeholder { text-transform: uppercase; }

.contact-form .form-field-recaptcha,
.contact-form .elementor-field-type-recaptcha {
    margin: 10px 0 20px;
    max-width: 100%;
    overflow: hidden;
}

.recaptcha-wrap {
    max-width: 100%;
    overflow: hidden;
}

.contact-form .contact-form-submit {
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    padding: 12px 20px;
}

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

.contact-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-placeholder {
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-text-muted);
}

.form-placeholder p { margin-bottom: 0.5em; }

/* ========== AFFILIATIONS ========== */
.affiliations {
    padding: 32px 0;
    text-align: center;
}

.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: center;
    justify-items: center;
    max-width: 560px;
    margin: 20px auto 0;
}

.affiliations-grid img {
    margin: 0 auto;
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

/* ========== FOOTER ========== */
.site-footer { background: var(--color-secondary); color: var(--color-light); }

.footer-main {
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-grid h3 {
    font-family: var(--font-body);
    font-size: var(--font-size-h3);
    font-weight: 500;
    text-transform: capitalize;
    line-height: var(--line-height-h3);
    color: var(--color-light);
    letter-spacing: normal;
}

.footer-grid p,
.footer-grid a { color: var(--color-light); font-size: 16px; }

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

.footer-center { text-align: center; }

.footer-center .footer-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(348px, 100%);
    max-height: 47px;
    aspect-ratio: 348 / 47;
    object-fit: contain;
    object-position: center;
    margin: 0 auto 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-light);
    font-size: 18px;
    border-radius: 50%;
}

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

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0; }

.footer-links a {
    display: block;
    padding: 10px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-light);
}

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

.footer-bottom {
    border-top: 1px solid rgba(206, 206, 206, 0.3);
    padding: 15px 0;
    padding-bottom: calc(15px + env(safe-area-inset-bottom, 0));
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.footer-bottom a {
    color: var(--color-text-muted);
}

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

.footer-privacy {
    text-transform: none;
    letter-spacing: 0;
}

.sitemap-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.sitemap-table th {
    background: var(--color-secondary);
    color: var(--color-light);
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
}

.sitemap-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-text-muted);
}

.sitemap-table tbody tr:nth-child(even) {
    background: var(--color-light);
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
    background: url('../images/Oakland-Image2.jpg') center/cover no-repeat;
    padding: 125px 20px 40px;
    text-align: center;
    color: var(--color-light);
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-content { padding: 32px 0; }
.page-content .container { max-width: 1140px; }
.page-content.section-light { background: var(--color-light); }
.page-content h2 { margin-top: 1.25em; margin-bottom: 0.5em; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { margin-top: 1em; }

/* Collapse gap between consecutive light content sections on inner pages */
.page-content.section-light + .page-content.section-light {
    padding-top: 0;
}

.page-content.section-light:has(+ .page-content.section-light) {
    padding-bottom: 16px;
}

.page-content.section-light + .page-content.section-white,
.page-content.section-white + .page-content.section-light {
    padding-top: 0;
}

.page-content.section-light:has(+ .page-content.section-white),
.page-content.section-white:has(+ .page-content.section-light) {
    padding-bottom: 16px;
}

.page-content img.headshot {
    float: right;
    margin: 0 0 20px 30px;
    max-width: 250px;
    border-radius: 4px;
}

.profile-headline {
    display: grid;
    grid-template-columns: minmax(260px, 354px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.profile-photo {
    text-align: start;
}

.profile-photo img {
    width: 100%;
    max-width: 354px;
    height: auto;
}

.profile-summary {
    min-width: 0;
}

.profile-summary h1 { margin-bottom: 0.25em; }

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.three-col h3 { margin-top: 0; }

.consultation-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 28px 0;
    text-align: center;
}

.consultation-card i {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.consultation-card h3 { margin-bottom: 10px; }

.info-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-text-muted);
}

.info-list li::before {
    content: "•";
    color: var(--color-primary);
    margin-right: 10px;
}

/* ========== RESPONSIVE ========== */
/* iPad / tablet: keep centered layout, nudge title block slightly upward */
@media (max-width: 1024px) and (min-width: 768px) {
    .hero-content {
        min-height: 864px;
        transform: translateY(-36px);
    }
}

@media (max-width: 1200px) {
    .testimonial-slide { flex: 0 0 100%; }
    .affiliations-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }

    .two-col,
    .consultation-grid,
    .practice-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start;
    }

    .img-float-left,
    .img-float-right,
    .two-col .img-float-right,
    .page-content .img-float-right {
        float: none;
        margin: 0 auto 16px;
        display: block;
        max-width: 100%;
    }

    .profile-headline {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        text-align: center;
    }

    .profile-photo img {
        margin: 0 auto;
    }

    .main-nav {
        background: transparent;
        border-bottom: none;
    }

    .main-nav .nav-inner {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 0 12px;
        background: rgba(0, 0, 0, 0.35);
        align-items: center;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo img {
        max-height: 36px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    .nav-cta { display: none; }

    .nav-menu-wrap {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        order: 10;
        background: var(--color-light);
        border-top: 1px solid var(--color-text-muted);
        padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0));
    }

    .nav-menu-wrap.is-open { display: block; }

    .nav-menu-wrap.is-open .nav-menu {
        display: block;
        width: 100%;
    }

    .nav-menu-wrap.is-open .nav-menu > li {
        width: 100%;
    }

    .nav-menu-wrap.is-open .nav-menu > li > a {
        color: var(--color-secondary);
        padding: 11px 16px;
        line-height: 1.25;
        letter-spacing: 0.5px;
        border-bottom: 1px solid rgba(206, 206, 206, 0.45);
    }

    .nav-menu-wrap.is-open .nav-menu .sub-menu {
        display: block;
        position: static;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background: transparent;
        min-width: 0;
    }

    .nav-menu-wrap.is-open .nav-menu .sub-menu a {
        color: var(--color-secondary);
        padding: 9px 16px 9px 28px;
        font-size: 12px;
        line-height: 1.25;
        letter-spacing: 0.4px;
        border-bottom: 1px solid rgba(206, 206, 206, 0.45);
        background: transparent;
    }

    .nav-menu-wrap.is-open .nav-menu > li:last-child > a {
        border-bottom: none;
    }

    .nav-menu-wrap.is-open .nav-menu > li.has-submenu > .sub-menu > li:last-child > a {
        border-bottom: 1px solid rgba(206, 206, 206, 0.45);
    }

    .nav-menu-wrap.is-open .nav-menu > li.has-submenu + li > a,
    .nav-menu-wrap.is-open .nav-menu > li:last-child > a {
        border-top: none;
    }

    .nav-menu-wrap.is-open .nav-menu a:hover,
    .nav-menu-wrap.is-open .nav-menu a.active {
        color: var(--color-primary);
    }

    .nav-menu li:hover > .sub-menu { display: block; }

    .nav-mobile-cta {
        display: block;
        padding: 10px 16px 0;
        margin: 0;
    }

    .nav-mobile-cta .btn {
        margin: 0;
        padding: 12px 16px;
        min-height: 0;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    :root {
        --font-size-h1: 36px;
        --line-height-h1: 1.35;
        --font-size-h2: 26px;
        --line-height-h2: 1.25;
        --font-size-h3: 18px;
        --line-height-h3: 1.25;
        --font-size-hero-display: 40px;
        --line-height-hero-display: 1.1;
        --font-size-hero-subtitle: 20px;
        --font-size-hero-bar: 25px;
    }

    body { font-size: 17px; }

    .container,
    .container-wide {
        padding-left: 16px;
        padding-right: 16px;
    }

    .top-bar { padding: 8px 12px; }
    .top-bar p {
        font-size: 13px;
        line-height: 1.35;
    }

    .btn {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 44px;
    }

    .section { padding: 20px 0; }
    .page-content { padding: 20px 0; }
    .consultation-section { padding: 20px 0; }
    .testimonials-section { padding: 20px 0; }
    .affiliations { padding: 20px 0; }
    .footer-main { padding: 28px 0; }

    .section-light:has(+ .section-light),
    .section-light:has(+ .testimonials-section),
    .testimonials-section:has(+ .section-light),
    .section-white:has(+ .section-white),
    .section-light:has(+ .section-white),
    .section-white:has(+ .section-light),
    .section-white:has(+ .testimonials-section),
    .testimonials-section:has(+ .section-white),
    .section-light:has(+ .consultation-section),
    .section-white:has(+ .consultation-section),
    .consultation-section:has(+ .affiliations),
    .page-content.section-light:has(+ .page-content.section-light),
    .page-content.section-light:has(+ .page-content.section-white),
    .page-content.section-white:has(+ .page-content.section-light) {
        padding-bottom: 8px;
    }

    .section h2.text-center { margin-bottom: 16px; }

    .section p:last-child,
    .page-content p:last-child {
        margin-bottom: 0;
    }

    .hero { min-height: auto; }

    .hero-content {
        min-height: 480px;
        padding: 0 16px;
        transform: none;
    }

    .hero h2.hero-title {
        margin-top: 100px;
    }

    .hero-bar {
        margin-top: 0;
    }

    .hero .hero-subtitle {
        line-height: 1.35;
    }

    .hero-bar {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 0;
        padding: 12px 16px 24px;
    }

    .hero-bar-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        grid-row: auto;
        gap: 5px;
        padding: 12px 0;
        text-align: center;
    }

    .hero-bar-col .label {
        justify-content: center;
    }

    .hero-bar h2 {
        word-break: break-word;
    }

    .page-hero {
        padding: 110px 16px 36px;
        min-height: 0;
    }

    .two-col,
    .cards-grid,
    .consultation-grid,
    .footer-grid,
    .philosophy-grid,
    .counties,
    .consultation-cards,
    .three-col,
    .profile-headline,
    .practice-layout,
    .consultation-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 20px;
    }

    .card p { font-size: 17px; }

    .profile-photo { text-align: center; }
    .profile-photo img { margin: 0 auto; }

    .img-float-left,
    .img-float-right,
    .two-col .img-float-right,
    .page-content .img-float-right {
        float: none;
        margin: 0 auto 20px;
        display: block;
        max-width: 100%;
    }

    .page-content img.headshot {
        float: none;
        margin: 0 auto 20px;
        display: block;
        max-width: min(250px, 100%);
    }

    .philosophy-item,
    .philosophy-item:nth-child(even) { padding: 0 0 12px 0; }

    .philosophy-grid { gap: 0; }

    .philosophy-item { margin-bottom: 12px; }

    .accordion-header {
        font-size: 18px;
        line-height: 1.35;
        padding: 14px 0 10px;
    }

    .consultation-grid,
    .consultation-form-row {
        gap: 20px;
    }

    .contact-info h2 br { display: inline; }

    .contact-form .elementor-field,
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 12px;
    }

    .contact-form textarea.elementor-field {
        min-height: 120px;
    }

    .contact-form .contact-form-submit {
        min-height: 48px;
        font-size: 14px;
    }

    .recaptcha-wrap {
        transform-origin: 0 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 12px;
        line-height: 1.4;
    }

    .footer-grid { gap: 28px; }

    .affiliations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .affiliations-grid img { max-height: 64px; }

    .feedback-thumbs a { padding: 12px; }

    .feedback-thumbs img,
    .positive-feedback img {
        width: 120px;
        height: 120px;
    }

    .testimonial-text,
    .testimonials-list .testimonial-text {
        font-size: 17px;
    }

    .practice-sidebar {
        margin-top: 8px;
        padding-top: 24px;
        border-top: 1px solid var(--color-text-muted);
    }
}

@media (max-width: 390px) {
    .recaptcha-wrap {
        transform: scale(0.92);
        width: 304px;
        max-width: 100%;
        margin-bottom: -8px;
    }

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

    .top-bar p { font-size: 12px; }
}

@media (max-width: 767px) and (orientation: landscape) {
    .hero-content {
        min-height: 0;
    }

    .hero h2.hero-title {
        margin-top: 0;
    }

    .page-hero { padding-top: 88px; }
}

@media (min-width: 1201px) {
    .hero .main-nav .nav-inner { background: transparent; }
}
