/*
Theme Name: Haan Spa
Description: ثيم هان سبا: Home Spa في جدة. هوية فاتحة مأخوذة من الشعار (عاجي، روز جولد، أسود).
Version: 1.0.0
Requires at least: 6.5
Text Domain: haan
*/

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
:where(h1, h2, h3) { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--wp--preset--color--rose); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

/* small latin caps eyebrow, echoes the logo lettering */
.haan-eyebrow { font-family: var(--wp--preset--font-family--latin); letter-spacing: .28em; text-transform: uppercase; font-size: .82rem; color: var(--wp--preset--color--rose-deep); display: inline-flex; align-items: center; gap: .8rem; }
.haan-eyebrow::before, .haan-eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.haan-rule { height: 2px; width: 72px; border: 0; background: var(--wp--preset--gradient--rose-gold); margin-inline: auto; }

/* ---------- header ---------- */
.haan-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--wp--preset--color--base) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--wp--preset--color--line); }
.haan-header .wp-block-site-logo img { border-radius: 50%; }
.haan-header .wp-block-navigation a:hover { color: var(--wp--preset--color--rose-deep); }

/* ---------- hero ---------- */
.haan-hero { position: relative; overflow: hidden; }
.haan-hero::before { content: ""; position: absolute; inset: -30% auto auto -10%; width: 560px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(227,179,160,.35), transparent 65%); pointer-events: none; }
.haan-hero .haan-hero-img img { border-radius: 260px 260px 28px 28px; aspect-ratio: 4/4.4; object-fit: cover; box-shadow: 0 40px 80px -40px rgba(140,82,68,.45); }
.haan-hero .haan-hero-img { position: relative; }
.haan-hero .haan-hero-img::after { content: ""; position: absolute; inset: 14px; border-radius: 250px 250px 18px 18px; border: 1px solid rgba(255,255,255,.75); pointer-events: none; }
.haan-hero h1 { line-height: 1.25; }
.haan-hero h1 em { font-style: normal; background: var(--wp--preset--gradient--rose-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* outline button */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--ink); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); }

/* ---------- info strip ---------- */
.haan-strip { border-block: 1px solid var(--wp--preset--color--line); }
.haan-strip p { margin: 0; }
@media (max-width: 640px) { .haan-strip-cols { flex-wrap: wrap !important; row-gap: 1.2rem; } .haan-strip-cols > .wp-block-column { flex-basis: calc(50% - .5rem) !important; } }
.product_meta, .wp-block-woocommerce-product-meta { display: none !important; }
.haan-strip strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; font-weight: 600; color: var(--wp--preset--color--ink); }

/* ---------- product cards (services) ---------- */
.wc-block-product-template .wc-block-product, .haan-card { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 22px; padding: 12px 12px 20px; transition: transform .3s ease, box-shadow .3s ease; }
.wc-block-product-template .wc-block-product:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -32px rgba(140,82,68,.45); }
.wc-block-product-template .wc-block-components-product-image img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; }
.wc-block-product-template .wp-block-post-title { font-family: var(--wp--preset--font-family--heading); font-size: 1.2rem !important; margin-block: .9rem .3rem; }
.wc-block-product-template .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.haan-from { color: var(--wp--preset--color--muted); font-size: .85em; }
.wc-block-components-product-price { color: var(--wp--preset--color--rose-deep); font-weight: 500; }
.wc-block-components-product-button .wp-block-button__link, .wc-block-components-product-button__button { border-radius: 999px !important; background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--base) !important; font-size: .95rem !important; padding: .7rem 1.6rem !important; }

/* ---------- steps ---------- */
.haan-steps { counter-reset: step; }
.haan-step { position: relative; padding-top: 64px !important; }
.haan-step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; inset-inline-start: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--wp--preset--font-family--latin); font-size: 1.2rem; color: var(--wp--preset--color--rose-deep); border: 1px solid var(--wp--preset--color--rose); background: var(--wp--preset--color--white); }

/* ---------- experiences gallery ---------- */
.haan-gallery .wp-block-post-featured-image img { border-radius: 18px; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s ease; }
.haan-gallery .wp-block-post-featured-image { overflow: hidden; border-radius: 18px; }
.haan-gallery li:hover .wp-block-post-featured-image img { transform: scale(1.04); }

/* ---------- reviews ---------- */
.haan-review { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 22px; padding: 28px !important; height: 100%; }
.haan-review .wp-block-post-content p { color: var(--wp--preset--color--ink); }
.haan-review .wp-block-post-title { font-size: 1rem !important; color: var(--wp--preset--color--rose-deep); font-family: var(--wp--preset--font-family--body); font-weight: 500; }
.haan-review::before { content: "”"; display: block; font-family: var(--wp--preset--font-family--latin); font-size: 3.4rem; line-height: .6; color: var(--wp--preset--color--rose); height: .5em; }

