/* ------------------------------------------------------------------
   Namibia Rubber Stamps and Engravings CC
   Shared stylesheet. Brand colours sampled from the logo artwork.
   ------------------------------------------------------------------ */

:root{
  --red:#F80007;        /* logo only — fails contrast at small sizes */
  --red-deep:#C1121C;   /* legible red for text / links */
  --gold:#CC9933;
  --gold-deep:#8A6420;
  --ink:#1c1a17;
  --ink-soft:#514a41;
  --sand:#f4efe6;
  --paper:#fffdf9;
  --rule:rgba(28,26,23,.15);
  --shadow:0 1px 2px rgba(28,26,23,.06), 0 6px 18px rgba(28,26,23,.07);

  /* role tokens — these flip in dark mode */
  --surface-2:#efe9dd;        /* image placeholder behind photos */
  --link:#C1121C;             /* inline text links */
  --btn-text:#fff;            /* text on the solid red button */
  --solid-bg:#1c1a17;         /* solid dark button (map) */
  --solid-bg-hover:#332f29;
  --solid-text:#fff;
  --footer-bg:#1c1a17;
  --footer-text:#cfc7ba;
  --footer-link:#e8dcc6;
  --footer-muted:#a49a8c;
  --header-bg:var(--paper);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--sand);
  color:var(--ink);
  font-family:"Helvetica Neue",Helvetica,Arial,system-ui,sans-serif;
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}

.wrap{width:100%;max-width:1060px;margin:0 auto;padding:0 24px}

/* ---------- header / nav ---------- */

.site-header{
  background:var(--header-bg);
  border-bottom:1px solid var(--rule);
  position:sticky;top:0;z-index:20;
}

.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding-top:14px;
  padding-bottom:14px;
}

.brand{display:block;flex:0 0 auto}
.brand img{width:210px;height:auto}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  list-style:none;
  margin:0;padding:0;
}

.nav a{
  display:block;
  padding:8px 14px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--ink-soft);
  text-decoration:none;
  border-radius:3px;
}

.nav a:hover,.nav a:focus{color:var(--red-deep);background:rgba(204,153,51,.13)}
.nav a[aria-current="page"]{color:var(--ink);box-shadow:inset 0 -2px 0 var(--gold)}

/* ---------- page furniture ---------- */

.page-head{
  background:var(--header-bg);
  border-bottom:1px solid var(--rule);
  padding:44px 0 40px;
  text-align:center;
}

.page-head h1{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:clamp(27px,5.4vw,40px);
  line-height:1.2;
  margin:0;
}

.page-head p{
  margin:14px auto 0;
  max-width:620px;
  color:var(--ink-soft);
}

.eyebrow{
  display:block;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--gold-deep);
  margin-bottom:12px;
}

section{padding:56px 0}
section + section{border-top:1px solid var(--rule)}

h2{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:clamp(23px,4vw,31px);
  line-height:1.25;
  margin:0 0 10px;
}

h3{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:21px;
  margin:0 0 6px;
}

p{margin:0 0 16px;color:var(--ink-soft)}
p:last-child{margin-bottom:0}
.lead{font-size:18.5px;color:var(--ink)}

a{color:var(--link)}

.divider{width:78px;height:2px;background:var(--gold);margin:0 auto;opacity:.85}

/* ---------- buttons ---------- */

.btn{
  display:inline-block;
  font-size:14px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  text-decoration:none;
  padding:13px 26px;
  border-radius:3px;
  background:var(--red-deep);
  color:var(--btn-text);
  border:1px solid var(--red-deep);
  transition:background .15s,color .15s;
}
.btn:hover,.btn:focus{background:#9d0d15;border-color:#9d0d15}

.btn-ghost{background:transparent;color:var(--ink);border-color:var(--rule)}
.btn-ghost:hover,.btn-ghost:focus{background:rgba(204,153,51,.15);border-color:var(--gold);color:var(--ink)}

.btn-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:26px}

/* ---------- product grid ---------- */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(232px,1fr));
  gap:24px;
  margin-top:30px;
}

.card{
  background:var(--paper);
  border:1px solid var(--rule);
  border-radius:4px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
}

.card .shot{
  aspect-ratio:3/4;
  background:var(--surface-2);
  overflow:hidden;
}

.card .shot img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:center;
}

.card .body{padding:16px 18px 18px}
.card h3{font-size:18px;margin-bottom:4px}

.card .meta{
  font-size:13.5px;
  color:var(--ink-soft);
  margin:0;
  line-height:1.5;
}

