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

:root {
    --bg: #ffffff;
    --surface: #f4f8ff;
    --surface-soft: #eef4ff;
    --text: #4a7dcf;
    --muted: #82a4d8;
    --primary: #5aa0ff;
    --primary-soft: #346bbf;
    --accent: #82b4ff;
    --border: rgba(90, 160, 255, 0.14);

    /* Shadow Scale */
    --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.14);
    --shadow: var(--shadow-xl);
}

html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    /* FIX: overflow-x: hidden lives ONLY here, not on inner containers.
       This prevents horizontal scroll while letting shadows breathe inside the page. */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal overflow on all containers — but NOT overflow: hidden,
   which would clip box-shadows. We rely on the html/body clip above. */
main, section, article, div, header, footer {
    max-width: 100%;
}

/* Handle long words and URLs */
p, a, li, h1, h2, h3, h4, h5, h6, span {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Ensure images never overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── Page Section ──────────────────────────────────────────────────────────── */

.page-section {
    padding: 64px 36px 32px;
    background: var(--surface);
    /* FIX: use margin instead of padding inside a container so the shadow has
       room. Keep overflow: visible (default) — the html/body clip handles scroll. */
    margin: 24px 36px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    /* FIX: removed overflow: visible declaration — it's the default, but was
       previously absent causing some browsers to inherit 'hidden' from parents */
}

.page-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(90, 160, 255, 0.18);
}

.page-section.page-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeInUp 0.85s ease both;
}

.page-section.page-intro .eyebrow {
    margin-bottom: 14px;
}

.page-section.page-intro h2 {
    font-size: clamp(2rem, 2.4vw, 2.8rem);
    margin-bottom: 18px;
}

.page-section.page-intro p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(74, 125, 207, 0.82);
}

/* ─── Site Header ───────────────────────────────────────────────────────────── */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 15px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInDown 0.8s ease both;
    transition: padding 0.3s ease, background 0.3s ease;
}

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

.site-nav a {
    position: relative;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
    transform: translateY(-2px);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.brand-logo:hover {
    opacity: 0.85;
}

.brand-logo img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.25s ease;
}

.brand-logo img:hover {
    transform: scale(1.2);
}

