/* --- VARIABLES & RESET --- */
:root {
    --primary: #0f172a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #10b981;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

body.no-scroll-lock {
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

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

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

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

.mt-4 {
    margin-top: 1.5rem;
}

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

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent);
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

.btn-zoom,
.btn-zoom-geo {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 10;
}

.btn-zoom:hover,
.btn-zoom-geo:hover {
    transform: scale(1.1);
    background: var(--white);
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    position: relative;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: 80px;
}

.lang-switcher:hover .lang-dropdown {
    display: flex;
}

.lang-dropdown a {
    padding: 8px 12px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.lang-dropdown a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
}

/* --- HERO (FIXED MOBILE PADDING) --- */
.hero-section {
    position: relative;
    min-height: 100svh;
    height: 100svh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 96px;
}

.video-bg-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0f172a;
}

.hero-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.48)), url("assets/images/daverai_1.jpg") center center / cover no-repeat;
    transform: scale(1.02);
}

.video-bg-container video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: transparent;
}

.video-bg-container.is-ready video {
    opacity: 1;
}

.video-bg-container.is-ready .hero-fallback {
    opacity: 0.18;
    transition: opacity 0.6s ease;
}

.hero-video-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.18);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-bg-container.is-ready .hero-video-loader,
.video-bg-container.is-error .hero-video-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-video-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.95);
    animation: heroSpin 0.9s linear infinite;
}

@keyframes heroSpin {
    to {
        transform: rotate(360deg);
    }
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(0, 0, 0, 0.46);
}

.hero-content {
    position: relative;
    max-width: 900px;
    z-index: 4;
    padding-top: 80px;
}

