/*
 * Stylesheet for UK Youth Housing LTD website
 * Colours and fonts match the logo.
 */

:root {
    --orange: #e57c23;
    --orange-dark: #b85d12;   /* hover, and text-safe orange */
    --green: #30544d;
    --green-dark: #243f3a;
    --light: #f8f5f2;
    --white: #ffffff;
    --ink: #2b2b2b;
    --muted: #5b5b5b;

    /* Figure colours from the logo */
    --red: #e8274b;
    --yellow: #f5b82e;
    --leaf: #2bb24c;
    --blue: #1f6fd1;

    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Montserrat', Helvetica, Arial, sans-serif;

    --header-h: 76px;
    --radius: 14px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    background: var(--light);
    color: var(--ink);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

h1, h2, h3 {
    font-family: var(--serif);
    color: var(--green);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    z-index: 200;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(248, 245, 242, 0.96);
    border-bottom: 1px solid rgba(48, 84, 77, 0.12);
    backdrop-filter: blur(6px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-mark {
    width: 76px;
    height: 50px;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--green);
    white-space: nowrap;
}

.brand-ltd {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--orange-dark);
    margin-left: 0.2rem;
}

#navbar {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

#navbar a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink);
}

#navbar a:hover { color: var(--orange-dark); }

#navbar a.nav-cta {
    background: var(--green);
    color: var(--white);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
}

#navbar a.nav-cta:hover { background: var(--green-dark); color: var(--white); }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
    color: var(--green);
    cursor: pointer;
    width: 44px;
    height: 44px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn:hover { background: var(--orange-dark); }

.btn-quiet {
    background: transparent;
    color: var(--green);
    box-shadow: inset 0 0 0 2px var(--green);
}

.btn-quiet:hover { background: var(--green); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
    padding-top: calc(var(--header-h) + 3.5rem);
    padding-bottom: 4.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3.5rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 3.9rem);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 34em;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-weight: 500;
    color: var(--green);
}

.hero-points i {
    color: var(--orange);
    margin-right: 0.3rem;
}

.hero-art img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 75%;
    border-radius: 200px 200px var(--radius) var(--radius);
}

/* ---------- Section bands ---------- */
.band {
    padding: 5rem 0;
}

.band-white { background: var(--white); }

.band-green {
    background: var(--green);
    color: var(--light);
}

.band-green h2 { color: var(--white); }

/* About */
.about {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    max-width: 38em;
    margin-bottom: 1rem;
}

/* Benefits */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.25rem;
    margin-top: 2rem;
}

.icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.icon-red { background: var(--red); }
.icon-yellow { background: var(--yellow); color: var(--ink); }
.icon-green { background: var(--leaf); }
.icon-blue { background: var(--blue); }

.benefit p,
.service p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* Services */
.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
    margin-top: 2rem;
}

.service {
    display: flex;
    gap: 1.1rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(48, 84, 77, 0.15);
}

.service > i {
    font-size: 1.4rem;
    color: var(--orange);
    width: 1.8rem;
    padding-top: 0.2rem;
    flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-intro p { max-width: 30em; margin-bottom: 2rem; }

.contact-details {
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.contact-details i {
    color: var(--yellow);
    width: 1.5rem;
}

.contact-details a { text-decoration: none; border-bottom: 1px solid rgba(248, 245, 242, 0.4); }
.contact-details a:hover { border-color: var(--yellow); }

.contact-form {
    background: var(--light);
    color: var(--ink);
    padding: 2rem;
    border-radius: var(--radius);
    display: grid;
    gap: 0.35rem;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--green);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    margin-bottom: 0.9rem;
    border: 1px solid #c9c4be;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid var(--orange);
    outline-offset: 0;
    border-color: var(--orange);
}

.contact-form .btn { justify-self: start; }

.hp { position: absolute; left: -9999px; }

.form-status {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    font-weight: 500;
}
.form-status.ok { background: #e3f3e7; color: #1d5a2b; }
.form-status.error { background: #fbe4e7; color: #8a1c2d; }

/* ---------- WhatsApp button ---------- */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 58px;
    padding: 0 1.3rem 0 1.1rem;
    border-radius: 999px;
    background: #25d366;
    color: #0b3d1f;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float i { font-size: 1.9rem; color: #ffffff; }

.whatsapp-float:hover { background: #1ebe5a; transform: translateY(-2px); }

.contact-details .fa-whatsapp { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--green-dark);
    color: rgba(248, 245, 242, 0.85);
    padding: 2.5rem 0;
    font-size: 0.92rem;
}

.site-footer .brand-mark {
    --mark-house: var(--light);
    width: 60px;
    height: 40px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--yellow); }

.copyright { width: 100%; opacity: 0.75; }

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { gap: 2.5rem; }
}

@media (max-width: 820px) {
    :root { --header-h: 68px; }

    .menu-toggle { display: block; }

    #navbar {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--light);
        border-bottom: 1px solid rgba(48, 84, 77, 0.15);
        padding: 0.5rem 1.5rem 1.25rem;
    }

    #navbar.active { display: flex; }

    #navbar a { padding: 0.8rem 0; font-size: 1.05rem; }

    #navbar a.nav-cta { margin-top: 0.5rem; text-align: center; padding: 0.8rem; }

    .brand-mark { width: 62px; height: 41px; }
    .brand-name { font-size: 1.15rem; }

    .hero { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 3rem; }
    .hero-inner,
    .about,
    .contact,
    .service-list { grid-template-columns: 1fr; }
    .about { gap: 0; }
    .hero-art { max-width: 420px; margin: 0 auto; }
    .band { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
    .whatsapp-float { width: 58px; padding: 0; justify-content: center; }
    .whatsapp-label { display: none; }
    .benefit-grid { grid-template-columns: 1fr; }
    .brand-ltd { display: none; }
    .contact-form { padding: 1.4rem; }
}
