/* ============================================================
   skin-layout-c - "Quiet Grid" structural CSS
   Loads ONLY on skin-layout-c (after base "coway"), so it
   restyles shared base classes directly. Base tokens only;
   no new colors or fonts. Mirrors the approved prototypes in
   coway-starter/prototypes/skin-layout-c/.
   ============================================================ */

/* ---------- Home: hero (full-bleed photo + light scrim) ---------- */
.c-hero { position: relative; isolation: isolate; padding-block: clamp(88px, 13vw, 184px); text-align: center; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.c-hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.c-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(245,248,250,.82) 0%, rgba(245,248,250,.72) 55%, rgba(245,248,250,.88) 100%); }
.c-hero .wrap { position: relative; z-index: 2; }
.c-hero .eyebrow { margin-bottom: 20px; }
.c-hero h1 { max-width: 17ch; margin-inline: auto; }
.c-hero .lead { margin: 22px auto 0; text-align: center; }
.c-hero-actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Home: promo strip (slim, hairline-framed) ---------- */
.c-promo { padding-block: clamp(40px, 6vw, 72px); }
.c-promo-frame { border: 1px solid var(--line); border-radius: var(--r-media); overflow: hidden; box-shadow: var(--shadow-sm); }
.c-promo-frame img { width: 100%; }

/* ---------- Home: category grid (calm uniform clean cards) ---------- */
.c-catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(32px, 4vw, 52px); }
.c-cat { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.c-cat:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.c-cat-media { aspect-ratio: 4 / 3; background: var(--media); }
.c-cat-media img { width: 100%; height: 100%; object-fit: cover; }
.c-cat-label { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.c-cat-label h3 { font-size: 1.16rem; }
.c-cat-label p { color: var(--ink-2); font-size: .92rem; margin-top: 3px; }
.c-cat-label i { color: var(--accent); font-size: 1.25rem; flex: none; }
@media (max-width: 960px) { .c-catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .c-catgrid { grid-template-columns: 1fr; } }

/* ---------- Interior pages: light page hero (restyle of base .page-hero) ----------
   Base is a DARK left-scrim + white text; flip to a light whitish scrim + dark text. */
.page-hero .page-hero-bg::after { background: linear-gradient(90deg, rgba(245,248,250,.92) 0%, rgba(245,248,250,.80) 50%, rgba(245,248,250,.62) 100%); }
.page-hero .wrap { padding-block: clamp(56px, 8vw, 104px); color: var(--ink); }
.page-hero h1 { color: var(--ink); max-width: 18ch; }
.page-hero .lead { color: var(--ink-2); }

/* ---------- Product card: "overlay-price tile" (restyle of shared base card) ----------
   Image edge-to-edge; price floats as a pill chip on the image's bottom edge. */
.product-media { margin: 0; border-radius: 0; position: relative; border-bottom: 1px solid var(--line); }
.product-media img { width: 84%; height: 84%; }
.product-body { position: relative; padding-top: 30px; }
.product-price { position: absolute; top: 0; right: 16px; transform: translateY(-50%); margin: 0; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; box-shadow: var(--shadow-sm); z-index: 3; }
.product-price strong { font-size: 1.2rem; }
.product-price del { margin-left: 2px; }

/* ---------- Single product: calm sticky "spec card" (restyle of base .pd-info) ---------- */
.pd-info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 860px) { .pd-info { position: static; } }

/* ---------- Contact: stacked & centered (restyle of base .contact-section) ---------- */
.contact-section .contact-panel { display: block; max-width: 620px; margin-inline: auto; text-align: center; }
.contact-section .contact-aside h2, .contact-section .contact-aside > p { max-width: none; margin-inline: auto; }
.contact-section .contact-aside > p { max-width: 46ch; }
.contact-section .contact-points { width: max-content; max-width: 100%; margin: 26px auto 0; justify-items: start; }
.contact-section .contact-points li { justify-content: flex-start; }
.contact-section .contact-form { margin-top: 32px; text-align: left; }

/* ---------- Contact-led footer (markup added by skin footer.php) ---------- */
.footer .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); }
.foot-contact ul { display: grid; gap: 11px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 0.95rem; }
.foot-contact li i { color: var(--accent); font-size: 1.05rem; margin-top: 2px; flex: none; }
.foot-contact li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-contact .btn { margin-top: 18px; }
/* mobile rules at the SAME specificity as the 4-col rule above (media queries add none) */
@media (max-width: 1080px) and (min-width: 681px) { .footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .footer .footer-grid { grid-template-columns: 1fr; } .foot-contact .btn { width: 100%; justify-content: center; } }
