/* N Naturals - mobile-first styles. White and ivory dominate; green for brand and actions; gold for warmth. */
:root {
  --green: #244D2C;
  --leaf: #3E713B;
  --ivory: #FFF6DC;
  --cream: #FFFDF5;
  --gold: #D9A62E;
  --amber: #F4B83F;
  --beige: #F4E6C7;
  --white: #FFFFFF;
  --text: #3C4A35;
  --line: #EFE3BF;
  --line-strong: #DCCB92;
  --wa: #167A3F;
  --error: #A32D1B;
  --shadow: 0 8px 28px rgba(36, 77, 44, .10);
  --shadow-sm: 0 3px 12px rgba(36, 77, 44, .08);
  --radius: 18px;
  --bnav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --install-h: 0px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  padding-bottom: calc(var(--bnav-h) + var(--safe-b) + 12px);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--green); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 8.4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
h3, .h3 { font-size: 1.25rem; font-family: var(--font-head); color: var(--green); font-weight: 700; line-height: 1.2; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
.fine { font-size: .875rem; line-height: 1.5; color: var(--leaf); margin: 0 0 .6em; }
.lead { font-size: 1.15rem; max-width: 36rem; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--white); color: var(--green); padding: 10px 16px; border-radius: 10px; z-index: 100; box-shadow: var(--shadow); }
.skip-link:focus { top: 10px; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 253, 245, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.main-nav { display: none; }
.header-wa-text { display: none; }
.header-wa { padding: 0 14px; min-width: 44px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font: 650 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s; text-align: center; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: var(--ivory); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--leaf); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--ivory); color: var(--green); }
.btn-wa { background: var(--wa); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-wa:hover { background: #126632; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 .8em; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
[hidden] { display: none !important; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; background: var(--cream); }
.section-tight { padding: 28px 0 56px; }
.section-ivory { background: var(--ivory); }
.section-title { margin-bottom: 1em; }
.page-head { background: var(--ivory); border-bottom: 1px solid var(--line); padding: 36px 0 28px; }
.page-head h1 { font-size: clamp(1.9rem, 7vw, 3rem); }
.page-head .lead { margin-bottom: 1em; }
.contact-num { margin-top: .9em; }
.note-below { margin-top: 20px; }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: var(--leaf); }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose p { max-width: 62ch; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ivory); overflow: hidden; padding: 30px 0 44px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zM28 100L0 84V50M28 100l28-16V50' fill='none' stroke='%23D9A62E' stroke-opacity='.28' stroke-width='1.2'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom left, #fff 0%, transparent 60%); mask-image: linear-gradient(to bottom left, #fff 0%, transparent 60%); }
.hero-grid { position: relative; display: grid; gap: 28px; }
.hero-copy h1 { margin-bottom: .45em; }
.hero-note { max-width: 32rem; }
.hero-photo { margin: 0; justify-self: center; width: 100%; max-width: 360px; }
.hero-photo figcaption { text-align: center; font-size: .9rem; color: var(--leaf); margin-top: 14px; }

/* Photo frame: gold keyline echoing a product label */
.photo-frame { position: relative; width: 100%; aspect-ratio: 945 / 1417; max-height: 66svh; margin-inline: auto; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); isolation: isolate; }
.photo-frame::after { content: ""; position: absolute; inset: 8px; border: 1.5px solid var(--gold); border-radius: 16px; pointer-events: none; opacity: .85; }
.photo-frame img, .photo-frame .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.photo-frame-sm { aspect-ratio: 735 / 1220; max-width: 340px; }
.hero-photo .photo-frame { width: min(100%, calc(66svh * 945 / 1417)); }

/* ---------- Placeholder (no genuine photo yet) ---------- */
.ph { position: relative; display: block; width: 100%; height: 100%; background: var(--ivory); overflow: hidden; }
.ph-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-text { position: absolute; left: 12px; right: 12px; bottom: 14px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--green); background: rgba(255, 253, 245, .94); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }

