/* ============================================================
   Precious Us — Main Application Stylesheet
   Fresha-inspired: clean whites, deep greens, gold accents
   ============================================================ */

/* --- Root Variables --- */
:root {
    --primary:      #2D6A4F;  /* deep forest green */
    --primary-dark: #1B4332;
    --primary-light:#52B788;
    --accent:       #C9A84C;  /* warm gold */
    --accent-light: #F3D98B;
    --surface:      #F8F9FA;
    --card-bg:      #FFFFFF;
    --text-main:    #1A1A1A;
    --text-muted:   #6C757D;
    --border:       #E9ECEF;
    --radius:       12px;
    --radius-sm:    8px;
    --shadow:       0 2px 16px rgba(0,0,0,.08);
    --shadow-hover: 0 6px 32px rgba(0,0,0,.14);
    --transition:   all .2s ease;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { font-family: 'Playfair Display', serif; }

a { color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* --- Bootstrap overrides --- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 500;
    border-radius: 8px;
    padding: .5rem 1.25rem;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    font-weight: 500;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
}
.btn-accent:hover { background: #b8943f; border-color: #b8943f; color:#fff; }

.badge.bg-accent { background-color: var(--accent) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }

/* --- Public Navbar --- */
.public-navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    padding: .75rem 0;
}
.public-navbar .nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: .925rem;
    border-radius: 6px;
    padding: .4rem .75rem !important;
    transition: var(--transition);
}
.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--primary);
    background: rgba(45,106,79,.08);
}
.brand-name { font-family:'Playfair Display',serif; font-size:1.35rem; font-weight:700; color:var(--primary-dark); }
.brand-accent { color: var(--accent); }

/* --- Hero Section --- */
.hero-section {
    background:
        radial-gradient(ellipse 60% 80% at 78% 55%, rgba(82,183,136,.24) 0%, transparent 62%),
        radial-gradient(ellipse 38% 55% at 16% 22%, rgba(201,168,76,.13) 0%, transparent 58%),
        linear-gradient(148deg, #071a10 0%, #1B4332 42%, #2D6A4F 100%);
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}
/* Animated ambient light blobs */
.hero-section::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    top: -200px; right: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(82,183,136,.2) 0%, transparent 65%);
    animation: heroBlob 18s ease-in-out infinite alternate;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 450px; height: 450px;
    bottom: -100px; left: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.16) 0%, transparent 65%);
    animation: heroBlob2 22s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}
.hero-title { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 700; line-height: 1.13; }
.hero-subtitle { font-size: 1.1rem; opacity: .88; max-width: 520px; line-height: 1.75; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.2); }

/* ================================================================
   HERO SCENE — orbital floating layout
   ================================================================ */
.hero-3d-scene {
    position: relative;
    width: 500px;
    max-width: 100%;
    height: 500px;
    margin: 0 auto;
}

/* Ambient scene glow */
.hero-scene-glow {
    position: absolute;
    inset: -50px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(82,183,136,.18) 0%, rgba(201,168,76,.1) 40%, transparent 68%);
    animation: heroSceneGlow 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Decorative orbit rings */
.hero-orbit {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    pointer-events: none;
    z-index: 1;
}
.hero-orbit-1 {
    width: 440px; height: 440px;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(201,168,76,.32);
    animation: heroOrbitSpin 70s linear infinite;
}
.hero-orbit-2 {
    width: 310px; height: 310px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.08);
    animation: heroOrbitSpin 45s linear infinite reverse;
}

/* Main image */
.hero-main-img-wrap {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    animation: heroMainFloat 8s ease-in-out infinite;
}
.hero-main-img {
    width: 228px;
    height: 304px;
    object-fit: cover;
    border-radius: 28px;
    border: 3px solid rgba(255,255,255,.22);
    box-shadow:
        0 44px 88px rgba(0,0,0,.7),
        0 0 0 1px rgba(201,168,76,.28),
        0 0 64px rgba(201,168,76,.22);
    display: block;
    position: relative;
    z-index: 2;
}
.hero-main-ring {
    position: absolute;
    inset: -14px;
    border-radius: 38px;
    border: 2px dashed rgba(201,168,76,.5);
    animation: heroRingSpin 20s linear infinite;
    z-index: 1;
}
.hero-img-glow {
    position: absolute;
    inset: -44px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.38) 0%, transparent 65%);
    animation: heroGlow 5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* Float images — circles on hexagonal orbit */
.hero-float {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 10px 32px rgba(0,0,0,.55),
        0 0 0 2px rgba(255,255,255,.22),
        0 0 0 6px rgba(201,168,76,.16);
    z-index: 6;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}
.hero-float:hover {
    box-shadow:
        0 18px 48px rgba(0,0,0,.65),
        0 0 0 2px rgba(255,255,255,.4),
        0 0 0 8px rgba(201,168,76,.35);
    z-index: 10;
}
.hero-float img { display:block; width:100%; height:100%; object-fit:cover; }

