/* ===== Base layout and colour palette ===== */

:root {
    --colour-bg: #f4f5fb;
    --colour-panel: #ffffff;
    --colour-alt: #e0f3f5;
    --colour-primary: #005f73;   /* deep teal */
    --colour-primary-soft: #0a9396;
    --colour-accent: #ee6c4d;    /* warm coral */
    --colour-text: #081219;
    --colour-muted: #4b5663;
    --colour-border: #d0d5e4;
    --radius-lg: 18px;
    --radius-md: 10px;
    --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
    --shadow-subtle: 0 6px 16px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--colour-text);
    background: var(--colour-bg);
}

/* ===== Utility containers ===== */

.shell {
    width: min(1100px, 94vw);
    margin: 0 auto;
}

.narrow {
    max-width: 680px;
    margin-inline: auto;
}

/* ===== Skip link ===== */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--colour-primary);
    color: #ffffff;
    text-decoration: none;
    z-index: 1000;
    border-radius: 999px;
}

.skip-link:focus {
    left: 0.5rem;
}

/* ===== Header & navigation ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 18, 25, 0.96);
    backdrop-filter: blur(10px);
    color: #f9fafb;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.7rem 0.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--colour-accent), var(--colour-primary-soft));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
}

.brand-text {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.nav a {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.nav a:hover,
.nav a:focus {
    background: rgba(148, 163, 184, 0.2);
}

.nav a[aria-current="page"] {
    background: #f9fafb;
    color: var(--colour-primary);
    font-weight: 600;
}

/* ===== Hero ===== */

.hero {
    background: radial-gradient(circle at top left, #e0fbfc 0, #f4f5fb 40%, #dbeafe 100%);
    padding: 2.6rem 0 2.2rem;
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin: 0 0 0.75rem;
    color: var(--colour-text);
}

.hero-copy p {
    margin: 0 0 1.3rem;
    color: var(--colour-muted);
    max-width: 36rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-image img {
    display: block;
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* ===== General blocks ===== */

.page-intro {
    padding: 2.4rem 0 1.8rem;
}

.page-intro h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.page-intro p {
    color: var(--colour-muted);
}

.block {
    padding: 2rem 0;
}

.block-alt {
    background: var(--colour-panel);
}

.block-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.2rem;
}

/* ===== Grids & cards ===== */

.grid {
    display: grid;
    gap: 1.6rem;
}

.grid-2 {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.reverse {
    direction: rtl;
}

.grid.reverse > * {
    direction: ltr;
}

.tile {
    background: var(--colour-panel);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow-subtle);
}

.tile h3 {
    margin-top: 0;
}

.image-frame img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
}

/* ===== Steps list ===== */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.steps li + li {
    margin-top: 1.2rem;
}

/* ===== Buttons ===== */

.btn {
    display: inline-block;
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.btn-primary {
    background: var(--colour-primary);
    color: #ffffff;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--colour-primary-soft);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--colour-primary);
    border-color: rgba(15, 23, 42, 0.18);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(15, 23, 42, 0.04);
}

/* ===== Forms ===== */

.form-shell {
    max-width: 680px;
}

form fieldset {
    border: 1px solid var(--colour-border);
    padding: 1.2rem 1.3rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.6rem;
    background: var(--colour-panel);
}

form legend {
    padding: 0 0.3rem;
    font-weight: 600;
}

.field {
    margin-bottom: 0.9rem;
}

.field label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--colour-border);
    background: #f9fafb;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--colour-primary-soft);
    outline-offset: 2px;
    background: #ffffff;
}

.required {
    color: #b91c1c;
    margin-left: 0.15rem;
}

/* ===== Footer ===== */

.site-footer {
    background: #020617;
    color: #e5e7eb;
    padding: 1.6rem 0;
    margin-top: 2rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
    align-items: flex-start;
}

.site-footer a {
    color: var(--colour-primary-soft);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    text-decoration: underline;
}

/* ===== Misc text ===== */

.muted {
    color: var(--colour-muted);
}

.small {
    font-size: 0.85rem;
}

/* ===== Images ===== */

img {
    max-width: 100%;
    height: auto;
}

/* ===== Responsive tweaks ===== */

@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-grid,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}
