/* =========================================================
   DREAM KNITS — Stylesheet
   Design tokens: navy/blue brand palette + amber "thread" accent
   Display type: Fraunces (soft serif — comfort, craft)
   Body/UI type:  Inter (clean, industrial legibility)
   ========================================================= */

:root {
  --navy: #0A2E55;
  --navy-deep: #071E3D;
  --blue: #1B5FA8;
  --blue-light: #4A8FD6;
  --sky-tint: #EEF5FC;
  --sky-tint-2: #E3EEF9;
  --ink: #142033;
  --ink-soft: #526074;
  --ink-faint: #7C8AA0;
  --amber: #E8A33D;
  --amber-dark: #C97F1F;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --border: #DCE6F2;
  --border-soft: #E9F0F8;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 30px;

  --shadow-soft: 0 14px 34px rgba(10, 46, 85, 0.09);
  --shadow-tight: 0 4px 14px rgba(10, 46, 85, 0.08);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety net: never allow a stray negative-margin element to open a horizontal scrollbar */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  color: var(--navy-deep);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.container-xl-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-navy { color: var(--navy-deep) !important; }
.text-blue { color: var(--blue) !important; }
.text-ink-soft { color: var(--ink-soft) !important; }
.bg-sky { background: var(--sky-tint) !important; }
.bg-navy { background: var(--navy-deep) !important; }

.eyebrow {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
  border-radius: 2px;
}

/* padding-top/bottom only (never shorthand "padding: Y X") so this never
   zeroes out horizontal padding when combined with .container-xl-custom
   on the same element, e.g. <div class="container-xl-custom section-sm"> */
.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-sm { padding-top: 3.25rem; padding-bottom: 3.25rem; }
@media (max-width: 767.98px) {
  .section { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .section-sm { padding-top: 2.25rem; padding-bottom: 2.25rem; }
}

.lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 46ch;
}

/* ---------- Knit-stitch decorative divider ---------- */
.knit-rule {
  height: 14px;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 L7 0 L14 14 L21 0 L28 14' fill='none' stroke='%231B5FA8' stroke-width='1.6' stroke-opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 28px 14px;
}
.knit-rule.on-dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 L7 0 L14 14 L21 0 L28 14' fill='none' stroke='%23E8A33D' stroke-width='1.6' stroke-opacity='0.55'/%3E%3C/svg%3E");
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: 0.72rem 1.5rem; font-size: 0.98rem; }

.btn-brand {
  background: var(--navy-deep);
  border: 1px solid var(--navy-deep);
  color: var(--white);
}
.btn-brand:hover, .btn-brand:focus { background: var(--blue); border-color: var(--blue); color: var(--white); }

.btn-brand-outline {
  background: transparent;
  border: 1.5px solid var(--navy-deep);
  color: var(--navy-deep);
}
.btn-brand-outline:hover { background: var(--navy-deep); color: var(--white); }

.btn-brand-outline.on-dark { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-brand-outline.on-dark:hover { background: var(--white); color: var(--navy-deep); }

.btn-amber { background: var(--amber); border: 1px solid var(--amber); color: var(--navy-deep); }
.btn-amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--white); }

.btn-whatsapp {
  background: var(--whatsapp);
  border: 1px solid var(--whatsapp);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); color: var(--white); }

.btn-sm-pill { border-radius: 50px; padding: 0.55rem 1.15rem; font-size: 0.88rem; }

/* =========================================================
   NAVBAR
   ========================================================= */
.dk-topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.86rem;
}
.dk-topbar a { color: rgba(255,255,255,0.85); }
.dk-topbar a:hover { color: var(--amber); }

.dk-navbar {
  background: var(--white);
  box-shadow: var(--shadow-tight);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.dk-logo { display: flex; align-items: center; gap: 0.7rem; }
.dk-logo-mark {
  width: 46px; height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.dk-logo-text { line-height: 1.15; }
.dk-logo-text .name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--navy-deep); display:block; }
.dk-logo-text .tag { font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.02em; }

.dk-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
}
.dk-nav .nav-link.active, .dk-nav .nav-link:hover { color: var(--blue); }
.dk-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.15rem;
  height: 2px; background: var(--amber); border-radius: 2px;
}