/* Hexagonal positions: 6 points around center (250,250) at r≈205px */
.hero-float-1 { width:102px; height:102px; top:  3px; left:199px; /* top        */ animation: hFloat1 5.4s ease-in-out infinite; }
.hero-float-2 { width: 90px; height: 90px; top: 72px; right: 16px; /* top-right  */ animation: hFloat2 6.2s ease-in-out infinite  .6s; }
.hero-float-3 { width: 92px; height: 92px; bottom:72px; right:16px; /* bot-right  */ animation: hFloat3 5.9s ease-in-out infinite 1.2s; }
.hero-float-4 { width:102px; height:102px; bottom: 3px; left:199px; /* bottom     */ animation: hFloat4 6.6s ease-in-out infinite 1.8s; }
.hero-float-5 { width: 90px; height: 90px; bottom:72px; left: 16px; /* bot-left   */ animation: hFloat5 5.1s ease-in-out infinite  .9s; }
.hero-float-6 { width: 92px; height: 92px; top: 72px;  left: 16px;  /* top-left   */ animation: hFloat6 5.7s ease-in-out infinite  .3s; }

/* Gold sparkle stars */
.hero-sparkle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-light);
    pointer-events: none;
    z-index: 8;
    animation: hSparkle 2.8s ease-in-out infinite;
}
.sp-1 { width:7px;  height:7px;  top:165px;  right:158px; }
.sp-2 { width:5px;  height:5px;  bottom:165px; left:155px; animation-delay:1.0s; }
.sp-3 { width:4px;  height:4px;  top: 88px;  left:170px;  animation-delay:1.8s; }
.sp-4 { width:6px;  height:6px;  bottom:88px; right:165px; animation-delay: .5s; }
.sp-5 { width:3px;  height:3px;  top:250px;  right: 12px;  animation-delay:2.2s; }
.sp-6 { width:3px;  height:3px;  bottom:250px;left: 12px;  animation-delay:1.4s; }

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes heroBlob  { 0%{transform:scale(1) translate(0,0)}    100%{transform:scale(1.35) translate(70px, 50px)} }
@keyframes heroBlob2 { 0%{transform:scale(1) translate(0,0)}    100%{transform:scale(1.4)  translate(-50px,-70px)} }
@keyframes heroSceneGlow { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.1)} }
@keyframes heroOrbitSpin { from{transform:translate(-50%,-50%) rotate(0deg)} to{transform:translate(-50%,-50%) rotate(360deg)} }
@keyframes heroMainFloat { 0%,100%{transform:translate(-50%,-52%)} 50%{transform:translate(-50%,-48%)} }
@keyframes heroRingSpin  { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes heroGlow      { 0%,100%{transform:scale(1);   opacity:.5} 50%{transform:scale(1.22);opacity:.9} }
@keyframes hFloat1 { 0%,100%{transform:translateY(0)    scale(1)}    50%{transform:translateY(-13px) scale(1.05)} }
@keyframes hFloat2 { 0%,100%{transform:translateY(0)    scale(1)}    50%{transform:translateY(-17px) scale(1.05)} }
@keyframes hFloat3 { 0%,100%{transform:translateY(0)    scale(1)}    50%{transform:translateY( 13px) scale(1.05)} }
@keyframes hFloat4 { 0%,100%{transform:translateY(0)    scale(1)}    50%{transform:translateY( 15px) scale(1.05)} }
@keyframes hFloat5 { 0%,100%{transform:translateY(0)    scale(1)}    50%{transform:translateY( 11px) scale(1.05)} }
@keyframes hFloat6 { 0%,100%{transform:translateY(0)    scale(1)}    50%{transform:translateY(-11px) scale(1.05)} }
@keyframes hSparkle { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(2.8);opacity:0} }

/* --- Section headings --- */
.section-tag {
    display: inline-block;
    background: rgba(45,106,79,.1);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 20px;
    margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 700; color: var(--text-main); }
.section-divider {
    width: 48px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: .75rem auto 0;
}

