/* ==========================================================================
   Optimal Law Solutions — Shared Stylesheet
   Used by: index.html, about.html, services.html, contact.html,
            newsletter.html, unsubscribe.html, terms.html, privacy.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    --brand-dark: #351525;
    --brand-panel: #51213A;
    --brand-accent: #E879A8;
    --brand-accent-hover: #C65383;
    --brand-light: #FFF5F9;
    --brand-text: #B77D98;

    --slate-50: #FFF8FB;
    --slate-100: #FCEEF4;
    --slate-200: #F5DCE7;
    --slate-300: #EAC2D3;
    --slate-400: #D69AB5;
    --slate-500: #B77D98;
    --slate-600: #965D78;
    --slate-700: #74425B;
    --slate-800: #512B40;
    --slate-900: #351525;

    --font-sans: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-serif: "Merriweather", Georgia, "Times New Roman", serif;

    --sidebar-width: 300px;
    --container: 1080px;
    --shadow-card: 0 20px 45px rgba(53, 21, 37, 0.08);
    --shadow-deep: 0 25px 60px rgba(35, 12, 25, 0.35);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--slate-600);
    background: var(--brand-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-dark);
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

::selection {
    background: var(--brand-accent);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 3px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--brand-light);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-accent);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100%;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--brand-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* --------------------------------------------------------------------------
   3. Layout: sidebar + main
   -------------------------------------------------------------------------- */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    background: var(--brand-dark);
    color: #fff;
    border-right: 1px solid var(--slate-800);
    box-shadow: var(--shadow-deep);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.brand i {
    font-size: 1.9rem;
    color: var(--brand-accent);
    transition: transform 0.4s ease;
}

.brand:hover i {
    transform: scale(1.08);
}

.menu-toggle {
    display: none;
    padding: 0.35rem 0.5rem;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.sidebar-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    overflow-y: auto;
}

.nav-label {
    margin: 0 0 1.5rem;
    color: var(--slate-500);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 0;
    color: var(--slate-300);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.nav-link i {
    width: 1rem;
    font-size: 0.55rem;
    color: var(--brand-accent);
    opacity: 0.85;
}

.nav-link:hover {
    color: var(--brand-accent);
    padding-left: 0.35rem;
}

.nav-link.active {
    color: var(--brand-accent);
    padding-left: 0.35rem;
    font-weight: 600;
}

.sidebar-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding-top: 3rem;
}

.sidebar-phone {
    color: var(--slate-500);
    font-size: 0.72rem;
    text-align: center;
}

.sidebar-phone i {
    margin-right: 0.35rem;
}

.main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin-left: var(--sidebar-width);
    background: var(--brand-light);
}

