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

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

@keyframes hh-drift {
    0%   { --hh-gradient-angle: 120deg; }
    50%  { --hh-gradient-angle: 160deg; }
    100% { --hh-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(--hh-bg);
    color: var(--hh-text);
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5 {
    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(--hh-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

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

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

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

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

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

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

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

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

.hh-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;
}

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

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

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

/* ── HERO ───────────────────────────────────────────────────── */
.hh-hero {
    background: linear-gradient(var(--hh-gradient-angle), var(--hh-dark) 0%, var(--hh-mid) 100%);
    animation: hh-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%;
}

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

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

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

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

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

.hh-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;
}

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

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

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

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

/* ── CARDS ──────────────────────────────────────────────────── */
/* Light card — used on pale bg sections */
.hh-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 */
.hh-card-dark {
    background: linear-gradient(var(--hh-gradient-angle), var(--hh-dark) 0%, var(--hh-mid) 100%);
    animation: hh-drift 10s ease-in-out infinite;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    color: #fff;
}

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

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

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

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

.hh-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-hh {
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 25px;
    background-color: var(--hh-pale);
    color: var(--hh-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-hh:hover {
    background-color: #fff;
    color: var(--hh-dark);
    box-shadow: 2px 4px 12px rgba(0,0,0,0.3);
}

.btn-hh-outline {
    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-hh-outline:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* Dark-bg version for light sections */
.btn-hh-dark {
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 25px;
    background-color: var(--hh-dark);
    color: var(--hh-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-hh-dark:hover {
    background-color: var(--hh-mid);
    color: #fff;
}

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

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

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

.hh-form-input,
.hh-form-select,
.hh-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(--hh-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: auto;
}

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

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

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

/* ── CTA STRIP ──────────────────────────────────────────────── */
.hh-cta-strip {
    background: linear-gradient(var(--hh-gradient-angle), var(--hh-dark) 0%, var(--hh-mid) 100%);
    animation: hh-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;
}

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

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

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

.hh-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;
}

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

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

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

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

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

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

.hh-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);
}

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

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

.hh-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;
}

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

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

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

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

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