.card .tag{
  display:inline-block;
  margin-top:10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold-deep);
  background:rgba(204,153,51,.15);
  border-radius:2px;
  padding:3px 9px;
}

/* wide card: for the hero / custom-work shots */
.card.wide{grid-column:span 2}
.card.wide .shot{aspect-ratio:4/3}

@media (max-width:560px){
  .card.wide{grid-column:span 1}
  .card.wide .shot{aspect-ratio:3/4}
}

/* ---------- feature row (image + text) ---------- */

.feature{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.feature img{
  border-radius:4px;
  border:1px solid var(--rule);
  box-shadow:var(--shadow);
}

@media (max-width:760px){
  .feature{grid-template-columns:1fr;gap:26px}
}

/* ---------- lists ---------- */

.ticks{list-style:none;margin:0;padding:0;columns:2;column-gap:34px}
.ticks li{
  position:relative;
  padding-left:22px;
  margin-bottom:9px;
  color:var(--ink-soft);
  break-inside:avoid;
}
.ticks li::before{
  content:"";
  position:absolute;left:0;top:.62em;
  width:9px;height:9px;
  background:var(--gold);
  border-radius:1px;
  transform:rotate(45deg);
}

@media (max-width:520px){.ticks{columns:1}}

/* ---------- callout ---------- */

.callout{
  background:var(--paper);
  border:1px solid var(--rule);
  border-left:3px solid var(--gold);
  border-radius:4px;
  padding:24px 26px;
  margin-top:30px;
}
.callout h3{margin-bottom:8px}

/* ---------- footer ---------- */

.site-footer{
  background:var(--footer-bg);
  color:var(--footer-text);
  padding:44px 0 34px;
  font-size:14.5px;
}

.site-footer a{color:var(--footer-link);text-decoration:none;border-bottom:1px solid rgba(204,153,51,.5)}
.site-footer a:hover,.site-footer a:focus{color:#fff;border-bottom-color:var(--gold)}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(215px,1fr));
  gap:30px;
}

.site-footer h4{
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--gold);
  margin:0 0 12px;
}

.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:6px}
.site-footer p{color:var(--footer-text);margin:0}

.legal{
  margin-top:34px;
  padding-top:22px;
  border-top:1px solid rgba(255,255,255,.12);
  font-size:13px;
  color:var(--footer-muted);
  display:flex;
  flex-wrap:wrap;
  gap:6px 18px;
  justify-content:space-between;
}

/* ---------- utility ---------- */