.dk-nav-cta { display: flex; align-items: center; gap: 1rem; }
.dk-nav-phone { display: flex; align-items: center; gap: 0.6rem; }
.dk-nav-phone .icons { display: flex; gap: 0.4rem; }
.dk-nav-phone .icons a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.95rem;
}
.dk-nav-phone .icons a.call { background: var(--blue); }
.dk-nav-phone .icons a.wa { background: var(--whatsapp); }
.dk-nav-phone .num { line-height: 1.1; }
.dk-nav-phone .num strong { display: block; font-size: 0.92rem; color: var(--navy-deep); }
.dk-nav-phone .num span { font-size: 0.72rem; color: var(--ink-faint); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(180deg, var(--sky-tint) 0%, var(--white) 78%);
  overflow: hidden;
  position: relative;
}
.hero-stat-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-stat-badge .n { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--navy-deep); line-height: 1; }
.hero-stat-badge .l { font-size: 0.72rem; color: var(--ink-faint); }

.page-hero {
  background: linear-gradient(180deg, var(--sky-tint) 0%, var(--white) 100%);
  padding: 3rem 0 3.5rem;
}
.page-hero .crumb { font-size: 0.85rem; color: var(--ink-faint); }
.page-hero .crumb a { color: var(--blue); }

/* =========================================================
   RESPONSIVE IMAGE FIT SYSTEM
   Source image dimensions do NOT need to match the mockup's
   recommended pixel dimensions. CSS scales every image to the
   available slot and object-fit: cover keeps the visual area filled.
   No decorative/cross-line background is applied to image areas.
   ========================================================= */
.dk-img-fit,
.ph-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 0;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  background: transparent !important;
  background-image: none !important;
  overflow: hidden;
}

/* Fixed visual ratios for different content slots. The browser
   automatically scales a 1254px image, 900px image, etc. into these
   responsive boxes; the source resolution itself is irrelevant. */
.dk-img-fit.dk-square,
.ph-img.ph-square { aspect-ratio: 1 / 1; }

.dk-img-fit.dk-16-9,
.ph-img.ph-16-9 { aspect-ratio: 16 / 9; }

.dk-img-fit.dk-4-3,
.ph-img.ph-4-3 { aspect-ratio: 4 / 3; }

.dk-img-fit.dk-3-4,
.ph-img.ph-3-4 { aspect-ratio: 3 / 4; }

.dk-img-fit.dk-21-9,
.ph-img.ph-21-9 { aspect-ratio: 21 / 9; }

.dk-img-fit.dk-tall,
.ph-img.ph-tall { aspect-ratio: 9 / 14; }

.dk-img-fit.rounded-pill-ish,
.ph-img.rounded-pill-ish { border-radius: 100px; }

/* If an older section/template has a decorative image frame,
   keep the real image clean and remove the cross/diagonal pattern. */
.dk-image-frame,
.image-frame,
.image-placeholder-frame {
  background-image: none !important;
  background: transparent !important;
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  background: var(--navy-deep);
  color: var(--white);
  padding: 2.4rem 0;
}
.stats-strip .stat { text-align: center; }
.stats-strip .stat .n {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 2.3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}
.stats-strip .stat .l { color: rgba(255,255,255,0.65); font-size: 0.86rem; }
.stats-strip .stat .icon { color: var(--amber); font-size: 1.3rem; margin-bottom: 0.35rem; }

/* =========================================================
   CARDS
   ========================================================= */
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  height: 100%;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--blue-light); transform: translateY(-3px); }
.feature-card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--sky-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.3rem; margin-bottom: 1rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  background: var(--white);
}
.contact-card .ic {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.25rem; margin-bottom: 1.1rem;
}
.contact-card .ic.call { background: var(--blue); }
.contact-card .ic.wa { background: var(--whatsapp); }
.contact-card .ic.mail { background: var(--amber-dark); }
.contact-card h3 { font-size: 1.1rem; }
.contact-card .val { font-weight: 700; color: var(--navy-deep); font-size: 1.02rem; }

/* Product card */
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.product-card .ph-img { border-radius: 0; }
.product-card .body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
/* .cat-tag is a standalone reusable pill — used inside product cards AND
   as a plain tag list elsewhere (e.g. About page) — never scope it to a parent. */