/* ---------- FAQ ---------- */
.wp-block-details summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--rose-deep); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }

/* ---------- footer ---------- */
.haan-footer .wp-block-site-logo img { border-radius: 50%; }
.haan-footer a { color: var(--wp--preset--color--muted); text-decoration: none; }
.haan-footer a:hover { color: var(--wp--preset--color--rose-deep); }
.haan-footer .wp-block-social-links .wp-social-link { background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--base) !important; }
.haan-footer .wp-block-social-links .wp-social-link:hover { background: var(--wp--preset--color--rose-deep) !important; }

/* ---------- single product + checkout ---------- */
.single-product .product .variations { width: 100%; }
.single-product .product .variations th { text-align: start; font-weight: 500; padding-block: .6rem; }
.single-product .product .variations select { width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--white); padding: 0 14px; font: inherit; }
.single-product .woocommerce-variation-price .price { font-size: 1.6rem; color: var(--wp--preset--color--rose-deep); }
.single_add_to_cart_button, .woocommerce #place_order, .woocommerce .checkout-button { border-radius: 999px !important; background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--base) !important; padding: .9rem 2.2rem !important; font-family: inherit !important; }
.single_add_to_cart_button:hover, .woocommerce #place_order:hover { background: var(--wp--preset--color--rose-deep) !important; }
.single-product .quantity { display: none !important; }
.haan-booking { display: grid; gap: 14px; margin-block: 1.2rem; }
.haan-field { display: grid; gap: 6px; font-weight: 500; }
.haan-field[hidden] { display: none; }
.haan-field select, .haan-field input { min-height: 48px; border-radius: 14px; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--white); padding: 0 14px; font: inherit; width: 100%; color: var(--wp--preset--color--ink); }
.haan-field option:disabled { color: #b9a9a2; }
.haan-total { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline; background: var(--wp--preset--color--blush); border-radius: 16px; padding: 14px 18px; font-size: .98rem; color: var(--wp--preset--color--muted); }
.haan-total[hidden] { display: none; }
.haan-total b { color: var(--wp--preset--color--ink); font-weight: 600; font-variant-numeric: lining-nums; }
.haan-total .haan-sum { margin-inline-start: auto; color: var(--wp--preset--color--rose-deep); font-size: 1.1rem; }
.haan-total .haan-sum b { color: var(--wp--preset--color--rose-deep); }
.haan-note { margin: 0; color: var(--wp--preset--color--rose-deep); font-size: .92rem; }
.woocommerce-product-details__short-description { color: var(--wp--preset--color--muted); }
.woocommerce-Tabs-panel h3, .wc-tab h3 { margin-top: 2rem; }
.woocommerce-Tabs-panel details { border-bottom: 1px solid var(--wp--preset--color--line); padding-block: .8rem; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea { border-radius: 12px; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--white); min-height: 46px; padding: 8px 12px; font: inherit; }
.woocommerce-checkout #order_review, .woocommerce-checkout #customer_details { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 22px; padding: 24px; }
.haan-booking-summary { background: var(--wp--preset--color--blush); border-radius: 22px; padding: 24px; margin-bottom: 2rem; }

/* ---------- whatsapp float ---------- */
.haan-wa-float { position: fixed; z-index: 60; bottom: calc(18px + env(safe-area-inset-bottom)); left: calc(18px + env(safe-area-inset-left)); width: 56px; height: 56px; border-radius: 50%; background: #1F8F55; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,.35); transition: transform .2s; }
.haan-wa-float:hover { transform: scale(1.06); color: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* header: account + cart + book button sit together, nothing floats apart */
.haan-header .haan-actions { flex-wrap: nowrap; align-items: center; }
.haan-header .haan-actions .wp-block-buttons { margin: 0; }
.haan-header .wp-block-woocommerce-customer-account a, .haan-header .wc-block-mini-cart__button { padding: 6px; }
@media (max-width: 600px) {
  .haan-header .wp-block-button__link { padding: .55rem 1rem !important; font-size: .9rem !important; }
  .haan-header .wp-block-site-logo img { width: 52px; height: 52px; }
  .haan-header .haan-actions { gap: .3rem; }
}
.wc-block-mini-cart__badge { background: var(--wp--preset--color--rose-deep) !important; color: #fff !important; font-size: .7rem; min-width: 18px; height: 18px; line-height: 18px; }

/* hero: deeper gradient so the second line reads clearly; spa logo centred on the photo */
.haan-hero h1 em { background: linear-gradient(120deg, #B9806F 0%, #8C5244 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.haan-hero .haan-hero-img::before { content: ""; position: absolute; z-index: 2; top: 50%; left: 50%; width: clamp(84px, 22%, 140px); aspect-ratio: 1; transform: translate(-50%, -50%); background: url("assets/img/logo.png") center / cover; border-radius: 50%; box-shadow: 0 12px 36px -8px rgba(0,0,0,.45), 0 0 0 4px rgba(255,255,255,.85); pointer-events: none; }

/* section names under the hero */
.haan-cats { border-block: 1px solid var(--wp--preset--color--line); }
.haan-cats-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1200px; margin-inline: auto; }
.haan-cats-nav a { text-align: center; padding: 16px 10px; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; background: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.1rem; color: var(--wp--preset--color--ink); text-decoration: none; transition: background-color .25s, color .25s, border-color .25s; }
.haan-cats-nav a:hover { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); }
@media (max-width: 640px) { .haan-cats-nav { grid-template-columns: 1fr 1fr; } .haan-cats-nav a { font-size: 1rem; padding: 14px 8px; } }

/* empty section (packages / offers before anything is added): keep the friendly message only */
.wp-block-woocommerce-product-collection-no-results .wp-block-paragraph + .wp-block-paragraph { display: none; }
.wp-block-woocommerce-product-collection-no-results { padding-block: 4rem; text-align: center; }

/* service lists: no "showing N results" line or sorting dropdown */
.wp-block-woocommerce-product-results-count, .wp-block-woocommerce-catalog-sorting, .woocommerce-result-count, .woocommerce-ordering { display: none !important; }

/* booking form: country is fixed (Saudi Arabia), payment choice */
#billing_country_field { display: none !important; }
.haan-pay .woocommerce-input-wrapper { display: grid; gap: 10px; }
.haan-pay label.radio { display: flex !important; align-items: center; gap: 10px; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 12px 16px; background: var(--wp--preset--color--white); cursor: pointer; }
.haan-pay input[type=radio] { accent-color: var(--wp--preset--color--rose-deep); width: 18px; height: 18px; }
.haan-booking-summary ul { list-style: none; padding: 0; display: grid; gap: .4rem; }
.haan-booking-summary .haan-due { color: var(--wp--preset--color--rose-deep); font-size: 1.1rem; }
.haan-wa-btn { display: inline-flex; align-items: center; gap: .6rem; background: #1F8F55; color: #fff !important; border-radius: 999px; padding: .9rem 1.8rem; font-weight: 600; text-decoration: none; margin-top: .6rem; }
.haan-wa-btn:hover { background: #17724a; }
.haan-pay label.radio .required, .haan-pay label.radio abbr { display: none; }
/* customers book as guests: no account icon (WooCommerce adds it to the header on its own) */
.wp-block-woocommerce-customer-account { display: none !important; }

/* footer credit */
.haan-credit a { text-decoration: underline !important; text-underline-offset: 4px; color: var(--wp--preset--color--ink); }
.haan-credit { display: inline-block; margin-top: .35rem; }

/* gift + multi-service */
.haan-gift { display: grid; gap: 4px; background: var(--wp--preset--color--blush); border-radius: 14px; padding: 12px 16px; cursor: pointer; font-weight: 500; }
.haan-gift input { accent-color: var(--wp--preset--color--rose-deep); width: 18px; height: 18px; margin-inline-end: 8px; vertical-align: middle; }
.haan-gift small { font-weight: 400; color: var(--wp--preset--color--muted); }
.haan-add-more { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin-bottom: 1rem; color: var(--wp--preset--color--muted); }
.haan-add-more a { border: 1px solid var(--wp--preset--color--ink); border-radius: 999px; padding: .5rem 1.2rem; text-decoration: none; color: var(--wp--preset--color--ink); }
.haan-add-more a:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); }
.haan-svc { border-bottom: 1px solid var(--wp--preset--color--line); padding-bottom: .6rem; margin-bottom: .8rem; }
.haan-svc h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.woocommerce-cart table.cart { width: 100%; }
.woocommerce-cart .cart_totals, .woocommerce-cart .shop_table { background: var(--wp--preset--color--white); border-radius: 18px; }

/* cart: quantities are fixed, so no unit price row and no "update cart" button */
.woocommerce-cart td.product-price, .woocommerce-cart th.product-price, .woocommerce-cart button[name=update_cart] { display: none !important; }
