*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: var(--clr-bg);
    color: var(--clr-primary);
    font-family: var(--ff-main);
    font-size: var(--fs-p-body);
    font-weight: 400;
    overflow-x: hidden;
}

.bold-text {
    font-weight: bold;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

button {
    cursor: pointer;
    border: none;
    font: inherit;
    background: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}


:root {
    /* Colors */
    --clr-primary: #0054A6;
    --clr-gold: #C6A775;
    --clr-bg: #fdfaf6;
    --clr-surface: #ffffff;
    --clr-text: #1a1a1a;
    --clr-text-muted: #666666;
    --clr-border: #e0e0e0;
    --clr-white: #ffffff;
    --clr-black: #000000;


    --ff-main: 'Urbanist', system-ui, sans-serif;
    --ff-playfair: 'Playfair Display', serif;
    /* --ff-jetbrains: 'JetBrains Mono', monospace; */
    --ff-jetbrains: 'Urbanist', system-ui, sans-serif;

    --fs-h1: clamp(1.5rem, 3.16vw + 0.7rem, 4.5rem);

    --fs-h2: clamp(1.438rem, 2.96vw + 0.69rem, 4.25rem);

    --fs-h3: clamp(1.188rem, 1.91vw + 0.71rem, 3rem);

    --fs-h4: clamp(1rem, 0.9vw + 0.5rem, 1.5rem);

    --fs-p-hero: clamp(0.75rem, 1.05vw + 0.49rem, 1.75rem);

    --fs-p-bg: clamp(0.8125rem, 0.25vw + 0.75rem, 1.25rem);

    --fs-p-body: clamp(0.688rem, 0.66vw + 0.52rem, 1.313rem);

    --fs-p-small: clamp(0.563rem, 0.46vw + 0.45rem, 1rem);

    --fs-p-xsmall: clamp(0.43rem, 0.32vw + 0.44rem, 1rem);


    /* Spacing Scale */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 1rem;
    --sp-4: 1.5rem;
    --sp-5: 2rem;
    --sp-6: 3rem;
    --sp-8: 4rem;
    --sp-10: 5rem;

    /* Accents */
    --br-sm: 7px;
    --br-md: 12px;
    --br-lg: 24px;
    --br-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    --container-width: clamp(20rem, 75.1vw - 1.25rem, 90rem);

    --container-gutter: 0.5rem;
}


.l-container {
    width: min(calc(100% - var(--container-gutter)), var(--container-width));
    margin-inline: auto;
}

.logo {
    width: clamp(5.688rem, 13.9vw + 2.2rem, 18.875rem);
    height: auto;
}

section {
    margin-bottom: var(--sp-10);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}


/* ==========================================================================
   ANIMATIONS & KEYFRAMES - Comprehensive animation system
========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 84, 166, 0);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 84, 166, 0.3);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}


form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    width: 100%;
    /* max-width: 500px; */
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(0, 48, 96, 0.12);
}

input,
textarea,
select,
input::placeholder,
textarea::placeholder {
    color: var(--primary-color);
}

.small-text {
    font-size: var(--fs-p-small);
}

.banner {
    display: none;
    animation: slideDown 0.5s ease-out;
}

.banner.show {
    display: flex;
}

.header,
.nav {
    height: clamp(3.188rem, 4.02vw + 2.18rem, 7rem);
    background-color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-3);
    animation: fadeIn 0.6s ease-out;
}

/* Mobile-first navbar: hamburger on small screens, links on desktop */
.navbar {
    position: static;
    margin-left: auto;
}

.c-nav__hamburger {
    width: 2rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.c-nav__hamburger span,
.c-nav__hamburger span::before,
.c-nav__hamburger span::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--clr-gold);
    border-radius: var(--br-full);
    transition: all 0.3s ease;
}

.c-nav__hamburger span {
    position: relative;
}

.c-nav__hamburger span::before,
.c-nav__hamburger span::after {
    content: '';
    position: absolute;
    left: 0;
}

.c-nav__hamburger span::before {
    top: -0.4rem;
}

.c-nav__hamburger span::after {
    top: 0.4rem;
}

.c-nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    transform: none;
    background-color: var(--clr-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    display: none;
    padding: var(--sp-2) var(--sp-3);
    box-shadow: var(--shadow-md);
}

.navbar.is-open .c-nav__menu {
    animation: slideDown 0.4s ease-out;
}

.c-nav__menu li {
    animation: fadeInUp 0.4s ease-out backwards;
}

.c-nav__menu li:nth-child(1) {
    animation-delay: 0.1s;
}

.c-nav__menu li:nth-child(2) {
    animation-delay: 0.1s;
}

.c-nav__menu li:nth-child(3) {
    animation-delay: 0.1s;
}

.c-nav__menu li:nth-child(4) {
    animation-delay: 0.1s;
}

.c-nav__menu li:nth-child(5) {
    animation-delay: 0.1s;
}

.c-nav__menu li+li {
    margin-top: var(--sp-2);
}

.c-nav__menu a {
    width: 100%;
    color: var(--clr-primary);
    font-weight: 300;
    padding: var(--sp-1);
    /* font-size: var(--fs-p-body); */
    font-size: var(--fs-p-body);
    border-bottom: 1px solid var(--clr-primary);
    transition: all 0.3s ease;
}

.c-nav__menu a:hover {
    color: var(--clr-gold);
}

.c-nav__item--dropdown {
    position: relative;
}

.c-nav__submenu {
    display: none;
}

.navbar.is-open .c-nav__menu {
    display: block;
}

.navbar.is-open .c-nav__hamburger span {
    background-color: transparent;
}

.navbar.is-open .c-nav__hamburger span::before {
    transform: translateY(0.4rem) rotate(45deg);
}

.navbar.is-open .c-nav__hamburger span::after {
    transform: translateY(-0.4rem) rotate(-45deg);
}