.cat-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--blue); background: var(--sky-tint); display: inline-block;
  padding: 0.2rem 0.55rem; border-radius: 20px; margin-bottom: 0.55rem; width: fit-content;
}
.product-card .cat-tag { margin-bottom: 0.55rem; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.product-card p { font-size: 0.88rem; color: var(--ink-soft); flex: 1; }
.product-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.9rem; }
.product-card .enquire { font-size: 0.86rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 0.3rem; }
.product-card .enquire:hover { color: var(--amber-dark); }

/* Process steps */
.process-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.process-step { text-align: center; flex: 1; min-width: 100px; position: relative; }
.process-step .circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.5rem; margin: 0 auto 0.7rem;
}
.process-step .lbl { font-weight: 600; font-size: 0.9rem; color: var(--navy-deep); }
.process-arrow { color: var(--ink-faint); align-self: center; margin-top: 24px; font-size: 1.2rem; }
@media (max-width: 767.98px) { .process-arrow { display: none; } }

/* Age range pills */
.age-pill {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
  text-align: center;
  background: var(--white);
}
.age-pill .bi { font-size: 1.6rem; color: var(--blue); margin-bottom: 0.5rem; }
.age-pill .lbl { font-weight: 600; font-size: 0.92rem; color: var(--navy-deep); }

/* Timeline (about/future) */
.timeline-card { border-left: 3px solid var(--amber); padding-left: 1.25rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-deep), var(--blue));
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.78); }

/* =========================================================
   FORMS
   ========================================================= */
.dk-form label { font-weight: 600; font-size: 0.88rem; color: var(--navy-deep); margin-bottom: 0.35rem; }
.dk-form .form-control, .dk-form .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.9rem;
  font-size: 0.95rem;
}
.dk-form .form-control:focus, .dk-form .form-select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 0.18rem rgba(27,95,168,0.15);
}
.form-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-tight); }

/* Map placeholder */
.map-ph {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
  background: var(--sky-tint); /* visible fallback tone if the map iframe is ever blocked */
}

/* =========================================================
   FOOTER
   ========================================================= */
.dk-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); }
.dk-footer h4 { color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 1.1rem; }
.dk-footer a { color: rgba(255,255,255,0.7); }
.dk-footer a:hover { color: var(--amber); }
.dk-footer ul { list-style: none; padding: 0; margin: 0; }
.dk-footer ul li { margin-bottom: 0.6rem; font-size: 0.92rem; }
.dk-footer .brand-blurb { color: rgba(255,255,255,0.65); font-size: 0.92rem; max-width: 32ch; }
.dk-footer .social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 0.5rem;
}
.dk-footer .social a:hover { background: var(--amber); color: var(--navy-deep); }
.dk-footer .contact-line { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; margin-bottom: 0.75rem; }
.dk-footer .contact-line .bi { color: var(--amber); margin-top: 0.2rem; }
.dk-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.1rem 0; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* =========================================================
   FLOATING CALL + WHATSAPP ACTIONS
   Reference layout: CALL = bottom-left, WHATSAPP = bottom-right.
   This applies consistently on desktop and mobile.
   ========================================================= */
.contact-float {
  position: fixed;
  bottom: 22px;
  z-index: 99999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  line-height: 1;
  text-decoration: none;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-float:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.call-float {
  left: 22px;
  right: auto;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(27,95,168,0.38);
}

.call-float:hover {
  background: var(--navy-deep);
}

.wa-float {
  right: 22px;
  left: auto;
  background: var(--whatsapp);
  box-shadow: 0 10px 24px rgba(37,211,102,0.45);
  animation: wa-pulse 2.4s infinite;
}

.wa-float:hover {
  background: var(--whatsapp-dark);
}

@media (max-width: 575.98px) {
  .contact-float {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    bottom: 18px;
  }

  .call-float {
    left: 14px;
    right: auto;
  }

  .wa-float {
    right: 14px;
    left: auto;
  }
}
/* =========================================================
   FILTER TABS (Products page)
   ========================================================= */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filter-tab {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  border-radius: 50px;
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-tab:hover { border-color: var(--blue-light); }
.filter-tab.active { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }

/* Utility */
.divider-sm { width: 56px; height: 3px; background: var(--amber); border-radius: 3px; }

@media (max-width: 991.98px) {
  .dk-nav-phone { display: none !important; }
}

/* Dream Knits: single-column mobile cards */
@media (max-width: 575.98px) {
  .products-grid > [class*="col-"],
  .product-grid > [class*="col-"],
  .product-card-wrap {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}
