/* ============================================================
   FOGBANK — fogbank.css
   Standalone brand theme for fog-bank.ca
   Palette derived from Chudworth theme-purple.css Fogbank vars
   ============================================================ */

/* ── FONTS ──────────────────────────────────────────────────── */
@font-face {
    font-family: 'MuseoSlab700';
    src: url('../assets/fonts/MuseoSlab-700.woff2') format('woff2'),
	 url('../assets/fonts/MuseoSlab-700.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ── BRAND VARIABLES ────────────────────────────────────────── */
:root {
    --fog-dark:    #2e3f4f;   /* deep atlantic slate  */
    --fog-mid:     #4a6478;   /* overcast blue-grey   */
    --fog-light:   #8fa9bc;   /* signal hill morning  */
    --fog-pale:    #dce8f0;   /* salt mist            */
    --fog-accent:  #6b9ab8;   /* harbour glass        */
    --fog-bg:      #f0f5f8;   /* light page bg        */
    --fog-text:    #1e2d3a;   /* body text            */
}

/* ── ANIMATED GRADIENT ANGLE ────────────────────────────────── */
@property --fog-gradient-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 135deg;
}

@keyframes fog-drift {
    0%   { --fog-gradient-angle: 120deg; }
    50%  { --fog-gradient-angle: 160deg; }
    100% { --fog-gradient-angle: 120deg; }
}

/* ── BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--fog-bg);
    color: var(--fog-text);
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5 {
    font-family: MuseoSlab700;
    margin-top: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { transition: color 0.15s; }

:focus { outline: none; }
:focus-visible {
    outline: 3px solid var(--fog-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── LAYOUT HELPERS ─────────────────────────────────────────── */
.fog-container {
    width: 75%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.fog-section {
    padding: 3rem 0;
}

@media (max-width: 900px) {
    .fog-container { width: 92%; }
}

@media (max-width: 600px) {
    .fog-container {
	width: 100%;
	padding-left: 1rem;
	padding-right: 1rem;
    }
    .fog-section { padding: 2rem 0; }
}

/* ── HEADER ─────────────────────────────────────────────────── */
.fog-header {
    background: linear-gradient(var(--fog-gradient-angle), var(--fog-dark) 0%, var(--fog-mid) 100%);
    animation: fog-drift 10s ease-in-out infinite;
    padding: 1rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.fog-header-inner {
    width: 75%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.fog-wordmark {
    font-family: MuseoSlab700;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.fog-wordmark span {
    color: var(--fog-pale);
    font-size: 0.6em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    line-height: 1;
    margin-top: 0.1rem;
    opacity: 0.85;
}

.fog-header-phone {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s;
}

.fog-header-phone:hover { color: #fff; }

@media (max-width: 900px) {
    .fog-header-inner { width: 92%; }
}

@media (max-width: 600px) {
    .fog-header-inner {
	width: 100%;
	padding: 0 1rem;
    }
}

/* ── HERO ───────────────────────────────────────────────────── */
.fog-hero {
    background: linear-gradient(var(--fog-gradient-angle), var(--fog-dark) 0%, var(--fog-mid) 100%);
    animation: fog-drift 10s ease-in-out infinite;
    padding: 5rem 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.fog-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    max-width: 800px;
}

.fog-hero p {
    color: rgba(255,255,255,0.82);
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.fog-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 600px) {
    .fog-hero { padding: 3rem 1rem; }
}

/* ── TRUST BAR ──────────────────────────────────────────────── */
.fog-trust-bar {
    background-color: var(--fog-dark);
    padding: 0.85rem 1rem;
}

.fog-trust-bar-inner {
    width: 75%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    align-items: center;
    justify-content: center;
}

.fog-trust-item {
    color: var(--fog-pale);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fog-trust-item i { color: var(--fog-light); }

@media (max-width: 900px) {
    .fog-trust-bar-inner { width: 92%; }
}

@media (max-width: 600px) {
    .fog-trust-bar-inner { width: 100%; gap: 0.4rem 1rem; }
}

/* ── CARDS ──────────────────────────────────────────────────── */
/* Light card — used on pale bg sections */
.fog-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 16px rgba(46,63,79,0.08);
}

/* Dark gradient card */
.fog-card-dark {
    background: linear-gradient(var(--fog-gradient-angle), var(--fog-dark) 0%, var(--fog-mid) 100%);
    animation: fog-drift 10s ease-in-out infinite;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    color: #fff;
}

.fog-card-dark h2,
.fog-card-dark h3,
.fog-card-dark h4,
.fog-card-dark h5 { color: #fff; }

.fog-card-dark p { color: rgba(255,255,255,0.82); }

@media (max-width: 600px) {
    .fog-card,
    .fog-card-dark {
	padding: 1.5rem 1.25rem;
	border-radius: 14px;
    }
}

/* ── FEATURE CARDS ──────────────────────────────────────────── */
.fog-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.fog-feature-card {
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: background-color 0.2s;
}

.fog-feature-card:hover { background-color: rgba(255,255,255,0.14); }

.fog-feature-card h5 {
    color: #fff;
    margin: 0.25rem 0 0.5rem;
}

.fog-feature-card p {
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
    margin: 0;
}

.fog-feature-icon {
    font-size: 1.8rem;
    color: var(--fog-light);
    margin-bottom: 0.5rem;
    display: block;
}

/* ── VALUE GRID (light bg) ──────────────────────────────────── */
.fog-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.fog-value-card {
    background-color: var(--fog-pale);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fog-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46,63,79,0.14);
}

.fog-value-card i {
    font-size: 2rem;
    color: var(--fog-mid);
    margin-bottom: 0.75rem;
    display: block;
}

.fog-value-card h5 {
    color: var(--fog-dark);
    margin: 0 0 0.5rem;
}

.fog-value-card p {
    font-size: 0.92rem;
    color: #555;
    margin: 0;
}

/* ── PRICING ────────────────────────────────────────────────── */
.fog-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.fog-price-box {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.fog-price-box .price {
    font-family: MuseoSlab700;
    color: #fff;
    font-size: 2.2rem;
    margin: 0;
    line-height: 1;
}

.fog-price-box .price-sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    margin: 0.3rem 0 0;
}

/* ── TAG / EYEBROW ──────────────────────────────────────────── */
.fog-tag {
    display: inline-block;
    background-color: var(--fog-accent);
    color: #fff;
    font-family: MuseoSlab700;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.25rem 0.8rem;
    border-radius: 25px;
    margin-bottom: 0.75rem;
}

.fog-eyebrow {
    font-family: MuseoSlab700;
    color: var(--fog-accent);
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

/* ── DIVIDER ────────────────────────────────────────────────── */
.fog-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 1.5rem 0;
}

.fog-divider-light {
    border: none;
    border-top: 1px solid rgba(46,63,79,0.12);
    margin: 1.5rem 0;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-fog {
    font-family: MuseoSlab700;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 25px;
    background-color: var(--fog-pale);
    color: var(--fog-dark);
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    border: none;
    display: inline-block;
    padding: 10px 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-fog:hover {
    background-color: #fff;
    color: var(--fog-dark);
    box-shadow: 2px 4px 12px rgba(0,0,0,0.3);
}

.btn-fog-outline {
    font-family: MuseoSlab700;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 25px;
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    display: inline-block;
    padding: 8px 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-fog-outline:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* Dark-bg version for light sections */
.btn-fog-dark {
    font-family: MuseoSlab700;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 25px;
    background-color: var(--fog-dark);
    color: var(--fog-pale);
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
    border: none;
    display: inline-block;
    padding: 10px 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}

.btn-fog-dark:hover {
    background-color: var(--fog-mid);
    color: #fff;
}

/* ── FORM ───────────────────────────────────────────────────── */
.fog-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fog-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.fog-form-label {
    font-family: MuseoSlab700;
    font-size: 0.88rem;
    color: var(--fog-dark);
    letter-spacing: 0.05em;
}

.fog-form-input,
.fog-form-select,
.fog-form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border: 2px solid rgba(46,63,79,0.2);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: sans-serif;
    background-color: #fff;
    color: var(--fog-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: auto;
}

.fog-form-input:focus,
		.fog-form-select:focus,
		.fog-form-textarea:focus {
    outline: none;
    border-color: var(--fog-mid);
    box-shadow: 0 0 0 3px rgba(74,100,120,0.15);
}

.fog-form-input::placeholder,
.fog-form-textarea::placeholder { color: #aaa; }

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

/* ── CTA STRIP ──────────────────────────────────────────────── */
.fog-cta-strip {
    background: linear-gradient(var(--fog-gradient-angle), var(--fog-dark) 0%, var(--fog-mid) 100%);
    animation: fog-drift 10s ease-in-out infinite;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.fog-cta-strip h3 { color: #fff; margin: 0; }
.fog-cta-strip p  { color: rgba(255,255,255,0.75); margin: 0.4rem 0 0; }

@media (max-width: 600px) {
    .fog-cta-strip { padding: 1.5rem 1.25rem; border-radius: 14px; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.fog-footer {
    margin-top: auto;
    background-color: var(--fog-dark);
    color: rgba(255,255,255,0.7);
}

.fog-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.fog-footer-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.fog-footer-cell i {
    font-size: 1.8rem;
    color: var(--fog-light);
    margin-bottom: 0.25rem;
}

.fog-footer-cell a {
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    transition: color 0.15s;
}

.fog-footer-cell a:hover { color: var(--fog-pale); }

.fog-footer-cell p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.fog-footer-label {
    font-family: MuseoSlab700;
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.fog-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.fog-footer-bottom a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
}

.fog-footer-bottom a:hover { color: var(--fog-pale); }

.fog-back-to-top {
    display: block;
    text-align: center;
    padding: 0.6rem;
    background-color: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.fog-back-to-top:hover {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}

/* ── SCROLL-DRIVEN FADE-IN ──────────────────────────────────── */
@keyframes fog-fadein-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
    .fog-fadein {
	opacity: 0;
	animation: fog-fadein-up 0.6s ease forwards;
	animation-timeline: view();
	animation-range: entry 0% entry 35%;
    }

    .fog-fadein-stagger > * {
	opacity: 0;
	animation: fog-fadein-up 0.55s ease forwards;
	animation-timeline: view();
	animation-range: entry 0% entry 40%;
    }

    .fog-fadein-stagger > *:nth-child(1) { animation-delay: 0.00s; }
    .fog-fadein-stagger > *:nth-child(2) { animation-delay: 0.08s; }
    .fog-fadein-stagger > *:nth-child(3) { animation-delay: 0.16s; }
    .fog-fadein-stagger > *:nth-child(4) { animation-delay: 0.24s; }
    .fog-fadein-stagger > *:nth-child(5) { animation-delay: 0.32s; }
    .fog-fadein-stagger > *:nth-child(6) { animation-delay: 0.40s; }
    .fog-fadein-stagger > *:nth-child(7) { animation-delay: 0.48s; }
    .fog-fadein-stagger > *:nth-child(8) { animation-delay: 0.56s; }
}