.hero .l-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* width: 100%; */
}

.hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--sp-4);
}

.hero-content {
    color: var(--clr-white);
    position: relative;
    z-index: 2;
    animation: fadeIn 0.8s ease-out;
}

.hero-heading {
    font-size: var(--fs-h1);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtext {
    font-size: var(--fs-p-hero);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    /* margin-top: var(--sp-4); */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
}

.hero-button {
    font-size: var(--fs-p-small);
    padding: var(--sp-3) var(--sp-4);
    background-color: var(--clr-primary);
    color: var(--clr-white);
    font-weight: 500;
    border-radius: var(--br-full);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 84, 166, 0.3);
}

.gold-heading {
    color: var(--clr-gold);
    font-family: var(--ff-jetbrains);
    font-size: var(--fs-p-body);
    animation: fadeInUp 0.7s ease-out backwards;
}



.highlight-text {
    font-weight: bold;
    font-size: var(--fs-p-bg);
}

.button {
    font-size: var(--fs-p-small);
    padding: var(--sp-2) var(--sp-4);
    background-color: var(--clr-primary);
    color: var(--clr-white);
    font-weight: 500;
    border-radius: var(--br-full);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.small-button {
    font-size: var(--fs-p-xsmall);
}

.underline-link {
    text-decoration: underline;
}

.underline-link:hover {
    color: var(--clr-gold);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 84, 166, 0.2);
}

.button:active {
    transform: translateY(0);
}

.hero {
    height: clamp(34.063rem, 18.31vw + 29.461rem, 51.438rem);
    background-size: cover;
    background-position: center;
    /* padding: var(--sp-10) 0; */
    position: relative;
}

.home-hero {
    background-image: url('../assets/home-hero-mobile.jpg');
}

.services-hero {
    background-image: url('../assets/image7mobile.jpg');
}

.team-hero {
    background-image: url('../assets/our-team-hero.jpg');
}

.about-hero {
    background-image: url('../assets/about-us-hero.jpg');
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
    width: 100%;
    margin: 0 auto;
    /* padding: var(--sp-4); */
    /* border-radius: var(--br-lg); */
    /* background-color: var(--clr-surface); */
    /* box-shadow: var(--shadow-sm); */
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.contact-form h2 {
    color: var(--clr-primary);
    margin-bottom: var(--sp-2);
    animation: fadeInUp 0.7s ease-out backwards;
}

.contact-form form {
    gap: var(--sp-2);
    margin-bottom: var(--sp-10);
    /* border: 1px solid var(--clr-border); */
    /* border-radius: var(--br-md); */
    /* background-color: var(--clr-white); */
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.contact-form .form-contact {
    margin-bottom: var(--sp-5);
}

.contact-form label {
    color: var(--clr-primary);
    font-size: var(--fs-p-small);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: 1px solid var(--clr-primary);
    border-radius: var(--br-full);
    background-color: transparent;
    color: var(--clr-primary);
    padding: 0.85rem 0.95rem;
    font-size: var(--fs-p-small);
    line-height: 1.4;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    animation: fadeIn 0.6s ease-out backwards;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(0, 84, 166, 0.65);
}

.contact-form textarea {
    min-height: 8rem;
    resize: vertical;
    border-radius: var(--br-md);
}

.contact-form select {
    appearance: none;
    /* background-image: linear-gradient(45deg, transparent 50%, var(--clr-primary) 50%), linear-gradient(135deg, var(--clr-primary) 50%, transparent 50%); */
    background-image: url(../assets/arrow-down.svg);
    background-position: right 1rem center, right 0.4rem center;
    background-size: 10px 10px, 10px 10px;
    background-repeat: no-repeat;
    padding-right: 2.4rem;
}

/* .contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--clr-gold);
    box-shadow: 0 0 0 3px rgba(198, 167, 117, 0.2);
    animation: glow 0.4s ease-out;
} */

/* .contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
    background-color: rgba(0, 84, 166, 0.02);
} */

.contact-form button,
.contact-form .button {
    width: 100%;
    margin-top: var(--sp-2);
}

/* Form Thank You Message */
.form-thank-you {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--sp-6);
    animation: fadeInUp 0.6s ease-out;
}

.form-thank-you h2 {
    font-family: var(--ff-playfair);
    font-size: var(--fs-h2);
    font-weight: 500;
    color: var(--clr-primary);
    margin-bottom: var(--sp-3);
}

.form-thank-you p {
    font-size: var(--fs-p-body);
    color: var(--clr-primary);
}

.form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.form-modal {
    background-color: var(--clr-bg);
    padding: var(--sp-8);
    border-radius: var(--br-lg);
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease-out;
    outline: none;
}

.form-modal h2 {
    font-family: var(--ff-playfair);
    font-size: var(--fs-h2);
    font-weight: 500;
    color: var(--clr-primary);
    margin-bottom: var(--sp-3);
}

.form-modal p {
    font-size: var(--fs-p-body);
    color: var(--clr-primary);
}

footer {
    background-color: var(--clr-primary);
    color: var(--clr-bg);
    animation: fadeInUp 1s ease-out;
}

.footer-container {
    padding: 0 5%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.footer-content>* {
    animation: fadeInUp 0.7s ease-out backwards;
}

.footer-content .links {
    margin-top: var(--sp-6);
    display: flex;
    gap: var(--sp-8);
}

.footer-content ul {
    margin-top: var(--sp-2);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.footer-content ul li {
    animation: fadeInUp 0.6s ease-out backwards;
}

.footer-content ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-content ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-content ul li:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-content ul li:nth-child(4) {
    animation-delay: 0.4s;
}

.footer-content .links h4 {
    font-family: var(--ff-jetbrains);
}

.links .services {
    display: none;
}

.footer-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
}

.footer-about img {
    width: 110px;
    height: auto;
}

.footer-about .button {
    background-color: var(--clr-gold);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-4) 0;
    border-top: 1px solid var(--clr-border);
}

.footer-bottom-info {
    display: flex;
    gap: var(--sp-2);
    align-items: center;
    color: var(--clr-gold);
}

/* HOME STYLES */

h2 {
    font-family: var(--ff-playfair);
    font-size: var(--fs-h3);
    animation: fadeInUp 0.8s ease-out backwards;
}

h3 {
    animation: fadeInUp 0.7s ease-out backwards;
}

h4 {
    animation: fadeInUp 0.6s ease-out backwards;
}

.about-us-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-1);
    /* margin-bottom: var(--sp-10); */
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: var(--sp-10);
}

