:root {
    --navy: #0b1c3d;
    --navy-dark: #07132a;
    --gold: #d4a24c;
    --light: #f4f6f8;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #ffffff, #f6f7f9);
    color: #222;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.header {
    background: white;
    border-bottom: 1px solid rgba(212,162,76,0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 110px;
}

.nav a {
    margin: 0 14px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
}

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

.hero {
    padding: 90px 0;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(11,28,61,0.85), rgba(11,28,61,0.95)),
        url("../images/hero-bg.jpg") center/cover no-repeat;
    color: white;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
}

.practice {
    padding: 80px 0;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    padding: 30px;
    border-left: 5px solid var(--gold);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about img {
    width: 100%;
    border-radius: 14px;
    border: 4px solid var(--gold);
    box-shadow: 0 30px 70px rgba(11,28,61,0.35);
    cursor: pointer;
}

.contact {
    background: var(--light);
    padding: 80px 0;
}

.contact form {
    max-width: 600px;
    margin: auto;
    display: grid;
    gap: 16px;
}

input, select, textarea {
    padding: 14px;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #f0c36d);
    border: none;
    padding: 14px;
    font-weight: 600;
    cursor: pointer;
}

.footer {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 24px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
}

.modal-image {
    display: block;
    margin: auto;
    max-width: 90%;
}

.close {
    color: white;
    font-size: 32px;
    cursor: pointer;
}

@media(max-width:768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
}

/* ================================
   PRACTICE INNER PAGE STYLING
   ================================ */

.practice-hero {
    background: linear-gradient(
        rgba(11, 28, 61, 0.85),
        rgba(11, 28, 61, 0.85)
    );
    color: white;
}

.practice-hero h1 {
    color: white;
}

.hero-subtext {
    max-width: 650px;
    margin: 15px auto 0;
    font-size: 1.05rem;
    opacity: 0.95;
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.85);
}

.breadcrumb a {
    color: #e5c07b; /* gold accent */
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 6px;
}

/* INNER LAYOUT */
.practice-inner {
    background: #f9fafc;
}

.practice-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* CONTENT */
.practice-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.practice-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

/* LIST */
.practice-list {
    margin: 20px 0;
    padding-left: 20px;
}

.practice-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 8px;
}

/* SIDEBAR */
.practice-sidebar {
    position: relative;
}

.sidebar-card {
    background: var(--navy);
    color: white;
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: 120px;
}

.sidebar-card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    color: #e5c07b;
}

.sidebar-card p {
    margin-bottom: 20px;
    opacity: 0.95;
}

.full-width {
    display: block;
    text-align: center;
}

/* MOBILE */
@media (max-width: 900px) {
    .practice-wrapper {
        grid-template-columns: 1fr;
    }

    .practice-content {
        padding: 25px;
    }

    .breadcrumb {
        text-align: center;
    }
}

/* ================================
   ANIMATED BREADCRUMB
   ================================ */

.breadcrumb a {
    position: relative;
    transition: color 0.3s ease;
}

.breadcrumb a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #e5c07b;
    transition: width 0.3s ease;
}

.breadcrumb a:hover::after {
    width: 100%;
}

.active-practice {
    color: #e5c07b;
    font-weight: 600;
}

/* ================================
   AUTO PRACTICE HIGHLIGHT (CARDS)
   ================================ */

