/* ==========================================================================
   BharatTradeX Theme 10 "Editorial" (2026-11-13).

   Second multi-page template (ADR 0005). Shares theme 9's routes, page models
   and inner pages; this file + _EditorialLayout are the entire visual
   difference. Deliberately the opposite register to theme 9's navy chrome:
   white header/footer, navy type, green actions, pale-blue hero.

   Namespaced .ed-* so it can never collide with theme 9's .pm-* rules, and
   the inner pages (shared markup) are re-skinned by overriding .pm-* inside
   .ed-page only.
   ========================================================================== */

:root {
  --ed-navy: #10234a;          /* headings */
  --ed-ink: #26364f;           /* body text */
  --ed-muted: #63738a;         /* secondary text */
  --ed-green: #087a4b;         /* actions */
  --ed-green-dark: #06643e;    /* hover/pressed */
  --ed-hero: #eaf6fd;          /* pale-blue hero */
  /* White veil laid over the hero artwork. One knob for how loud the backdrop
     is: raise the alpha to push it further back, drop it to let it through
     (2026-11-13, user: "can we have it like somewhat opacity as it looks
     darker that fonts & slider"). */
  --ed-hero-veil: rgba(255, 255, 255, .46);
  --ed-blue-2: #e4f3fc;
  --ed-mint: #e8f6f1;
  --ed-cream: #fbf6e9;
  --ed-white: #ffffff;
  --ed-border: #d8e5ec;

  /* 4/8/12/16/24/32/48/64/80 spacing scale */
  --ed-s1: 4px;  --ed-s2: 8px;  --ed-s3: 12px; --ed-s4: 16px;
  --ed-s5: 24px; --ed-s6: 32px; --ed-s7: 48px; --ed-s8: 64px; --ed-s9: 80px;

  --ed-r-btn: 8px;
  --ed-r-card: 12px;
  --ed-r-hero: 20px;

  --ed-wrap: 1200px;
  --ed-head-h: 72px;

  --ed-shadow: 0 1px 2px rgba(16,35,74,.05), 0 8px 24px -14px rgba(16,35,74,.18);
  --ed-shadow-hover: 0 2px 6px rgba(16,35,74,.07), 0 14px 32px -14px rgba(16,35,74,.26);

  --ed-font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
.ed-page * { box-sizing: border-box; }
.ed-page {
  margin: 0;
  font-family: var(--ed-font);
  font-size: 17px;            /* 16-18px desktop body per the brief */
  line-height: 1.65;
  color: var(--ed-ink);
  background: var(--ed-white);
  -webkit-font-smoothing: antialiased;
}
.ed-page h1, .ed-page h2, .ed-page h3, .ed-page h4 {
  color: var(--ed-navy); margin: 0 0 .5em; line-height: 1.18; font-weight: 700;
}
.ed-page h1 { font-size: clamp(2.1rem, 3.4vw, 3.1rem); letter-spacing: -.02em; }
.ed-page h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -.01em; }
.ed-page h3 { font-size: 1.1rem; }
.ed-page p { margin: 0 0 1em; }
.ed-page img { max-width: 100%; }
/* Constrained measure -- the brief explicitly forbids full-width text lines. */
.ed-page .ed-prose p, .ed-lede { max-width: 68ch; }

.ed-wrap { max-width: var(--ed-wrap); margin: 0 auto; padding: 0 var(--ed-s5); }
.ed-section { padding: clamp(36px, 5vw, 72px) 0; }
.ed-section-tint { background: var(--ed-blue-2); }
.ed-muted { color: var(--ed-muted); }

.ed-kicker {
  display: inline-block; font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ed-green);
  margin-bottom: var(--ed-s2);
}
.ed-section-head { margin-bottom: var(--ed-s6); }
.ed-section-head p { color: var(--ed-muted); margin: 0; max-width: 62ch; }
.ed-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ed-s4); flex-wrap: wrap; }

