/* AXIS Dermatology — Shared Styles */

:root {
    --accent: #4a5a6a;
    --accent-dark: #3a4857;
    --bg: #fdfdfd;
    --surface: #ffffff;
    --text: #1a1a1a;
    --text-body: #555555;
    --text-muted: #595959;
    --border: rgba(74, 90, 106, 0.12);
    --footer-ink: #1a1a1a;
    --footer-text: #aeb6bd;
    --footer-muted: #8f979e;
}

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

html { scroll-behavior: auto; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Utilities ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--accent); color: #fff; padding: 12px 24px;
    text-decoration: none; font-size: 14px; letter-spacing: 1px;
}
.skip-link:focus { left: 0; }

#main, [id] { scroll-margin-top: 96px; }

/* ---------- Announcement Banner ---------- */

.announcement-banner {
    background-color: var(--accent);
    color: #fff;
    text-align: center;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 3px solid var(--accent-dark);
}
.banner-link { color: #fff; text-decoration: underline; margin-left: 10px; transition: opacity 0.3s ease; }
.banner-link:hover { opacity: 0.8; }

/* ---------- Navigation ---------- */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    border-bottom: 2px solid var(--accent);
}
.logo-nav {
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 20px;
    text-decoration: none;
    color: var(--accent);
    transition: color 0.3s ease;
    order: 1;
}
.logo-nav:hover { color: var(--text); }

.nav-toggle {
    display: none;
    order: 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 2px solid var(--accent);
    padding: 9px 11px;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--accent); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; order: 3; }
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 700; }

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

.btn {
    width: 320px;
    max-width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 3px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(74, 90, 106, 0.15); }
.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { background: var(--accent-dark); }
.btn-outline { color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- Sections ---------- */

.section-block { padding: 72px 20px; max-width: 960px; margin: 0 auto; border-bottom: 1px solid var(--border); }
.section-block:last-of-type { border-bottom: none; }

.section-title {
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 24px;
    color: var(--accent);
    text-align: center;
    margin: 0 0 36px;
}

.partnership-container { max-width: 760px; margin: 0 auto; text-align: center; }
.partnership-text { font-size: 16px; color: var(--text-body); line-height: 1.8; margin-bottom: 28px; }
.partnership-text strong { color: var(--accent); font-weight: 600; }

/* ---------- Splash / Hero (Home) ---------- */

.splash {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle, #fff 0%, #f4f4f4 100%);
    padding: 10px 0 60px 0;
}
.logo-main-img {
    width: 550px;
    max-width: 90%;
    height: auto;
    mix-blend-mode: multiply;
    margin-bottom: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.logo-main-img:hover { transform: scale(1.06) translateY(-4px); }

.btn-container { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 10px; }

.info-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.hero-img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 10px 10px 0px var(--accent);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.hero-img:hover { transform: translate(-3px, -3px); box-shadow: 14px 14px 0px var(--accent); }
.hero-text { line-height: 1.8; color: var(--text-body); font-size: 16px; margin: 0; }

/* ---------- Waitlist Form ---------- */

.form-container { width: 100%; display: flex; flex-direction: column; align-items: center; overflow: hidden; margin-top: 30px; }
.form-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    line-height: 1.6;
    max-width: 600px;
    margin: 15px auto 0 auto;
    text-align: center;
    font-style: italic;
}

/* ---------- FAQ ---------- */

.faq-container { max-width: 760px; margin: 0 auto; }
.faq-item { margin-bottom: 40px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-question { font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; margin-bottom: 10px; color: var(--accent); }
.faq-answer { color: var(--text-body); font-size: 16px; line-height: 1.8; margin: 0; }

/* ---------- Instagram ---------- */

.ig-section { background: var(--surface); border-top: 1px solid rgba(74, 90, 106, 0.15); border-bottom: 1px solid rgba(74, 90, 106, 0.15); padding: 80px 20px; text-align: center; }
.ig-inner { max-width: 900px; margin: 0 auto; }
.ig-handle { color: var(--accent); text-decoration: none; font-size: 14px; letter-spacing: 1px; transition: color 0.3s ease; }
.ig-handle:hover { color: var(--accent-dark); }
.ig-grid { display: flex; justify-content: center; gap: 15px; max-width: 600px; margin: 30px auto 0; }
.ig-post {
    display: block;
    width: 175px;
    background: #f9f9f9;
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}
.ig-post:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--accent); }
.ig-post img { width: 100%; height: 175px; object-fit: cover; display: block; }
.ig-caption { font-size: 12px; color: var(--text-muted); padding: 10px; text-transform: uppercase; letter-spacing: 1px; line-height: 1.4; }

/* ---------- About ---------- */

.about-section {
    max-width: 960px;
    margin: 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}