.card.active {
    border-left-color: #e5c07b;
    background: linear-gradient(white, #fffaf0);
}

/* ================================
   DARK MODE SUPPORT
   ================================ */

:root {
    --gold: #e5c07b;
}

body.dark {
    background: #0b1c3d;
    color: #eaeaea;
}

body.dark .practice-content,
body.dark .card,
body.dark .modal-content {
    background: #121c33;
    color: #eaeaea;
}

body.dark .practice-inner {
    background: #0b1c3d;
}

body.dark .breadcrumb a,
body.dark .active-practice {
    color: var(--gold);
}

body.dark .footer {
    background: #050c1a;
}

/* ================================
   DARK MODE TOGGLE BUTTON
   ================================ */

.dark-toggle {
    cursor: pointer;
    font-size: 14px;
    margin-left: 15px;
    color: var(--navy);
}

body.dark .dark-toggle {
    color: var(--gold);
}

/* ==============================
   ACTIVE SIDEBAR CTA
   ============================== */
.sidebar-card a.active {
    background: linear-gradient(135deg, var(--gold), #f0c36d);
    color: var(--navy);          /* Make text stand out on gold */
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    cursor: default;             /* Optional: indicate this is the active page */
    pointer-events: none;        /* Optional: prevent click on current page */
}

/* Dark mode support for active sidebar CTA */
body.dark .sidebar-card a.active {
    background: linear-gradient(135deg, #e5c07b, #f0c36d);
    color: var(--navy-dark);
}

/* ==============================
   SUBTLE HOVER FOR ACTIVE SIDEBAR CTA
   ============================== */
.sidebar-card a.active:hover {
    transform: translateY(-2px);          /* Slight lift */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2); /* Slightly stronger shadow */
    background: linear-gradient(135deg, #f0c36d, var(--gold)); /* Slight gradient shift */
    transition: all 0.3s ease;
}

/* Dark mode hover effect */
body.dark .sidebar-card a.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #f0c36d, #e5c07b);
    transition: all 0.3s ease;
}

/* ==============================
   SUBTLE PULSATE FOR ACTIVE SIDEBAR CTA
   ============================== */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
}

.sidebar-card a.active {
    animation: pulse 2.5s ease-in-out 1; /* Animate once on page load */
}

/* Optional: dark mode pulse */
body.dark .sidebar-card a.active {
    animation: pulse 2.5s ease-in-out 1;
}

/* ==============================
   DARK MODE: HOVER + SUBTLE PULSE LOOP
   ============================== */
body.dark .sidebar-card a.active:hover {
    animation: pulse-loop 1.8s ease-in-out infinite; /* Continuous subtle pulse on hover */
}

@keyframes pulse-loop {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
}

/* ==============================
   HOMEPAGE PRACTICE CARDS: HOVER + SUBTLE PULSE
   ============================== */
@keyframes card-hover-pulse {
    0% {
        transform: translateY(-6px) scale(1);
        box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    }
    50% {
        transform: translateY(-7px) scale(1.01);
        box-shadow: 0 22px 45px rgba(0,0,0,0.12);
    }
    100% {
        transform: translateY(-6px) scale(1);
        box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    }
}

.card:hover {
    transform: translateY(-6px);
    animation: card-hover-pulse 1.5s ease-in-out 1;
}

/* ==============================
   OWNER IMAGE STYLING
   ============================== */
.owner-img {
    width: 100%;
    max-width: 400px;
    border-radius: 14px;
    border: 4px solid var(--gold);
    box-shadow: 0 30px 70px rgba(11,28,61,0.35);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.owner-img:hover {
    transform: scale(1.02);
}

/* ==============================
   CONTACT METHODS RADIO BUTTONS
   ============================== */
.contact-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.contact-methods label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
}

.contact-methods input[type="radio"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
}

/* ==============================
   PRACTICE GRID CARDS INTERACTIVE STYLING
   ============================== */

.practice-grid .card {
    position: relative;
    cursor: pointer;
    background: white;
    padding: 30px;
    border-left: 5px solid var(--gold);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.practice-grid .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.12);
    animation: card-hover-pulse 1.5s ease-in-out 1;
}

/* CTA text inside card */
.card-cta {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: var(--gold);
    transition: transform 0.3s, color 0.3s;
}

.card:hover .card-cta {
    color: #f0c36d;
    transform: translateX(4px);
}

/* Active card styling for scrollspy */
.card.active {
    border-left-color: #e5c07b;
    background: linear-gradient(white, #fffaf0);
    animation: card-hover-pulse 1.5s ease-in-out 1;
}

/* Pulse animation */
@keyframes card-hover-pulse {
    0%, 100% { transform: translateY(-6px); }
    50% { transform: translateY(-8px); }
}

/* Dark mode adjustments */
body.dark .practice-grid .card,
body.dark .practice-grid .card.active {
    background: #121c33;
    color: #eaeaea;
}

body.dark .practice-grid .card-cta {
    color: var(--gold);
}

body.dark .practice-grid .card:hover .card-cta {
    color: #f0c36d;
}
