/* ==========================================================================
   Dance Centre UK — contact.css
   Contact page type. Self-contained: load AFTER base.css + nav.css,
   alongside footer.css. Do NOT load index.css/hub.css/services.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb {
    background: #ededed;
    padding: var(--sp-4) 0 0;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--red);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: var(--sp-2);
    color: var(--text-faint);
}

.breadcrumb [aria-current="page"] {
    color: var(--black);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   HERO — compact hub variant of the homepage hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: #ededed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 62vh;
    padding: var(--sp-9) 0;
    overflow: hidden;
}

.hero__kanji {
    position: absolute;
    right: clamp(1rem, 4vw, 5rem);
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: 'Yuji Boku', serif;
    font-size: clamp(8rem, 20vw, 18rem);
    color: var(--black);
    opacity: 0.06;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.25rem);
    letter-spacing: -0.04em;
    line-height: 1.0;
}

@keyframes postit-drop {
    0% {
        opacity: 0;
        transform: translateY(-50vh) rotate(-6deg);
    }
    55% {
        opacity: 1;
        transform: translateY(8px) rotate(2deg);
    }
    75% {
        transform: translateY(-3px) rotate(-1.5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(-1.2deg);
    }
}

.hero__postit {
    position: relative;
    display: inline-block;
    background: var(--mustard-bright);
    color: var(--black);
    font-weight: 700;
    font-size: 0.55em;
    padding: 0.2em 0.6em 0.25em;
    margin-top: 0.3em;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.1);
    animation: postit-drop 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: 0.5s;
}

.hero__postit-tape {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 60px;
    height: 20px;
    background: rgba(255, 255, 255, 0.45);
    z-index: 10;
    border-radius: 1px;
    pointer-events: none;
}

/* Scribbled note on ruled paper */
.hero__sub {
    position: relative;
    font-family: 'Caveat', cursive;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.5;
    color: #2e2e2e;
    max-width: 44ch;
    margin: var(--sp-6) auto;
    padding: 1.5em 1.6em 1.2em 2.4em;
    text-align: left;
    background:
        repeating-linear-gradient(
            transparent 0,
            transparent calc(1.5em - 1px),
            rgba(27, 27, 27, 0.09) calc(1.5em - 1px),
            rgba(27, 27, 27, 0.09) 1.5em
        ),
        #fdfcf7;
    background-position: 0 0.4em, 0 0;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.09);
    transform: rotate(-0.9deg);
}

/* Tape holding the note up */
.hero__sub::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 90px;
    height: 22px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 10;
    border-radius: 1px;
    pointer-events: none;
}

/* Red notebook margin line */
.hero__sub::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.6em;
    width: 1px;
    background: rgba(249, 24, 20, 0.28);
    pointer-events: none;
}

.hero__actions {
    display: flex;
    gap: var(--sp-5);
    flex-wrap: wrap;
    justify-content: center;
}

.hero__note {
    position: relative;
    display: inline-block;
    background: var(--mustard-bright);
    color: var(--black);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-sm);
    padding: var(--sp-4) var(--sp-5);
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: postit-drop 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__note--1 {
    transform: rotate(-2deg);
    animation-delay: 0.7s;
}

.hero__note--2 {
    transform: rotate(1.5deg);
    animation-delay: 0.9s;
}

.hero__note:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.15);
}

.hero__note-tape {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 50px;
    height: 18px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 1px;
    pointer-events: none;
}

.hero__note--1 .hero__note-tape {
    transform: translateX(-50%) rotate(3deg);
}

.hero__note--2 .hero__note-tape {
    transform: translateX(-50%) rotate(-2deg);
    left: 45%;
}

/* Legacy modifier kept so existing markup keeps working */
.hero--hub {
    min-height: 62vh;
}

