﻿/* =========================
   Brand tokens
========================= */
:root {
        --primary: #0081A7;
        --secondary: #00AFB9;
        --neutral1: #FED9B7;
        --neutral2: #DFECC6;
        --neutral3: #F1F5F9;
        --bg: #F6F3EC;
        --text: #0f172a;
}

/* =========================
   Base
========================= */
* {
	box-sizing: border-box;
}

html, body {
        margin: 0;
        padding: 0;
        background: var(--bg);
        color: var(--text);
        font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
        line-height: 1.65;
}

body {
        font-size: clamp(16px, 1.4vw, 18px);
}

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

	a:hover {
		text-decoration: underline;
	}

p {
	margin: 0 0 12px;
}

/* =========================
   Layout helpers
========================= */
.container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 24px;
}

@media (max-width: 600px) {
        .container {
                padding: 20px 18px;
        }
}

/* Two-column grid (used in What-is and Impact) */
.grid {
	display: grid;
	gap: 18px;
}

	.grid.cols-2 {
		grid-template-columns: 1.1fr .9fr;
		align-items: start;
	}

/* Stack grids on small screens */
@media (max-width:900px) {
	.grid.cols-2 {
		grid-template-columns: 1fr;
	}
}

/* Force single column for the What-is section only */
#what-is .grid.cols-2 {
	grid-template-columns: 1fr;
}

/* =========================
   Typography
========================= */
h1, h2, h3 {
	font-family: 'Poppins', sans-serif;
	margin: 0 0 12px;
}

h1 {
        font-size: clamp(32px, 6vw, 64px);
        line-height: 1.08;
        letter-spacing: -.01em;
        text-align: center;
}

h2 {
        font-size: clamp(24px, 4vw, 32px);
        letter-spacing: -.01em;
}

h3 {
        font-size: clamp(20px, 3vw, 24px);
}

/* =========================
   Buttons & badges
========================= */
.btn {
	background: var(--primary);
	color: #fff;
	padding: 10px 16px;
	border-radius: 999px;
	display: inline-block;
}

	.btn:hover {
		opacity: .9;
		text-decoration: none;
	}

.badge {
	display: inline-block;
	background: #fff;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(0,0,0,.08);
	font-size: 12px;
	margin-right: 8px;
}

/* Newsletter pill input */
.pill-input {
	display: flex;
	gap: 8px;
	background: #fff;
	border: 1px solid rgba(0,0,0,.1);
	border-radius: 999px;
	padding: 6px;
}

	.pill-input input {
		border: none;
		outline: none;
		padding: 8px 12px;
		border-radius: 999px;
		flex: 1;
	}

/* =========================
   Header & glassy nav
========================= */
.header {
	position: sticky;
	top: 0;
	background: transparent;
	z-index: 9;
}

.header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 0;
        position: relative;
        gap: 16px;
}

/* Glassy pill around logo — matched with nav */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px; /* keep the same gap */
	padding: 10px 14px; /* matches nav pill height */
	font-weight: 700; /* keep your bold branding */
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	-webkit-backdrop-filter: saturate(150%) blur(12px);
	backdrop-filter: saturate(150%) blur(12px);
}

	.logo img {
		width: 32px;
		height: 32px;
		border-radius: 50%;
	}

	.logo a {
		font-weight: 700;
		color: #0b3a48;
	}

/* Glassy pill nav */
.nav-group {
        display: inline-flex;
        gap: 18px;
        padding: 10px 14px;
        background: rgba(255,255,255,0.7);
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 999px;
        -webkit-backdrop-filter: saturate(150%) blur(12px);
        backdrop-filter: saturate(150%) blur(12px);
        align-items: center;
}

.nav-toggle {
        display: none;
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 999px;
        padding: 10px;
        width: 46px;
        height: 46px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        transition: background .2s ease, box-shadow .2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
        background: rgba(255,255,255,0.95);
        box-shadow: 0 12px 24px rgba(15,23,42,.12);
        outline: none;
}

