/* ==========================================================================
   Deepavali Hamper Singapore - design system
   Palette: deep maroon / burgundy / warm gold / champagne / ivory / charcoal
   ========================================================================== */

:root {
  --color-maroon: #5c0f22;
  --color-burgundy: #7a1530;
  --color-gold: #c9974a;
  --color-gold-light: #e4c078;
  --color-champagne: #f3e6cf;
  --color-ivory: #fbf7f0;
  --color-charcoal: #241a1a;
  --color-text: #2c2020;
  --color-text-muted: #6b5b5b;
  --color-border: #e8dcc8;
  --color-white: #ffffff;
  --color-success: #2e7d4f;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(36, 26, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(92, 15, 34, 0.10);
  --shadow-gold: 0 0 0 1px rgba(201, 151, 74, 0.35);
  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-ivory: #1c1414;
    --color-text: #f3e6cf;
    --color-text-muted: #cbb9a8;
    --color-border: #3a2a2a;
    --color-white: #241a1a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-ivory);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-burgundy); text-decoration: none; }
a:hover { color: var(--color-maroon); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-maroon); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
address { font-style: normal; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--color-maroon); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.btn-primary { background: var(--color-maroon); color: #fff; }
.btn-primary:hover { background: var(--color-burgundy); color: #fff; }
.btn-gold { background: var(--color-gold); color: var(--color-charcoal); }
.btn-gold:hover { background: var(--color-gold-light); color: var(--color-charcoal); }
.btn-outline { background: transparent; color: var(--color-maroon); border-color: var(--color-maroon); }
.btn-outline:hover { background: var(--color-maroon); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* Header — one compact row on desktop/laptop screens; anything that would
   crowd that row (category and sub-audience pages) lives in a dropdown
   submenu instead of sitting flat across the top. */
.site-header { background: var(--color-white); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 500; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; min-height: 56px; }
.site-branding { display: flex; align-items: center; gap: 10px; flex: none; }
.site-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--color-maroon); margin: 0; white-space: nowrap; line-height: 1.2; }
.site-title a { color: var(--color-maroon); }
.site-title a:hover { text-decoration: none; }

.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.main-nav > ul { flex-wrap: nowrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; color: var(--color-text); font-weight: 500; font-size: 0.92rem; white-space: nowrap; padding: 8px 10px; border-radius: 6px; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus { text-decoration: none; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a:focus { color: var(--color-maroon); background: var(--color-champagne); }
.main-nav li.menu-item-has-children > a::after { content: "\25BE"; margin-left: 5px; font-size: .7em; opacity: .7; vertical-align: 1px; }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-cta .phone-link { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--color-maroon); white-space: nowrap; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-maroon); line-height: 1; }

/* Desktop dropdown: hover or keyboard focus reveals the submenu panel.
   The panel sits flush at the bottom of the parent <li> (no margin-top
   gap) — the <li>'s own padding-bottom supplies the visual breathing room
   instead, and that padding is INSIDE the <li>'s hoverable box, so the
   mouse never crosses a real dead zone between the link and the panel
   that would end the :hover before a click can land on a submenu item. */
@media (min-width: 1101px) {
  .main-nav li.menu-item-has-children { padding-bottom: 10px; margin-bottom: -10px; }
  .main-nav .sub-menu {
    display: block; visibility: hidden; opacity: 0; pointer-events: none;
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); padding: 8px;
    transition: opacity .15s ease, visibility .15s;
    z-index: 60;
  }
  .main-nav li.menu-item-has-children:hover > .sub-menu,
  .main-nav li.menu-item-has-children:focus-within > .sub-menu {
    visibility: visible; opacity: 1; pointer-events: auto;
  }
  .main-nav .sub-menu li { width: 100%; }
  .main-nav .sub-menu a { padding: 9px 12px 9px 14px; border-radius: 6px; font-size: .9rem; border-left: 3px solid transparent; transition: border-color .15s ease, background-color .15s ease, padding-left .15s ease; }
  .main-nav .sub-menu a:hover, .main-nav .sub-menu a:focus {
    background: var(--color-champagne); color: var(--color-maroon);
    border-left-color: var(--color-gold); padding-left: 17px;
  }
}

@media (max-width: 1150px) {
  .header-cta .btn-label { display: none; }
}

@media (max-width: 1100px) {
  .main-nav { position: fixed; inset: 0 0 0 30%; background: var(--color-white); padding: 90px 24px 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 550; flex: none; }
  .main-nav.is-open { transform: translateX(0); box-shadow: -8px 0 24px rgba(0,0,0,.15); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li > a { padding: 12px 0; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .main-nav .sub-menu { padding-left: 16px; }
  .main-nav .sub-menu a { padding: 10px 0; border-bottom: 1px solid var(--color-border); border-radius: 0; color: var(--color-text-muted); font-size: .88rem; }
  .menu-toggle { display: block; }
}

@media (max-width: 560px) {
  /* The mobile sticky CTA bar already offers Call/Enquire, so the header
     button here would just be duplicate chrome competing for the same
     narrow row as the site title and menu toggle. */
  .header-cta .btn-primary { display: none; }
}
@media (max-width: 420px) {
  .header-cta .phone-link { display: none; }
  .site-title { font-size: 0.92rem; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-burgundy) 55%, var(--color-maroon) 100%); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 420px; height: 420px; background: radial-gradient(circle, rgba(201,151,74,.35) 0%, rgba(201,151,74,0) 70%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .hero-eyebrow { display: inline-block; color: var(--color-gold-light); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.hero p.lead { font-size: 1.1rem; color: var(--color-champagne); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 3px solid rgba(255,255,255,.15); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-visual { grid-template-columns: 1fr 1fr; margin-top: 10px; } }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--color-champagne); }
.section-header { max-width: 68ch; margin: 0 0 32px; }
.section-header.center { margin-inline: auto; text-align: center; }
.eyebrow { display: block; color: var(--color-gold); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; margin-bottom: 8px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card .card-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.product-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.product-card img { aspect-ratio: 4/3; object-fit: cover; }
.product-card .product-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 1.05rem; margin: 0; }
.product-card .price { font-weight: 700; color: var(--color-maroon); font-size: 1.05rem; }
.product-card .availability { font-size: .82rem; color: var(--color-success); font-weight: 600; }
.product-card .availability.oos { color: #a33; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .step-num { counter-increment: step; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--color-maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step .step-num::before { content: counter(step); }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 78ch; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--color-maroon); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--color-gold); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 20px 18px; color: var(--color-text-muted); }

/* Breadcrumbs */
.breadcrumbs { font-size: .85rem; color: var(--color-text-muted); padding: 14px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--color-border); }
.breadcrumbs a { color: var(--color-text-muted); }

/* Final CTA band */
.cta-band { background: var(--color-maroon); color: #fff; padding: 54px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--color-champagne); max-width: 60ch; margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* Footer */
.site-footer { background: var(--color-charcoal); color: #d8c8b6; padding: 56px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h3 { color: var(--color-gold-light); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #d8c8b6; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Sticky mobile CTA */
.mobile-cta-bar { display: none; }
@media (max-width: 760px) {
  .mobile-cta-bar { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--color-maroon); box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
  .mobile-cta-bar a { color: #fff; text-align: center; padding: 12px 4px; font-size: .78rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .mobile-cta-bar a:hover { text-decoration: none; background: rgba(255,255,255,.08); }
  body { padding-bottom: 58px; }
}

/* Utility */
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.badge { display: inline-block; background: var(--color-champagne); color: var(--color-maroon); font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* WooCommerce alignment with theme */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; list-style: none; margin: 0 0 1em; padding: 0; }
.woocommerce ul.products li.product { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0 0 18px; box-shadow: var(--shadow-sm); float: none; width: auto; text-align: left; overflow: hidden; }
.woocommerce ul.products li.product a { display: block; color: inherit; text-decoration: none; }
.woocommerce ul.products li.product img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; margin: 0 0 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-display); color: var(--color-maroon); font-size: 1.05rem; margin: 0 16px 6px; }
.woocommerce ul.products li.product .price { font-weight: 700; color: var(--color-maroon); margin: 0 16px 10px; display: block; }
.woocommerce ul.products li.product .button { margin: 0 16px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.woocommerce div.product div.images { margin: 0; }
.woocommerce div.product div.images img { border-radius: var(--radius-md); width: 100%; }
.woocommerce div.product .summary { padding-top: 6px; }
.woocommerce div.product .summary h1 { margin-bottom: 10px; }
.woocommerce div.product .related.products { grid-column: 1 / -1; margin-top: 20px; }
@media (max-width: 760px) { .woocommerce div.product { grid-template-columns: 1fr; } }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit, .woocommerce input.button { background: var(--color-maroon) !important; color: #fff !important; border-radius: 999px !important; padding: 10px 22px !important; border: none !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--color-burgundy) !important; }
.woocommerce span.onsale { background: var(--color-gold) !important; color: var(--color-charcoal) !important; }
.woocommerce nav.woocommerce-breadcrumb { font-size: .85rem; color: var(--color-text-muted); margin-bottom: 20px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--color-champagne) !important; border-top-color: var(--color-gold) !important; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--color-maroon); font-size: 1.3rem; }

/* Blog */
.post-list { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.post-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; }
.post-card .post-card-body { padding: 18px; }
.post-meta { color: var(--color-text-muted); font-size: .85rem; }
.single-article { max-width: 76ch; margin: 0 auto; }
.single-article h2 { margin-top: 1.4em; }
.author-box { display: flex; gap: 14px; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; margin-top: 40px; background: var(--color-white); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 14px; }
.contact-form label { font-weight: 600; display: block; margin-bottom: 4px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--color-gold); border-color: var(--color-gold); }

table.content-table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
table.content-table th, table.content-table td { border: 1px solid var(--color-border); padding: 10px 12px; text-align: left; }
table.content-table th { background: var(--color-champagne); }

/* Product pre-booking / enquiry button */
.dhs-enquire-wrap { margin-top: 10px; }
.woocommerce ul.products li.product .dhs-enquire-wrap { margin: 8px 16px 4px; }
.dhs-enquire-btn { width: 100%; justify-content: center; font-size: .82rem; padding: 10px 14px; }
.dhs-enquire-wrap--single { margin: 18px 0 8px; }
.dhs-enquire-wrap--single .dhs-enquire-btn { width: auto; font-size: .95rem; padding: 13px 26px; }
.dhs-enquiry-hint { font-size: .82rem; margin-top: 8px; }

/* Enquiry modal */
.dhs-modal[hidden] { display: none; }
.dhs-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dhs-modal-backdrop { position: absolute; inset: 0; background: rgba(36, 26, 26, .55); backdrop-filter: blur(1px); }
.dhs-modal-panel { position: relative; background: var(--color-white); border-radius: var(--radius-lg); max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: dhsModalIn .18s ease; }
@keyframes dhsModalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.dhs-modal-body { padding: 32px 28px 28px; }
.dhs-modal-body h3 { margin-bottom: 4px; }
.dhs-modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--color-champagne); color: var(--color-maroon); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.dhs-modal-close:hover { background: var(--color-gold-light); }
#dhs-enquiry-form { display: grid; gap: 14px; margin-top: 18px; }
#dhs-enquiry-form[hidden] { display: none; }
#dhs-enquiry-form label { font-weight: 600; display: block; margin-bottom: 4px; font-size: .9rem; }
#dhs-enquiry-form input, #dhs-enquiry-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; }
#dhs-enquiry-form input:focus, #dhs-enquiry-form textarea:focus { outline: 2px solid var(--color-gold); border-color: var(--color-gold); }
#dhs-enquiry-form button[type="submit"] { width: 100%; justify-content: center; }
.dhs-enquiry-status { margin: 14px 0 0; font-weight: 600; }
.dhs-enquiry-status:empty { margin: 0; }
.dhs-enquiry-status--ok { color: var(--color-success); }
.dhs-enquiry-status--error { color: #a33; }