/* ---------- Buttons: filled green primary, outlined secondary ---------- */
.ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ed-s2);
  min-height: 46px; padding: 0 var(--ed-s5);
  border-radius: var(--ed-r-btn); border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .97rem; text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ed-btn-primary { background: var(--ed-green); color: #fff; }
.ed-btn-primary:hover { background: var(--ed-green-dark); }
.ed-btn-primary:active { transform: translateY(1px); }
.ed-btn-ghost { background: var(--ed-white); color: var(--ed-green); border-color: var(--ed-green); }
.ed-btn-ghost:hover { background: var(--ed-mint); }
.ed-btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.ed-btn-light:hover { background: rgba(255,255,255,.22); }
.ed-btn-row { display: flex; gap: var(--ed-s3); flex-wrap: wrap; }

/* Visible focus everywhere -- accessibility requirement, not decoration. */
.ed-page a:focus-visible, .ed-page button:focus-visible,
.ed-page input:focus-visible, .ed-page textarea:focus-visible, .ed-page select:focus-visible {
  outline: 3px solid var(--ed-green); outline-offset: 2px; border-radius: 4px;
}

.ed-text-link { color: var(--ed-green); font-weight: 600; text-decoration: none; }
.ed-text-link:hover { text-decoration: underline; }

/* ---------- Header: white, sticky ---------- */
.ed-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ed-border);
  transition: box-shadow .2s ease;
}
.ed-header.scrolled { box-shadow: 0 2px 16px -6px rgba(16,35,74,.18); }
.ed-header-inner {
  display: flex; align-items: center; gap: var(--ed-s4);
  min-height: var(--ed-head-h); max-width: var(--ed-wrap); margin: 0 auto;
  padding: 0 var(--ed-s5); position: relative;
}
.ed-brand { display: flex; align-items: center; gap: var(--ed-s3); text-decoration: none; min-width: 0; }
.ed-brand img { height: 40px; width: 40px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ed-border); background: #fff; }
.ed-brand-text { min-width: 0; }
.ed-brand-name { display: block; color: var(--ed-navy); font-weight: 700; font-size: 1.02rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.ed-brand-loc { display: block; color: var(--ed-muted); font-size: .78rem; font-weight: 500; }

.ed-nav { margin-left: auto; display: flex; align-items: center; gap: var(--ed-s1); }
.ed-nav a {
  color: var(--ed-ink); text-decoration: none; font-size: .94rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  transition: background .17s ease, color .17s ease;
}
.ed-nav a:hover { background: var(--ed-mint); color: var(--ed-green-dark); }
/* Active page = restrained green pill, per the brief. */
.ed-nav a.is-active { background: var(--ed-green); color: #fff; }
/* Same specificity trap as theme 9: ".ed-nav a" would otherwise shrink the
   button's horizontal padding to the nav link's 14px. */
.ed-nav .ed-btn { margin-left: var(--ed-s3); padding: 0 var(--ed-s5); }

.ed-burger {
  display: none; margin-left: auto; background: #fff; cursor: pointer;
  border: 1.5px solid var(--ed-border); border-radius: var(--ed-r-btn);
  color: var(--ed-navy); font-size: 1.25rem; line-height: 1; padding: 9px 13px;
}

/* ---------- Hero: pale blue + soft geometry ---------- */
/* Patterned backdrop instead of the flat pale-blue block (2026-11-13, user
   request). The colour stays underneath as the fallback, so the hero still
   looks deliberate if the image is ever missing or blocked. cover + centre
   keeps the artwork's clear middle behind the heading on every screen width;
   the weighted corners are what get cropped on a phone, which is the point. */
.ed-hero {
    background-color: var(--ed-hero);
    background-image: linear-gradient(var(--ed-hero-veil), var(--ed-hero-veil)), url("/img/storefront/editorial-hero-bg.svg");
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: repeat, no-repeat;
    position: relative; overflow: hidden;
    padding: clamp(32px, 5vw, 68px) 0 clamp(36px, 5.5vw, 76px);
}
/* The two decorative radial blobs that used to sit in the hero corners are
   gone (2026-11-13): they existed to give a flat colour block some interest,
   and the backdrop image now carries its own corner artwork. Keeping both
   stacked two sets of decoration on top of each other. */
/* minmax(0, ...) rather than a bare fr on every track below is load-bearing,
   not tidiness. A grid item's automatic minimum size is its min-content size,
   and a Swiper reports no usable minimum -- so with a bare fr the hero track
   grew to the browser's maximum layout width (33.5 million px), which blew the
   hero copy off the side of the page and left the slider as a blank white box
   at every screen size (2026-11-13, real bug on the live site). */
.ed-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; z-index: 1; }
.ed-hero h1 { margin-bottom: var(--ed-s3); }
.ed-hero-lede { font-size: 1.07rem; color: var(--ed-ink); margin-bottom: var(--ed-s5); }

/* ---------- Hero collage / slider ---------- */
/* ---------- Hero collage ----------
   A collage assembled in CSS from the business's own photos, not a pre-baked
   collage image (2026-11-13, user request with a reference banner: "collage of
   images but in html (not real image collage) and then its slider"). Built
   this way the tiles stay crisp at any width, each photo keeps its own alt
   text, and the whole thing restyles with the theme. */
.ed-collage {
  display: grid; gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  /* Rounded corners AND a tilt, which clip-path cannot give together -- a
     clipped box drops its border-radius. Skewing the box keeps border-radius
     working, so the block is a parallelogram with rounded corners
     (2026-11-13, user: "rounded corners & tilted ... it is must"). Each photo
     is skewed back by the same angle below so the pictures stay upright. */
  transform: skewX(-7deg);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ed-border);
}
.ed-collage-item { overflow: hidden; background: #fff; aspect-ratio: 16 / 10; }
/* Exactly three photos: the first spans the full width above a pair, which
   reads better than a 2x2 with a hole in it. ":nth-last-child(3):first-child"
   is "first of exactly three" -- a plain :first-child would also catch the
   four-photo case and break the 2x2. */
.ed-collage-item:first-child:nth-last-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ed-collage-item:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
/* The counter-skew puts the photos back upright; the scale covers the slivers
   the rotation would otherwise leave at each tile's corners. */
.ed-collage-item img {
  width: 100%; height: 100%; object-fit: cover; background: #fff; display: block;
  transform: skewX(7deg) scale(1.16);
}

/* The slider is now only a frame around the collage: no border, radius or
   shadow of its own, because the collage's clip-path defines the shape. Extra
   bottom room is for the dots, which sit under the collage rather than over
   the photos as Swiper does by default. */
.ed-hero-slider { background: transparent; padding-bottom: 34px; }
/* Skewing a box makes it wider than its slide: a box H tall leans out by
   H*tan(7deg) in total, so the bottom-left corner was poking into the
   previous slide and the previous slide's corner into this one -- which is
   the sliver of a stray photo visible beside the collage (2026-11-13, user
   report with a screenshot). The padding reserves exactly that lean, and
   overflow:hidden guarantees nothing escapes even if a photo's aspect ratio
   makes the collage taller than expected. Both are needed: padding alone
   leaves no margin for error, clipping alone would cut the tilt off square. */
.ed-hero-slider .swiper-slide { background: transparent; display: block; padding: 0 5%; overflow: hidden; }

/* Circular buttons straddling the collage edges, per the reference. */
.ed-hero-slider .swiper-button-next, .ed-hero-slider .swiper-button-prev {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--ed-navy);
  box-shadow: 0 6px 18px -6px rgba(16, 35, 74, .45);
  margin-top: -40px;   /* re-centres on the collage, ignoring the dots strip */
}
.ed-hero-slider .swiper-button-prev { left: 2px; }
.ed-hero-slider .swiper-button-next { right: 10px; }
.ed-hero-slider .swiper-button-next:after, .ed-hero-slider .swiper-button-prev:after { font-size: .95rem; font-weight: 700; }

