/* AVGrid Marketing Site – avgrid.tech (app palette + logo styles from avgrid-theme) */
:root {
    /* Primary & secondary (match app) */
    --avgrid-primary: #2c5282;
    --avgrid-primary-dark: #1e3a5f;
    --avgrid-primary-light: #3d6ba8;
    --avgrid-secondary: #38a169;
    --avgrid-secondary-light: #48bb78;
    --avgrid-accent-orange: #dd6b20;
    --avgrid-accent-red: #e53e3e;
    --avgrid-accent-yellow: #d69e2e;
    --avgrid-accent-light: #f6ad55;
    /* Text & background */
    --avgrid-text: #1f2937;
    --avgrid-text-secondary: #4b5563;
    --avgrid-bg: #ffffff;
    --avgrid-bg-alt: #f9fafb;
    --avgrid-bg-tint: #eff6fa;
    --avgrid-border: #e5e7eb;
    --avgrid-success: #38a169;
    /* App theme tokens (typography, radius, shadow) */
    --avgrid-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --avgrid-font-size-sm: 0.875rem;
    --avgrid-font-size-base: 1rem;
    --avgrid-font-size-lg: 1.125rem;
    --avgrid-radius-sm: 0.25rem;
    --avgrid-radius-md: 0.375rem;
    --avgrid-radius-lg: 0.5rem;
    --avgrid-radius-xl: 0.75rem;
    --avgrid-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --avgrid-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--avgrid-text);
    background: var(--avgrid-bg);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: var(--avgrid-bg);
    border-bottom: 2px solid var(--avgrid-primary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--avgrid-shadow-md);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--avgrid-primary);
    text-decoration: none;
}

