@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&family=Frank+Ruhl+Libre:wght@400;500;700&display=swap');

/* ===== CSS Reset & Variables ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1B3A5C;
    --navy-dark: #0f2235;
    --navy-mid: #243f63;
    --gold: #B8943F;
    --gold-light: #d4b46a;
    --gold-dark: #9a7a30;
    --gray: #B8B8B8;
    --gray-light: #e8e8e8;
    --off-white: #F7F6F2;
    --cream: #F2EFE6;
    --white: #FFFFFF;
    --text-dark: #1a1a2e;
    --text-light: #5a5a6a;
    --shadow: 0 2px 20px rgba(27, 58, 92, 0.1);
    --shadow-lg: 0 8px 40px rgba(27, 58, 92, 0.18);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Heebo', 'Segoe UI', Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Frank Ruhl Libre', 'Heebo', serif;
}

/* ===== Utility ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

section {
    padding: 80px 0;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--gray-light);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 55px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

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

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

.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.header-cta:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.header-cta svg {
    width: 16px;
    height: 16px;
}

.header-cta-group {
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.header-cta-group .header-cta {
    border-radius: 0;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.header-cta-copy,
.header-cta-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    text-decoration: none;
}

.header-cta-copy {
    background: var(--gold-dark);
}

.header-cta-copy:hover {
    background: var(--navy);
}

.header-cta-copy svg,
.header-cta-whatsapp svg {
    width: 14px;
    height: 14px;
}

.header-cta-copy.copied {
    background: #27ae60;
}

.header-cta-copy.copied svg {
    display: none;
}

.header-cta-copy.copied::after {
    content: '\2713';
    font-size: 14px;
    color: white;
}

.header-cta-whatsapp {
    background: #25D366;
}

.header-cta-whatsapp:hover {
    background: #1da851;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, #1e4876 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(184, 148, 63, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(30, 72, 118, 0.4) 0%, transparent 50%);
}

/* Geometric building shapes in hero */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.06;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border: 2px solid var(--gold);
}

.hero-shapes .shape-1 {
    width: 120px;
    height: 300px;
    bottom: 0;
    left: 10%;
}

.hero-shapes .shape-2 {
    width: 80px;
    height: 400px;
    bottom: 0;
    left: 15%;
}

.hero-shapes .shape-3 {
    width: 100px;
    height: 250px;
    bottom: 0;
    right: 12%;
}

.hero-shapes .shape-4 {
    width: 60px;
    height: 350px;
    bottom: 0;
    right: 8%;
}

.hero-shapes .shape-5 {
    width: 150px;
    height: 200px;
    bottom: 0;
    left: 40%;
}

.hero-building {
    position: absolute;
    bottom: 0;
    height: 70%;
    width: auto;
    opacity: 0.07;
    z-index: 1;
    pointer-events: none;
}

.hero-building-left {
    left: 2%;
}

.hero-building-right {
    right: 2%;
}

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

.hero-logo {
    width: 180px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    font-family: 'Frank Ruhl Libre', serif;
}

.hero h1 span {
    color: var(--gold);
}

.hero-tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero-gold-line {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

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

.hero-stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.4rem;
}

.hero-cta {
    margin-top: 3rem;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 165, 90, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== Gallery Strip ===== */
.gallery-strip {
    background: var(--navy-dark);
    padding: 56px 0;
    overflow: hidden;
    position: relative;
}

.gallery-strip-label {
    text-align: center;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 32px;
    font-family: 'Heebo', sans-serif;
    opacity: 0.9;
}

.gallery-track-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.gallery-track--left {
    animation: scroll-left 40s linear infinite;
}

.gallery-track--right {
    animation: scroll-right 40s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.gallery-item {
    position: relative;
    width: 300px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.82) saturate(0.9);
}

.gallery-item:hover img {
    transform: scale(1.07);
    filter: brightness(0.95) saturate(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(15, 34, 53, 0.85));
    padding: 20px 14px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Heebo', sans-serif;
}

/* fade edges */
.gallery-strip::before,
.gallery-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.gallery-strip::before {
    right: 0;
    background: linear-gradient(to left, var(--navy-dark), transparent);
}

.gallery-strip::after {
    left: 0;
    background: linear-gradient(to right, var(--navy-dark), transparent);
}

/* ===== About ===== */
.about {
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
}

/* Floating background slideshow */
.about-bg-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-bg-slide {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 24s infinite;
    will-change: transform, opacity;
}

.about-bg-slide--1 {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=80');
    animation-delay: 0s;
}
.about-bg-slide--2 {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80');
    animation-delay: 8s;
}
.about-bg-slide--3 {
    background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1600&q=80');
    animation-delay: 16s;
}

@keyframes slideShow {
    0%   { opacity: 0;   transform: scale(1)    translate(0, 0); }
    5%   { opacity: 1; }
    30%  { opacity: 1;   transform: scale(1.08) translate(-1.5%, -1%); }
    37%  { opacity: 0; }
    100% { opacity: 0;   transform: scale(1.1)  translate(-2%, -1.5%); }
}

.about-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.82) 0%,
        rgba(20, 40, 70, 0.75) 100%
    );
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1rem;
}

