/* AeNailsSpa — brand DNA
   Primary: #c1272d (classic red)  Hover: #ef586c  Active: #ff8aad
   Heading font: PT Serif  Body font: Open Sans */

:root {
    --brand: #c1272d;
    --brand-hover: #ef586c;
    --brand-active: #ff8aad;
    --brand-disabled: #e4e4e4;
    --brand-soft: #fbeeee;
    --brand-dark: #2f2f2f;
    --brand-body: #777777;
    --brand-font: "Open Sans", sans-serif;
    --brand-heading: "PT Serif", serif;
    /* Bootstrap 主题契约 */
    --bs-primary: var(--brand);
    --bs-primary-hover: var(--brand-hover);
    --bs-btn-active: var(--brand-active);
    --bs-btn-disabled: var(--brand-disabled);
    --bs-primary-rgb: 193, 39, 45;
}

html { font-size: 14px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }

html, body { overflow-x: hidden; }

body {
    background-color: #fff;
    font-family: var(--brand-font);
    color: var(--brand-dark);
    margin: 0;
}

h1, h2, h3, h4, h5, h6 { color: var(--brand-dark); font-family: var(--brand-heading); font-weight: 700; }

a { color: inherit; text-decoration: none; transition: 0.3s ease-in-out; }
a:hover { color: var(--brand); }

.script-text { font-family: var(--brand-heading); font-style: italic; font-size: 1.5rem; color: var(--brand); }

/* Skip link */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--brand); color: #fff; padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0; color: #fff; }

/* Buttons */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary-hover);
    --bs-btn-hover-border-color: var(--bs-primary-hover);
    --bs-btn-active-bg: var(--bs-btn-active);
    --bs-btn-active-border-color: var(--bs-btn-active);
    --bs-btn-disabled-bg: var(--bs-btn-disabled);
    --bs-btn-disabled-border-color: var(--bs-btn-disabled);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}
.btn-primary:focus, .btn-primary:active:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem var(--bs-primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-disabled-color: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}
.text-primary { color: var(--brand) !important; }