/* LearnGrid / AVGrid 3×3 logo */
.avgrid-logo {
    display: grid;
    grid-template-columns: repeat(3, 10px);
    grid-template-rows: repeat(3, 10px);
    gap: 2px;
    padding: 6px;
    background: rgba(44, 82, 130, 0.1);
    border-radius: var(--avgrid-radius-lg);
    flex-shrink: 0;
}
.avgrid-logo span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: var(--avgrid-radius-sm);
}
.avgrid-logo span:nth-child(1) { background: #2c5282; }
.avgrid-logo span:nth-child(2) { background: #38a169; }
.avgrid-logo span:nth-child(3) { background: #dd6b20; }
.avgrid-logo span:nth-child(4) { background: #e53e3e; }
.avgrid-logo span:nth-child(5) { background: #d69e2e; }
.avgrid-logo span:nth-child(6) { background: #f6ad55; }
.avgrid-logo span:nth-child(7) { background: #3d6ba8; }
.avgrid-logo span:nth-child(8) { background: #48bb78; }
.avgrid-logo span:nth-child(9) { background: #f6ad55; }
.site-logo:hover .avgrid-logo { background: rgba(44, 82, 130, 0.18); }
.site-logo:hover { color: var(--avgrid-primary-dark); }

.site-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.site-nav a {
    color: var(--avgrid-text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--avgrid-primary);
}

.site-nav .btn-primary {
    color: #fff !important;
    background: var(--avgrid-primary);
}
.site-nav .btn-primary:hover {
    color: #fff !important;
    background: var(--avgrid-primary-dark);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: var(--avgrid-font-size-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--avgrid-radius-lg);
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

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

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

.btn-secondary {
    background: var(--avgrid-bg-alt);
    color: var(--avgrid-text);
    border: 1px solid var(--avgrid-border);
}

.btn-secondary:hover {
    background: var(--avgrid-border);
}

/* Hero */
.hero {
    padding: 64px 0 80px;
    text-align: center;
    background: linear-gradient(160deg, var(--avgrid-bg-tint) 0%, rgba(56, 161, 105, 0.06) 40%, var(--avgrid-bg-alt) 100%);
    position: relative;
}
.hero .hero-accent {
    width: 80px;
    height: 4px;
    margin: 0 auto 20px;
    background: linear-gradient(90deg, var(--avgrid-primary), var(--avgrid-secondary));
    border-radius: 2px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* Image from "image fro web" folder (sibling of website/) */
    background: url("../image fro web/bee-balogun-KGyzk-EvTwQ-unsplash.jpg") center center / cover no-repeat;
    opacity: 0.24;
}

/* Washed hero backgrounds on inner pages */
.hero.hero-bg-wash { position: relative; overflow: hidden; }
.hero.hero-bg-wash > .container { position: relative; z-index: 1; }
.hero.hero-bg-wash::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.28;
    z-index: 0;
}
.hero.hero-bg-wash::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--avgrid-bg-tint) 0%, rgba(255,255,255,0.72) 50%, var(--avgrid-bg-alt) 100%);
    z-index: 0;
}
.hero-bg-wash-5::before { background-image: url("../image fro web/bee-balogun-KGyzk-EvTwQ-unsplash.jpg"); }
.hero-bg-wash-7::before { background-image: url("../image fro web/mario-serpas-tln7_t3jaIs-unsplash.jpg"); }
.hero-bg-wash-11::before { background-image: url("../image fro web/paul-einerhand-Dy6a8sLrVl4-unsplash.jpg"); }
.hero-bg-wash-13::before { background-image: url("../image fro web/ricardo-loaiza-bYLC_BxhHys-unsplash.jpg"); }
.hero-bg-wash-office::before { background-image: url("../image fro web/office.jpg"); }
.hero-bg-wash-team::before { background-image: url("../image fro web/Team.jpg"); }

/* Washed-out section backgrounds (image fro web) */
.section-bg-wash {
    position: relative;
    overflow: hidden;
}
.section-bg-wash > .container {
    position: relative;
    z-index: 1;
}
.section-bg-wash::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.32;
    z-index: 0;
}
.section-bg-wash::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.68) 0%, rgba(249,250,251,0.82) 100%);
    z-index: 0;
}
.bg-wash-1::before { background-image: url("../image fro web/andreas-naslund-s_PPVjZ-JWs-unsplash.jpg"); }
.bg-wash-2::before { background-image: url("../image fro web/85mm-ca-XIjjnPEIsHo-unsplash.jpg"); }
.bg-wash-3::before { background-image: url("../image fro web/adrian-waldron-ccgw3OkngxU-unsplash.jpg"); }
.bg-wash-4::before { background-image: url("../image fro web/alexey-ruban-73o_FzZ5x-w-unsplash.jpg"); }
.bg-wash-5::before { background-image: url("../image fro web/bee-balogun-KGyzk-EvTwQ-unsplash.jpg"); }
.bg-wash-6::before { background-image: url("../image fro web/clement-felix-JFaw5Nge2e0-unsplash.jpg"); }
.bg-wash-7::before { background-image: url("../image fro web/mario-serpas-tln7_t3jaIs-unsplash.jpg"); }
.bg-wash-8::before { background-image: url("../image fro web/maxime-bhm-4Ixxu74o06E-unsplash.jpg"); }
.bg-wash-9::before { background-image: url("../image fro web/melyna-valle-dgeFqem7_zE-unsplash.jpg"); }
.bg-wash-10::before { background-image: url("../image fro web/michael-maasen-ZY7fuakuXJ0-unsplash.jpg"); }
.bg-wash-11::before { background-image: url("../image fro web/paul-einerhand-Dy6a8sLrVl4-unsplash.jpg"); }
.bg-wash-12::before { background-image: url("../image fro web/ricardo-loaiza-5iBl_IhurVQ-unsplash.jpg"); }
.bg-wash-13::before { background-image: url("../image fro web/ricardo-loaiza-bYLC_BxhHys-unsplash.jpg"); }
.bg-wash-14::before { background-image: url("../image fro web/ricardo-loaiza-IWUofMMX7QY-unsplash.jpg"); }
.bg-wash-15::before { background-image: url("../image fro web/ricardo-loaiza-tX6r__nCT7g-unsplash.jpg"); }
.bg-wash-16::before { background-image: url("../image fro web/saso-tusar-QtgGYlug6Cw-unsplash.jpg"); }

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

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--avgrid-primary-dark);
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--avgrid-text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero .cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero with normal blue background and white text (inner pages – same as About) */
.hero-blue {
    background: var(--avgrid-primary) !important;
}
.hero-blue h1,
.hero-blue .lead {
    color: #fff;
}
.hero-blue .eco-badge {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.hero-blue .page-screenshot-wrap figcaption,
.hero-blue .team-image-wrap figcaption {
    color: rgba(255,255,255,0.95);
}
.hero-blue .btn-primary {
    background: #fff;
    color: var(--avgrid-primary);
}
.hero-blue .btn-primary:hover {
    background: var(--avgrid-bg-alt);
    color: var(--avgrid-primary-dark);
}
.hero-blue .btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.hero-blue .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Home page: lifestyle hero (image + blue overlay, white text) */
.hero-lifestyle {
    position: relative;
    overflow: hidden;
}
.hero-lifestyle > .container {
    position: relative;
    z-index: 1;
}
.hero-lifestyle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("../image fro web/bee-balogun-KGyzk-EvTwQ-unsplash.jpg") center/cover no-repeat;
    z-index: 0;
}
.hero-lifestyle::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44,82,130,0.82) 0%, rgba(30,58,95,0.9) 100%);
    z-index: 0;
}
.hero-lifestyle h1,
.hero-lifestyle .lead {
    color: #fff;
}
.hero-lifestyle .eco-badge {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.hero-lifestyle .page-screenshot-wrap figcaption,
.hero-lifestyle .team-image-wrap figcaption {
    color: rgba(255,255,255,0.95);
}
.hero-lifestyle .btn-primary {
    background: #fff;
    color: var(--avgrid-primary);
}
.hero-lifestyle .btn-primary:hover {
    background: var(--avgrid-bg-alt);
    color: var(--avgrid-primary-dark);
}
.hero-lifestyle .btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.hero-lifestyle .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Shared inner-page hero (same look as About) */
.page-hero {
    padding: 48px 0 56px;
    text-align: center;
}
.page-hero h1 { font-size: 2.25rem; margin: 0 0 16px; }
.page-hero .lead { font-size: 1.2rem; max-width: 640px; margin: 0 auto; }

/* Shared inner-page section (same look as About sections) */
.page-section { padding: 48px 0; }
.page-section .container { max-width: 720px; margin: 0 auto; }
.page-section h2 { font-size: 1.5rem; margin: 0 0 16px; color: var(--avgrid-text); }
.page-section p { margin: 0 0 16px; color: var(--avgrid-text-secondary); line-height: 1.7; }
.page-section p:last-child { margin-bottom: 0; }

/* Sections */
.section {
    padding: 64px 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 12px;
    text-align: center;
    color: var(--avgrid-primary-dark);
}

.section-subtitle {
    color: var(--avgrid-text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* 3 tiles across (e.g. index) */
.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .card-grid-3 { grid-template-columns: 1fr; }
}

.card {
    background: var(--avgrid-bg);
    border: 1px solid var(--avgrid-border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(44, 82, 130, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 82, 130, 0.14);
    border-color: var(--avgrid-primary);
}

.card h3 {
    font-size: 1.125rem;
    margin: 0 0 8px;
    color: var(--avgrid-primary-dark);
}

.card p {
    margin: 0;
    color: var(--avgrid-text-secondary);
    font-size: 0.9375rem;
}

/* Sprinkled screenshots (shared across pages) */
.page-screenshot {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--avgrid-border);
    box-shadow: 0 4px 16px rgba(44, 82, 130, 0.1);
}
.page-screenshot-wrap { text-align: center; margin: 24px 0; }
.page-screenshot-wrap figcaption { margin-top: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--avgrid-primary-dark); }

/* Promo video */
.promo-video-section { background: var(--avgrid-bg); }
.promo-video-wrap {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--avgrid-radius-xl);
    overflow: hidden;
    box-shadow: var(--avgrid-shadow-md);
    border: 1px solid var(--avgrid-border);
    background: var(--avgrid-bg-alt);
}
.promo-video {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, var(--avgrid-bg-alt) 0%, var(--avgrid-bg-tint) 100%);
    border-top: 2px solid var(--avgrid-primary);
    padding: 40px 0;
    margin-top: 64px;
    box-shadow: 0 -2px 8px rgba(44, 82, 130, 0.06);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    color: var(--avgrid-text-secondary);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--avgrid-primary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

@media (max-width: 640px) {
    .hero h1 { font-size: 1.75rem; }
    .hero .cta { flex-direction: column; }
}