.about-text p {
    color: rgba(255,255,255,0.82);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-roles {
    list-style: none;
}

.about-roles li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
}

.about-roles li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--gold);
    margin-top: 3px;
}

/* Practice Area Cards */
.practice-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.practice-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(184,148,63,0.2);
}

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.practice-card-icon {
    width: 48px;
    height: 48px;
    background: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.practice-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.practice-card h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

/* ===== Projects ===== */
.projects {
    background: var(--off-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

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

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    color: var(--navy);
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.project-location {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--gray-light);
}

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

.project-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
}

.project-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.project-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
}

.project-status {
    margin-top: 12px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(27, 58, 92, 0.08);
    color: var(--navy);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ===== Commitments ===== */
.commitments {
    background: var(--white);
}

.commitments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.commitment-card {
    background: var(--off-white);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.commitment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.commitment-icon {
    width: 56px;
    height: 56px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.commitment-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.commitment-card h4 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ===== Articles ===== */
.articles {
    background: var(--cream);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 16px rgba(27, 58, 92, 0.07);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(184, 148, 63, 0.12);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 148, 63, 0.3);
}

.article-category {
    display: inline-block;
    background: rgba(27, 58, 92, 0.07);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.article-header {
    padding: 28px 28px 0;
}

.article-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 12px;
    font-family: 'Frank Ruhl Libre', serif;
}

.article-excerpt {
    padding: 0 28px 20px;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.75;
    flex: 1;
}

.article-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.article-read-more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.article-read-more:hover {
    color: var(--navy);
    gap: 8px;
}

.article-gold-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}

/* ===== Contact ===== */
.contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--off-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
    background: var(--white);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

.form-error {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-group input.invalid + .form-error,
.form-group textarea.invalid + .form-error {
    display: block;
}

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

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.form-submit:hover {
    background: var(--navy-dark);
    transform: translateY(-1px);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-details h3 {
    font-size: 1.4rem;
    color: var(--navy);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.contact-item-text h4 {
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item-text p,
.contact-item-text a {
    color: var(--text-light);
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-item-text a:hover {
    color: var(--gold);
}

.contact-item-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-inline-start: auto;
    flex-shrink: 0;
}

.contact-copy-btn,
.contact-waze-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-light);
    text-decoration: none;
}

.contact-copy-btn svg,
.contact-waze-btn svg {
    width: 16px;
    height: 16px;
}

.contact-copy-btn:hover,
.contact-waze-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: #fdfaf2;
}

.contact-waze-btn {
    color: #33ccff;
}

.contact-waze-btn:hover {
    color: #33ccff;
    border-color: #33ccff;
    background: #f0fbff;
}

.contact-copy-btn.copied {
    border-color: #27ae60;
    color: #27ae60;
    background: #f0faf4;
}

.contact-copy-btn.copied svg {
    display: none;
}

.contact-copy-btn.copied::after {
    content: '\2713';
    font-size: 14px;
    font-weight: 700;
}

.contact-map {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px;
}

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

.footer-brand img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--gold);
    text-decoration: none;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

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

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Language Switcher ===== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    padding: 4px 8px;
}

.lang-switcher a {
    text-decoration: none;
    color: var(--navy);
    padding: 2px 6px;
    font-weight: 500;
    transition: var(--transition);
}

.lang-switcher a.active {
    color: var(--gold);
    font-weight: 700;
}

.lang-switcher a:hover {
    color: var(--gold-dark);
}

.lang-switcher span {
    color: var(--gray);
    font-size: 0.7rem;
}

/* ===== LTR Overrides (English) ===== */
[dir="ltr"] .nav-links a::after {
    right: auto;
    left: 0;
}

[dir="ltr"] .project-type-badge {
    right: auto;
    left: 12px;
}

[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 24px;
}

[dir="ltr"] .back-to-top {
    right: auto;
    left: 24px;
}

/* ===== Cookie Consent ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-inner p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-consent-inner a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-consent-inner a:hover {
    color: var(--gold-light);
}

.cookie-consent-btn {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.cookie-consent-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

/* ===== Accessibility Widget ===== */
.a11y-btn {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: var(--navy);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(27, 58, 92, 0.3);
    transition: var(--transition);
    color: var(--white);
    padding: 0;
}

