/* ==========================================
   MODERN TEMPLATE — GLOBAL STYLESHEET
   A clean, sophisticated design system
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;
    background-color: var(--background-color);
    font-family: var(--font-body);
    color: var(--body-text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.spread-section {
    margin: 45px 0;
}

/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #00b4d8;

    /* Automatically derived shades */
    --primary-color-hover: color-mix(in srgb, var(--primary-color), white 15%);
    --primary-color-light: color-mix(in srgb, var(--primary-color), white 92%);
    --primary-color-active: color-mix(in srgb, var(--primary-color), black 10%);
    --primary-color-subtle: color-mix(in srgb, var(--primary-color), white 95%);

    --on-primary-color: white;
    --background-color: #ffffff;
    --background-color-alt: #f7f9fc;
    --header-color: #1a2332;
    --body-text-color: #4a5568;
    --card-color: #ffffff;
    --footer-color: #1a2332;
    --nav-text-color: #1a2332;
    --nav-text-hover-color: var(--primary-color);
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);

    --font-headline: "Playfair Display", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-med: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    padding: 8px 0;
}

.nav.visible {
    animation: slideFadeIn 1s forwards;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    color: var(--nav-text-color);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

.nav-logo {
    width: auto;
    height: 42px;
    padding: 10px;
    margin: auto;
}

.nav a:hover {
    color: var(--primary-color);
    background-color: var(--primary-color-light);
}

.menu-row {
    display: none;
    flex-direction: row;
    align-items: center;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 4px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-color);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    left: -15px;
    z-index: 10;
    overflow: hidden;
    margin-top: 4px;
    border: 1px solid var(--border-color);
}