.center{text-align:center}
.narrow{max-width:680px;margin-left:auto;margin-right:auto}
.muted{color:var(--ink-soft)}
.visually-hidden{
  position:absolute;width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

@media (max-width:640px){
  .site-header .wrap{justify-content:center;gap:10px}
  .brand img{width:180px}
  .nav{justify-content:center}
  section{padding:44px 0}
}

/* ------------------------------------------------------------------
   WhatsApp — primary contact channel
   ------------------------------------------------------------------ */

.btn-whatsapp{
  background:#25D366;
  border-color:#25D366;
  color:#0b2e17;
  display:inline-flex;
  align-items:center;
  gap:9px;
}
.btn-whatsapp:hover,.btn-whatsapp:focus{background:#1db855;border-color:#1db855;color:#08240f}
.btn-whatsapp svg{width:19px;height:19px;flex:0 0 auto;fill:currentColor}

/* inline WhatsApp link (contact blocks, footer) */
.wa-link{display:inline-flex;align-items:center;gap:7px}
.wa-link svg{width:16px;height:16px;flex:0 0 auto;fill:#25D366}

/* highlighted WhatsApp panel on the contact page */
.wa-panel{
  background:var(--paper);
  border:1px solid var(--rule);
  border-left:3px solid #25D366;
  border-radius:4px;
  padding:26px 28px;
  box-shadow:var(--shadow);
}
.wa-panel h2{margin-bottom:8px}
.wa-panel .meta{font-size:14.5px;color:var(--ink-soft);margin:14px 0 0}

/* floating button */
.wa-float{
  position:fixed;
  right:18px;bottom:18px;
  z-index:50;
  width:56px;height:56px;
  border-radius:50%;
  background:#25D366;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(28,26,23,.28);
  transition:transform .15s,box-shadow .15s;
}
.wa-float svg{width:30px;height:30px;fill:#fff}
.wa-float:hover,.wa-float:focus{transform:scale(1.06);box-shadow:0 6px 20px rgba(28,26,23,.34)}

@media (max-width:560px){
  .wa-float{width:52px;height:52px;right:14px;bottom:14px}
  .wa-float svg{width:28px;height:28px}
}

@media (prefers-reduced-motion:reduce){
  .wa-float{transition:none}
}

/* ------------------------------------------------------------------
   Location / map button
   ------------------------------------------------------------------ */

.btn-icon{display:inline-flex;align-items:center;gap:9px}
.btn-icon svg{width:18px;height:18px;flex:0 0 auto;fill:currentColor}

.btn-map{
  background:var(--solid-bg);
  border-color:var(--solid-bg);
  color:var(--solid-text);
}
.btn-map:hover,.btn-map:focus{background:var(--solid-bg-hover);border-color:var(--solid-bg-hover);color:var(--solid-text)}


/* ------------------------------------------------------------------
   Dark mode
   Warm dark greys (never pure black) to suit the sand/gold brand.
   Applies automatically with the device setting, and can be overridden
   by the header toggle, which sets data-theme on <html>.
   ------------------------------------------------------------------ */

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --sand:#24221f;           /* page background — warm dark grey */
    --paper:#2e2b27;          /* cards, panels, header */
    --surface-2:#3a3631;      /* image placeholder */
    --ink:#f1ebe1;            /* primary text */
    --ink-soft:#b9b0a3;       /* secondary text */
    --rule:rgba(255,255,255,.14);
    --shadow:0 1px 2px rgba(0,0,0,.34), 0 6px 20px rgba(0,0,0,.30);

    --gold:#D8A441;
    --gold-deep:#E0B255;      /* eyebrows need to lift on dark */
    --red-deep:#C42630;       /* button fill */
    --link:#F08A8E;           /* inline links */
    --btn-text:#fff;

    --solid-bg:#413c36;       /* solid button — lighter than the page */
    --solid-bg-hover:#4e483f;
    --solid-text:#f1ebe1;

    --footer-bg:#1b1917;      /* deepest layer, still not black */
    --footer-text:#c3baac;
    --footer-link:#e8dcc6;
    --footer-muted:#8e8578;
    --header-bg:#2e2b27;
  }
}

:root[data-theme="dark"]{
  --sand:#24221f;
  --paper:#2e2b27;
  --surface-2:#3a3631;
  --ink:#f1ebe1;
  --ink-soft:#b9b0a3;
  --rule:rgba(255,255,255,.14);
  --shadow:0 1px 2px rgba(0,0,0,.34), 0 6px 20px rgba(0,0,0,.30);

  --gold:#D8A441;
  --gold-deep:#E0B255;
  --red-deep:#C42630;
  --link:#F08A8E;
  --btn-text:#fff;

  --solid-bg:#413c36;
  --solid-bg-hover:#4e483f;
  --solid-text:#f1ebe1;

  --footer-bg:#1b1917;
  --footer-text:#c3baac;
  --footer-link:#e8dcc6;
  --footer-muted:#8e8578;
  --header-bg:#2e2b27;
}

/* ---------- theme toggle ---------- */

.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;height:38px;
  margin-left:4px;
  padding:0;
  border:1px solid var(--rule);
  border-radius:3px;
  background:transparent;
  color:var(--ink-soft);
  cursor:pointer;
  transition:background .15s,color .15s,border-color .15s;
}
.theme-toggle:hover,.theme-toggle:focus-visible{
  color:var(--ink);
  border-color:var(--gold);
  background:rgba(204,153,51,.13);
}
.theme-toggle svg{width:18px;height:18px;fill:currentColor}

/* show the sun in dark mode, the moon in light mode */
.theme-toggle .icon-sun{display:none}
:root[data-theme="dark"] .theme-toggle .icon-sun{display:block}
:root[data-theme="dark"] .theme-toggle .icon-moon{display:none}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .theme-toggle .icon-sun{display:block}
  :root:not([data-theme="light"]) .theme-toggle .icon-moon{display:none}
}

@media (prefers-reduced-motion:reduce){
  .theme-toggle{transition:none}
}

/* ------------------------------------------------------------------
   Contact method cards — icon-led
   ------------------------------------------------------------------ */

.contact-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(256px,1fr));
  gap:20px;
  margin-top:8px;
}

.c-card{
  position:relative;
  background:var(--paper);
  border:1px solid var(--rule);
  border-radius:5px;
  padding:24px 24px 22px;
  box-shadow:var(--shadow);
  transition:transform .15s, box-shadow .15s, border-color .15s;
}

/* only cards with a single action lift on hover */
.c-card.is-link:hover,
.c-card.is-link:focus-within{
  transform:translateY(-2px);
  border-color:var(--gold);
  box-shadow:0 2px 4px rgba(28,26,23,.08), 0 10px 26px rgba(28,26,23,.10);
}