.a11y-btn:hover {
    background: var(--gold);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(197, 165, 90, 0.4);
}

.a11y-btn svg {
    width: 26px;
    height: 26px;
}

[dir="ltr"] .a11y-btn {
    right: auto;
    left: 24px;
}

/* Accessibility Panel */
.a11y-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 1002;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease, left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.a11y-panel.open {
    right: 0;
}

[dir="ltr"] .a11y-panel {
    right: auto;
    left: -360px;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
}

[dir="ltr"] .a11y-panel.open {
    left: 0;
}

.a11y-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--navy);
    color: var(--white);
}

.a11y-panel-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.a11y-panel-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    padding: 0;
}

.a11y-panel-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.a11y-panel-close svg {
    width: 20px;
    height: 20px;
}

.a11y-panel-body {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.a11y-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.a11y-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--off-white);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
}

.a11y-option:hover {
    border-color: var(--gold);
    background: #fdfaf2;
}

.a11y-option.active {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}

.a11y-option.active .a11y-option-icon {
    color: var(--white);
}

.a11y-option-icon {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a11y-option-icon svg {
    width: 22px;
    height: 22px;
}

.a11y-keyboard-info {
    background: var(--off-white);
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.a11y-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    transition: var(--transition);
    margin-bottom: 12px;
}

.a11y-reset:hover {
    background: #e74c3c;
    color: var(--white);
    border-color: #e74c3c;
}

.a11y-reset svg {
    width: 18px;
    height: 18px;
}

.a11y-statement-link {
    display: block;
    text-align: center;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
    padding: 8px;
    transition: var(--transition);
}

.a11y-statement-link:hover {
    color: var(--gold);
}

/* Accessibility Statement Modal */
.a11y-statement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1003;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.a11y-statement-overlay.open {
    display: flex;
}

.a11y-statement-modal {
    background: var(--white);
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.a11y-statement-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--off-white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-dark);
    padding: 0;
}

[dir="ltr"] .a11y-statement-close {
    right: auto;
    left: 16px;
}

.a11y-statement-close:hover {
    background: #e74c3c;
    color: var(--white);
}

.a11y-statement-close svg {
    width: 18px;
    height: 18px;
}

.a11y-statement-content {
    padding: 40px 32px 32px;
}

.a11y-statement-content h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.a11y-statement-content h4 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-top: 20px;
    margin-bottom: 8px;
}

.a11y-statement-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.a11y-statement-content ul {
    padding-inline-start: 20px;
    margin-bottom: 12px;
}

.a11y-statement-content li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

/* Accessibility Panel Overlay (background) */
.a11y-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
}

.a11y-overlay.open {
    display: block;
}

/* ===== Accessibility Body Classes ===== */
body.a11y-grayscale {
    filter: grayscale(100%);
}

body.a11y-high-contrast,
body.a11y-high-contrast * {
    background: #000 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
}

body.a11y-high-contrast a {
    color: #0ff !important;
}

body.a11y-high-contrast img {
    filter: brightness(1.2) contrast(1.5);
}

body.a11y-high-contrast .a11y-panel,
body.a11y-high-contrast .a11y-panel *,
body.a11y-high-contrast .a11y-statement-modal,
body.a11y-high-contrast .a11y-statement-modal * {
    background: #111 !important;
    color: #ff0 !important;
}

body.a11y-invert {
    filter: invert(100%) hue-rotate(180deg);
}

body.a11y-invert img,
body.a11y-invert video {
    filter: invert(100%) hue-rotate(180deg);
}

body.a11y-highlight-links a {
    outline: 3px solid #ff0 !important;
    outline-offset: 2px;
    text-decoration: underline !important;
    color: #0000EE !important;
}

body.a11y-highlight-links .a11y-panel a {
    color: var(--navy) !important;
}

body.a11y-readable-font,
body.a11y-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.5px;
}

html.a11y-font-120 {
    font-size: 19.2px;
}

html.a11y-font-140 {
    font-size: 22.4px;
}

body.a11y-big-cursor,
body.a11y-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6.5 1.5L11 19z' fill='%23000' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") 4 4, auto !important;
}

body.a11y-stop-animations,
body.a11y-stop-animations *,
body.a11y-stop-animations *::before,
body.a11y-stop-animations *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .header-inner {
        height: 70px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .header-cta-group {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 24px;
    }

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

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

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

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

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .lang-switcher {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    section {
        padding: 60px 0;
    }

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

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }

    .hero-stat-label {
        font-size: 0.8rem;
    }

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

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

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

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

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

    .contact-form {
        padding: 24px;
    }
}
