/* ==========================================================================
   External Communications — Frozen Design System (Cobalt)
   --------------------------------------------------------------------------
   Canonical reference: command-center/assets/t120/templates/10-cobalt-and-co-dental.html
   Locked by: docs/external-communication-rules.md
   --------------------------------------------------------------------------
   Light, glassy, friendly fintech SaaS voice. Default for B2B / product-pitch
   surfaces — approachable trust over editorial confidence.

   Sibling: design-system-dark.css (editorial / magazine — for higher-craft,
   founder-letter, manifesto pieces).

   Page-specific layout may be added inline. Tokens, typography, buttons,
   cards, navbar, and footer are NOT redefined per-page.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-grotesk@500&display=swap');

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
    --bg-color: #F3F4FF;
    --text-color: #060D29;
    --accent-color: #384BF8;
    --surface-alt: rgba(56, 75, 248, 0.08);
    --glass-border: rgba(56, 75, 248, 0.2);
    --glass-bg: rgba(56, 75, 248, 0.08);
    --white: #FFFFFF;
    --radius: 20px;

    --font-display: 'Clash Grotesk', sans-serif;
    --font-body: 'Lato', sans-serif;

    --pad-desk: 120px;
    --pad-mob: 64px;
    --container-width: 1280px;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .display-text {
    font-family: var(--font-display);
    font-weight: 500; /* Strictly 500 max */
    letter-spacing: -0.025em;
    color: var(--text-color);
    margin-bottom: 0.5em;
}

h1 { font-size: 72px; line-height: 1.0; margin-bottom: 24px; }
h2 { font-size: 48px; line-height: 1.1; }
h3 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
p { margin-bottom: 16px; font-size: 18px; }

.micro-meta {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(56, 75, 248, 0.6);
    display: block;
    margin-top: auto;
    padding-top: 16px;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

section { padding: var(--pad-desk) 0; position: relative; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

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

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

.section-header {
    max-width: 600px;
    margin-bottom: 64px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary { background-color: var(--accent-color); color: var(--white); }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 75, 248, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
.btn-secondary:hover { background-color: var(--surface-alt); }

.btn-ghost {
    background-color: transparent;
    color: var(--accent-color);
    padding: 11px 18px;
}
.btn-ghost:hover { background-color: var(--surface-alt); }

.btn-group {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 32px;
}

/* ==========================================================================
   Glass Card (signature component — also exposed as .appointment-card
   for parity with the canonical reference template)
   ========================================================================== */
.glass-card,
.appointment-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, transform 0.3s ease;
    height: 100%;
    text-align: left;
}

.glass-card:hover,
.appointment-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.card-badge {
    width: 32px;
    height: 32px;
    background-color: var(--accent-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--white);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(6, 13, 41, 0.05);
    padding: 20px 0;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    color: var(--accent-color);
    letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 32px; }

.nav-links a {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent-color); }

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(6, 13, 41, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 16px;
    display: block;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-color);
}

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

.footer-col a {
    color: rgba(6, 13, 41, 0.7);
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(6, 13, 41, 0.05);
    font-size: 12px;
    color: rgba(6, 13, 41, 0.5);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --pad-desk: var(--pad-mob); }
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
}