/* --- Service Cards --- */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}
.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.service-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; margin-bottom: 1rem;
}
.service-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.service-duration { font-size: .8rem; color: var(--text-muted); }
.service-img {
    margin: -2rem -1.5rem 1rem;
    width: calc(100% + 3rem) !important;
    height: 160px !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* --- Checkout page --- */
body.checkout-page { background: var(--surface); }
.checkout-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    padding: 2rem 2rem;
    color: #fff;
    margin-bottom: 1.75rem;
}
.checkout-hero h3 { color: #fff; margin-bottom: .25rem; }
.checkout-hero p { color: rgba(255,255,255,.85); margin-bottom: 0; }
.checkout-progress {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.checkout-progress .step {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.65);
}
.checkout-progress .step.active { color: #fff; }
.checkout-progress .step .dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem;
}
.checkout-progress .step.active .dot { background: var(--accent); color: var(--primary-dark); }
.checkout-progress .sep {
    width: 28px; height: 1px;
    background: rgba(255,255,255,.3);
}

/* --- Checkout / form section cards --- */
.checkout-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: left;
    box-shadow: var(--shadow);
}
.checkout-card h5 {
    display: flex;
    align-items: center;
    padding-bottom: .9rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.checkout-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    margin-right: .65rem;
    flex-shrink: 0;
}
.checkout-pay-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.checkout-pay-option:hover {
    border-color: var(--primary-light);
    background: rgba(45, 106, 79, .04);
}
.checkout-pay-option input:checked ~ * { color: var(--primary); }
.checkout-pay-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(45, 106, 79, .06);
    box-shadow: 0 0 0 1px var(--primary);
}

/* --- Order summary --- */
.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
}
.checkout-summary-item:last-of-type { border-bottom: none; }
.checkout-summary-thumb {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface);
    display: flex; align-items: center; justify-content: center;
}
.checkout-summary-thumb img { width: 100%; height: 100%; object-fit: cover; }
.checkout-total-box {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: .75rem;
}

/* --- Product Cards --- */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.product-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .35s ease;
}
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-card-body { padding: 1.25rem; }
.product-title { font-family:'Inter',sans-serif; font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.product-price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.product-price-compare { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }

/* --- Booking Steps --- */
.step-indicator {
    display: flex; align-items: center; gap: 0; margin-bottom: 2rem;
    overflow-x: auto;
}
.step {
    flex: 1; text-align: center; position: relative; padding: 0 .5rem;
    min-width: 90px;
}
.step::after {
    content: '';
    position: absolute;
    top: 16px; left: 50%; width: 100%; height: 2px;
    background: var(--border);
    z-index: 0;
}
.step:last-child::after { display: none; }
.step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--border); color: var(--text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: .85rem;
    position: relative; z-index: 1;
    margin-bottom: .4rem;
    transition: var(--transition);
}
.step.active .step-num { background: var(--primary); color: #fff; }
.step.done .step-num { background: var(--primary-light); color: #fff; }
.step-label { font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.step.active .step-label { color: var(--primary); font-weight: 600; }

/* --- Calendar Picker (public booking) --- */
.cal-day-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-day-cell {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    font-size: .875rem; font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.cal-day-cell:hover:not(.disabled):not(.other-month) {
    background: rgba(45,106,79,.1);
    border-color: var(--primary-light);
}
.cal-day-cell.selected { background: var(--primary); color: #fff; }
.cal-day-cell.today { border-color: var(--accent); font-weight: 700; }
.cal-day-cell.disabled { opacity: .35; pointer-events: none; }
.cal-day-cell.other-month { opacity: .3; }

/* --- Time Slots --- */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}
.time-slot-btn {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: .5rem;
    text-align: center;
    font-size: .85rem; font-weight: 500;
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
}
.time-slot-btn:hover,
.time-slot-btn.selected {
    border-color: var(--primary);
    background: var(--primary); color: #fff;
}
.time-slot-btn.unavailable {
    opacity: .35; pointer-events: none; text-decoration: line-through;
}

/* --- Stats/KPI Cards (public) --- */
.kpi-card {
    background: linear-gradient(135deg, #fff, var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.kpi-value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.kpi-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

/* --- Public Footer --- */
.public-footer {
    background: var(--primary-dark);
    color: #fff;
    padding-bottom: 2rem;
}
.footer-heading {
    color: #fff; font-weight: 600; font-size: .9rem;
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem;
}
.footer-links a { color: #fff; text-decoration: none; display: block; margin-bottom: .4rem; transition: var(--transition); opacity:.85; }
.footer-links a:hover { color: #fff; opacity:1; }
.footer-contact li { margin-bottom: .6rem; color: #fff; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: var(--accent-light); }
.footer-social { color: #fff; text-decoration: none; transition: var(--transition); }
.footer-social:hover { color: var(--accent-light); }
.public-footer .text-muted { color: #fff !important; }
.public-footer small, .public-footer .small { color: #fff !important; }
.public-footer a.text-muted { color: #fff !important; opacity:.75; }
.public-footer a.text-muted:hover { opacity:1; color:#fff !important; }
.public-footer hr { border-color: rgba(255,255,255,.2); }

/* --- WhatsApp Floating Button --- */
.whatsapp-fab {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    z-index: 9999;
    transition: var(--transition);
}
.whatsapp-fab:hover { background: #128C7E; color: #fff; transform: scale(1.08); }

/* --- Cart Badge / Misc --- */
.badge.rounded-pill { font-size: .65rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section { min-height: 70vh; }
    .product-card-img { height: 200px; }
}