.about-us-header .about-h2 {
    font-size: var(--fs-h3);
    font-weight: 400;
}

.about-us-header a {
    margin-top: var(--sp-4);
}

.home-images {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    width: 100%;
    margin-top: var(--sp-10);
    margin-bottom: var(--sp-10);
}

.home-images img {
    flex-shrink: 0;
    width: 200px;
    height: auto;
    opacity: 0.5;
    filter: brightness(1.1);
    animation: infiniteScroll 5s linear infinite;
}

.about-us-card-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--sp-4);
}

.about-us-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-6);
}

.about-us-card {
    background-color: var(--clr-surface);
    border-radius: var(--br-lg);
    padding: var(--sp-4);
    box-shadow: var(--shadow-sm);
}

.about-us-card[data-service-link],
.services-card[data-service-link] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-us-card[data-service-link]:hover,
.services-card[data-service-link]:hover,
.about-us-card[data-service-link]:focus-visible,
.services-card[data-service-link]:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 84, 166, 0.15);
}

.about-us-card img {
    width: var(--sp-6);
    height: var(--sp-6);
    margin-bottom: var(--sp-2);
}

.about-us-card h3 {
    font-family: var(--ff-playfair);
    font-size: var(--fs-h3);
    margin-bottom: var(--sp-2);
    font-weight: 500;
}

.testimonials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    width: 100%;
}

.testimonials-header {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.testimonials-cards-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: var(--sp-6);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    padding: var(--sp-1) 0;
}

.testimonials-cards-row::-webkit-scrollbar {
    display: none;
}

.testimonials-cards-row:active {
    cursor: grabbing;
}

.testimonial-card {
    flex-shrink: 0;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    background-color: var(--clr-surface);
    border-radius: var(--br-lg);
    padding: var(--sp-4);
    box-shadow: var(--shadow-sm);
    flex: 0 0 300px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.testimonial-card img {
    height: 12px;
    width: 60px;
}

.notarial-services {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
}

.notarial-image {
    background-color: var(--clr-bg);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--br-md);
    overflow: hidden; /* ensures border-radius visibly clips the image */
}

.notarial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--br-md);
    display: block;
}

.notarial-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
}

.notarial-info h2 {
    text-align: center;
}

.registered-bodies {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-4);
}

.registered-images img {
    height: var(--sp-10);
    width: auto;
}

.registered-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-3);
}

.legal-insights {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    width: 100%;
}

.legal-insights-cards-row {
    display: flex;
    flex-direction: row;
    gap: var(--sp-6);
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    padding: var(--sp-1) 0;
}

.legal-insights-cards-row::-webkit-scrollbar {
    display: none;
}

.legal-insights-cards-row:active {
    cursor: grabbing;
}

.legal-insights-card {
    position: relative;
    flex-shrink: 0;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    flex: 0 0 300px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* background-color: var(--clr-surface); */
    /* border-radius: var(--br-lg); */
    /* padding: var(--sp-4); */
    /* box-shadow: var(--shadow-sm); */
}

.legal-insights-card img {
    height: auto;
    /* height: 280px; */
    width: 300px;
    aspect-ratio: 1/1;
    /* aspect-ratio: 3/4; */
    object-fit: cover;
    border-radius: var(--br-sm);
    display: block;
    position: relative;
}

.legal-insights-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: var(--br-sm);
    pointer-events: none;
    z-index: 1;
}


.legal-insights-card div {
    background-color: var(--clr-surface);
    padding: var(--sp-4);
    border-radius: var(--br-md);
    box-shadow: var(--shadow-sm);
}

.legal-insights-card p {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-family: var(--ff-jetbrains);
    color: var(--clr-gold);
    font-size: var(--fs-p-body);
    font-weight: 500;
    z-index: 2;
}

/* SERVICES STYLES */
.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-6);
}

.services-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-6);
    width: 100%;
}

.services-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-3);
    background-color: var(--clr-surface);
    border-radius: var(--br-lg);
    padding: var(--sp-4);
    box-shadow: var(--shadow-sm);
}

.services-card img {
    width: var(--sp-6);
    height: var(--sp-6);
    animation: pulse 3s ease-in-out infinite;
}

.services-card h4 {
    font-size: var(--fs-h3);
    font-family: var(--ff-playfair);
    font-weight: 500;
}

/* TEAM STYLES */
.meet-the-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-6);
    animation: fadeInUp 0.8s ease-out;
}

.team-heading {
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    margin-bottom: var(--sp-4);
}

.teams-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    width: 100%;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--sp-2);
    /* line-height: 100%; */
    cursor: pointer;
    padding: 5px;
    border-radius: var(--br-md);
    box-shadow: none;
}

.team-card[data-team-link]:hover,
.team-card[data-team-link]:focus-visible {
    outline: none;
}

.team-card[data-team-link]:hover .team-image,
.team-card[data-team-link]:focus-visible .team-image {
    transform: scale(1.08);
}

.team-card h4 {
    font-size: var(--fs-p-hero);
    font-weight: 500;
}

.team-card p {
    font-size: var(--fs-p-small);
}

.team-card .small-text {
    font-size: 7px;
}

.team-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--br-md);
    background-color: grey;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-card .small-text {
    font-family: var(--ff-jetbrains);
}

