/* ===================================================================
   BASE STYLES — Reset, CSS Variables, Typography, Utilities
   =================================================================== */

/* ── CSS Custom Properties ── */
:root {
    /* Primary Colors */
    --color-navy: #07324A;
    --color-teal: #00AFAA;
    --color-yellow: #F4CD0C;

    /* Secondary Colors */
    --color-teal-light: #4CC7C3;
    --color-blue-muted: #4A748B;
    --color-green-soft: #7BC794;

    /* Text Colors */
    --color-text: #10405A;
    --color-text-muted: #969BAB;
    --color-text-light: #B6B9C4;
    --color-text-white: #FFFFFF;

    /* Background Colors */
    --color-bg-white: #FFFFFF;
    --color-bg-offwhite: #F4F9F9;
    --color-bg-gray: #F5F5F7;
    --color-bg-lightblue: #E0EDF4;

    /* Gradients */
    --gradient-teal: radial-gradient(circle, #16A29F, #13B4A2);

    /* Typography */
    --font-heading: 'Ubuntu', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-condensed: 'Roboto Condensed', sans-serif;
    --font-accent: 'Titillium Web', sans-serif;

    /* Spacing — values from Webflow source */
    --container-max: 940px;
    --container-padding: 20px;
    --section-padding: 100px;
    --grid-gap: 30px;
    --card-padding: 30px;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 20px;

    /* Additional colors from Webflow */
    --color-bg-whyus: #F5FAFC;
    --color-border-soft: #EEF5F9;
    --color-border-card: #CACDD5;
    --color-border-divider: #E0E1E6;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-widget: 500;

    /* Webflow CSS variable aliases (used in extracted section CSS) */
    --113f59: #113f59;
    --7a7a7a: #7a7a7a;
    --05afaa: #05afaa;
    --ffffff: white;
    --f4cd0c: #f4cd0c;
    --10405a: #10405a;
    --rv-primary-500: #10405a;
    --00afaa: #00afaa;
    --rv-primary-700: #072e45;
    --darker-ssid: #10405a;
    --638198: #638198;
    --2a3c4c: #2a3c4c;
    --0d0e0e: #0d0e0e;
}

/* ── Modern CSS Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-teal-light);
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 10px;
}

/* Typography scale from Webflow: .rv-h1, .rv-h2, .rv-h3 */
h1 {
    font-size: 48px;
    line-height: 1.2;
}

h2 {
    font-size: 2.25rem; /* 36px — .rv-h2 */
    line-height: 1.3;
}

h3 {
    font-size: 28px; /* .rv-h3 */
    line-height: 1.5;
}

h4 {
    font-size: 20px;
    font-weight: 600;
}

h5 {
    font-size: 18px;
    font-weight: 500;
}

h6 {
    font-size: 16px;
    font-weight: 500;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* ── Layout ── */
.rv-container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.rv-container--narrow {
    max-width: 800px;
}

.rv-container--wide {
    max-width: 1400px;
}

.rv-section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.rv-section--gray {
    background-color: var(--color-bg-gray);
}

.rv-section--offwhite {
    background-color: var(--color-bg-offwhite);
}

.rv-section--navy {
    background-color: var(--color-navy);
    color: var(--color-text-white);
}

.rv-section--navy h2,
.rv-section--navy h3,
.rv-section--navy h4 {
    color: var(--color-text-white);
}

.rv-section--lightblue {
    background-color: var(--color-bg-lightblue);
}

.rv-section--whyus {
    background-color: #F5FAFC;
}

/* ── Section Headers ── */
.rv-section-header {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.rv-section-header__label {
    display: inline-block;
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-teal);
    margin-bottom: 12px;
}

.rv-section-header__title {
    font-size: 36px;
    margin-bottom: 16px;
}

.rv-section-header__subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ── Grid ── */
.rv-grid {
    display: grid;
    gap: var(--grid-gap);
}

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

.rv-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.rv-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Buttons ── */
.rv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
}

.rv-btn--primary {
    background-color: var(--color-teal);
    color: var(--color-text-white);
    border-color: var(--color-teal);
}

.rv-btn--primary:hover {
    background-color: #009994;
    border-color: #009994;
    color: var(--color-text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rv-btn--secondary {
    background-color: var(--color-yellow);
    color: var(--color-navy);
    border-color: var(--color-yellow);
}

.rv-btn--secondary:hover {
    background-color: #e3be0b;
    border-color: #e3be0b;
    color: var(--color-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rv-btn--outline {
    background-color: transparent;
    color: var(--color-teal);
    border-color: var(--color-teal);
}

.rv-btn--outline:hover {
    background-color: var(--color-teal);
    color: var(--color-text-white);
    transform: translateY(-2px);
}

.rv-btn--outline-white {
    background-color: transparent;
    color: var(--color-text-white);
    border-color: var(--color-text-white);
}

.rv-btn--outline-white:hover {
    background-color: var(--color-text-white);
    color: var(--color-navy);
    transform: translateY(-2px);
}

.rv-btn--lg {
    padding: 18px 40px;
    font-size: 16px;
}

.rv-btn--sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* ── Cards ── */
.rv-card {
    background-color: var(--color-bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.rv-card__body {
    padding: var(--card-padding);
}

.rv-card__image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.rv-card__title {
    font-size: 20px;
    margin-bottom: 12px;
}

.rv-card__title a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.rv-card__title a:hover {
    color: var(--color-teal);
}

.rv-card__text {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.rv-card__category {
    display: inline-block;
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-teal);
    margin-bottom: 8px;
}

.rv-card__date {
    display: block;
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 12px;
}

/* ── Tags / Badges ── */
.rv-tag {
    display: inline-block;
    padding: 4px 12px;
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    background-color: var(--color-bg-offwhite);
    color: var(--color-text-muted);
}

.rv-tag--teal {
    background-color: rgba(0, 175, 170, 0.1);
    color: var(--color-teal);
}

/* ── Stars ── */
.rv-stars {
    display: inline-flex;
    gap: 2px;
}

.rv-stars__star {
    color: var(--color-text-light);
}

.rv-stars__star--filled {
    color: var(--color-yellow);
}

/* ── Scroll Animations ── */
.rv-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rv-animate.rv-visible {
    opacity: 1;
    transform: translateY(0);
}

.rv-animate[data-delay="1"] { transition-delay: 0.1s; }
.rv-animate[data-delay="2"] { transition-delay: 0.2s; }
.rv-animate[data-delay="3"] { transition-delay: 0.3s; }
.rv-animate[data-delay="4"] { transition-delay: 0.4s; }
.rv-animate[data-delay="5"] { transition-delay: 0.5s; }

/* ── Utility Classes ── */
.rv-text-center { text-align: center; }
.rv-text-left { text-align: left; }
.rv-text-right { text-align: right; }

.rv-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip link — visible on focus for keyboard navigation */
.rv-skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 999;
    width: auto;
    height: auto;
    padding: 12px 24px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: var(--color-navy);
    color: var(--color-text-white);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}
