/* ============================================
   COMMS THREADER MARKETING — SHARED STYLES v1.0
   Adapted from Brand Threader v2
   ============================================ */

:root {
    --accent: #14B795;
    --accent-light: rgba(20, 183, 149, 0.08);
    --accent-glow: rgba(20, 183, 149, 0.25);
    --teal: #012422;
    --teal-light: #073D39;
    --teal-heading: #0A5E58;
    --gold: #FBB203;
    --gold-glow: rgba(251, 178, 3, 0.3);
    --body-text: #333333;
    --muted: #666666;
    --light-muted: #999999;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --border: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);
    --card-text: #F5F5F5;
    --card-muted: #AAAAAA;
    --transition-fast: 0.15s ease;
    --transition-medium: 0.25s ease;
    --max-width: 1140px;
    --section-padding: 100px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--body-text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.25;
    color: var(--teal-heading);
}

h2, h3, h4, h5, h6 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--teal-heading);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-padding) 0; }

.section-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-headline {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.6;
}

/* ============================================
   BUTTONS — Teal with gold trim
   ============================================ */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--white);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--gold) inset;
    transition: transform var(--transition-fast), box-shadow var(--transition-medium);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--gold) inset, 0 4px 20px var(--accent-glow);
    color: var(--white);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--teal-heading);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--teal-heading);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

/* Legacy gold btn for CTA areas */
.btn-gold {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gold);
    color: var(--teal);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-medium);
    text-decoration: none;
}

.btn-gold:hover {
    transform: scale(1.03);
    box-shadow: 0 0 24px var(--gold-glow);
    color: var(--teal);
}

/* ============================================
   BADGES — Matching app hub
   ============================================ */
.badge-pro {
    font-family: 'Work Sans', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    box-shadow: 0 0 8px rgba(251, 178, 3, 0.15);
}

.badge-lite {
    font-family: 'Work Sans', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    background: transparent;
    border: 1.5px solid #AAAAAA;
    color: #AAAAAA;
}

/* ============================================
   SCROLL REVEAL — Matching app pattern
   ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="slide-left"] {
    transform: translateX(-30px) translateY(0);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="slide-left"].revealed {
    transform: translateX(0) translateY(0);
}

[data-reveal="slide-right"] {
    transform: translateX(30px) translateY(0);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="slide-right"].revealed {
    transform: translateX(0) translateY(0);
}

[data-reveal="scale"] {
    transform: scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="scale"].revealed {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   NAV — Teal background, white text
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    transition: background 0.4s ease;
}

.nav-bg {
    background: var(--teal-light);
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-radius: 0 0 12px 12px;
}

/* Full-width teal behind the contained nav */
.nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: var(--teal-light);
    z-index: -1;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex; align-items: center; gap: 28px; list-style: none;
}

.nav-links a {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px; font-weight: 500;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    position: relative;
    opacity: 0.85;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--white);
}

.nav-links a.active {
    opacity: 1;
    color: var(--white);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.nav-links .nav-cta {
    padding: 8px 20px;
    background: var(--gold);
    color: var(--teal);
    border-radius: 5px;
    font-weight: 600;
    opacity: 1;
    letter-spacing: 1px;
    transition: transform var(--transition-fast), box-shadow var(--transition-medium);
}

.nav-links .nav-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 0 16px var(--gold-glow);
    color: var(--teal);
}

.nav-links .nav-cta.active::after { display: none; }
.nav-links .nav-cta.active { color: var(--teal); }

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--white);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--teal-light);
    z-index: 999;
    padding: 48px 24px;
    flex-direction: column;
    gap: 24px;
}

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

.mobile-menu a {
    font-family: 'Work Sans', sans-serif;
    font-size: 24px;
    color: var(--white);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.85;
}

.mobile-menu a:hover { opacity: 1; color: var(--white); }
.mobile-menu a:last-child { border-bottom: none; }

/* ============================================
   FOOTER — Contained width, teal, compact
   ============================================ */
.footer {
    background: var(--teal-light);
    color: var(--card-muted);
    padding: 32px 0 20px;
    margin-top: 40px;
}

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

.footer-brand {
    flex-shrink: 0;
}

.footer-brand .footer-logo img {
    height: 32px;
    width: auto;
    margin-bottom: 6px;
}

.footer-brand-sub {
    font-size: 12px;
    color: var(--card-muted);
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-nav a {
    font-size: 13px;
    color: var(--card-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-nav a:hover { color: var(--card-text); }

.footer-nav-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 13px;
    user-select: none;
}

.footer-bottom {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.6;
}

/* ============================================
   PAGE HEADER (subpages)
   ============================================ */
.page-header {
    padding-top: 100px;
    padding-bottom: 48px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(32px, 4.5vw, 56px);
    margin-bottom: 16px;
}

.page-header .section-sub { margin: 0 auto; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
    :root { --section-padding: 80px; }
    .page-header { padding-top: 88px; }
    .footer-top { flex-direction: column; gap: 24px; }
}
