:root {
    --primary-navy: #1a365d;
    --primary-gold: #d69e2e;
    --secondary-blue: #2c5282;
    --light-gold: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(26, 54, 93, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-gold);
    overflow: visible;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
}

.nav-brand a {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 52px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link.cta-button {
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link.cta-button:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    margin-right: 1rem;
    overflow: visible;
    min-width: 44px;
    min-height: 44px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-navy);
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 68px);
    display: flex;
    align-items: flex-start;
    padding-top: 8vh;
    margin-top: 68px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center 30%;
    transform: translateY(0) scale(1);
    filter: brightness(0.7);
    will-change: transform;
    transition: transform 0.1s linear;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26, 54, 93, 0.4) 0%,
        rgba(26, 54, 93, 0.6) 50%,
        rgba(26, 54, 93, 0.9) 100%
    );
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><path fill="%23ffffff08" d="M0,200 Q300,100 600,200 T1200,200 L1200,800 L0,800 Z"/></svg>');
    background-size: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Removed hover effect to prevent parallax issues */

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background: #c5891e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.btn-light:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-navy);
}

/* Practice Areas */
.practice-areas {
    background: var(--gray-100);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.practice-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.practice-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
}

.practice-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-navy);
}

.practice-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.practice-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.practice-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
}

.learn-more {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.learn-more:hover {
    color: var(--primary-navy);
    transform: translateX(5px);
}

/* Why Choose Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.feature p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Testimonials */
.testimonials {
    background: var(--gray-100);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    box-shadow: var(--shadow);
}

.stars {
    color: var(--primary-gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.testimonial cite {
    font-style: normal;
    font-weight: 500;
    color: var(--text-light);
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.testimonial-header {
    margin-bottom: 1rem;
}

.testimonial-header h3 {
    margin-top: 0.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.testimonial.expandable .testimonial-content {
    max-height: 8em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
    line-height: 1.6;
    margin-bottom: 0;
}

.testimonial.expandable .testimonial-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.8), white);
    pointer-events: none;
}

.testimonial.expandable.expanded .testimonial-content {
    max-height: none;
    margin-bottom: 1rem;
}

.testimonial.expandable.expanded .testimonial-content::after {
    display: none;
}

/* Ensure Read more button is visible for expandable testimonials */
.testimonial.expandable .read-more-btn {
    display: inline-flex !important;
    position: relative;
    z-index: 10;
}

/* Hide Read more button for non-expandable testimonials */
.testimonial:not(.expandable) .read-more-btn {
    display: none !important;
}

.read-more-btn {
    background: var(--secondary-blue);
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.read-more-btn:after {
    content: '→';
    transition: transform 0.3s ease;
}

.testimonial.expanded .read-more-btn:after {
    transform: rotate(90deg);
}

/* CTA Section */
.cta {
    background: var(--primary-navy);
    color: var(--white);
    text-align: center;
}

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

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

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

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.25rem 0;
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bar {
    font-size: 0.875rem;
    color: var(--primary-gold);
    margin-top: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* About Page - Tagline */
.about-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* About Page - Action Shots */
.action-shots-section {
    padding: 3rem 0;
    background: var(--gray-100);
}

.action-shots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.action-shot {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.action-shot img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Office shot: zoom into Lucky, crop out excess desk and ceiling */
.action-shot:first-child img {
    object-position: 35% 20%;
    transform: scale(1.3);
    transform-origin: 35% 20%;
}

/* Court shot: focus on Lucky's gesture and upper body */
.action-shot:last-child img {
    object-position: 65% 60%;
    transform: scale(1.3);
    transform-origin: 65% 60%;
}

/* Contact Page */
.contact-form-section h2 {
    margin-bottom: 0.25rem;
}

.consultation-subtitle {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-form-section > p:last-of-type {
    margin-bottom: 2rem;
}

.contact-content {
    margin-top: 1.5rem;
}

/* Escalation Flowchart Section */
.escalation-section {
    position: relative;
    background: var(--primary-navy);
    padding: 5rem 0;
    overflow: hidden;
}

.escalation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/court_action.PNG') center/cover no-repeat;
    opacity: 0.08;
}

.escalation-container {
    position: relative;
    z-index: 1;
}

.escalation-title {
    color: var(--white);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.escalation-subtitle {
    color: var(--gray-300);
    text-align: center;
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

.escalation-pipeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.escalation-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 2.5rem;
}

.step-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    background: var(--secondary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.step-marker.gold {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    box-shadow: 0 0 25px rgba(214, 158, 46, 0.4);
}

.step-num {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.step-connector {
    position: absolute;
    left: 27px;
    top: 56px;
    width: 2px;
    height: calc(100% + 2.5rem - 56px);
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(214,158,46,0.3));
}

.final-step .step-connector {
    display: none;
}

.step-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.step-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--gray-300);
    line-height: 1.8;
    font-size: 1.05rem;
}

.gold-card {
    background: rgba(214, 158, 46, 0.15);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 40px rgba(214, 158, 46, 0.15);
}

.gold-card h3 {
    color: var(--primary-gold);
    font-size: 1.6rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 68px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 1rem 0;
        gap: 0.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        padding: 0.4rem 0;
        display: block;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: auto;
        min-height: calc(100vh - 68px);
        padding-top: 4vh;
        padding-bottom: 4vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .action-shots-grid {
        grid-template-columns: 1fr;
    }

    .action-shot img {
        height: 250px;
    }

    .escalation-title {
        font-size: 2rem;
    }

    .escalation-step {
        padding-left: 65px;
    }

    .step-marker {
        width: 44px;
        height: 44px;
    }

    .step-num {
        font-size: 1.1rem;
    }

    .step-connector {
        left: 21px;
        top: 44px;
        height: calc(100% + 2.5rem - 44px);
    }

    .nav-logo {
        height: 44px;
        width: auto;
    }
}

/* Mobile specific adjustments */
@media (max-width: 480px) {
    .hero {
        padding-top: 3vh;
        padding-bottom: 3vh;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
        margin-bottom: 1.25rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }

    .hero-buttons {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .nav-toggle {
        margin-right: 0.25rem;
    }

    .nav-logo {
        height: 36px;
        width: auto;
    }
}