.ed-hero-slider .swiper-pagination { bottom: 2px; }
.ed-hero-slider .swiper-pagination-bullet { background: var(--ed-navy); opacity: .22; }
.ed-hero-slider .swiper-pagination-bullet-active { background: var(--ed-green); opacity: 1; }

.ed-hero-fallback {
  aspect-ratio: 4/3; border-radius: var(--ed-r-hero); background: #fff;
  border: 1px solid var(--ed-border); box-shadow: var(--ed-shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--ed-s4);
}
.ed-hero-fallback-mark {
  width: 104px; height: 104px; border-radius: 28px; background: var(--ed-mint);
  color: var(--ed-green); font-size: 2.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ed-hero-fallback img { width: 104px; height: 104px; object-fit: contain; }

/* ---------- Facts strip ---------- */
.ed-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--ed-s4); }
.ed-fact {
  display: flex; gap: var(--ed-s3); align-items: flex-start;
  background: #fff; border: 1px solid var(--ed-border); border-radius: var(--ed-r-card);
  padding: var(--ed-s4) var(--ed-s5);
}
.ed-fact-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--ed-mint); color: var(--ed-green); display: flex; align-items: center; justify-content: center; }
.ed-fact-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ed-fact strong { display: block; color: var(--ed-navy); font-size: 1rem; line-height: 1.3; }
.ed-fact span { font-size: .85rem; color: var(--ed-muted); }

