/* CSS Variables */
:root {
    --primary-color: #164e63;
    --primary-light: #0e7490;
    --primary-dark: #0c3d4d;
    --accent-color: #d4af37;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --background-accent: #f0f9ff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
}

.nav-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
    object-position: top center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.logo-title {
    font-size: 0.75rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(22, 78, 99, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.profile-photo {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-position: top center;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
    position: relative;
    z-index: 1;
}

.profile-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    z-index: 0;
}
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(22, 78, 99, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.hero-prefix {
    font-size: 1.5rem;
    color: var(--text-medium);
    font-weight: 400;
    margin-bottom: 0.25rem;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-name {
    font-size: 4.5rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-credentials {
    font-size: 1.125rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-stats {
    display: flex;
    gap: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.7s backwards;
    flex-wrap: wrap;
}

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

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
}

.stat-courts {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    background: var(--border-color);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

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

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--background-accent);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* About Section */
.about {
    background: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-subtitle {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-description {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-qualities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.quality-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-medium);
    font-size: 0.9375rem;
}

.quality-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Courts Section */
.courts {
    background: var(--background-alt);
    padding: 3rem 0;
}

.courts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.court-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.court-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.court-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.court-icon svg {
    width: 48px;
    height: 48px;
}

.court-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.court-card p {
    color: var(--text-medium);
    font-size: 0.9375rem;
}

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

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

.practice-card {
    background: var(--background-alt);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: white;
}

.practice-card:hover::before {
    height: 100%;
}

.practice-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(22, 78, 99, 0.1);
    line-height: 1;
    margin-bottom: 1rem;
}

.practice-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.practice-description {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background: var(--background-alt);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    align-items: flex-start;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--background-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-link:hover {
    gap: 0.5rem;
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wrapper h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 78, 99, 0.1);
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Disclaimer Section */
.disclaimer {
    background: var(--background-accent);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.disclaimer-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.disclaimer-content p {
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.footer-credentials {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-tagline {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 0.5rem;
}

.footer-links li {
    opacity: 0.8;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.8;
}

.footer-contact svg {
    flex-shrink: 0;
}

.footer-contact a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-disclaimer-link {
    font-size: 0.75rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.whatsapp-float:hover {
    transform: scale(1.15);
    animation: none;
}

/* Responsive Design */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-name {
        font-size: 3.5rem;
    }

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

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

/* Tablets (968px and below) */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
        max-width: 350px;
        margin: 0 auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-name {
        font-size: 3rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

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

    .hero-stats {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 1.5rem 2rem;
    }

    .stat-item {
        flex: 0 1 auto;
    }

    .stat-divider {
        display: none;
    }
}

/* Small Tablets and Large Phones (640px and below) */
@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero-grid {
        gap: 2rem;
    }

    .hero-image {
        max-width: 280px;
    }

    .profile-frame {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }

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

    .hero-prefix {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .section-header {
        margin-bottom: 3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        text-align: left;
        width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-qualities {
        grid-template-columns: 1fr;
    }

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

    .court-card {
        padding: 1.5rem;
    }

    .practice-card {
        padding: 2rem;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        left: 1.5rem;
    }

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

    .scroll-top {
        width: 42px;
        height: 42px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .about-subtitle {
        font-size: 1.5rem;
    }

    .practice-title {
        font-size: 1.25rem;
    }
}

/* Extra Small Phones (480px and below) */
@media (max-width: 480px) {
    .hero-image {
        max-width: 240px;
    }

    .nav-avatar {
        width: 38px;
        height: 38px;
    }

    .hero-name {
        font-size: 2rem;
    }

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

    .logo-name {
        font-size: 1.125rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-credentials {
        font-size: 1rem;
    }

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

    .contact-form-wrapper h3 {
        font-size: 1.5rem;
    }

    .legal-notice-header h2 {
        font-size: 1.375rem;
    }
}