/* --------------------------------------------------------------------------
   HERO — compact hub variant of the homepage hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: #ededed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 62vh;
    padding: var(--sp-9) 0;
    overflow: hidden;
}

.hero__kanji {
    position: absolute;
    right: clamp(1rem, 4vw, 5rem);
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: 'Yuji Boku', serif;
    font-size: clamp(8rem, 20vw, 18rem);
    color: var(--black);
    opacity: 0.06;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.25rem);
    letter-spacing: -0.04em;
    line-height: 1.0;
}

@keyframes postit-drop {
    0% {
        opacity: 0;
        transform: translateY(-50vh) rotate(-6deg);
    }
    55% {
        opacity: 1;
        transform: translateY(8px) rotate(2deg);
    }
    75% {
        transform: translateY(-3px) rotate(-1.5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(-1.2deg);
    }
}

.hero__postit {
    position: relative;
    display: inline-block;
    background: var(--mustard-bright);
    color: var(--black);
    font-weight: 700;
    font-size: 0.55em;
    padding: 0.2em 0.6em 0.25em;
    margin-top: 0.3em;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.1);
    animation: postit-drop 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: 0.5s;
}

.hero__postit-tape {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 60px;
    height: 20px;
    background: rgba(255, 255, 255, 0.45);
    z-index: 10;
    border-radius: 1px;
    pointer-events: none;
}

/* Scribbled note on ruled paper */
.hero__sub {
    position: relative;
    font-family: 'Caveat', cursive;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.5;
    color: #2e2e2e;
    max-width: 44ch;
    margin: var(--sp-6) auto;
    padding: 1.5em 1.6em 1.2em 2.4em;
    text-align: left;
    background:
        repeating-linear-gradient(
            transparent 0,
            transparent calc(1.5em - 1px),
            rgba(27, 27, 27, 0.09) calc(1.5em - 1px),
            rgba(27, 27, 27, 0.09) 1.5em
        ),
        #fdfcf7;
    background-position: 0 0.4em, 0 0;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.09);
    transform: rotate(-0.9deg);
}

/* Tape holding the note up */
.hero__sub::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 90px;
    height: 22px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 10;
    border-radius: 1px;
    pointer-events: none;
}

/* Red notebook margin line */
.hero__sub::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.6em;
    width: 1px;
    background: rgba(249, 24, 20, 0.28);
    pointer-events: none;
}

.hero__actions {
    display: flex;
    gap: var(--sp-5);
    flex-wrap: wrap;
    justify-content: center;
}

.hero__note {
    position: relative;
    display: inline-block;
    background: var(--mustard-bright);
    color: var(--black);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-sm);
    padding: var(--sp-4) var(--sp-5);
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: postit-drop 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__note--1 {
    transform: rotate(-2deg);
    animation-delay: 0.7s;
}

.hero__note--2 {
    transform: rotate(1.5deg);
    animation-delay: 0.9s;
}

.hero__note:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.15);
}

.hero__note-tape {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 50px;
    height: 18px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 1px;
    pointer-events: none;
}

.hero__note--1 .hero__note-tape {
    transform: translateX(-50%) rotate(3deg);
}

.hero__note--2 .hero__note-tape {
    transform: translateX(-50%) rotate(-2deg);
    left: 45%;
}

/* Legacy modifier kept so existing markup keeps working */
.hero--hub {
    min-height: 62vh;
}

/* --------------------------------------------------------------------------
   LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.section--flush-top {
    padding-top: 0;
}

/* --------------------------------------------------------------------------
   CONTACT FORM — info column + form card (per Cambridge design)
   -------------------------------------------------------------------------- */
.contact-form {
    background: #ededed;
    padding: var(--section-pad) 0;
    scroll-margin-top: 2rem;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--sp-8);
    align-items: start;
}

.contact-form__info p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: var(--sp-6);
}

.contact-form__details {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.contact-form__detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-form__detail i {
    font-size: 1.25rem;
    color: var(--mustard);
    margin-top: 0.15rem;
    width: 1.5rem;
    text-align: center;
}

.contact-form__detail div {
    display: flex;
    flex-direction: column;
}

.contact-form__detail strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--black);
}

.contact-form__detail a {
    color: var(--mustard-deep);
    font-weight: 600;
}

.contact-form__detail a:hover {
    text-decoration: underline;
}

.contact-form__detail span {
    font-size: 0.85rem;
    color: #777;
}

/* ---- Form card ---- */
.contact-form__card {
    background: #fff;
    border-radius: 16px;
    padding: var(--sp-6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form__card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.contact-form__sub {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: var(--sp-5);
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.contact-form__field label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.35rem;
}

.contact-form__field .req {
    color: var(--red);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    color: var(--black);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: var(--mustard);
    box-shadow: 0 0 0 3px rgba(244, 168, 4, 0.15);
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    background: var(--mustard-bright);
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.contact-form__submit:hover {
    background: var(--mustard);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .contact-form__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-6);
    }
}

@media (max-width: 560px) {
    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .hero__kanji {
        display: none;
    }

    .hero,
    .hero--hub {
        min-height: 48vh;
    }
}

@media (max-width: 480px) {
    .hero__note {
        width: 100%;
        text-align: center;
    }
}