/* --------------------------------------------------------------------------
   4. Shared primitives
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

.container--narrow {
    max-width: 880px;
}

.container--tight {
    max-width: 620px;
}

.section {
    padding: 6rem 2rem;
}

.section--white {
    background: #fff;
    border-top: 1px solid var(--slate-200);
}

.section--muted {
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
}

.section--dark {
    background: var(--brand-dark);
    border-top: 1px solid var(--brand-accent);
    color: var(--slate-400);
}

.section--accent {
    position: relative;
    overflow: hidden;
    background: var(--brand-accent);
    border-top: 1px solid var(--brand-accent);
    color: #fff;
}

.section--dark .section-title,
.section--accent .section-title {
    color: #fff;
}

.eyebrow {
    display: block;
    margin-bottom: 1rem;
    color: var(--brand-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.8);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    line-height: 1.25;
}

.lead {
    color: var(--slate-600);
    font-size: 1.02rem;
    line-height: 1.8;
}

.lead--light {
    color: var(--slate-400);
}

.section-head {
    max-width: 46rem;
    margin-bottom: 3.5rem;
}

.section-head .lead {
    margin-top: 1.25rem;
}

.section-head--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
    align-items: start;
}

.split--center {
    align-items: center;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.75rem;
    color: var(--brand-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.3s ease, gap 0.3s ease;
}

.text-link:hover {
    gap: 0.85rem;
    color: var(--brand-accent-hover);
}

.center {
    text-align: center;
}

.mt-3 {
    margin-top: 3rem;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.25rem;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
        transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-dark {
    background: var(--brand-dark);
    color: #fff;
}

.btn-dark:hover {
    background: var(--slate-800);
    box-shadow: 0 12px 28px rgba(16, 38, 51, 0.22);
}

.btn-accent {
    background: var(--brand-accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--brand-accent-hover);
    box-shadow: 0 12px 28px rgba(8, 145, 178, 0.28);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   6. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 92vh;
    padding: 6rem 2rem;
    overflow: hidden;
    background: #fff;
}

.hero-icon {
    position: absolute;
    top: -8rem;
    right: -8rem;
    color: var(--brand-dark);
    font-size: 38rem;
    line-height: 1;
    opacity: 0.04;
    pointer-events: none;
    animation: rotateScale 30s linear infinite alternate;
}

@keyframes rotateScale {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.03;
    }
    100% {
        transform: scale(1.2) rotate(15deg);
        opacity: 0.08;
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 56rem;
}

.hero-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-rule::before {
    content: "";
    width: 4rem;
    height: 2px;
    background: var(--brand-accent);
}

.hero-kicker {
    color: var(--brand-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 2rem;
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    line-height: 1.1;
}

.hero h1 em {
    color: var(--brand-accent);
    font-style: italic;
}

.hero p {
    max-width: 42rem;
    margin-bottom: 2.75rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--slate-200);
    color: var(--slate-600);
    font-size: 1.06rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   7. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 2rem 4.5rem;
    background: var(--brand-dark);
    border-bottom: 4px solid var(--brand-accent);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -45%;
    width: 55%;
    aspect-ratio: 1;
    border: 1px solid rgba(8, 145, 178, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

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

.page-hero h1 {
    max-width: 46rem;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.page-hero p {
    max-width: 46rem;
    color: var(--slate-300);
    font-size: 1.02rem;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    color: var(--slate-500);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--slate-400);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   8. Stats panel
   -------------------------------------------------------------------------- */
.stats-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    background: #fff;
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-card);
}

.stats-panel::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--brand-accent);
}

.stat {
    padding: 1.4rem 0;
}

.stat + .stat {
    border-top: 1px solid var(--slate-100);
}

.stat-value {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--brand-dark);
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: var(--slate-400);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-mark {
    display: block;
    margin: 0 0 1.75rem;
    color: var(--slate-300);
    font-size: 2.8rem;
}

/* --------------------------------------------------------------------------
   9. Services — overview grid (home)
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--slate-200);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-accent);
    box-shadow: var(--shadow-card);
}

.service-num {
    display: block;
    color: var(--slate-200);
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    transition: color 0.35s ease;
}

.service-card:hover .service-num {
    color: var(--brand-accent);
}

.service-icon {
    margin: 0.35rem 0 0.5rem;
    color: var(--brand-accent);
    font-size: 1.6rem;
}

.service-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
}

.service-card p {
    flex: 1;
    color: var(--slate-600);
    font-size: 0.88rem;
    line-height: 1.7;
}

.service-link {
    margin-top: 0.75rem;
    color: var(--brand-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. Services — full page rows
   -------------------------------------------------------------------------- */
.service-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 2.5rem;
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--slate-100);
}

.service-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.service-row:first-child {
    padding-top: 0;
}

.service-row-head .service-num {
    font-size: 3.4rem;
}

.service-row-head i {
    display: block;
    margin: 1rem 0 0.85rem;
    color: var(--brand-accent);
    font-size: 1.7rem;
}

.service-row-head h2 {
    font-size: 1.45rem;
    line-height: 1.35;
}

.service-row-body p {
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.9;
}

/* --------------------------------------------------------------------------
   11. Approach cards (dark section)
   -------------------------------------------------------------------------- */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.75rem;
}

.approach-card {
    padding-top: 1.5rem;
    border-top: 2px solid var(--brand-accent);
}

.approach-card > i {
    display: block;
    margin-bottom: 1rem;
    color: var(--brand-accent);
    font-size: 1.7rem;
}

