/* danbough.com — hand-written, plain CSS (no Sass).
   Loaded after normalize.min.css. Visual language modelled on dexal.co.uk:
   system font stack, warm paper + white grounds, 4px radius, dark buttons that
   turn accent on hover, small uppercase section-label kickers, card grid.
   The single accent is dexal's warm tone (the colour of the "Start here" label
   inside its #contact section). Tune it in :root. */

:root {
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --paper: #fbf8f2;
    --white: #ffffff;
    --dark: #1a1a1a;
    --muted: #5f6875;
    --line: #e5eaf2;
    --ink: #101828;

    --accent: #b96f3a;
    --accent-dark: #9c5a2c;
    --accent-soft: #fff1e5;
    --accent-on-dark: #ffd59e;

    --max-width: 1160px;
    --text-width: 760px;
    --section-y: clamp(4rem, 9vw, 6rem);
}

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

[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem; /* clear the sticky header on anchor jumps */
}

body {
    margin: 0;
    font-family: var(--font-stack);
    color: var(--dark);
    line-height: 1.6;
    background:
        linear-gradient(180deg, rgba(251, 248, 242, 0.9), rgba(255, 255, 255, 1) 520px),
        var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    color: var(--dark);
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 800;
}

p { margin: 0 0 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--accent-dark); }

img { max-width: 100%; }

strong { color: var(--dark); }

/* ---------- Layout primitives ---------- */