.team-card .small-text:nth-child(6) {
    font-weight: 700;
    color: var(--clr-primary);
}

.not-sure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.not-sure h2 {
    animation: fadeInUp 0.7s ease-out backwards;
}

.not-sure-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.buttons-row {
    display: flex;
    gap: var(--sp-2);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    font-family: var(--ff-jetbrains);
}

.button-outline {
    background-color: transparent;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
    /* padding: var(--sp-2) var(--sp-4);
    font-size: var(--fs-p-small);
    font-weight: 500;
    border-radius: var(--br-full); */
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out backwards;
}

.button-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: 0 8px 20px rgba(0, 84, 166, 0.2);
    transform: translateY(-2px);
}

.button-outline:active {
    transform: translateY(0);
}

.support-team {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: var(--sp-8) var(--sp-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    text-align: center;
    width: 100%;
}

.support-team-row {
    display: flex;
    gap: var(--sp-6);
    align-items: center;
    justify-content: flex-start;
    cursor: grab;
    user-select: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--sp-1) 24px;
}

.support-team-row::-webkit-scrollbar {
    display: none;
}

.support-team-row:active {
    cursor: grabbing;
}

.support-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    /* background-color: white; */
    padding: var(--sp-4);
    /* border-radius: var(--br-md); */
    /* box-shadow: var(--shadow-md); */
    font-family: var(--ff-playfair);
    font-size: var(--fs-p-hero);
    flex-shrink: 0;
    flex: 0 0 calc(100vw - 48px);
    width: calc(100vw - 48px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    animation: fadeInUp 0.7s ease-out backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 84, 166, 0.15);
}

.support-card .button {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

/* ABOUT STYLES */
.about-company {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    /* text-align: center; */
    animation: fadeInUp 0.8s ease-out;
}

.our-values {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: var(--sp-4);
    /* text-align: center; */
    animation: fadeInUp 0.8s ease-out;
}

.our-values-head {
    justify-self: flex-start;
}


.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-2);
}