.approach-card h3 {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 1.15rem;
}

.approach-card p {
    color: var(--slate-400);
    font-size: 0.88rem;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-slider {
    display: grid;
    margin-top: 1rem;
}

.quote-mark {
    position: absolute;
    right: -6rem;
    bottom: -10rem;
    color: #000;
    font-size: 22rem;
    line-height: 1;
    opacity: 0.1;
    pointer-events: none;
}

.testimonial-slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(1.5rem);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.testimonial-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 0.8rem;
}

.testimonial-quote {
    max-width: 46rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 300;
    line-height: 1.5;
}

.testimonial-author {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.slider-dot {
    width: 3rem;
    height: 4px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-dot.is-active {
    background: #fff;
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--slate-200);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: var(--slate-300);
}

.faq-item[open] {
    border-color: var(--brand-accent);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    color: var(--brand-dark);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    flex-shrink: 0;
    color: var(--brand-accent);
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary i {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--slate-600);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   14. Newsletter CTA (home)
   -------------------------------------------------------------------------- */
.newsletter-cta {
    text-align: center;
}

.cta-icon {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--slate-500);
    font-size: 2.6rem;
}

.newsletter-cta .lead {
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.micro {
    margin-top: 1.5rem;
    color: var(--slate-500);
    font-size: 0.8rem;
}

.micro a {
    color: var(--brand-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.micro a:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
    align-items: start;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
}

.info-item > i {
    width: 1.7rem;
    margin-top: 0.15rem;
    color: var(--slate-300);
    font-size: 1.35rem;
    text-align: center;
}

.info-item h3 {
    margin-bottom: 0.35rem;
    color: var(--brand-dark);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.info-item p {
    color: var(--slate-600);
    font-size: 0.92rem;
}

.info-item a:hover {
    color: var(--brand-accent);
}

.badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.2rem 0.45rem;
    background: var(--brand-accent);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.form-card {
    padding: 2.5rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
}

.form-title {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--slate-200);
    font-size: 1.15rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

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

.form-field--full {
    grid-column: 1 / -1;
}

.form-card label {
    color: var(--slate-500);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--slate-300);
    border-radius: 0;
    color: var(--brand-dark);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--slate-400);
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.textarea {
    min-height: 8rem;
    resize: none;
}

.form-card .btn {
    margin-top: 1.75rem;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-200);
}

.checkbox-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.2rem;
    accent-color: var(--brand-accent);
    cursor: pointer;
}

.checkbox-row label {
    color: var(--slate-500);
    font-size: 0.83rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.65;
    text-transform: none;
    cursor: pointer;
}

.checkbox-row a {
    color: var(--brand-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-note {
    margin-top: 1.75rem;
    color: var(--slate-500);
    font-size: 0.82rem;
    text-align: center;
}

.form-note a {
    color: var(--brand-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.form-note a:hover {
    color: var(--brand-accent-hover);
}

/* Dark form variant (newsletter) */
.form-card--dark {
    background: var(--slate-800);
    border-color: var(--slate-700);
}

.form-card--dark .form-title {
    color: #fff;
    border-bottom-color: var(--slate-700);
}

.form-card--dark label {
    color: var(--slate-400);
}

.form-card--dark .input,
.form-card--dark .textarea,
.form-card--dark .select {
    background: var(--slate-900);
    border-color: var(--slate-600);
    color: #fff;
}

.form-card--dark .input::placeholder,
.form-card--dark .textarea::placeholder {
    color: var(--slate-500);
}

.form-card--dark .input:focus,
.form-card--dark .textarea:focus,
.form-card--dark .select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.18);
}

.form-card--dark input[type="date"] {
    color-scheme: dark;
}

.form-card--dark .checkbox-row {
    border-top-color: var(--slate-700);
}

.form-card--dark .checkbox-row label {
    color: var(--slate-400);
}

.form-card--dark .checkbox-row a {
    color: var(--brand-accent);
}

.form-icon {
    display: block;
    margin-bottom: 1rem;
    color: var(--slate-300);
    font-size: 2.4rem;
}

/* --------------------------------------------------------------------------
   17. Call-to-action band
   -------------------------------------------------------------------------- */
.cta-band {
    padding: 4rem 2rem;
    background: var(--brand-dark);
    border-top: 3px solid var(--brand-accent);
}

.cta-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: var(--container);
    margin: 0 auto;
}

.cta-band h2 {
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.cta-band p {
    max-width: 38rem;
    color: var(--slate-400);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   18. Link list (about page)
   -------------------------------------------------------------------------- */
.link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 2rem;
    list-style: none;
}

.link-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--slate-600);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--slate-200);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.link-list a i {
    width: 0.85rem;
    color: var(--brand-accent);
    font-size: 0.5rem;
}

.link-list a:hover {
    padding-left: 0.35rem;
    color: var(--brand-accent);
}

/* --------------------------------------------------------------------------
   19. Legal documents (terms & privacy)
   -------------------------------------------------------------------------- */
.legal-doc {
    padding: clamp(1.75rem, 4vw, 3rem);
    background: #fff;
    border: 1px solid var(--slate-200);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.legal-doc h2 {
    margin: 2.5rem 0 0.85rem;
    padding-top: 1.9rem;
    border-top: 1px solid var(--slate-100);
    color: var(--brand-dark);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-doc h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal-doc p {
    color: var(--slate-600);
    font-size: 0.92rem;
    line-height: 1.9;
}

.legal-foot {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-200);
    color: var(--slate-500);
    font-size: 0.85rem;
}

.legal-foot a {
    color: var(--brand-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 3rem 2rem;
    background: #0b1120;
    border-top: 1px solid var(--slate-800);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

.footer-brand {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--slate-400);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    color: var(--slate-600);
    font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   21. Toast notification
   -------------------------------------------------------------------------- */
.toast-region {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 300px;
    max-width: 380px;
    padding: 1rem 1.15rem;
    background: var(--brand-dark);
    border-left: 3px solid var(--brand-accent);
    box-shadow: var(--shadow-deep);
    color: #fff;
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: auto;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

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

.toast-icon {
    color: var(--brand-accent);
    font-size: 1.1rem;
    line-height: 1.5;
}

.toast-body {
    flex: 1;
}

.toast-title {
    display: block;
    margin-bottom: 0.15rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toast-msg {
    display: block;
    color: var(--slate-300);
    font-size: 0.84rem;
    line-height: 1.55;
}

.toast-close {
    padding: 0;
    background: none;
    border: 0;
    color: var(--slate-500);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   22. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    :root {
        --sidebar-width: 270px;
    }

    .hero-icon {
        font-size: 30rem;
    }

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

@media (min-width: 1024px) {
    html {
        scroll-padding-top: 24px;
    }
}

@media (max-width: 1023px) {
    body {
        display: block;
    }

    .sidebar {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        border-right: 0;
    }

    .sidebar-head {
        padding: 1.1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .brand {
        font-size: 0.95rem;
    }

    .brand i {
        font-size: 1.7rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .sidebar-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 72px);
        padding: 1.5rem 1.5rem 2rem;
        overflow-y: auto;
        background: var(--brand-dark);
        border-bottom: 1px solid var(--slate-800);
        box-shadow: 0 25px 45px rgba(2, 6, 23, 0.45);
    }

    .sidebar-nav.is-open {
        display: flex;
    }

    .sidebar-cta {
        padding-top: 1.5rem;
    }

    .main {
        margin-left: 0;
    }

    .hero {
        min-height: auto;
        padding: 5rem 1.5rem;
    }

    .section {
        padding: 4.5rem 1.5rem;
    }

    .page-hero {
        padding: 4.5rem 1.5rem 3.5rem;
    }
}

@media (max-width: 900px) {
    .split,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cards-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2.75rem 0;
    }

    .service-row-head .service-num {
        font-size: 2.8rem;
    }

    .link-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .form-card {
        padding: 1.75rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .toast-region {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }

    .toast {
        min-width: 0;
        width: 100%;
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   24. Accessibility / motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