.bio-img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: -10px 10px 0px var(--accent);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.bio-img:hover { transform: translate(3px, -3px); box-shadow: -14px 14px 0px var(--accent); }
.visible-heading { font-weight: 300; letter-spacing: 3px; text-transform: uppercase; margin-top: 0; margin-bottom: 25px; font-size: 24px; color: var(--accent); }
.bio-content p { line-height: 1.8; color: var(--text-body); font-size: 16px; margin-bottom: 20px; }
.bio-content strong { color: var(--accent); font-weight: 600; }

/* ---------- Products ---------- */

.page-header { padding: 50px 20px; text-align: center; border-bottom: 1px solid var(--border); background: var(--surface); }
.page-title { font-weight: 300; font-size: 24px; letter-spacing: 5px; text-transform: uppercase; color: var(--accent); margin: 0; text-align: center; }

.products-container { max-width: 1040px; margin: 40px auto 60px; padding: 0 20px; }
.step-section { margin-bottom: 60px; }
.step-header { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; border-left: 4px solid var(--accent); padding-left: 18px; margin: 0 0 25px; color: var(--accent); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.card {
    background: var(--surface);
    padding: 25px;
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.product-img { width: 100%; height: 160px; object-fit: contain; margin-bottom: 15px; }
.p-name { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; min-height: 32px; line-height: 1.4; display: flex; align-items: center; }
.p-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; line-height: 1.5; flex-grow: 1; }
.buy-btn {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--accent);
    padding: 9px 20px;
    transition: 0.3s;
    margin-top: auto;
}
.buy-btn:hover { background: var(--accent); color: #fff; }

/* ---------- Content / Legal Pages ---------- */

.content-container { padding: 60px 20px; max-width: 900px; margin: 0 auto; }
.page-heading { font-weight: 300; font-size: 28px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); text-align: center; margin: 0 0 10px; }
.subtitle { text-align: center; font-size: 12px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 40px; }
.effective-date { text-align: center; font-size: 12px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 40px; }

.content-heading {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-top: 44px;
    margin-bottom: 15px;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}
.content-subheading {
    font-weight: 700;
    font-size: 16px;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--accent);
}
.page-heading--wide { margin-bottom: 40px; }
.content-container p, .content-container li { font-size: 16px; color: var(--text-body); line-height: 1.8; margin-bottom: 15px; }
.content-container ul { margin-bottom: 20px; padding-left: 20px; }
.content-container li { margin-bottom: 8px; }

.lead-box {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #f4f4f4;
    padding: 25px;
    border-left: 4px solid var(--accent);
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--accent);
    text-align: center;
}
.lead-text {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f4f4f4;
    padding: 25px;
    border-left: 4px solid var(--accent);
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--accent);
}
.content-container a { color: var(--accent); }
.content-container address { font-style: normal; font-size: 16px; color: var(--text-body); line-height: 1.8; margin-bottom: 15px; }

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

footer { background: var(--footer-ink); color: #fff; padding: 60px 20px; text-align: center; }
.footer-logo { font-size: 18px; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 20px; display: block; }
.footer-text { font-size: 13px; color: var(--footer-text); letter-spacing: 1px; line-height: 1.8; max-width: 640px; margin: 0 auto; }
.footer-text a { color: var(--footer-text); text-decoration: underline; transition: color 0.3s ease; }
.footer-text a:hover { color: #fff; }
.footer-note { display: block; margin-top: 8px; color: var(--footer-muted); }
.footer-links { font-size: 13px; letter-spacing: 1px; margin-top: 18px; }
.footer-links a { color: var(--footer-text); text-decoration: underline; margin: 0 10px; transition: color 0.3s ease; }
.footer-links a:hover { color: #fff; }
footer :focus-visible { outline-color: #fff; }
.footer-associate { font-size: 12px; color: var(--footer-muted); font-style: italic; margin-top: 20px; margin-bottom: 0; }
.footer-copy { font-size: 12px; color: var(--footer-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 20px; margin-bottom: 0; }

/* ---------- Animations ---------- */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .animate-up { opacity: 1; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    nav { flex-wrap: wrap; justify-content: space-between; padding: 16px 20px; }
    .nav-ready .nav-toggle { display: inline-flex; }
    .nav-links {
        display: flex;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links li { margin: 8px 0; }
    .nav-links a { font-size: 13px; }

    .splash { height: auto; padding: 70px 20px 50px; }
    .info-section { grid-template-columns: 1fr; text-align: center; }
    .hero-img { max-height: 350px; margin-bottom: 20px; }
    .ig-grid { flex-direction: column; align-items: center; }
    .btn-container { width: 100%; padding: 0 10px; }
    .announcement-banner { font-size: 12px; padding: 14px 16px; letter-spacing: 1px; }
    .banner-link { display: inline-block; margin-top: 5px; margin-left: 0; }
    .section-block { padding: 56px 20px; }
    .about-section { grid-template-columns: 1fr; gap: 30px; margin: 40px auto; }
    .bio-img-container { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 18px; }
}

/* Keep navigation usable if JavaScript is unavailable. */
@media (max-width: 768px) {
    .nav-ready .nav-links:not(.open) { display: none; }
}