.brand-btn {
    display: inline-block; padding: 0.65rem 1.8rem;
    background: var(--brand); color: #fff; border-radius: 2rem; font-weight: 600;
}
.brand-btn:hover { background: var(--brand-hover); color: #fff; }

/* Header */
.header-info { background: var(--brand); }
.header-top-row {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: center; padding: 0.3rem 0;
}
.header-top-ad { flex: 1 1 auto; min-width: 200px; color: #fff; }
.header-contact { display: flex; align-items: center; gap: 1rem; margin-left: 1rem; }
.header-contact-item { font-size: 0.95rem; color: #fff; display: inline-flex; align-items: center; }
.header-contact-item:hover { color: #fff; opacity: 0.85; }
.btn-change { background: none; border: none; cursor: pointer; padding: 0; color: #fff; }
.btn-change:hover { color: #fff; opacity: 0.85; }

.header-bottom { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.navbar-brand { display: flex; align-items: center; gap: 0.6rem; }
/* 白色字标 logo 需红色底片才能显示 */
.navbar-brand img { height: 42px; width: auto; background: var(--brand); border-radius: 6px; padding: 5px 12px; }
.navbar-brand span { font-size: 1.4rem; color: var(--brand); font-weight: 700; font-family: var(--brand-heading); letter-spacing: 0.02em; }
.navbar-toggler { border: none; font-size: 1.5rem; color: var(--brand); }
.navbar-toggler:focus { box-shadow: none; }
/* 仅在移动端（抽屉模式）限制宽度；桌面端 offcanvas 内联展开时不约束 */
@media (max-width: 991.98px) {
    .header-nav-offcanvas { max-width: 300px; }
}
.navbar-nav .nav-link {
    font-weight: 600; font-size: 0.95rem; position: relative; padding: 0.25rem 0;
    text-transform: uppercase; color: #555;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover { color: var(--brand); }
.navbar-nav .nav-link.active::after {
    content: ""; display: block; height: 2px; width: 100%; background: var(--brand); margin-top: 2px;
}
.header-nav-offcanvas .offcanvas-header { background: var(--brand); color: #fff; }
.header-nav-offcanvas .offcanvas-header h5 { color: #fff; font-family: var(--brand-heading); }

/* Hero carousel */
.hero-slider .carousel-item {
    height: 78vh; background-size: cover; background-position: center; background-repeat: no-repeat;
    position: relative;
}
/* 仅活动帧使用 flex 居中，避免覆盖 Bootstrap 对非活动帧的 display:none 导致多帧重叠 */
.hero-slider .carousel-item.active { display: flex; align-items: center; }
.hero-slider .carousel-item::before {
    content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25);
}
.hero-slider .carousel-item > .hero-content { position: relative; z-index: 2; width: 100%; padding: 1rem; }
.banner-title { letter-spacing: 0.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
.banner-subtitle { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.carousel-indicators [data-bs-target] { background-color: #fff; opacity: 0.6; }

/* Inner banner */
.inner-banner {
    background-size: cover; background-position: center; background-repeat: no-repeat;
    padding: 6rem 0; position: relative;
}
.inner-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.inner-banner .container { position: relative; z-index: 2; }
.inner-banner .banner-title { color: #fff; letter-spacing: 0.06em; text-transform: uppercase; }
.breadcrumb-item + .breadcrumb-item::before { color: #fff; }

/* Sections */
.site-main section { padding: 3.5rem 0; }

/* Home headings */
.home-sub-title { font-family: var(--brand-heading); font-style: italic; text-align: center; font-size: 1.35rem; color: var(--brand-body); }
.home-title { text-align: center; font-size: 2rem; font-weight: 700; color: var(--brand-dark); font-family: var(--brand-heading); }
.decorate { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 10px 0; }
.decorate > div:nth-child(1), .decorate > div:nth-child(3) { width: 100px; height: 1px; background-color: var(--brand); }

/* Mid band */
.mid-band { background: var(--brand-dark); color: #fff; text-align: center; }
.mid-band h3 { color: #fff; }
.mid-band p { max-width: 820px; margin: 0 auto; color: #d8d8d8; }

/* CTA band (背景图) */
.cta-band {
    background: url("/img/home/ban1.jpg") center / cover no-repeat;
    position: relative; text-align: center; color: #fff;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(193, 39, 45, 0.55); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h3 { color: #fff; }
.cta-band p { max-width: 820px; margin: 0.5rem auto 0; }

/* Pricing cards */
.pricing-card {
    border: 1px solid #eee; border-radius: 0.5rem; overflow: hidden;
    background: #fff; height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1); }
.pricing-card .pricing-head { background: var(--brand); color: #fff; padding: 0.9rem 1.25rem; }
.pricing-card .pricing-head h4 { color: #fff; margin: 0; font-size: 1.2rem; }
.pricing-card .pricing-body { padding: 1.25rem; display: flex; flex-direction: column; }
.pricing-card .pricing-body p { color: var(--brand-body); flex: 1 1 auto; font-size: 0.92rem; }

/* Accordion */
.nails-accordion .accordion-button { font-family: var(--brand-heading); font-weight: 700; color: var(--brand-dark); }
.nails-accordion .accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.nails-accordion .accordion-button:focus { box-shadow: none; border-color: var(--brand-soft); }

/* Testimonials */
.testi-card {
    background: #fff; border-radius: 0.5rem; padding: 1.5rem; height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); position: relative;
}
.testi-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-active));
    border-radius: 0.5rem 0.5rem 0 0;
}
.testi-card p { color: var(--brand-body); font-style: italic; }
.testi-card h5 { margin: 0; color: var(--brand-dark); }

/* Gallery band */
.gallery-band { background: var(--brand-dark); }
.gallery-img {
    width: 100%; height: 200px; object-fit: cover; cursor: pointer; border-radius: 0.25rem;
    transition: transform 0.3s ease;
}
.gallery-img:hover { transform: scale(1.03); }

/* Footer */
.site-footer { background: #f6f3f3; color: var(--brand-body); padding-top: 3rem; margin-top: 3rem; }
.site-footer h6 { color: var(--brand-dark); }
.footer-brand { font-family: var(--brand-heading); color: var(--brand); font-size: 1.8rem; margin-bottom: 0; }
.footer-tagline { color: var(--brand-body); font-size: 0.95rem; }
.footer-hours { color: var(--brand-body); font-size: 0.95rem; line-height: 1.7; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link { color: var(--brand-body); font-weight: 400; }
.footer-link:hover { color: var(--brand); }
.footer-info li { margin-bottom: 0.6rem; }
.footer-info a { color: var(--brand-body); }
.footer-info a:hover { color: var(--brand); }
.footer-bottom { background: #efe9e9; margin-top: 2rem; color: var(--brand-body); }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 30px; right: 130px; z-index: 998;
    padding: 12px 14px; border: none; background: var(--brand); color: #fff;
    border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0; visibility: hidden; transition: 0.3s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-hover); color: #fff; }

/* Ad slots */
.ad-slot { padding: 1rem 0; }

/* Responsive */
@media (max-width: 991.98px) {
    .hero-slider .carousel-item { height: 60vh; }
    .inner-banner { padding: 4.5rem 0; }
}