/* ---------- Category tiles: rotating soft tints ---------- */
.ed-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: var(--ed-s4); }
.ed-tile {
  border: 1px solid var(--ed-border); border-radius: var(--ed-r-card);
  padding: var(--ed-s5) var(--ed-s4); text-align: center; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: var(--ed-s3);
  color: var(--ed-navy); font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ed-tile:hover { transform: translateY(-3px); box-shadow: var(--ed-shadow-hover); border-color: var(--ed-green); }
.ed-tile-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.ed-tile-ico svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ed-tile span { font-size: .95rem; line-height: 1.35; }
.ed-tile-count { font-size: .78rem; color: var(--ed-muted); font-weight: 500; }
/* nth-child rotation gives variety with no per-tile markup */
.ed-tile:nth-child(5n+1) { background: var(--ed-hero); }
.ed-tile:nth-child(5n+2) { background: var(--ed-mint); }
.ed-tile:nth-child(5n+3) { background: var(--ed-cream); }
.ed-tile:nth-child(5n+4) { background: var(--ed-blue-2); }
.ed-tile:nth-child(5n+5) { background: var(--ed-mint); }
.ed-tile:nth-child(5n+1) .ed-tile-ico { color: var(--ed-navy); }
.ed-tile:nth-child(5n+2) .ed-tile-ico { color: var(--ed-green); }
.ed-tile:nth-child(5n+3) .ed-tile-ico { color: #8a6d1f; }
.ed-tile:nth-child(5n+4) .ed-tile-ico { color: var(--ed-navy); }
.ed-tile:nth-child(5n+5) .ed-tile-ico { color: var(--ed-green); }

/* ---------- Alternating about ---------- */
.ed-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ed-split-media img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; border-radius: var(--ed-r-hero); border: 1px solid var(--ed-border); box-shadow: var(--ed-shadow); display: block; }
.ed-split-media .ed-hero-fallback { aspect-ratio: 4/3; }

/* ---------- Product cards ---------- */

.ed-card {
  display: flex; flex-direction: column; background: #fff; overflow: hidden;
  border: 1px solid var(--ed-border); border-radius: var(--ed-r-card);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ed-card:hover { transform: translateY(-4px); box-shadow: var(--ed-shadow-hover); border-color: #bcd4e2; }
.ed-card-media { display: block; aspect-ratio: 4/3; background: #f7fbfd; border-bottom: 1px solid var(--ed-border); }
.ed-card-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ed-card-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ed-navy); opacity: .5; }
.ed-card-ph svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ed-card-body { padding: var(--ed-s5) var(--ed-s4) var(--ed-s4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ed-card h3 { margin: 0; font-size: 1.02rem; }
.ed-card-cat { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ed-muted); font-weight: 600; }
.ed-card-price { color: var(--ed-green); font-weight: 700; }
.ed-card-desc { font-size: .9rem; color: var(--ed-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ed-card-foot { margin-top: auto; padding-top: var(--ed-s3); }

/* ---------- Catalogue callout ---------- */
.ed-callout { background: var(--ed-cream); border-top: 1px solid var(--ed-border); border-bottom: 1px solid var(--ed-border); }
.ed-callout-inner { display: flex; gap: var(--ed-s5); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px) 0; }

/* ---------- Navy contact band ---------- */
.ed-contact-band { background: var(--ed-navy); color: #dbe6f5; }
.ed-contact-band h2 { color: #fff; }
.ed-contact-band .ed-kicker { color: #8fd3b4; }
.ed-contact-inner { display: flex; gap: var(--ed-s5); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: clamp(32px, 4.5vw, 60px) 0; }

/* ---------- Footer: white ---------- */
.ed-footer { background: #fff; border-top: 1px solid var(--ed-border); padding: clamp(32px, 4.5vw, 56px) 0 0; font-size: .93rem; }
.ed-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ed-navy); margin: 0 0 var(--ed-s3); }
.ed-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--ed-s6); }
/* Same reasoning as premium.css: a long unbroken email or URL would otherwise
   set the footer column's minimum width and widen the whole page. */
.ed-footer-grid > div { min-width: 0; }
.ed-footer-grid a, .ed-footer-grid p { overflow-wrap: anywhere; }
.ed-footer a { display: block; color: var(--ed-ink); text-decoration: none; margin-bottom: 9px; }
.ed-footer a:hover { color: var(--ed-green); }
.ed-footer-brand img { height: 46px; width: 46px; object-fit: cover; border-radius: 12px; border: 1px solid var(--ed-border); margin-bottom: var(--ed-s3); }
.ed-footer-bottom { border-top: 1px solid var(--ed-border); margin-top: var(--ed-s6); padding: var(--ed-s4) 0 var(--ed-s5); display: flex; justify-content: space-between; gap: var(--ed-s3); flex-wrap: wrap; color: var(--ed-muted); font-size: .85rem; }
.ed-footer-bottom a { display: inline; margin: 0; color: var(--ed-navy); }

/* ---------- Mobile sticky contact bar ---------- */
.ed-sticky { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--ed-border); box-shadow: 0 -2px 16px rgba(16,35,74,.12); padding-bottom: env(safe-area-inset-bottom, 0px); }
.ed-sticky-inner { display: flex; }
.ed-sticky a { flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-size: .74rem; font-weight: 600; color: #fff; }
.ed-sticky a + a { border-left: 1px solid rgba(255,255,255,.25); }
.ed-sticky-call { background: var(--ed-navy); }
.ed-sticky-wa { background: #1f9d55; }
.ed-sticky-enq { background: var(--ed-green); }

/* ==========================================================================
   Re-skin the SHARED inner pages (theme 9 markup, .pm-* classes) so About /
   Products / Contact / Enquiry / Catalogue / Gallery match this theme without
   duplicating a single page. Scoped under .ed-page so theme 9 is untouched.
   ========================================================================== */
/* Inner-page title banners reuse the hero's backdrop (2026-11-13, user
   request) so About/Products/Contact/etc. carry the same artwork as the
   landing page instead of a flat tint. Same colour fallback underneath.
   These banners are much shorter than the hero, so the shared artwork is
   cropped hard vertically -- "center" keeps the clear middle band behind the
   page title, which is the part that has to stay readable. */
.ed-page .pm-banner {
    background-color: var(--ed-hero);
    background-image: linear-gradient(var(--ed-hero-veil), var(--ed-hero-veil)), url("/img/storefront/editorial-hero-bg.svg");
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: repeat, no-repeat;
    color: var(--ed-navy);
    border-bottom: 1px solid var(--ed-border);
}
.ed-page .pm-banner h1 { color: var(--ed-navy); }
.ed-page .pm-banner p, .ed-page .pm-banner .pm-kicker { color: var(--ed-muted); }
.ed-page .pm-crumb { background: #fff; border-bottom: 1px solid var(--ed-border); }
.ed-page .pm-crumb a { color: var(--ed-muted); }
.ed-page .pm-crumb li[aria-current] { color: var(--ed-navy); }
.ed-page .pm-btn-primary, .ed-page .pm-btn.pm-btn-primary { background: var(--ed-green); border-color: var(--ed-green); color: #fff; }
.ed-page .pm-btn-primary:hover { background: var(--ed-green-dark); border-color: var(--ed-green-dark); }
.ed-page .pm-btn-ghost { color: var(--ed-green); border-color: var(--ed-green); background: #fff; }
.ed-page .pm-btn-ghost:hover { background: var(--ed-mint); }
.ed-page .pm-text-link, .ed-page .pm-kicker { color: var(--ed-green); }
.ed-page .pm-card, .ed-page .pm-product-card, .ed-page .pm-contact-card,
.ed-page .pm-form-card, .ed-page .pm-facts-card, .ed-page .pm-download-card,
.ed-page .pm-service-card { border-color: var(--ed-border); border-radius: var(--ed-r-card); }
.ed-page .pm-product-card:hover, .ed-page .pm-download-card:hover { border-color: var(--ed-green); box-shadow: var(--ed-shadow-hover); }
.ed-page h1, .ed-page h2, .ed-page h3 { color: var(--ed-navy); }
.ed-page .pm-section-alt { background: var(--ed-blue-2); }
.ed-page .pm-price, .ed-page .pm-stat-card strong { color: var(--ed-green); }
.ed-page .pm-field input:focus, .ed-page .pm-field textarea:focus, .ed-page .pm-field select:focus { outline-color: var(--ed-green); border-color: var(--ed-green); }

/* ==========================================================================
   Responsive — mobile first targets 320/360/375/390/414/768
   ========================================================================== */
@media (max-width: 1199px) {
  .ed-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .ed-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ed-s5); }
}

@media (max-width: 860px) {
  .ed-hero-grid, .ed-split { grid-template-columns: minmax(0, 1fr); }
  /* Hero copy before the collage on mobile, per the brief. */
  .ed-hero-copy { order: 1; }
  .ed-hero-media { order: 2; }
  .ed-split-media { order: 2; }
  .ed-split-copy { order: 1; }

  .ed-burger { display: block; }
  .ed-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--ed-border);
    padding: var(--ed-s3) var(--ed-s5) var(--ed-s4);
    box-shadow: 0 10px 24px -12px rgba(16,35,74,.3);
    max-height: calc(100vh - var(--ed-head-h)); overflow-y: auto;
  }
  .ed-nav.is-open { display: flex; }
  .ed-nav a { padding: 13px 14px; border-radius: var(--ed-r-btn); }
  .ed-nav .ed-btn { margin: var(--ed-s3) 0 0; padding: 0 var(--ed-s5); }

  .ed-sticky { display: block; }
  .ed-page.ed-has-sticky { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 520px) {
  .ed-page { font-size: 16px; }
  .ed-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ed-footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--ed-s5); }
  .ed-callout-inner, .ed-contact-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 419px) {
  .ed-cards { grid-template-columns: minmax(0, 1fr); }
  /* The collage keeps both columns on the narrowest phones: dropping to one
     made a 4-photo slide four images tall, which buried the rest of the page.
     The tilt eases off too -- at 320px a 7deg skew cuts a visible wedge out
     of the photos. */
  .ed-collage { transform: skewX(-4deg); border-radius: 14px; }
  .ed-collage-item img { transform: skewX(4deg) scale(1.1); }
  .ed-btn { width: 100%; }
  .ed-btn-row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-page *, .ed-page *::before, .ed-page *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .ed-tile:hover, .ed-card:hover { transform: none; }
}

/* The collage deliberately stops at the content column rather than bleeding
   off the right edge of the page (2026-11-13). The bleed matched the
   reference, but it ran the artwork under the scrollbar and the right edge
   read as cut off; keeping it inside also lets the tilted right corner and
   its radius actually be seen. */

/* ---------- Footer social icons ----------
   Replaces a stacked list of the words "WhatsApp / Website / Facebook /
   Instagram" (2026-11-13, user request). Phone, email and address stay as
   text: those are details a visitor reads or copies, while these are
   destinations recognised by their mark.

   The links sit in a row, so the footer column's own "display:block" rule for
   anchors has to be undone here -- without that each icon would be on its own
   line and nothing would look different. */
.ed-social-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.ed-social {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: 38px; height: 38px; margin: 0 !important;
  border-radius: 50%;
  border: 1px solid var(--ed-border);
  background: #fff;
  color: var(--ed-navy);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.ed-social:hover, .ed-social:focus-visible {
  background: var(--ed-green); border-color: var(--ed-green); color: #fff;
}

/* ---- Product card re-skin (2026-11-15) ---------------------------------
   The card itself lives in premium.css, which this theme already loads
   first. Theme 10 only restates the colour tokens, so there is one set of
   card rules in the project rather than two that drift. */
/* Three across, not four: the showcase card is wider so Enquire and Details
   sit side by side. */
.ed-page .pm-grid-3, .ed-page .pm-grid-4 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.ed-page .pm-product-card {
  --pmc-body: var(--ed-cream);
  --pmc-price-bg: var(--ed-green);
  --pmc-cta-bg: var(--ed-green);
  --pmc-cta-bg-hover: var(--ed-green-dark);
  --pmc-curve: rgba(8, 122, 75, .45);
  --pmc-heading: var(--ed-navy);
  --pmc-radius: var(--ed-r-card);
  background: var(--pmc-body);
  border-color: var(--ed-border);
  border-radius: var(--pmc-radius);
  box-shadow: var(--ed-shadow);
}
/* Full-bleed photo running into the curve -- theme 10 only. */
.ed-page .pm-product-image { padding: 0; }
.ed-page .pm-product-image img { object-fit: cover; object-position: center; }
.ed-page .pm-product-body { padding: 2px var(--ed-s4) var(--ed-s4); }
.ed-page .pm-product-name { font-family: var(--font-head); font-size: 1.18rem; line-height: 1.25; }
.ed-page .pm-product-price {
  padding: 6px 16px; color: #fff; background: var(--pmc-price-bg);
  font-size: 1rem; border-radius: 999px;
}
.ed-page .pm-product-card:hover { box-shadow: var(--ed-shadow-hover); border-color: #bcd4e2; }
.ed-page .pm-product-tag { color: var(--ed-navy); }
.ed-page .pm-product-desc { color: var(--ed-ink); }
.ed-page .pm-product-view { color: var(--ed-navy); border-color: var(--ed-border); }
.ed-page .pm-product-view:hover { border-color: var(--ed-navy); }
.ed-page .pm-product-placeholder { color: var(--ed-navy); background: #f7fbfd; }
/* .ed-cards only sets this theme's gap now -- the columns come from
   .pm-grid-3, so both themes show the same three-up grid. */
.ed-cards { gap: var(--ed-s5); }

