/* Font Loading */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Base Styles and Variables */
:root {
    /* Colors */
    --color-primary: #05B0A2;
    --color-primary-dark: #048A7E;
    --color-secondary: #253551;
    --color-background: #f8f9fa;
    --color-background-dark: #1a1a1a;
    --color-text: #253551;
    --color-text-light: #6C757D;
    --color-white: #ffffff;
    --color-border: #e1e1e1;

    /* Typography */
    --font-family: 'Barlow', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Layout */
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);

    /* Brand Background System */
    --brand-teal: #05B0A2;
    --brand-teal-dark: #048A7E;
    --brand-navy: #253551;
    --brand-light: #e0f7f4;
    --brand-offwhite: #f8f9fa;
    --brand-gradient: linear-gradient(135deg, #05B0A2 0%, #048A7E 100%);
    --brand-gradient-light: linear-gradient(135deg, #e0f7f4 60%, #f8f9fa 100%);
    --brand-gradient-alt: linear-gradient(135deg, #f8f9fa 60%, #e0f7f4 100%);
    --brand-footer-gradient: linear-gradient(135deg, #253551 0%, #048A7E 100%);
    --brand-svg-dots: url('data:image/svg+xml;utf8,<svg width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="200" cy="200" r="180" stroke="%2305B0A2" stroke-width="2" fill="none" opacity="0.08"/><circle cx="200" cy="200" r="120" stroke="%2305B0A2" stroke-width="2" fill="none" opacity="0.08"/><circle cx="200" cy="200" r="60" stroke="%2305B0A2" stroke-width="2" fill="none" opacity="0.08"/></svg>');
    --header-height: 50px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Form Elements */
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: var(--color-white);
    }

    .no-print {
        display: none;
    }
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.header.solid {
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem var(--spacing-lg);
    max-width: var(--container-width);
    margin: 0 auto;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}
.nav__logo img { height: 50px; width: auto; display: block; }

.nav__menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: var(--spacing-md);
        flex-direction: column;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav__menu.active {
        display: flex;
    }

    .nav__toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--color-text);
    }
}

/* Hero Section Styles */
.hero-section {
    min-height: 400px;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100vw;
    box-sizing: border-box;
}

.hero-section .hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #05B0A2;
    text-align: left;
}

.hero-section .hero__subtitle {
    max-width: 700px;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #253551;
    margin-bottom: 2rem;
    text-align: left;
}

.hero-section .hero__cta {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-section .btn.hero-btn-primary {
    background: #05B0A2;
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(5,176,162,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.hero-section .btn.hero-btn-primary:hover {
    background: #048A7E;
}

@media (max-width: 768px) {
    .hero-section {
        align-items: center;
        text-align: center;
        padding: 3rem 1rem;
    }
    .hero-section .hero__title,
    .hero-section .hero__subtitle {
        text-align: center;
    }
    .hero-section .hero__title {
        font-size: 2rem;
    }
    .hero-section .hero__subtitle {
        font-size: 1.05rem;
    }
}

/* Card Component Styles */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card__content {
    padding: var(--spacing-lg);
}

.card__title {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.card__text {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.card__link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.card__link:hover {
    text-decoration: underline;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
    }
}

/* Footer Styles */
.footer {
    background: var(--color-background-dark);
    color: var(--color-text-light);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.footer__content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.footer__section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer__title {
    color: var(--color-white);
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer__link {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--color-white);
}

.footer__social {
    display: flex;
    gap: var(--spacing-md);
}

.footer__social-link {
    color: var(--color-text-light);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer__social-link:hover {
    color: var(--color-white);
}

.footer__bottom {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .footer__content {
        gap: var(--spacing-lg);
    }
}

/* Main Stylesheet */
@import url("base.css");
@import url("components/header.css");
@import url("components/hero.css");
@import url("components/cards.css");
@import url("components/footer.css");

/* Additional page-specific styles can be added here */

/* --- Brand Background System --- */
.bg-hero {
    /* removed background and blend mode, now empty for legacy compatibility */
}

.bg-section {
    background: var(--brand-gradient-light), var(--brand-svg-dots);
    background-size: cover, 400px 400px;
    background-position: center, center;
}

.bg-section-alt {
    background: var(--brand-gradient-alt), var(--brand-svg-dots);
    background-size: cover, 400px 400px;
    background-position: center, center;
}

.bg-footer {
    background: var(--brand-footer-gradient), var(--brand-svg-dots);
    background-size: cover, 400px 400px;
    background-position: center, center;
    color: #fff;
}

/* Subtle animation for hero background dots */
@keyframes floatDots {
    0% { background-position: center 0, center 0; }
    100% { background-position: center 40px, center 40px; }
}
.bg-hero {
    animation: floatDots 16s linear infinite alternate;
}

/* Section backgrounds (allow individual section styling) */

/* Global CTA Section */
.global-cta {
    background: var(--brand-gradient) !important;
    color: #fff;
    position: relative;
    z-index: 1;
}

.global-cta .section-header h2,
.global-cta .section-header p {
    color: #fff;
}

.global-cta .btn {
    background: #fff;
    color: var(--brand-teal);
    transition: all 0.3s ease;
}

.global-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-background {
    background: url('/images/newhero.png') center center / cover no-repeat;
}

.bg-white { background: #fff; }
.bg-f8f9fa { background: #f8f9fa; }
.bg-e0f7f4 { background: #e0f7f4; }

.curved-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
}
@media (max-width: 700px) {
  .curved-divider { height: 32px; }
}

.section-header {
  padding-top: 4rem;
  padding-bottom: 3rem;
  text-align: center;
}
.section-header .section-underline {
  width: 60px;
  height: 4px;
  background: #05B0A2;
  border-radius: 2px;
  margin: 1rem auto 0 auto;
}

/* Card teal accent bar animation */
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #05B0A2, #048A7E);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-out;
  z-index: 1;
}
.card:hover::before {
  transform: scaleX(1);
}
.card:hover {
  border-color: rgba(5, 176, 162, 0.2);
}

/* Footer mobile responsive */
@media (max-width: 700px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  .footer-right {
    align-items: flex-start !important;
  }
  .footer-bottom {
    font-size: 0.85rem !important;
  }
}