.wrapper {
    max-width: var(--text-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.wrapper--wide { max-width: var(--max-width); }

.section {
    padding-block: var(--section-y);
    border-bottom: 1px solid var(--line);
}
.section--alt { background: var(--paper); }
.section:last-of-type { border-bottom: 0; }

.section-label {
    display: block;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section > .wrapper > h2,
.section > .wrapper > .section-head h2 {
    font-size: clamp(2rem, 3vw, 2.85rem);
    font-weight: 800;
    margin: 0 0 1.1rem;
    max-width: 22ch;
}

.lead {
    font-size: 1.15rem;
    color: var(--dark);
    max-width: 60ch;
}

.section-cta { margin-top: 1.75rem; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.8rem 1.5rem;
    background: var(--dark);
    color: #fff;
    border: 1px solid var(--dark);
    border-radius: 4px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(185, 111, 58, 0.28);
}

/* ---------- Sticky header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 72px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.site-header__logo {
    display: block;
    width: 28px;
    height: 28px;
}
.site-header__name {
    font-weight: 800;
    color: var(--dark);
    font-size: 1.05rem;
}
.site-header__brand:hover .site-header__name { color: var(--dark); }
.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.site-nav__panel {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-nav__panel a:not(.btn) {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
}
.site-nav__panel a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .site-nav__panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.25rem 1.5rem 1.5rem;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 32px rgba(16, 24, 40, 0.08);
    }
    .site-nav.is-open .site-nav__panel { display: flex; }
    .site-nav__panel a:not(.btn) {
        padding: 0.9rem 0;
        border-top: 1px solid var(--line);
        font-size: 1rem;
    }
    .site-nav__panel .btn--cta {
        margin-top: 1rem;
        justify-content: center;
    }
    .site-nav.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-nav.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
    .site-nav.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (two-column, à la completelyhumancoaching.com) ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 8vw, 5.5rem);
    background:
        linear-gradient(90deg, rgba(251, 248, 242, 0.98), rgba(255, 255, 255, 0.9) 54%, rgba(234, 242, 255, 0.6)),
        repeating-linear-gradient(90deg, rgba(26, 26, 26, 0.035) 0 1px, transparent 1px 112px);
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185, 111, 58, 0.4), transparent);
}
.hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3.5rem;
}
.hero h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    font-weight: 850;
    margin: 0 0 1.25rem;
}
.hero__sub {
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    color: var(--muted);
    line-height: 1.75;
    max-width: 54ch;
    margin: 0 0 2rem;
}
.hero__photo {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 360px;
}
.hero__photo-frame { position: relative; }
.hero__photo-frame::before {
    content: "";
    position: absolute;
    inset: 4%;
    z-index: 0;
    background: var(--accent-soft);
    border-radius: 50%;
}
.hero__photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
@media (max-width: 860px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .hero__photo { order: -1; max-width: 240px; }
    .hero__sub { margin-inline: auto; }
}

/* ---------- Numbered offering cards ---------- */

.offerings {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.offering-card {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 4px;
    padding: 1.75rem;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.045);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.offering-card:hover {
    border-color: rgba(185, 111, 58, 0.34);
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.09);
}
.offering-num {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.offering-card h3 {
    font-size: 1.15rem;
    font-weight: 760;
    margin: 0 0 0.5rem;
}
.offering-card p {
    flex: 1;
    margin: 0;
    font-size: 0.96rem;
}
.card-link {
    align-self: flex-start;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.closing-note {
    margin-top: 1.75rem;
    color: var(--muted);
}

/* ---------- Two-column list block (coaching) ---------- */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.75rem;
}
.two-col h3 {
    font-size: 1.05rem;
    font-weight: 760;
    margin: 0 0 0.75rem;
}
@media (max-width: 640px) {
    .two-col { grid-template-columns: 1fr; gap: 1.75rem; }
}
.plain-list {
    margin: 0;
    padding-left: 1.1rem;
}
.plain-list li {
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.98rem;
}
.plain-list li::marker { color: var(--accent); }

/* ---------- Dark contact section ---------- */

.section--dark {
    background: linear-gradient(135deg, var(--ink), #172b47 58%, #0d1b2e);
    border-bottom: 0;
}
.section--dark h2 { color: #fff; }
.section--dark .section-label { color: var(--accent-on-dark); }
.section--dark .lead,
.section--dark p { color: rgba(255, 255, 255, 0.82); }

.contact-form {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
    max-width: 34rem;
}
.contact-form label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #fff;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    font: inherit;
    color: var(--dark);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.75rem;
}
.contact-form textarea {
    min-height: 8rem;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent-on-dark);
    outline-offset: 1px;
    border-color: var(--accent-on-dark);
}
.contact-form .btn {
    justify-self: start;
    margin-top: 0.25rem;
    background: var(--accent);
    border-color: var(--accent);
}
.contact-form .btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}
.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.form-status {
    max-width: 34rem;
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #fff;
}
.form-status.is-success {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--accent-on-dark);
}
.form-status.is-error {
    background: rgba(199, 81, 70, 0.16);
    border: 1px solid #c75146;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    padding: 3.5rem 1.5rem;
}
.site-footer__links {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.site-footer__links a { color: rgba(255, 255, 255, 0.72); }
.site-footer__links a:hover { color: #fff; }
.site-footer small { font-size: 0.85rem; opacity: 0.65; }

/* ---------- Error page ---------- */

.error-page {
    text-align: center;
    padding-block: clamp(5rem, 16vw, 10rem);
}
.error-page h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 850;
    margin: 0 0 0.75rem;
}
.error-page p { color: var(--muted); margin-bottom: 2rem; }

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Icon font (icomoon) — only the glyphs still used in the footer
   ========================================================================== */

@font-face {
    font-family: 'icomoon';
    src: url('../fonts/icomoon.eot');
    src: url('../fonts/icomoon.eot?#iefix') format('embedded-opentype'),
        url('../fonts/icomoon.woff') format('woff'),
        url('../fonts/icomoon.ttf') format('truetype'),
        url('../fonts/icomoon.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    font-family: 'icomoon';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-github2:before { content: "\e601"; }
.icon-linkedin:before { content: "\e602"; }

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .site-header, .site-footer, .contact-form { display: none; }
    * { background: transparent !important; color: #000 !important; }
    a, a:visited { text-decoration: underline; }
}
