/* top5whitening.com subpages: Countdown pop */
:root {
    --mint: #C8F5DF;
    --aub: #2A1238;
    --pink: #FF4D79;
    --pink-soft: #FFD6E0;
    --white: #FFFFFF;
    --line: 4px solid var(--aub);
    --display: "Bowlby One", "Arial Black", Impact, sans-serif;
    --body: "Sen", "Segoe UI", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--mint);
    color: var(--aub);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    font-synthesis: none;
    overflow-x: hidden;
}

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

h1, h2, h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.06;
    text-wrap: balance;
}

p { margin: 0; }

a {
    color: var(--aub);
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

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

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 44px);
}

/* header */
.site-header { padding: 20px 0 0; }
.header-inner { display: flex; align-items: center; }
.logo-link { display: inline-block; }
.logo-link img { height: 52px; width: auto; }

/* page hero: a big loud title with the domain as a tilted sticker */
.page-hero {
    padding: clamp(28px, 4vw, 52px) 0 clamp(36px, 5vw, 64px);
    border-bottom: 8px solid var(--aub);
}

.page-hero .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 4px 18px;
    background: var(--pink);
    border: 3px solid var(--aub);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--aub);
    font-size: 16px;
    font-weight: 700;
    transform: rotate(-3deg);
}

.page-hero h1 {
    max-width: 14em;
    font-size: clamp(1.8rem, 3vw, 2.625rem);
    line-height: 1;
}

.hero-copy {
    max-width: 62ch;
    margin-top: 18px;
    font-size: 1.15em;
    line-height: 1.5;
}

/* layout: narrow side panel leads, sections step down beside it */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 44px;
    align-items: start;
    padding-top: clamp(36px, 5vw, 60px);
    padding-bottom: clamp(56px, 7vw, 96px);
}

.content-main { min-width: 0; }

.content-main > .eyebrow {
    margin-bottom: 22px;
    font-weight: 700;
}

.section,
.side-panel,
.contact-panel {
    background: var(--white);
    border: var(--line);
    border-radius: 26px;
    box-shadow: 8px 8px 0 var(--aub);
}

.section {
    padding: clamp(22px, 3vw, 32px);
    max-width: 68ch;
}

.section + .section { margin-top: 32px; }

/* countdown stagger: panels step in and swap their shadow side */
.section:nth-of-type(even) {
    margin-left: auto;
    box-shadow: -8px 8px 0 var(--aub);
}

.section h2,
.contact-panel h2,
.side-panel h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-bottom: 12px;
}

.section h3,
.contact-panel h3 {
    margin: 18px 0 8px;
    font-size: 1.2rem;
}

.section p + p { margin-top: .9em; }

.side-panel {
    padding: 26px;
    font-size: 16px;
}

.detail-list { margin: 0; }

.detail-list > div {
    padding: 11px 0;
    border-top: 3px solid var(--aub);
}

.detail-list dt { font-weight: 700; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }

.notice {
    margin-top: 16px;
    padding: 16px 18px;
    background: var(--pink-soft);
    border: 3px solid var(--aub);
    border-radius: 18px;
}

/* contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 44px;
    align-items: start;
    padding-top: clamp(36px, 5vw, 60px);
    padding-bottom: clamp(56px, 7vw, 96px);
}

.contact-panel { padding: clamp(22px, 3vw, 32px); }
.contact-panel:nth-child(2) { margin-top: 36px; box-shadow: -8px 8px 0 var(--aub); }

form { margin-top: 20px; display: grid; gap: 6px; }

label { margin: 8px 0 0 14px; font-weight: 700; font-size: 16px; }

input,
textarea {
    width: 100%;
    min-height: 54px;
    padding: 10px 20px;
    background: var(--white);
    color: var(--aub);
    border: var(--line);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--aub);
    font: inherit;
    font-size: 16px;
}

textarea { border-radius: 24px; resize: vertical; }

button {
    justify-self: start;
    margin-top: 16px;
    min-height: 56px;
    padding: 10px 34px;
    background: var(--pink);
    color: var(--aub);
    border: var(--line);
    border-radius: 999px;
    box-shadow: 5px 5px 0 var(--aub);
    font: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
}

button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--aub); }

/* footer */
.site-footer {
    padding: clamp(36px, 5vw, 60px) 0;
    background: var(--aub);
    color: var(--white);
    font-size: 16px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 26px;
    margin-bottom: 20px;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--white);
}

.footer-nav a:hover { color: var(--mint); }

.footer-note { overflow-wrap: anywhere; }
.footer-note + .footer-note { margin-top: 12px; padding-top: 12px; border-top: 3px solid var(--mint); }

.site-footer :focus-visible { outline-color: var(--white); }

@media (max-width: 820px) {
    .content-layout,
    .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }

    .section,
    .section:nth-of-type(even) { max-width: none; margin-left: 0; box-shadow: 6px 6px 0 var(--aub); margin-right: 6px; }

    .side-panel,
    .contact-panel,
    .contact-panel:nth-child(2) { margin-top: 0; margin-right: 6px; box-shadow: 6px 6px 0 var(--aub); }

    button { width: 100%; }
}

@media (max-width: 400px) {
    .logo-link img { height: auto; max-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    button:hover { transform: none; }
}