.value-card {
    /* width: 150px; */
    padding: var(--sp-1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.value-card:nth-child(1) {
    animation-delay: 0.1s;
}

.value-card:nth-child(2) {
    animation-delay: 0.2s;
}

.value-card:nth-child(3) {
    animation-delay: 0.3s;
}

.value-card h4 {
    color: var(--clr-gold);
    font-size: var(--fs-h4);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    align-items: flex-start;
}

.timeline-data {
    display: flex;
    gap: var(--sp-6);
    align-items: center;
}

.years {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    flex-shrink: 0;
}

.year {
    cursor: pointer;
    transition: color 0.3s ease;
    color: var(--clr-primary);
    font-weight: 500;
    /* padding: var(--sp-2); */
}

.year.active {
    color: var(--clr-gold);
}

.timeline-content {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    font-size: calc(var(--fs-h3) - 7px);
    justify-content: center;
}

.timeline-content .button {
    margin-top: auto;
    margin-top: var(--sp-3);
    width: fit-content;
}

/* INDIVIDUAL SERVICE PAGE STYLES */
.service-page-content {
    margin-top: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.desktop-buttons {
    display: none;
}

.service-page-content .service-nav,
.service-nav ul {
    display: none;
    flex-direction: column;
    gap: var(--sp-2);
    flex-shrink: 0;
}

.service-page-content .service-nav p {
    font-family: var(--ff-jetbrains);
}

.service-page-content .service-info {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.service-info h2 {
    font-size: var(--fs-h2);
}

.service-page-content .service-info h3 {
    animation: fadeInUp 0.7s ease-out backwards;
}

.service-page-content .service-info p {
    animation: fadeIn 0.7s ease-out backwards;
}

.service-info ul {
    list-style: disc;
    padding-left: var(--sp-4);
}

.service-info li {
    /* margin-bottom: var(--sp-2); */
    animation: fadeInUp 0.6s ease-out backwards;
}

.service-info li:nth-child(1) {
    animation-delay: 0.1s;
}

.service-info li:nth-child(2) {
    animation-delay: 0.2s;
}

.service-info li:nth-child(3) {
    animation-delay: 0.3s;
}

.service-info li:nth-child(4) {
    animation-delay: 0.4s;
}

.service-info li:nth-child(5) {
    animation-delay: 0.5s;
}

.buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    font-size: var(--fs-p-small);
    font-family: var(--ff-jetbrains);
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

.buttons a {
    animation: fadeIn 0.6s ease-out backwards;
    transition: all 0.3s ease;
}

.buttons a:nth-child(1) {
    animation-delay: 0.3s;
}

.buttons a:nth-child(2) {
    animation-delay: 0.4s;
}

.buttons a:hover {
    color: var(--clr-gold);
    transform: translateY(-2px);
}

/* TEAM MEMBER PAGE STYLES */
.team-member {
    margin-top: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.team-member-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
}

.team-member-top .image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--br-md);
    background-color: grey;
    overflow: hidden;
}

.team-member-top .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-member-top .team-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    border-radius: var(--br-md);
    overflow: hidden;
}

.team-member-top .info {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: var(--sp-2);
}

.team-member-top h2 {
    font-family: var(--ff-main);
}

.team-member-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.team-member-bottom ul {
    list-style: disc;
    padding-left: var(--sp-4);
}

.teams-grid-desk {
    display: none;
}

.large-content {
    margin-top: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.same-content {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.large-content p strong {
    font-size: var(--fs-h4);
}

.large-content h2 {
    font-family: var(--ff-playfair);
    font-size: var(--fs-h3);
    font-weight: 500;
}

.large-content ul {
    list-style: disc;
    padding-left: var(--sp-4);
}

.large-content li {
    animation: fadeInUp 0.6s ease-out backwards;
}

.large-content li:nth-child(1) {
    animation-delay: 0.1s;
}

.large-content li:nth-child(2) {
    animation-delay: 0.2s;
}

.large-content li:nth-child(3) {
    animation-delay: 0.3s;
}

.large-content li:nth-child(4) {
    animation-delay: 0.4s;
}

.large-content li:nth-child(5) {
    animation-delay: 0.5s;
}

/* CAREERS */
.careers-head {
    margin-top: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
}

.career-form form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    width: 100%;
    /* max-width: 500px; */
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.career-form {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.career-form label {
    color: var(--clr-primary);
    font-size: var(--fs-p-small);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.career-form input,
.career-form textarea,
.career-form select {
    width: 100%;
    border: 1px solid var(--clr-primary);
    border-radius: var(--br-full);
    background-color: transparent;
    color: var(--clr-primary);
    padding: 0.85rem 0.95rem;
    font-size: var(--fs-p-small);
    line-height: 1.4;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    animation: fadeIn 0.6s ease-out backwards;
}

.career-form input::placeholder,
.career-form textarea::placeholder {
    color: rgba(0, 84, 166, 0.65);
}

.career-form textarea {
    /* min-height: 8rem; */
    resize: vertical;
    border-radius: var(--br-md);
}

.career-form select {
    appearance: none;
    background-image: url(../assets/arrow-down.svg);
    background-position: right 1rem center, right 0.4rem center;
    background-size: 10px 10px, 10px 10px;
    background-repeat: no-repeat;
    padding-right: 2.4rem;
}

.career-form input:focus,
.career-form textarea:focus,
.career-form select:focus {
    outline: none;
    border-color: var(--clr-gold);
    box-shadow: 0 0 0 3px rgba(198, 167, 117, 0.2);
    animation: glow 0.4s ease-out;
}

.career-form input:hover,
.career-form textarea:hover,
.career-form select:hover {
    background-color: rgba(0, 84, 166, 0.02);
}

.career-form button,
.career-form .button {
    width: 100%;
    margin-top: var(--sp-2);
}

/* File Upload Styling */
.file-error {
    display: none;
    background-color: #fee;
    border: 1px solid #f99;
    border-radius: var(--br-md);
    padding: var(--sp-3);
    margin: var(--sp-2) 0;
    color: #c33;
    font-size: var(--fs-p-small);
    animation: fadeIn 0.3s ease-out;
}

.file-error.show {
    display: block;
}

.selected-files {
    margin: var(--sp-3) 0;
    padding: var(--sp-3);
    background-color: rgba(0, 84, 166, 0.05);
    border-radius: var(--br-md);
    border-left: 4px solid var(--clr-primary);
}

.selected-files.empty {
    display: none;
}

.selected-files h4 {
    font-size: var(--fs-p-small);
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: var(--sp-2);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-1) var(--sp-2);
    background-color: var(--clr-white);
    border-radius: var(--br-sm);
    margin-bottom: var(--sp-1);
    font-size: var(--fs-p-small);
    color: var(--clr-text);
    animation: slideInLeft 0.3s ease-out;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item-name {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    flex: 1;
    word-break: break-word;
}

.file-item-icon {
    min-width: 20px;
    font-weight: bold;
    color: var(--clr-primary);
}

.file-item-remove {
    background: none;
    border: none;
    color: #f66;
    cursor: pointer;
    font-weight: bold;
    padding: 0 var(--sp-1);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.file-item-remove:hover {
    color: #c33;
}

.name-section,
.number-section {
    width: 100%;
    display: flex;
    gap: var(--sp-2);
}

input[type="file"] {
    display: none;
}

.upload-doc {
    display: block;
    width: 100%;
    border: 1px solid var(--clr-primary);
    border-radius: var(--br-full);
    background-color: transparent;
    color: var(--clr-primary);
    padding: 0.85rem 0.95rem;
    font-size: var(--fs-p-small);
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    animation: fadeIn 0.6s ease-out backwards;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.upload-doc:hover {
    background-color: rgba(0, 84, 166, 0.05);
    border-color: var(--clr-gold);
    box-shadow: 0 4px 12px rgba(0, 84, 166, 0.1);
}

.consent {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.consent input[type="checkbox"] {
    flex-shrink: 0;
    width: auto;
    min-width: fit-content;
}

.consent label {
    flex: 1;
    font-size: var(--fs-p-small);
}

/* CONTACT PAGE */
.contact-form .form-heading {
    margin-top: var(--sp-5);
    text-align: center;
}

.contact-form .form-heading h2 {
    font-size: var(--fs-h2);
    font-weight: 500;
}

.other-contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    /* text-align: center; */
    animation: fadeInUp 0.8s ease-out 0.2s both;
    margin-bottom: var(--sp-10);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--sp-3);
    width: 100%;
}

.contact-card {
    font-size: var(--fs-p-body);
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.contact-card .icon {
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: var(--ff-jetbrains);
}

/* SITE MAP PAGE */

.site-map {
    margin-top: var(--sp-5);
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: var(--sp-6);
}

.site-map h2 {
    font-size: var(--fs-h2);
    font-weight: 500;
    text-align: center;
}

.site-map-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.site-map-box {
    width: 100%;
    border: 1px solid #0053a630;
    padding: var(--sp-2) var(--sp-5);
    border-radius: var(--br-full);
}

.site-map-box li {
    list-style: none;
}

/* Accordion Styles for Site Map */
.site-map-box.site-map-accordion {
    padding: 0;
}

.site-map-toggle-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-2) var(--sp-5);
}

.site-map-toggle-wrapper a {
    flex: 1;
    text-align: left;
}

.site-map-arrow-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: inherit;
    cursor: pointer;
    padding: var(--sp-1);
    /* margin-left: var(--sp-2); */
}

.site-map-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.site-map-arrow img {
    width: auto;
    height: 0.5rem;
    object-fit: contain;
}

.site-map-arrow-toggle[aria-expanded="true"] .site-map-arrow {
    transform: rotate(180deg);
}

.site-map-list {
    list-style: none;
    padding: 0 var(--sp-5) var(--sp-2);
    margin: 0;
    /* border-top: 1px solid #0053a630; */
}

/* .site-map-toggle-wrapper a {
    font-weight: 700;
} */

.site-map-accordion.is-expanded {
    border-radius: var(--br-md);
}

/* GALLERY PAGE */
.gallery {
    height: auto;
    margin-top: var(--sp-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4);
}

.gallery h2 {
    font-size: var(--fs-h2);
    font-weight: 500;
    margin-bottom: var(--sp-4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: var(--sp-1);
    width: 100%;
    height: auto;
    max-width: var(--container-width);
}

.gallery-card {
    width: 100%;
    height: 100%;
    border-radius: var(--br-sm);
    overflow: hidden;
    background-color: grey;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Every second card: spans 2 columns, 1 row */
.gallery-card:nth-child(2n) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 2 / 1;
}

/* Every third card: spans 3 columns, 2 rows */
.gallery-card:nth-child(3n) {
    grid-column: span 3;
    grid-row: span 2;
    aspect-ratio: 3 / 2;
}

/* First card: 1/1 ratio */
.gallery-card:nth-child(3n+1):not(:nth-child(2n)),
.gallery-card:first-child {
    aspect-ratio: 1 / 1;
}

/* Tablet: 2 column layout */
@media (min-width: 768px) and (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-card:nth-child(2n) {
        grid-column: span 2;
    }

    .gallery-card:nth-child(3n) {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* ============================================================
   JOURNAL & ARTICLES (Mobile First)
========================================================================== */
.filter-row {
    display: flex;
    gap: var(--sp-3);
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.filterchip {
    padding: var(--sp-2) var(--sp-5);
    background-color: #d7d7d7d3;
    border: 1px solid transparent;
    border-radius: var(--br-full);
    color: #0030607d;
    font-size: var(--fs-p-small);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filterchip.active {
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
}

.journals {
    margin-top: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}


/* Grid & Small Cards - Default to Column */
.journals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}

.journal-card {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    gap: var(--sp-2);
    border-radius: var(--br-md);
}

.journal-image {
    width: 100%;
    max-width: 100%;
    padding: var(--sp-2);
    background-color: var(--clr-surface);
    border-radius: var(--br-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.journal-image-inner {
    width: 100%;
    height: 100%;
    background-color: #c4c4c4;
    border-radius: var(--br-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-image img {
    display: none;
}

.journal-description {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: var(--sp-1);
    background-color: var(--clr-surface);
    border-radius: var(--br-md);
    padding: var(--sp-3);
    box-shadow: var(--shadow-md);
}

/* Internal Components (Typography/Shared) */
.top {
    max-width: 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--ff-jetbrains);
    font-size: var(--fs-p-xsmall);
}

.author {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    position: relative;
}

.author::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #c4c4c4;
    left: 0;
    z-index: 1;
}

.author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.text {
    font-family: var(--ff-main);
    font-size: var(--fs-p-body);
    color: var(--clr-primary);
    max-width: 300px;
    line-height: 1.4;
}

.bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* margin-bottom: var(--sp-1); */
    font-family: var(--ff-jetbrains);
    font-size: var(--fs-p-body);
}

.bottom .read-more {
    color: var(--clr-primary);
    font-size: var(--fs-p-xsmall);
}

.bottom .arrow {
    text-decoration: none;
    color: var(--clr-primary);
}

.bottom a:hover {
    color: var(--clr-gold);
    transition: color 0.3s ease;
}

/* ==========================================================================
    JS ANIMATION STYLES - Dynamic animations triggered by JavaScript
========================================================================== */

/* Scroll Animation States */
[data-animate],
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards !important;
}

[data-visible="false"] {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-burst 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-burst {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Button/Card Ripple Container */
.button,
.services-card[data-service-link],
.team-card[data-team-link],
[data-service-link] {
    position: relative;
    overflow: hidden;
}

/* Form Input Focus Animations */
.input-focused {
    animation: inputPulse 0.4s ease-out;
}

.input-focused input,
.input-focused textarea,
.input-focused select {
    background-color: rgba(0, 84, 166, 0.03) !important;
    border-color: var(--clr-primary) !important;
}

.has-focus {
    transform: scale(1.01);
}

@keyframes inputPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 84, 166, 0.3);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(0, 84, 166, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 84, 166, 0);
    }
}

/* List Item Animations */
.list-item-animate {
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Hover Active States */
.hover-active {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 84, 166, 0.2) !important;
}

.team-card.hover-active {
    box-shadow: none !important;
    transform: none;
}

.button.hover-active {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 84, 166, 0.25) !important;
}

/* Image Lazy Load Animation */
.image-loaded {
    animation: fadeIn 0.5s ease-out;
}

img[data-src] {
    opacity: 0;
}

/* Text Reveal Animation */
.text-reveal {
    display: flex;
    flex-wrap: wrap;
}

.char-reveal {
    display: inline-block;
    animation: charReveal 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes charReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight Focus State */
.highlight-focus {
    animation: highlightBlink 1s ease-in-out;
}

@keyframes highlightBlink {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(198, 167, 117, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

/* Active Section Link */
.c-nav__menu a.active-section {
    color: var(--clr-gold);
    border-bottom-color: var(--clr-gold);
    animation: activeLink 0.4s ease-out;
}

@keyframes activeLink {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Counter Animation */
.counter-value {
    font-weight: 700;
    font-size: var(--fs-h2);
    color: var(--clr-primary);
    animation: counterPulse 0.5s ease-out;
}

@keyframes counterPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Form Input Label Animation */
label {
    transition: all 0.3s ease;
}

.input-focused label {
    color: var(--clr-primary);
    font-weight: 700;
}

/* Button Loading State */
.button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.button.loading::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.5em;
    border: 2px solid var(--clr-white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Animation */
.success-state {
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Error Animation */
.error-state {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Fade In States for Different Elements */
/* Keep specific cards hidden until JS adds `.animate-in` when they enter view */
.about-us-card:not(.animate-in),
.services-card:not(.animate-in),
.timeline-content:not(.animate-in),
.team-card:not(.animate-in) {
    opacity: 0;
    transform: translateY(30px);
}

section:not(.animate-in) {
    opacity: 0;
    transform: translateY(30px);
}

section:nth-child(1) {
    animation-delay: 0s;
}

section:nth-child(2) {
    animation-delay: 0.1s;
}

section:nth-child(3) {
    animation-delay: 0.2s;
}

section:nth-child(n+4) {
    animation-delay: 0.3s;
}

/* ==========================================================================
    ALL BREAKPOINTS
========================================================================== */
@media (min-width: 768px) {

    :root {
        --fs-p-bg: 1.25rem;
        /* 20px constant on tablet/desktop */
    }

    /* Tablet */
    .banner {
        display: flex;
        background-color: var(--clr-gold);
        color: var(--clr-white);
        text-align: center;
        justify-content: flex-end;
        padding: var(--sp-1) var(--sp-6);
        gap: var(--sp-6);
        flex-wrap: wrap;
    }

    .timeline-content {
        font-size: calc(var(--fs-h3) - 5px);
        font-weight: 300;
        line-height: 1.2;
    }

    .l-container {
        width: min(100% - 4rem, var(--container-max));
    }

    /* HEADER */
    .header,
    .nav {
        padding: var(--sp-4) var(--sp-6);
    }

    .c-nav__hamburger {
        display: none;
    }

    .c-nav__menu {
        position: static;
        min-width: auto;
        display: flex;
        align-items: center;
        gap: var(--sp-4);
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background-color: transparent;
    }

    .c-nav__menu li+li {
        margin-top: 0;
    }

    .c-nav__menu a {
        width: auto;
        color: var(--clr-white);
        padding: 0;
        border-bottom: 0;
    }

    .c-nav__submenu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 16rem;
        background-color: var(--clr-bg);
        border: 1px solid var(--clr-border);
        border-radius: var(--br-md);
        padding: var(--sp-1) 0;
        box-shadow: var(--shadow-md);
        z-index: 1200;
    }

    .c-nav__item--dropdown:hover>.c-nav__submenu,
    .c-nav__item--dropdown:focus-within>.c-nav__submenu {
        display: block;
    }

    .c-nav__submenu li+li {
        margin-top: 0;
    }

    .c-nav__submenu a {
        display: block;
        width: 100%;
        padding: var(--sp-2) var(--sp-3);
        color: var(--clr-primary);
        font-size: var(--fs-p-small);
        font-weight: 500;
        border-bottom: 0;
        white-space: nowrap;
    }

    .c-nav__submenu a:hover,
    .c-nav__submenu a:focus-visible {
        background-color: rgba(0, 84, 166, 0.08);
    }

    .home-hero {
        background-image: url('../assets/hero_1920x1080.png');
    }

    .services-hero {
        background-image: url('../assets/image\ 7.jpg');
    }

    .hero {
        height: clamp(28rem, 16vw + 23rem, 43rem);
    }

    .hero-content {
        max-width: 850px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: var(--sp-6);
    }

    .contact-form {
        padding: var(--sp-5);
    }

    .contact-form form {
        max-width: 50rem;
    }

    .career-form {
        width: 100%;
    }

    .career-form form {
        width: 100%;
    }

    .contact-form button,
    .contact-form .button {
        width: 100%;
    }




    .footer-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
        gap: var(--sp-6);
        align-items: start;
        padding-top: 60px;
    }

    .footer-about {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-about {
        height: 100%;
        /* justify-content: space-between; */
    }

    .footer-about img {
        width: 180px;
    }

    .footer-content .links {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
        justify-content: flex-end;
        gap: var(--sp-5);
        flex-wrap: wrap;
        min-width: 0;
    }

    .links .services {
        display: block;
    }

    .footer-bottom {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        flex-direction: row;
        gap: var(--sp-4);
        /* justify-content: space-between; */
        align-items: center;
        flex-wrap: wrap;
        row-gap: var(--sp-3);
    }

    .footer-bottom-info {
        min-width: 0;
    }

    .footer-bottom-info a {
        overflow-wrap: anywhere;
    }

    /* HOME STYLES */

    .about-us-header {
        align-items: center;
        text-align: center;
    }

    .home-images {
        width: 100%;
        gap: var(--sp-6);
        margin-top: var(--sp-10);
        margin-bottom: var(--sp-10);
        padding: var(--sp-5) 0;
    }

    .home-images img {
        flex-shrink: 0;
        width: 400px;
    }

    .team-card .small-text {
        font-size: 11px;
    }

    .service-page-content .service-nav,
    .service-nav ul {
        display: flex;
    }

    .service-page-content {
        flex-direction: row;
        gap: var(--sp-10);
    }

    .desktop-buttons {
        display: flex;
        gap: var(--sp-3);
        align-items: center;
        margin-top: var(--sp-6);
    }

    .service-cta {
        display: none;
    }

    .buttons {
        display: none;
    }

    .service-info ul {
        padding-left: var(--sp-6);
    }

    .service-nav a.active {
        color: var(--clr-gold);
        outline: none;
    }

    .testimonials-cards-row {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .testimonial-card {
        flex-shrink: 0;
        width: 300px;
        min-width: 300px;
    }

    .notarial-services {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        /* margin: 0 auto; */
    }

    .notarial-image {
        background-color: var(--clr-bg);
        flex-basis: 30%;
        max-width: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--br-md);
        overflow: hidden; /* ensures border-radius visibly clips the image */
    }

    .notarial-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--br-md);
    }

    .notarial-info {
        flex-basis: 70%;
        max-width: 500px;
    }

    .legal-insights-cards-row {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .legal-insights-card {
        flex-shrink: 0;
        width: 300px;
        min-width: 300px;
    }

    .teams-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .support-team-row {
        justify-content: center;
        padding: var(--sp-1) 0;
    }

    .support-card {
        flex: 0 0 auto;
        width: auto;
        scroll-snap-align: start;
    }

    .not-sure {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: var(--sp-8);
        width: 100%;
    }

    .about-company {
        align-items: center;
        text-align: center;
    }

    .not-sure h2 {
        margin-bottom: 0;
        /* max-width: 300px; */
        flex-basis: 50%;
    }

    .not-sure-content {
        align-items: flex-start;
        flex-basis: 50%;
        width: 100%;
    }

    .our-values {
        align-items: center;
    }

    .our-values-head {
        text-align: center;
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        /* max-width: 1000px; */
        gap: var(--sp-4);
        /* margin: 0 auto; */
        justify-items: center;
    }

    .value-card {
        width: 100%;
    }

    /* Team Member Pages */
    .team-member {
        gap: var(--sp-4);
    }

    .team-member-top {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-6);
        align-items: center;
    }

    .team-member-top .image {
        width: 100%;
    }

    .teams-grid-desk {
        display: block;
        margin-top: var(--sp-10);
    }

    .teams-grid-desk .team-heading {
        text-align: center;
        margin-bottom: var(--sp-4);
    }

    .team-member .buttons {
        display: none;
    }

    .team-member-bottom ul {
        padding-left: var(--sp-6);
    }

    .large-content h2 {
        text-align: center;
    }

    .large-content ul {
        padding-left: var(--sp-6);
    }

    .careers-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .careers-head {
        text-align: center;
    }

    /* Journal & Articles (Tablet) */
    .first-card {
        flex-direction: row;
        align-items: stretch;
    }

    .first-card-image {
        flex: 1 1 50%;
        min-height: 320px;
    }

    .first-card-image img {
        max-height: none;
        height: 100%;
    }

    .first-card-description {
        flex-basis: 50%;
    }

    /* Grid becomes 2 columns */
    .filter-row {
        justify-content: space-between;
    }

    .journals {
        gap: var(--sp-10);
    }

    .journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Journal Cards become Horizontal */
    .journal-card {
        flex-direction: row;
        align-items: stretch;
    }

    .journal-description {
        height: 100%;
    }

    .journal-image {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
        aspect-ratio: 4 / 3;
    }

    .journal-description {
        min-width: 0;
        flex: 1;
    }

}


@media (min-width: 768px) and (max-width: 1199px) {
    .l-container {
        width: 70%;
    }

    .footer-content .links {
        justify-content: flex-start;
    }
}


@media (max-width: 1366px) {

    :root {
        --container-max: 95%;
    }

}

@media (min-width: 1200px) {
    :root {
        --fs-h1: clamp(1.5rem, 3.16vw + 0.7rem, 3.5rem);
        --fs-h2: clamp(1.438rem, 2.96vw + 0.69rem, 3.25rem);
        --fs-h3: clamp(1.188rem, 1.91vw + 0.71rem, 2.25rem);
        --fs-p-hero: clamp(0.75rem, 1.05vw + 0.49rem, 1.3rem);
        --fs-p-body: clamp(0.688rem, 0.66vw + 0.52rem, 0.95rem);
        --fs-p-small: clamp(0.563rem, 0.46vw + 0.45rem, 0.85rem);
    }

    .l-container {
        width: min(100% - 16rem, 55rem);
    }

    section {
        margin-bottom: var(--sp-10);
    }

    .about-us-cards-grid {
        gap: 2rem;
    }

    .about-us-card-heading{
        margin-bottom: var(--sp-6);
    }

    .services-grid {
        gap: 2rem;
    }

    .about-us-card,
    .services-card {
        padding: 1.2rem;
    }

    .about-us-card h3 {
        font-size: var(--fs-h4);
    }

    .about-us-card img,
    .services-card img {
        width: 2rem;
        height: 2rem;
    }

    .testimonial-card {
        padding: 1.2rem;
        width: 280px;
    }

    .legal-insights-card {
        width: 280px;
    }

    .support-card {
        padding: 1rem;
    }

    .value-card {
        padding: 0.5rem;
    }

    .team-card {
        gap: 0.8rem;
        padding: 2px;
    }

    /* Journal & Articles (Desktop) */
    .journals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .journal-card {
        flex-direction: row;
        align-items: stretch;
    }

    .journal-image {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
        aspect-ratio: 3 / 4;
    }

    .journal-description {
        flex: 1;
    }

    .top {
        font-size: 10px;
    }
}

@media (min-width: 1440px) {

    /* Large Desktop (Approaching the 1920px Figma canvas) */
    :root {
        --fs-h1: clamp(1.5rem, 3.16vw + 0.7rem, 3.7rem);
        --fs-h2: clamp(1.438rem, 2.96vw + 0.69rem, 3.4rem);
        --fs-h3: clamp(1.188rem, 1.91vw + 0.71rem, 2.4rem);
        --fs-p-hero: clamp(0.75rem, 1.05vw + 0.49rem, 1.4rem);
        --fs-p-body: clamp(0.688rem, 0.66vw + 0.52rem, 1.05rem);
        --fs-p-small: clamp(0.563rem, 0.46vw + 0.45rem, 0.9rem);
        --container-max: 1440px;
    }

    .l-container {
        width: min(100% - 18rem, 60rem);
    }

    .header {
        height: 80px;
    }

    .l-grid {
        gap: var(--sp-6);
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-height: 500px) and (orientation: landscape) {

    /* Landscape Mobile */
    .l-container {
        width: min(100% - 10rem, var(--container-max));
    }
}