.c-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;height:44px;
  border-radius:6px;
  background:rgba(204,153,51,.16);
  color:var(--gold-deep);
  margin-bottom:14px;
}
.c-icon svg{width:22px;height:22px;fill:currentColor}

.c-card.wa .c-icon{background:rgba(37,211,102,.16);color:#1a8f47}
:root[data-theme="dark"] .c-card.wa .c-icon{color:#37d17a}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .c-card.wa .c-icon{color:#37d17a}
}

.c-card h3{
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin:0 0 10px;
}

.c-card ul{list-style:none;margin:0;padding:0}
.c-card li{margin-bottom:4px}
.c-card li:last-child{margin-bottom:0}
.c-card p{margin:0;color:var(--ink);line-height:1.55}

.c-card a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid rgba(204,153,51,.7);
}
.c-card a:hover,.c-card a:focus{color:var(--link);border-bottom-color:var(--link)}

/* the whole card is clickable when it has one action */
.c-card .stretch::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:5px;
}

.c-note{
  display:block;
  font-size:13px;
  color:var(--ink-soft);
  margin-top:8px;
}

.c-action{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:12px;
  font-size:13.5px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--link);
  text-decoration:none;
  border-bottom:0;
}
.c-action svg{width:14px;height:14px;fill:currentColor}
.c-action:hover,.c-action:focus{color:var(--link);border-bottom:0;text-decoration:underline}

@media (prefers-reduced-motion:reduce){
  .c-card{transition:none}
  .c-card.is-link:hover,.c-card.is-link:focus-within{transform:none}
}

/* Facebook card icon tint */
.c-card.fb .c-icon{background:rgba(24,119,242,.14);color:#1864c7}
:root[data-theme="dark"] .c-card.fb .c-icon{color:#66a5f5}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .c-card.fb .c-icon{color:#66a5f5}
}

/* ------------------------------------------------------------------
   Section jump-nav (long product page)
   ------------------------------------------------------------------ */

.jump{
  background:var(--paper);
  border-bottom:1px solid var(--rule);
  padding:14px 0;
  position:sticky;
  top:81px;                 /* sits under the sticky header */
  z-index:15;
}

.jump ul{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:center;
}

.jump a{
  display:block;
  padding:6px 13px;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--ink-soft);
  text-decoration:none;
  border:1px solid var(--rule);
  border-radius:100px;
}
.jump a:hover,.jump a:focus{
  color:var(--ink);
  border-color:var(--gold);
  background:rgba(204,153,51,.13);
}

/* anchors clear the two sticky bars */
section[id]{scroll-margin-top:140px}

@media (max-width:640px){
  .jump{position:static}
  section[id]{scroll-margin-top:90px}
  .jump a{font-size:12px;padding:5px 11px}
}

/* ------------------------------------------------------------------
   Image carousel (inside a product card)
   ------------------------------------------------------------------ */

.carousel{position:relative}

.carousel .slides{
  display:flex;
  height:100%;
  transition:transform .35s ease;
}
.carousel .slides img{
  min-width:100%;
  width:100%;height:100%;
  object-fit:cover;
  object-position:center;
}

.car-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;height:34px;
  display:flex;align-items:center;justify-content:center;
  padding:0;
  border:1px solid rgba(28,26,23,.18);
  border-radius:50%;
  background:rgba(255,253,249,.92);
  color:var(--ink);
  cursor:pointer;
  opacity:0;
  transition:opacity .15s, background .15s;
}
.car-btn svg{width:16px;height:16px;fill:currentColor}
.car-prev{left:9px}
.car-next{right:9px}

/* reveal on hover, and whenever a control has keyboard focus */
.carousel:hover .car-btn,
.carousel:focus-within .car-btn{opacity:1}
.car-btn:hover{background:#fff}
.car-btn:focus-visible{opacity:1;outline:2px solid var(--gold);outline-offset:2px}

/* touch devices have no hover — always show */
@media (hover:none){
  .car-btn{opacity:1}
}

.car-dots{
  position:absolute;
  left:0;right:0;bottom:9px;
  display:flex;
  gap:6px;
  justify-content:center;
}
.car-dot{
  width:7px;height:7px;
  padding:0;
  border-radius:50%;
  border:1px solid rgba(28,26,23,.3);
  background:rgba(255,253,249,.7);
  cursor:pointer;
}
.car-dot[aria-current="true"]{background:var(--gold);border-color:var(--gold-deep)}
.car-dot:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

@media (prefers-reduced-motion:reduce){
  .carousel .slides{transition:none}
}
