/*
Theme Name: AHL Design
Theme URI: https://ahldesign.co.uk
Author: AHL Design Ltd
Description: One-page homepage for AHL Design. The enquiry form is Contact Form 7.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: ahl-design
*/

:root {
    --gold: rgba(246, 173, 38, 0.78);
    --gold-solid: #e39b1e;
    --ink: #171717;
    --muted: #4a4a4a;
    --paper: #f4f1eb;
    --line: #e3ddd3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--muted);
    font-family: Raleway, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background: var(--paper);
}

a { color: inherit; }

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: #fff;
    color: #000;
    padding: 8px 12px;
    z-index: 20;
}

.skip:focus { top: 12px; }

.topbar {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    width: max-content;
    max-width: 100%;
    background: var(--gold);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.topbar-inner {
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 9px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 18px;
}

.topbar a { text-decoration: none; }

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    color: #fff;
    background: #111 url("assets/hero.jpg") center / cover no-repeat;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 8, 12, 0.62) 0%, rgba(6, 8, 12, 0.18) 46%, rgba(6, 8, 12, 0.08) 100%),
        linear-gradient(180deg, rgba(6, 8, 12, 0.28), transparent 28%, rgba(6, 8, 12, 0.55));
}

.hero-nav,
.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-nav {
    position: absolute;
    top: 50px;
    right: 22px;
    z-index: 2;
}

.hero-nav a {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
}

.hero-copy {
    padding: 118px 8vw 80px;
    max-width: 680px;
}

.logo {
    width: min(440px, 78vw);
    height: auto;
    display: block;
}

.kicker {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.coming {
    margin: 14px 0 26px;
    color: #fff;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.15;
}

.hero-btn {
    display: inline-block;
    padding: 18px 48px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-btn:hover {
    background: var(--gold-solid);
    border-color: transparent;
    color: #1a1408;
}

.hero-copy > * {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    animation: rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-copy > :nth-child(1) { animation-delay: 0.08s; }
.hero-copy > :nth-child(2) { animation-delay: 0.2s; }
.hero-copy > :nth-child(3) { animation-delay: 0.32s; }
.hero-copy > :nth-child(4) { animation-delay: 0.44s; }

@keyframes rise {
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.floaters {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floater {
    position: absolute;
    left: 0;
    top: 0;
    width: max-content;
    max-width: calc(100% - 32px);
    animation: drift 12s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    will-change: transform;
}

.floater-label {
    display: block;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.floaters.is-ready .floater-label {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -12px, 0); }
}

@keyframes drift-quiet {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -6px, 0); }
}

.contact { padding: 88px 6vw 100px; }

.contact-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: start;
}

.details {
    padding: 36px 32px 32px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold-solid);
    box-shadow: 0 18px 50px rgba(40, 32, 20, 0.06);
}

.details h2 {
    margin: 0;
    color: var(--ink);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.details h2 + h2 {
    margin-top: 10px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
}

.details p {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.75;
}

.details a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: rgba(227, 155, 30, 0.85);
    text-underline-offset: 3px;
}

.details a:hover {
    color: #8a5d0b;
}

.form {
    background: #fff;
    padding: 36px 36px 28px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(40, 32, 20, 0.06);
}

.form label,
.form .wpcf7-form label {
    display: block;
    margin: 0 0 18px;
    color: #6d675f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form .wpcf7-form p {
    margin: 0 0 18px;
}

.form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

.form input:not([type="submit"]):not([type="hidden"]),
.form textarea,
.form .wpcf7-form-control:not(.wpcf7-submit) {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px 12px;
    border: 1px solid #ddd6cb;
    border-radius: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    background: #fff;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form input:not([type="submit"]):focus,
.form textarea:focus,
.form .wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none;
    border-color: var(--gold-solid);
    box-shadow: 0 0 0 3px rgba(227, 155, 30, 0.18);
}

.form textarea,
.form .wpcf7-textarea {
    resize: vertical;
    min-height: 160px;
}

.form button,
.form input[type="submit"],
.form .wpcf7-submit {
    display: inline-block;
    width: auto;
    margin-top: 4px;
    border: 0;
    border-radius: 0;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 36px;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
}

.form button:hover,
.form input[type="submit"]:hover,
.form .wpcf7-submit:hover {
    background: var(--gold-solid);
    color: #1a1408;
}

.form .wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

.form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: #9d1c1c;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.form .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.form-missing {
    margin: 0;
    color: #9d1c1c;
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy > *,
    .floater,
    .floater-label {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 800px) {
    .topbar-inner { gap: 8px 14px; }
    .hero { flex-direction: column; }
    .hero-copy { padding: 108px 24px 40px; }
    .coming { font-size: 22px; }
    .hero-nav { top: 54px; right: 16px; }
    .hero-nav a { font-size: 16px; }
    .hero-btn {
        font-size: 16px;
        padding: 16px 32px;
    }
    .floater { animation-name: drift-quiet; }
    .floater-label {
        white-space: nowrap;
        font-size: 16px;
        line-height: 1.15;
        padding: 11px 16px;
        letter-spacing: 0.03em;
    }
    .contact { padding: 56px 22px 72px; }
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .details { padding: 24px 18px 22px 16px; }
    .details h2 + h2 { font-size: 26px; }
    .form { padding: 24px 18px 20px; }
}