.dropdown-content a {
    color: var(--nav-text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-radius: 0;
    font-size: 15px;
}

.dropdown-content a:hover {
    background-color: var(--primary-color-light);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu */
.menu-button {
    font-size: 24px;
    padding: 18px;
    margin-right: 12px;
    width: 40px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--nav-text-color);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    border-radius: var(--radius-xl);
    background: white;
    z-index: 10;
    box-shadow: var(--shadow-xl);
    animation: slideFadeIn 0.25s forwards;
    border: 1px solid var(--border-color);
}

.mobile-menu a {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--nav-text-color);
    font-weight: 500;
    font-size: 18px;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.mobile-menu-header a {
    padding: 0;
    border-bottom: none;
    font-size: 18px;
}

.submenu-toggle {
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0 10px;
}

.mobile-submenu {
    display: none;
    background-color: var(--background-color-alt);
}

.mobile-submenu a {
    font-size: 16px;
    font-weight: normal;
    padding-left: 40px;
}

.mobile-submenu.open {
    display: flex;
    flex-direction: column;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,
h2,
h3 {
    font-family: var(--font-headline);
    color: var(--header-color);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
}

h4,
h5,
h6 {
    font-family: var(--font-body);
    color: var(--header-color);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

h1.visible,
h2.visible {
    animation: pulse 2s forwards;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    text-align: left;
    padding-top: 15px;
    padding-bottom: 10px;
}

h4 {
    font-size: 1.5rem;
    padding-top: 15px;
    padding-bottom: 10px;
}

h5 {
    font-size: 1.25rem;
    padding-top: 12px;
    padding-bottom: 8px;
}

h6 {
    font-size: 1.1rem;
    padding-top: 10px;
    padding-bottom: 8px;
}

/* ==========================================
   PARAGRAPHS & TEXT
   ========================================== */
p {
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    color: var(--body-text-color);
}

p.visible {
    animation: fadeIn 1s forwards;
}

.p1 {
    font-size: 24px;
}

.p2 {
    font-size: 22px;
}

.p3 {
    font-size: 20px;
}

.smallp {
    font-size: 15px;
    line-height: 1.6;
}

.p-header {
    padding: 15px 0;
    font-weight: 600;
    font-size: 22px;
    position: relative;
}

.capped {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bolded {
    font-weight: 700;
}

.colored {
    color: var(--primary-color);
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

/* ==========================================
   BUTTONS & LINKS
   ========================================== */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--on-primary-color) !important;
    text-decoration: none;
    padding: 14px 32px;
    font-size: 15px;
    border: none;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
    cursor: pointer;
    font-family: var(--font-body);
}

.button:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.bdisabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}

.bdisabled:hover {
    transform: none;
    box-shadow: none;
}

.button-alt {
    background-color: var(--secondary-color);
}

.boutlined {
    background-color: transparent;
    display: inline-block;
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
}

.boutlined:hover {
    background-color: var(--primary-color);
    color: white !important;
}

.btext {
    background-color: transparent;
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transform: none;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    padding: 12px 24px;
}

.btext:hover {
    cursor: pointer;
    transform: none;
    background-color: var(--primary-color-light);
}

.barrow {
    position: relative;
}

.barrow:hover {
    transform: none;
}

.barrow::after {
    content: "";
    transition: margin var(--transition-med);
}

.barrow:hover::after {
    content: " →";
    margin-left: 8px;
}

.card {
    background-color: var(--card-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-med);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-border {
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-color);
}

.clicklink {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.clicklink:hover {
    color: var(--primary-color-hover);
    text-decoration: underline;
    cursor: pointer;
}

.quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
    gap: 10px;
    padding: 10px;
    flex-wrap: wrap;
}

.chip {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.chip:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hoverbump:hover {
    background-color: var(--primary-color-light);
    transform: translateY(-3px);
    cursor: pointer;
}

/* ==========================================
   TABLES
   ========================================== */
table {
    border-collapse: collapse;
    background-color: var(--card-color);
    border-radius: var(--radius-md);
    border-style: hidden;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th,
td {
    padding: 14px 18px;
    text-align: center;
    border: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: var(--on-primary-color);
    border: hidden;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

tr:nth-child(even) {
    background-color: var(--background-color-alt);
}

td {
    color: var(--body-text-color);
    border-top: hidden;
    border-bottom: hidden;
    font-size: 15px;
}

th:first-of-type {
    border-top-left-radius: var(--radius-md);
}

th:last-of-type {
    border-top-right-radius: var(--radius-md);
}

tr:last-of-type td:first-of-type {
    border-bottom-left-radius: var(--radius-md);
}

tr:last-of-type td:last-of-type {
    border-bottom-right-radius: var(--radius-md);
}

/* ==========================================
   IMAGES
   ========================================== */
.lightbox-img {
    cursor: zoom-in;
    transition: transform var(--transition-med);
}

.lightbox-img:hover {
    transform: scale(1.03);
}

.round {
    border-radius: var(--radius-lg);
}

.rounder {
    border-radius: var(--radius-xl);
}

.circle {
    border-radius: 50%;
}

/* ==========================================
   LAYOUTS
   ========================================== */
.content {
    min-height: 85vh;
    padding-bottom: 45px;
}

.contained {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.contained-narrow {
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-row {
        display: flex;
    }
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.padded {
    padding: 24px;
}

.padded-v {
    padding-top: 24px;
    padding-bottom: 24px;
}

.padded-h {
    padding-left: 24px;
    padding-right: 24px;
}

.lrcontainer {
    display: flex;
    gap: 40px;
    margin: 0 auto;
    align-items: center;
}

.left-side {
    flex: 1;
}

.right-side {
    flex: 1;
}

.left-side.visible {
    animation: slideInLeft 1s forwards;
}

.right-side.visible {
    animation: slideInRight 1s forwards;
}

.tri-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .lrcontainer {
        flex-direction: column;
    }

    .tri-col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   STAR RATINGS
   ========================================== */
.stars {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-card {
    background: var(--card-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-med);
    text-align: left;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.review-card .quote {
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
    color: var(--body-text-color);
    margin-bottom: 16px;
}

.review-card .reviewer {
    font-weight: 600;
    color: var(--header-color);
    font-size: 15px;
}

/* ==========================================
   TEAM PROFILES
   ========================================== */
.team-card {
    text-align: center;
    transition: all var(--transition-med);
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-photo {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color-light), #e2e8f0);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo i {
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.3;
}

.team-name {
    font-family: var(--font-headline);
    font-size: 22px;
    color: var(--header-color);
    margin-bottom: 4px;
    font-weight: 700;
}

.team-title {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.team-bio {
    font-size: 14px;
    color: var(--body-text-color);
    margin-top: 8px;
    line-height: 1.6;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.popInChildren>*.visible {
    animation: popIn 0.8s forwards;
}

.pulseInChildren>*.visible {
    animation: pulse 0.8s forwards;
}

.slideFadeInChildren>*.visible {
    animation: slideFadeIn 0.8s forwards;
}

.animated.visible {
    animation-fill-mode: forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-60px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(60px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--footer-color);
    color: #a0aec0;
    padding: 30px 0;
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-bar p {
    margin: 0;
    font-size: 13px;
    color: #718096;
}

.footer-bottom-bar a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom-bar a:hover {
    color: white;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: #718096;
    font-size: 20px;
    transition: all var(--transition-fast);
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 750px) {
    .footer-bottom-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.lightbox-img {
    max-width: 80%;
    max-height: 80%;
    border-radius: var(--radius-md);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* ==========================================
   FORMS
   ========================================== */
.cta-form-section {
    padding: 80px 20px;
}

.cta-form-section .section-header {
    text-align: center;
    margin: 0 auto 40px auto;
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label,
.form-group legend {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="search"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--body-text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    transition: all var(--transition-fast);
    background: var(--background-color-alt);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-light);
    background: white;
}

.form-group fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: normal;
    font-family: var(--font-body);
    font-size: 15px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-submit {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 0;
}

/* Accessibility */
.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;
}

form.visible {
    animation: slideUp 0.8s forwards;
}

#form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background-color: #fff;
    border-radius: var(--radius-xl);
    max-width: 640px;
    margin: 0 auto;
}

#form-success-message p {
    font-size: 18px;
    font-family: var(--font-body);
    color: var(--header-color);
    margin-top: 16px;
}

.checkmark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: var(--primary-color);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--primary-color);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #ccc;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* ==========================================
   DIVIDER ACCENT
   ========================================== */
.accent-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 0 auto 20px auto;
}

.accent-line-left {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 0 0 20px 0;
}