.brand img {
    width: 60px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand img:hover {
    transform: scale(1.08);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.brand p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.brand h1 {
    font-size: 1.2rem;
    color: #234b86;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    padding: 72px 36px 48px;
    position: relative;
    z-index: 1;
    /* FIX: no overflow: hidden here — let shadows spill freely */
}

.hero-copy {
    max-width: 620px;
    animation: fadeInUp 0.85s ease both;
    position: relative;
    z-index: 2;
}

.hero-media {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease both;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}

.hero-copy h2 {
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1.05;
    max-width: 10ch;
    color: #234b86;
    margin-bottom: 22px;
}

.hero-copy p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(74, 125, 207, 0.9);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 32px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(90, 160, 255, 0.24);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    box-shadow: 0 12px 24px rgba(90, 160, 255, 0.2);
}

.btn-secondary {
    background: rgba(90, 160, 255, 0.12);
    color: var(--primary);
    border: 1px solid rgba(90, 160, 255, 0.24);
}

/* ─── Highlight / Vision Cards ──────────────────────────────────────────────── */

.highlight-card {
    width: 100%;
    min-height: 320px;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, #e8f3ff 0%, #ffffff 100%);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.9s ease both;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    z-index: 3;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(90, 160, 255, 0.16);
}

.highlight-card span {
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.highlight-card p {
    color: #234b86;
    font-size: 1.05rem;
    line-height: 1.8;
}

.vision-card {
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

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

.vision-card.pop {
    transform: scale(1.04);
    background: linear-gradient(135deg, #ffffff 0%, #e8f3ff 100%);
    box-shadow: var(--shadow-2xl);
    z-index: 3;
}

.vision-card.pop span,
.vision-card.pop p {
    color: #234b86;
}

.vision-card.pop::after {
    content: "Popped — click again to close";
    display: block;
    margin-top: 18px;
    font-size: 0.92rem;
    color: #0f4d91;
}

/* ─── Overview ──────────────────────────────────────────────────────────────── */

.overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding: 48px 36px;
    position: relative;
    z-index: 1;
    /* FIX: padding (not overflow:hidden) gives shadow room on all sides */
}

.overview article {
    background: #ffffff;
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.9s ease both;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.overview article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(90, 160, 255, 0.16);
    z-index: 2;
}

.overview h3 {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    margin-bottom: 16px;
    color: #234b86;
}

.overview p {
    color: rgba(74, 125, 207, 0.88);
    line-height: 1.85;
}

/* ─── Product Section ───────────────────────────────────────────────────────── */

.product-section {
    padding: 24px 36px 48px;
    max-width: 100%;
}

.section-header {
    max-width: 100%;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #234b86;
    margin-bottom: 12px;
}

.section-header p {
    color: rgba(74, 125, 207, 0.88);
    line-height: 1.8;
}

.product-group {
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-group:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(90, 160, 255, 0.16);
}

.product-group-intro {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.product-group-media {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    min-height: 120px;
}

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

.product-group-header {
    margin-bottom: 0;
}

.product-group-header h3 {
    font-size: 1.35rem;
    color: #234b86;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.product-group-header p {
    color: rgba(74, 125, 207, 0.88);
    line-height: 1.5;
    font-size: 0.9rem;
    max-width: 780px;
}

/* FIX: product-grid uses padding on the wrapper (product-group) for shadow room;
   no overflow:hidden on the grid itself */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.product-card {
    position: relative;
    background: #ffffff;
    padding: 14px;
    border-radius: 18px;
    min-height: 260px;
    border: 1px solid rgba(90, 160, 255, 0.12);
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
    cursor: pointer;
    overflow: hidden; /* intentional — clips inner img zoom, not outer shadow */
    animation: fadeInUp 0.65s ease both;
    z-index: 1;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(90, 160, 255, 0.06);
}

.product-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-xl);
    background: #f4f8ff;
    z-index: 2;
}

.product-card:nth-child(4n+1) { animation-delay: 0.04s; }
.product-card:nth-child(4n+2) { animation-delay: 0.08s; }
.product-card:nth-child(4n+3) { animation-delay: 0.12s; }
.product-card:nth-child(4n+4) { animation-delay: 0.16s; }

.product-card.expanded {
    transform: scale(1.03);
    z-index: 2;
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(180deg, #ffffff 0%, #e9f1ff 100%);
}

.product-card.expanded .product-image img {
    transform: scale(1.14);
}

.product-card.expanded h4 {
    font-size: 1.35rem;
}

.product-card.expanded p {
    font-size: 1.02rem;
}

.product-card.expanded::after {
    content: "Click again to collapse";
    display: block;
    margin-top: 18px;
    font-size: 0.9rem;
    color: #2851a3;
}

.product-image {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px;
    min-height: 100px;
    aspect-ratio: 4 / 3;
}

.product-image img,
.product-card > img {
    width: 100%;
    height: 120px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 14px;
    transition: transform 0.35s ease;
}

.product-card:hover > img,
.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h4 {
    color: #1a4d8f;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #1a4d8f 0%, #2563eb 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trademark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6em;
    font-weight: 900;
    color: white;
    background: #e63946;
    border-radius: 50%;
    width: 1.2em;
    height: 1.2em;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.product-card p {
    color: #5f6c7a;
    line-height: 1.5;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.product-card .tagline {
    color: #5aa0ff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-card .ingredients {
    color: #4a7dcf;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 500;
}

/* ─── Per-group product card gradient colours ───────────────────────────────── */

/* Women Care */
.product-group:nth-child(1) .product-card:nth-child(1) h4 { background: linear-gradient(90deg, #c41e3a 0%, #ffd700 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(1) .product-card:nth-child(2) h4 { background: linear-gradient(90deg, #8b1538 0%, #d4af37 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(1) .product-card:nth-child(3) h4 { background: linear-gradient(90deg, #1e3a8a 0%, #fbbf24 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(1) .product-card:nth-child(4) h4 { background: linear-gradient(90deg, #dc2626 0%, #fbbf24 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(1) .product-card:nth-child(5) h4 { background: linear-gradient(90deg, #7c2d12 0%, #dc2626 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(1) .product-card:nth-child(6) h4 { background: linear-gradient(90deg, #1e40af 0%, #ec4899 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(1) .product-card:nth-child(7) h4 { background: linear-gradient(90deg, #166534 0%, #fbbf24 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(1) .product-card:nth-child(8) h4 { background: linear-gradient(90deg, #c41e3a 0%, #fbbf24 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(1) .product-card:nth-child(9) h4 { background: linear-gradient(90deg, #c41e3a 0%, #fbbf24 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Kids Care */
.product-group:nth-child(2) .product-card:nth-child(1) h4 { background: linear-gradient(90deg, #5b21b6 0%, #22c55e 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(2) .product-card:nth-child(2) h4 { background: linear-gradient(90deg, #0369a1 0%, #fbbf24 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(2) .product-card:nth-child(3) h4 { background: linear-gradient(90deg, #1e3a8a 0%, #dc2626 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(2) .product-card:nth-child(4) h4 { background: linear-gradient(90deg, #dc2626 0%, #fbbf24 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(2) .product-card:nth-child(5) h4 { background: linear-gradient(90deg, #dc2626 0%, #fbbf24 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Bone & Joint */
.product-group:nth-child(3) .product-card:nth-child(1) h4 { background: linear-gradient(90deg, #1e3a8a 0%, #fbbf24 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(3) .product-card:nth-child(2) h4 { background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(3) .product-card:nth-child(3) h4 { background: linear-gradient(90deg, #ea580c 0%, #dc2626 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(3) .product-card:nth-child(4) h4 { background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-group:nth-child(3) .product-card:nth-child(5) h4 { background: linear-gradient(90deg, #1e3a8a 0%, #fbbf24 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ─── Stats ──────────────────────────────────────────────────────────────────── */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding: 0 36px 48px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(90, 160, 255, 0.16);
    z-index: 2;
}

.stat-card strong {
    display: block;
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-card p {
    color: rgba(74, 125, 207, 0.88);
    line-height: 1.75;
}

/* ─── About ──────────────────────────────────────────────────────────────────── */

.about-section {
    padding: 48px 36px;
    background: var(--surface);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(74, 125, 207, 0.9);
    margin-bottom: 20px;
}

.about-content strong {
    color: #234b86;
}

.about-company {
    padding: 48px 36px;
    background: var(--surface);
}

.about-company .about-content {
    max-width: 100%;
}

.about-company h3 {
    font-size: 1.5rem;
    color: #234b86;
    margin-bottom: 20px;
}

.about-company p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(74, 125, 207, 0.9);
    margin-bottom: 20px;
}

.about-company strong {
    color: #234b86;
}

/* ─── Services & Offerings ──────────────────────────────────────────────────── */

.services-section {
    padding: 48px 36px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(90, 160, 255, 0.16);
    z-index: 2;
}

.service-card h3 {
    font-size: 1.25rem;
    color: #234b86;
    margin-bottom: 14px;
}

.service-card p {
    color: rgba(74, 125, 207, 0.88);
    line-height: 1.8;
}

.offerings-section {
    padding: 48px 36px;
    background: var(--surface);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.offering-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
}

.offering-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(90, 160, 255, 0.16);
    z-index: 2;
}

.offering-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.offering-card p {
    color: rgba(74, 125, 207, 0.88);
    line-height: 1.8;
}

/* ─── Contact Form ──────────────────────────────────────────────────────────── */

.contact-form-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    padding: 48px 36px;
    animation: fadeInUp 0.85s ease both;
}

.form-container {
    background: #ffffff;
    padding: 36px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(90, 160, 255, 0.08);
}

.form-container h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: #234b86;
    margin-bottom: 12px;
}

.form-container > p {
    color: rgba(74, 125, 207, 0.88);
    margin-bottom: 28px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #234b86;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.required {
    color: #e63946;
    margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 14px;
    border: 2px solid rgba(90, 160, 255, 0.15);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem; /* FIX: always 1rem — prevents iOS auto-zoom on focus */
    color: #234b86;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.25s ease;
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(74, 125, 207, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(90, 160, 255, 0.1);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
    border-color: #e63946;
    background: rgba(230, 57, 70, 0.03);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.error-message {
    font-size: 0.85rem;
    color: #e63946;
    min-height: 20px;
    display: block;
}

.btn-submit {
    margin-top: 12px;
    padding: 14px 32px;
    width: 100%;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 500;
    min-height: 20px;
    text-align: center;
    animation: fadeInUp 0.4s ease both;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
    background: rgba(230, 57, 70, 0.1);
    color: #e63946;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

/* FIX: properly closed contact-info rule */
.contact-info {
    background: var(--surface);
    padding: 36px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: fit-content;
    animation: fadeInUp 0.9s ease both;
}

.contact-info article {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(90, 160, 255, 0.08);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-xs);
}

.contact-info article:hover {
    border-color: rgba(90, 160, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

.contact-info h4 {
    color: #234b86;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.contact-info p {
    color: rgba(74, 125, 207, 0.88);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-info a {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: var(--primary-soft);
}

.contact-info small {
    display: block;
    color: rgba(74, 125, 207, 0.7);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
    background: #eef4ff;
    color: #234b86;
    padding: 40px 36px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(90, 160, 255, 0.14);
    animation: fadeInUp 0.8s ease both;
}

.site-footer h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
    color: #234b86;
}

.site-footer p,
.site-footer a {
    color: #4a7dcf;
    line-height: 1.8;
}

.site-footer a {
    transition: color 0.2s ease;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ─── Mobile nav toggle ─────────────────────────────────────────────────────── */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    min-width: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 22px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ─── Animations ────────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   FIX: all @media blocks are top-level (not nested) — nested @media is invalid CSS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Large Desktops (1440px+) */
@media (min-width: 1440px) {
    .page-section {
        padding: 80px 48px 40px;
        margin: 32px 48px;
    }

    .hero {
        padding: 96px 48px 64px;
        gap: 60px;
    }

    .overview,
    .stats {
        padding: 64px 48px;
    }

    .product-section {
        padding: 32px 48px 64px;
    }
}

/* Standard Desktops (1024px – 1440px) */
@media (max-width: 1440px) and (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
        gap: 24px;
    }

    .services-grid,
    .offerings-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 28px;
    }

    .overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 36px 48px;
        gap: 28px;
    }
}

/* Tablets & Small Desktops (768px – 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .product-card {
        min-height: 240px;
        padding: 12px;
    }

    .product-section {
        padding: 20px 28px 40px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 0 28px 40px;
    }

    .stat-card {
        padding: 24px;
    }

    .stat-card strong {
        font-size: 2.2rem;
    }

    .services-grid,
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .site-footer {
        padding: 32px 28px;
    }

    .brand h1 {
        font-size: 1.1rem;
    }

    .brand img {
        width: 56px;
    }

    /* FIX: header reverts to sticky (not relative) at tablet */
    .site-header {
        padding: 16px 20px;
        position: sticky;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        background: #ffffff;
        padding: 16px 28px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        z-index: 999;
    }

    .site-nav.open {
        max-height: 85vh;
        overflow-y: auto;
    }

    .site-nav a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(90, 160, 255, 0.1);
        display: block;
    }

    .site-nav a:last-child {
        border-bottom: none;
    }
}

/* Small Tablets & Phones (up to 768px) */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    html, body {
        font-size: 15px;
    }

    .page-section {
        padding: 48px 20px 24px;
        margin: 16px 20px;
        border-radius: 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .services-grid,
    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .overview {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 20px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px 40px;
    }

    .site-header {
        padding: 14px 20px;
        gap: 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: sticky;
    }

    .brand img {
        width: 48px;
    }

    .brand h1 {
        font-size: 1rem;
    }

    .brand p {
        font-size: 0.85rem;
    }

    .nav-toggle {
        display: flex;
        order: 3;
        padding: 8px;
        min-width: 48px;
        min-height: 48px;
    }

    .nav-toggle span {
        width: 24px;
        height: 3px;
    }

    .site-nav {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 16px 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        flex-direction: column;
        gap: 0;
        width: 100%;
        z-index: 999;
        opacity: 0;
    }

    .site-nav.open {
        max-height: 85vh;
        overflow-y: auto;
        opacity: 1;
    }

    .site-nav a {
        padding: 14px 0;
        min-height: 48px;
        border-bottom: 1px solid rgba(90, 160, 255, 0.1);
        font-size: 1rem;
        transition: color 0.2s ease;
    }

    .site-nav a:last-child {
        border-bottom: none;
    }

    /* Touch targets */
    .btn, .product-card, .vision-card {
        min-width: 48px;
        min-height: 48px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        touch-action: manipulation;
    }

    .btn:active, .product-card:active, .vision-card:active {
        transform: translateY(2px);
        box-shadow: none;
    }

    /* Remove hover on touch */
    .vision-card:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-submit, #contactForm .btn {
        width: 100%;
        padding: 16px;
        margin: 12px 0;
    }

    label {
        font-size: 1rem;
        margin-bottom: 8px;
        display: block;
        font-weight: 600;
    }

    .form-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }

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

    .checkbox-group label {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 4px 0;
        min-height: 44px;
    }

    .checkbox-group input[type="checkbox"] {
        min-width: 22px;
        min-height: 22px;
        margin-top: 2px;
    }

    .hero-copy h2 {
        font-size: clamp(1.3rem, 5vw, 2.2rem);
        max-width: 12ch;
        margin-bottom: 12px;
    }

    .hero-copy p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .eyebrow {
        font-size: 0.75rem;
        margin-bottom: 10px;
        letter-spacing: 0.15em;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .highlight-card {
        min-height: 280px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .section-header p,
    .overview p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .product-section {
        padding: 20px 20px 40px;
    }

    .product-card {
        min-height: 220px;
        padding: 10px;
        border-radius: 14px;
        margin-bottom: 8px;
        cursor: pointer;
    }

    .product-card h4 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .product-card p {
        font-size: 0.8rem;
    }

    .product-card > img {
        height: 100px;
        margin-bottom: 10px;
    }

    .overview article {
        padding: 20px;
    }

    .overview h3 {
        font-size: clamp(0.95rem, 2vw, 1rem);
        margin-bottom: 12px;
    }

    .stat-card {
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 8px;
    }

    .stat-card strong {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .stat-card p {
        font-size: 0.9rem;
    }

    .stat-card img {
        max-height: 80px;
        margin-bottom: 12px;
    }

    .service-card, .offering-card {
        padding: 20px;
    }

    .service-card h3, .offering-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .about-section,
    .services-section {
        padding: 40px 20px;
    }

    .about-company {
        padding: 40px 20px;
    }

    .about-company h3 {
        font-size: clamp(1rem, 3vw, 1.3rem);
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .site-footer {
        flex-direction: column;
        padding: 24px 20px;
        gap: 16px;
    }

    .site-footer h3 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .site-footer p,
    .site-footer a {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-links {
        gap: 10px;
        width: 100%;
    }

    .footer-links a {
        display: block;
        padding: 8px 0;
    }

    .contact-form-section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 16px;
    }

    .form-container,
    .contact-info {
        padding: 24px;
    }

    .contact-info {
        height: auto;
    }
}

/* Mobile Phones (up to 480px) */
@media (max-width: 480px) {
    html, body {
        font-size: 14px;
    }

    .page-section {
        padding: 40px 16px 20px;
        margin: 12px 16px;
        border-radius: 14px;
    }

    .site-header {
        padding: 12px 16px;
        gap: 8px;
    }

    .brand {
        gap: 10px;
        min-width: 0;
    }

    .brand img {
        width: 40px;
        flex-shrink: 0;
    }

    .brand div {
        min-width: 0;
    }

    .brand h1 {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand p {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .nav-toggle span {
        width: 22px;
        height: 2.5px;
    }

    .site-nav {
        top: 56px;
        padding: 12px 16px;
    }

    .site-nav a {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .hero {
        padding: 32px 16px 20px;
        gap: 24px;
    }

    .hero-copy h2 {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        max-width: 12ch;
        line-height: 1.1;
        margin-bottom: 12px;
    }

    .hero-copy p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .eyebrow {
        font-size: 0.75rem;
        margin-bottom: 10px;
        letter-spacing: 0.15em;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn {
        padding: 11px 18px;
        font-size: 0.9rem;
        border-radius: 24px;
        min-height: 40px;
        font-weight: 600;
    }

    .highlight-card {
        min-height: 240px;
        padding: 16px;
        border-radius: 12px;
    }

    .highlight-card span {
        font-size: 0.8rem;
    }

    .highlight-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .highlight-card img {
        max-height: 120px;
        object-fit: cover;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card {
        min-height: 200px;
        padding: 8px;
        border-radius: 12px;
    }

    .product-card h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .product-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .product-card > img {
        height: 80px;
        margin-bottom: 8px;
    }

    .services-grid,
    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card,
    .offering-card {
        padding: 16px;
        border-radius: 12px;
    }

    .service-card h3,
    .offering-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .service-card p,
    .offering-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .overview {
        padding: 32px 16px;
        gap: 12px;
    }

    .overview article {
        padding: 16px;
        border-radius: 12px;
    }

    .overview h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .overview p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .stats {
        padding: 0 16px 32px;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        border-radius: 12px;
    }

    .stat-card strong {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .stat-card p {
        font-size: 0.85rem;
    }

    .stat-card img {
        max-height: 70px;
        margin-bottom: 10px;
    }

    .site-footer {
        padding: 20px 16px;
        gap: 12px;
    }

    .site-footer h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .site-footer p,
    .site-footer a {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}