.nav-toggle .nav-toggle-bar {
        display: block;
        width: 18px;
        height: 2px;
        background: #0b3a48;
        border-radius: 999px;
        transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) {
        transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) {
        opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(4) {
        transform: translateY(-8px) rotate(-45deg);
}

.nav-cta {
        display: none;
        justify-content: center;
}

.header-cta {
        white-space: nowrap;
}

body.nav-open {
        overflow: hidden;
}

	.nav-group a {
		color: #0b3a48;
		font-weight: 600;
		padding: 6px 10px;
		border-radius: 999px;
	}

		.nav-group a:hover {
			background: rgba(255,255,255,.6);
			text-decoration: none;
		}

/* =========================
   Hero device frame
========================= */
.device-wrap {
	position: relative;
	margin: 28px auto 0;
	max-width: 900px;
}

.frame {
	border: 16px solid #111;
	border-radius: 28px;
	background: #fff;
	overflow: hidden;
	position: relative;
	z-index: 2;
}

.side-pill {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 120px;
	border-radius: 999px;
	background: var(--secondary);
}

	.side-pill.left {
		left: -6px;
	}

	.side-pill.right {
		right: -6px;
		background: var(--primary);
	}

/* =========================
   Images
========================= */
/* Default look for content images: rounded edges, no border/shadow */
img.responsive {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
	border-radius: 20px;
	box-shadow: none;
	background: transparent;
}

/* Image-only cards remove default card chrome */
.card.media {
	background: transparent !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 20px;
	overflow: hidden; /* image follows rounded corners */
}

/* If you ever need unrounded images (e.g., logos), use this class */
.logo-img {
	border-radius: 0 !important;
}

/* =========================
   Sections
========================= */
.hero-sub {
        max-width: 800px;
        margin: 12px auto 0;
        text-align: center;
        color: #111;
        font-size: clamp(17px, 2.2vw, 20px);
}

.section {
	padding: 36px 0;
}

/* “Impact” intro paragraph above list */
.impact-intro {
	margin: 0 0 1rem 0;
	padding: 0;
	line-height: 1.6;
	font-size: 1rem;
	color: #333;
}

/* Bullet list style */
.list {
	margin: 0;
	padding-left: 1.2em;
	display: block;
}

	.list li {
		margin-bottom: 0.5em;
		list-style: disc;
	}

/* Story (text | image) layout */
.quote {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}

	.quote blockquote {
		order: 1;
	}

	.quote .card {
		order: 2;
		display: flex;
		justify-content: center;
		align-items: stretch;
	}

.quote .card img {
  max-width: 80%;   /* shrink relative to column width */
  height: auto;
  align-self: flex-start; /* line up with the top of the text */
}


/* Stack story on mobile */
@media (max-width:900px) {
        .quote {
                grid-template-columns: 1fr;
        }

                .quote blockquote, .quote .card {
                        order: initial;
                }
}

@media (max-width: 720px) {
        .header-inner {
                padding: 14px 0;
        }

        .nav-toggle {
                display: inline-flex;
                margin-left: auto;
        }

        .nav-group {
                position: absolute;
                top: calc(100% + 12px);
                right: 0;
                left: 0;
                margin: 0 auto;
                width: calc(100% - 36px);
                max-width: 480px;
                display: none;
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
                padding: 18px;
                border-radius: 20px;
                box-shadow: 0 24px 48px rgba(15,23,42,.16);
        }

        .nav-group.is-open {
                display: flex;
        }

        .nav-group a {
                padding: 10px 12px;
        }

        .header-cta {
                display: none;
        }

        .nav-cta {
                display: inline-flex;
        }
}

@media (max-width: 600px) {
        .pill-input {
                flex-direction: column;
                align-items: stretch;
        }

        .pill-input input,
        .pill-input .btn {
                width: 100%;
                text-align: center;
        }
}

/* =========================
   Blog cards & footer
========================= */
.blog-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3,1fr);
}

@media (max-width:900px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}
}

.blog-card {
        background: #fff;
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
}

.blog-card-media {
        background: var(--neutral2);
        height: 160px;
        width: 100%;
}

        .blog-card-media img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
        }

        .blog-card .body {
                padding: 14px;
        }

        .blog-card .meta {
                font-size: 14px;
                color: #475569;
                margin-bottom: 8px;
        }

.footer {
        margin-top: 48px;
        padding: 24px 0;
        border-top: 1px solid rgba(0,0,0,.06);
        font-size: 14px;
        color: #334155;
}

.footer nav {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
}

/* =========================
   Utilities
========================= */
.text-center {
        text-align: center;
}

.hide {
        display: none !important;
}

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