.video-bg-container.is-error video {
    display: none;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-sub {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 90%;
}

.hero-metrics {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.metric-note {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-positioning {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SECTIONS COMMON --- */
.problem-solution-section,
.technology-section,
.market-section,
.water-section,
.team-premium-section,
.track-section,
.validated-section,
.economic-value-section {
    padding: 100px 0;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.ps-grid,
.water-content-grid,
.canada-grid,
.bm-grid,
.footer-grid,
.validated-grid,
.econ-grid {
    display: grid;
    gap: 40px;
}

.ps-grid,
.water-content-grid,
.canada-grid,
.bm-grid {
    grid-template-columns: 1fr 1fr;
}

.footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.validated-grid,
.econ-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* --- VALIDATED & ECON BLOCKS --- */
.validated-item,
.econ-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.v-icon,
.e-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.validated-item h4,
.econ-item h4 {
    font-size: 1.1rem;
    color: var(--primary);
}

/* --- PROBLEM & SOLUTION --- */
.problem-solution-section {
    background: var(--bg-light);
}

.ps-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ps-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.ps-content {
    padding: 30px;
}

.ps-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.ps-content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    color: var(--text-light);
}

.ps-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.ps-card.problem .ps-content h3 {
    color: var(--danger);
}

.ps-card.solution .ps-content h3 {
    color: var(--success);
}

/* --- TECHNOLOGY --- */
.tech-schema-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tech-schema-img {
    width: 100%;
    cursor: zoom-in;
}

.tech-usp {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
}

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

.usp-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.usp-item h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.usp-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.tech-disclaimer {
    font-style: italic;
    color: var(--text-light);
    margin-top: 10px;
}

/* --- MARKET --- */
.market-section {
    position: relative;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
}

.market-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

.relative {
    position: relative;
    z-index: 1;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.market-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.market-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    transform: translateY(-5px);
}

.card-icon img {
    height: 60px;
    margin: 0 auto 20px;
}

.market-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.market-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.card-effect {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
    background: #eff6ff;
    padding: 8px;
    border-radius: 4px;
}

/* --- WATER --- */
.water-section {
    position: relative;
}

.water-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.water-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.water-usp-list {
    margin-bottom: 30px;
}

.water-usp-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.water-result {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    margin-bottom: 20px;
}

.schema-container {
    position: relative;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.schema-container img {
    width: 100%;
    cursor: zoom-in;
}

/* --- TEAM PREMIUM --- */
.team-premium-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.team-premium-header {
    max-width: 1200px;
    margin: 0 auto 40px;
}

.team-premium-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(20, 28, 45, 0.06);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #334155;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.team-premium-subtitle {
    max-width: 100%;
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.7;
    color: #52607a;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.team-premium-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.10);
}

.team-premium-card.featured {
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 22px 50px rgba(37, 99, 235, 0.08);
}

.team-card-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    flex-shrink: 0;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-meta h3 {
    margin: 6px 0 4px;
    font-size: 24px;
    color: #0f172a;
}

.team-role {
    margin: 0;
    font-size: 15px;
    color: #475569;
    font-weight: 600;
}

.team-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.team-summary {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
}

/* --- TRACK RECORD --- */
.track-section {
    background: var(--bg-light);
}

.video-preview,
.video-preview-small {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-preview img,
.video-preview-small img {
    width: 100%;
    transition: var(--transition);
}

.video-preview:hover img,
.video-preview-small:hover img {
    transform: scale(1.05);
}

.play-btn,
.play-btn-sm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    font-family: sans-serif;
    font-weight: bold;
}

.play-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.play-btn-sm {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.play-btn::before,
.play-btn-sm::before {
    content: "▶";
    display: block;
}

.video-preview:hover .play-btn,
.video-preview-small:hover .play-btn-sm {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--white);
}

.caption,
.caption-small {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
    text-align: center;
}

.video-label {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.metrics-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.geo-slider {
    position: relative;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider-window {
    position: relative;
    height: 300px;
    background: #ddd;
}

.geo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    cursor: zoom-in;
}

.geo-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.slider-btn {
    position: absolute;
    bottom: 10px;
    right: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.srilanka-sub {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.srilanka-sub h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.sl-case-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    text-align: left;
}

/* --- FOOTER --- */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 35px;
    margin-bottom: 20px;
    filter: none;
}

.mission {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 10px;
}

.location {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-col h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    font-size: 0.85rem;
}

.disclaimer {
    width: 100%;
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 20px;
    text-align: center;
}

/* --- MODALS (FIXED CLOSE BUTTON & CHECKBOXES) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* STRICT BLUE MODAL STYLE */
.modal-strict {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-strict {
    transform: translateY(0);
}

.modal-strict h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-strict .modal-sub {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* FIXED CLOSE BUTTON: Larger, Higher Z-Index, Better Position */
.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2.5rem;
    background: var(--white);
    color: var(--danger);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
    transform: scale(1.1);
}

.da-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: var(--white);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.input-group {
    display: flex;
    gap: 10px;
}

/* FIXED CHECKBOXES: Left aligned, single line */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-message {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

.text-danger {
    color: var(--danger);
}

/* Lightboxes */
.lightbox-content,
.video-lightbox-content,
.youtube-lightbox-content {
    position: relative;
    background: transparent;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.youtube-lightbox-content iframe {
    width: 80vw;
    height: 45vw;
    max-width: 1280px;
    max-height: 720px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-content {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .ps-grid,
    .water-content-grid,
    .canada-grid,
    .bm-grid,
    .footer-grid,
    .team-premium-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .hero .btn {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .hero-content {
        position: relative;
        z-index: 2;
    }

    .hero-cta,
    .hero-buttons {
        margin-top: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .partner-btn,
    .header-actions .btn {
        padding: 6px 10px !important;
        font-size: 0.72rem !important;
        line-height: 1.15 !important;
        border-radius: 10px !important;
    }
}

.mobile-menu-btn {
    display: flex;
}

.team-premium-subtitle {
    white-space: normal;
}

.modal-close {
    top: -10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 2rem;
}


@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .modal-content,
    .modal-strict {
        padding: 25px;
        width: 95%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .checkbox-group label {
        white-space: normal;
    }
}

.main-nav.mobile-open {
    display: flex !important;
}

@media (max-width: 991px) {
    .hero-section {
        min-height: 100svh;
        height: auto;
        padding-top: 124px;
        padding-bottom: 24px;
        align-items: flex-start;
    }

    .hero-content {
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .hero-positioning {
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.08;
    }

    .hero-sub {
        font-size: 1rem;
        line-height: 1.5;
    }

    .modal-overlay {
        padding: 12px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal-content {
        margin-top: 72px;
        padding: 56px 18px 22px;
        max-height: calc(100svh - 96px);
        border-radius: 14px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }

    .da-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .da-form .form-row .form-group {
        margin-bottom: 16px;
    }

    .checkbox-group,
    .checkbox-group.goals-group {
        gap: 10px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .checkbox-group.goals-group label,
    #clientForm .checkbox-group label,
    #investorForm .checkbox-group label {
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 10px 12px;
    }

    .checkbox-group.goals-group label span {
        white-space: nowrap;
        font-size: 0.9rem;
    }

    #clientForm .checkbox-group:not(.goals-group) label span,
    #investorForm .checkbox-group label span {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 12px 0;
    }

    .header-content {
        min-height: 56px;
    }

    .logo img {
        max-height: 34px;
    }

    .hero-section {
        padding-top: 116px;
    }

    .hero-content h1 {
        font-size: clamp(1.85rem, 8.2vw, 2.6rem);
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-metrics {
        gap: 12px;
    }

    .metric-item {
        padding: 14px 12px;
    }

    .checkbox-group.goals-group label span {
        font-size: 0.86rem;
    }

    .lang-dropdown {
        right: -8px;
    }
}

@media (max-width: 992px) {

    .hero-section .btn-outline,
    .hero-buttons .btn-outline,
    a.btn.btn-outline {
        background: rgba(255, 255, 255, 0.18) !important;
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.65) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
    }
}

/* --- Sri Lanka video button mobile fix --- */
.sl-video-btn-wrap {
    flex-shrink: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.sl-video-btn {
    width: min(100%, 420px);
    padding: 14px 20px;
    font-size: 1rem;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 768px) {
    .sl-video-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.96rem;
    }
}