/* ---------- Cards and grids ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.card-media { display: block; position: relative; aspect-ratio: 2 / 3; background: var(--ivory); border-bottom: 1px solid var(--line); }
.card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 14px 16px; }
.card-title { font-size: 1.02rem; margin-bottom: .35em; }
.card-title a { text-decoration: none; }
.price { font-weight: 700; color: var(--green); margin: 0 0 .3em; line-height: 1.35; }
.price-lg { font-family: var(--font-head); font-size: 1.4rem; }
.card-actions { margin-top: auto; padding-top: 12px; display: grid; gap: 8px; }
.card-actions .btn { padding: 0 12px; font-size: .9rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin: 0 0 .7em; }
.badge-sample { background: var(--beige); color: var(--green); border: 1px dashed var(--gold); }

.tile-grid { display: grid; gap: 16px; }
.tile { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.tile:hover { box-shadow: var(--shadow); }
.tile-media { display: block; aspect-ratio: 4 / 3; background: var(--ivory); position: relative; }
.tile-media img, .tile-media .ph { width: 100%; height: 100%; object-fit: cover; }
.tile-media-photo img { object-position: 50% 62%; }
.tile-body { display: grid; gap: 2px; padding: 14px 16px 16px; color: var(--green); font-family: var(--font-head); font-size: 1.2rem; }

.feature { display: grid; overflow: hidden; }
.feature-media { aspect-ratio: 4 / 3; background: var(--ivory); border-bottom: 1px solid var(--line); }
.feature-media img, .feature-media .ph { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.feature-body { padding: 22px 20px 24px; }
.feature-body .btn-row { margin-bottom: 0; }

.info-grid { display: grid; gap: 14px; }
.info { padding: 22px 20px; color: var(--leaf); }
.info .icon { color: var(--gold); margin-bottom: 10px; }
.info h3, .info .h3 { margin-top: 0; }
.info p { margin-bottom: .6em; }
.path-grid { display: grid; gap: 16px; }
.path { padding: 26px 22px; }
.path .icon { color: var(--gold); margin-bottom: 8px; }

.split { display: grid; gap: 28px; align-items: center; }
.split .photo-frame { justify-self: center; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line-strong); color: var(--green); font-weight: 600; text-decoration: none; }
.chip.is-active { background: var(--green); border-color: var(--green); color: var(--ivory); }

/* ---------- Product detail ---------- */
.detail { display: grid; gap: 28px; }
.detail-media .photo-frame { max-width: 420px; }
.gallery-item { margin: 22px auto 0; max-width: 300px; }
.gallery-item img { border-radius: 16px; border: 1px solid var(--line); }
.gallery-item figcaption { margin-top: 8px; }
.detail-title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.avail { display: flex; align-items: center; gap: 8px; color: var(--leaf); font-weight: 600; }
.avail .icon { color: var(--wa); }
.enquiry-box { margin-top: 22px; padding: 22px 20px; background: var(--ivory); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.enquiry-box h2 { font-size: 1.35rem; }
.static-field { display: grid; margin: 0 0 14px; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.qty input { width: 76px; text-align: center; }
.qty-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--green); background: var(--white); color: var(--green); display: grid; place-items: center; cursor: pointer; }
.qty-btn:hover { background: var(--ivory); }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; color: var(--green); margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=number], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--text); background: var(--white);
  border: 1.5px solid var(--line-strong); border-radius: 12px; appearance: none; -webkit-appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23244D2C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(244, 184, 63, .45); }
.form { padding: 24px 20px; }
.field { margin-bottom: 18px; }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9rem; margin: 6px 0 0; font-weight: 600; }
.form-actions { display: grid; gap: 12px; margin: 8px 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; border: 1.5px solid var(--line-strong); background: var(--white); }
.status[data-state="ok"] { border-color: var(--leaf); background: var(--ivory); color: var(--green); }
.status[data-state="error"] { border-color: var(--error); background: var(--white); color: var(--error); }
.install-callout { display: grid; gap: 14px; padding: 22px 20px; margin-top: 18px; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ivory); border-top: 2px solid var(--gold); padding-top: 40px; }
.footer-grid { display: grid; gap: 28px; padding-bottom: 28px; }
.footer-brand p { margin-top: 12px; max-width: 26rem; }
.footer-h { font-family: var(--font-body); font-size: 1rem; color: var(--green); margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.footer-bottom { border-top: 1px solid var(--line-strong); padding-block: 18px 22px; font-size: .9rem; display: grid; gap: 2px; }
.footer-bottom p { margin: 0; }

/* ---------- App chrome: bottom nav, WhatsApp, install ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); border-top: 1px solid var(--line-strong); box-shadow: 0 -4px 18px rgba(36, 77, 44, .08); padding-bottom: var(--safe-b); height: calc(var(--bnav-h) + var(--safe-b)); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--leaf); font-size: .72rem; font-weight: 600; min-height: 48px; }
.bottom-nav a.is-active { color: var(--green); }
.bottom-nav a.is-active .icon { stroke: var(--green); stroke-width: 2.4; }
.bottom-nav a.is-active span { box-shadow: inset 0 -2px 0 var(--gold); }

.wa-fab { position: fixed; right: 16px; bottom: calc(var(--bnav-h) + var(--safe-b) + 16px + var(--install-h)); z-index: 55; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: var(--white); box-shadow: 0 8px 22px rgba(22, 122, 63, .38); transition: bottom .25s ease; }
.wa-fab:hover { background: #126632; color: var(--white); }

.install-card { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(var(--bnav-h) + var(--safe-b) + 12px); background: var(--white); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); padding: 16px; animation: nn-rise .3s ease both; }
.install-row { display: flex; gap: 12px; align-items: center; }
.install-icon { border-radius: 12px; flex: none; }
.install-card h2 { font-size: 1.1rem; margin: 0 0 2px; }
.install-card p { margin: 0; font-size: .92rem; line-height: 1.4; }
.install-steps { margin-top: 12px !important; padding: 10px 12px; background: var(--ivory); border-radius: 12px; }
.install-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
@keyframes nn-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .tile-grid, .path-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr 1fr; }
  .feature-media { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .form-actions { grid-template-columns: auto auto; justify-content: start; }
  .install-callout { grid-template-columns: 1fr auto; }
  .header-wa-text { display: inline; }
  .install-card { left: auto; right: 16px; width: 380px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; font-size: 1.125rem; }
  .bottom-nav { display: none; }
  .main-nav { display: flex; gap: 6px; }
  .main-nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--green); }
  .main-nav a:hover { background: var(--ivory); }
  .main-nav a.is-active { background: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); }
  .section { padding: 84px 0; }
  .section-tight { padding: 40px 0 84px; }
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
  .hero-photo { max-width: 400px; justify-self: end; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(4, 1fr); }
  .info-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: auto 1fr; gap: 56px; }
  .detail { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
  .detail-info { padding-top: 6px; }
  .wa-fab { bottom: 24px; right: 24px; }
  .install-card { bottom: 24px; left: 24px; right: auto; width: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
