/* base.css
   Reset, page gutter, shared components, keyframes and breakpoints.
   Loaded on every page. */

:root {
    --content: 1500px;
    --gutter: max(6.5%, calc((100% - var(--content)) / 2));
}

@media (max-width: 430px) {
    :root {
        --gutter: 5%;
    }
}

* {
    margin: 0;
    scroll-behavior: smooth;
}

  /* font-family: "Montserrat", sans-serif; */
  /* font-family: "Lora", serif; */

body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background-color: white;
}


/* ---------- shared ---------- */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    margin-bottom: 45px;
}

.heading h2 {
    font-family: "Lora", serif;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 600;
    color: #0d2b4a;
}

.heading p {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(13px, 1.4vw, 15px);
    color: rgba(1, 1, 1, 0.6);
}


/* ---------- cta band ---------- */

.cta-band {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 90px var(--gutter);
    box-sizing: border-box;
    background-image: linear-gradient(120deg, #0a2540, #0d3a63);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background-color: rgba(8, 114, 189, 0.18);
    animation: float-slow 9s ease-in-out infinite;
}

.cta-band::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(8, 114, 189, 0.12);
    animation: float-slow 11s ease-in-out infinite reverse;
}

.cta-band .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-band .content h2 {
    font-family: "Lora", serif;
    font-size: clamp(28px, 4.0vw, 44px);
    font-weight: 600;
}

.cta-band .content > p {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(13px, 1.4vw, 15px);
    color: rgba(255, 255, 255, 0.78);
}

.cta-band .content .actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}

.cta-band .content .actions button,
.cta-band .content .actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px 28px;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: clamp(12px, 1.4vw, 15px);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.cta-band .content .actions button i,
.cta-band .content .actions a i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-band .content .actions .primary {
    background-color: #0872bd;
    color: white;
}

.cta-band .content .actions .primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(8, 114, 189, 0.45);
}

.cta-band .content .actions .ghost {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta-band .content .actions .ghost:hover {
    background-color: white;
    color: #0d2b4a;
    transform: translateY(-3px);
}

.cta-band .content .actions .ghost i {
    font-size: clamp(20px, 2.2vw, 24px);
    transition: transform 0.3s ease;
}

.cta-band .content .actions .ghost:hover i {
    transform: translateX(5px);
}

.cta-band .content .no-fee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1.2vw, 13px);
    color: rgba(255, 255, 255, 0.7);
}

.cta-band .content .no-fee i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6aa9dd;
}


/* ---------- keyframes ---------- */

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rise-up {
    from {
        transform: translateY(40px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes float-slow {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(28px) translateX(-18px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}


/* ---------- clickable practice cards ---------- */

.how-we-help .cards a.card {
    text-decoration: none;
}

.cta-band .content .actions a.primary {
    text-decoration: none;
}


/* ---------- responsive additions ---------- */


/* ---------- responsive ---------- */


/* ---------- page hero (states, practice areas index) ---------- */

.state-hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 75px var(--gutter);
    box-sizing: border-box;
    background-image: linear-gradient(120deg, #0a2540, #0d3a63);
    color: white;
}

.state-hero .content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 780px;
}

.state-hero .content h5 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(10px, 1.2vw, 13px);
    letter-spacing: 1.5px;
    color: #6aa9dd;
}

.state-hero .content h1 {
    font-family: "Lora", serif;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 600;
    line-height: 1.18;
}

.state-hero .content p {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(12px, 1.4vw, 15px);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.85;
}

.state-hero .content .actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.state-hero .content .actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: clamp(11px, 1.2vw, 13px);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.state-hero .content .actions .primary {
    background-color: #0872bd;
    color: white;
}

.state-hero .content .actions .ghost {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.state-hero .content .actions a:hover {
    transform: translateY(-3px);
}

.state-hero .content .actions .ghost:hover {
    background-color: white;
    color: #0d2b4a;
}

.state-hero .content .actions i {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* section eyebrow, shared by the centred headings */
.heading h5 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1.2vw, 13px);
    letter-spacing: 1.8px;
    font-weight: 700;
    color: #0872bd;
    margin-bottom: 2px;
}

.case-results .heading h5 {
    color: #7cb8e8;
}


/* ---------- reveal variants ---------- */

/* sections that come in from the side rather than every block sliding up */
.reveal-left {
    opacity: 0;
    transform: translateX(-38px);
    transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(38px);
    transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* image panels grow into place */
.reveal-zoom {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal-zoom.is-visible {
    opacity: 1;
    transform: scale(1);
}


/* ---------- legal pages ---------- */

.legal-body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 70px var(--gutter);
    box-sizing: border-box;
    background-color: white;
}

.legal-body article {
    max-width: 760px;
    width: 100%;
}

.legal-body section {
    padding-bottom: 30px;
}

.legal-body h2 {
    font-family: "Lora", serif;
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 600;
    color: #0d2b4a;
    padding-bottom: 10px;
}

.legal-body p {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(13px, 1.35vw, 14.5px);
    color: rgba(1, 1, 1, 0.68);
    line-height: 1.85;
    padding-bottom: 12px;
}

.legal-body .note {
    padding: 14px 16px;
    margin-bottom: 26px;
    border-radius: 8px;
    background-color: #f6f8fa;
    border-left: 3px solid #0872bd;
    font-size: clamp(12px, 1.25vw, 13px);
}

.legal-body a {
    color: #0872bd;
    font-weight: 600;
}
