/*
Theme Name: MeerCut Studio
Theme URI: https://meercut.co.za/
Author: MeerCut
Description: A lightweight bilingual showcase theme for MeerCut — Laser Cutting & Engraving.
Version: 1.1.1
Requires at least: 6.8
Requires PHP: 7.4
Text Domain: meercut
*/

:root {
  --ink: #20251f;
  --ink-soft: #4d554d;
  --paper: #f7f2e9;
  --paper-deep: #ede2d2;
  --white: #fffdf8;
  --clay: #b85f37;
  --clay-dark: #8f4327;
  --sage: #71806a;
  --gold: #d0a04d;
  --line: rgba(32, 37, 31, 0.14);
  --shadow: 0 22px 60px rgba(44, 32, 22, 0.14);
  --radius: 1.25rem;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(75, 58, 37, .18) .55px, transparent .55px);
  background-size: 7px 7px;
  z-index: -1;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.site-shell { min-height: 100vh; overflow: clip; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 9999;
  background: var(--ink); color: white; padding: .7rem 1rem; border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; background: var(--white); }
.brand-copy { display: grid; line-height: 1; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-weight: 800; font-size: 1.35rem; }
.brand-tag { margin-top: .35rem; color: var(--ink-soft); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 1.5rem; }
.desktop-nav a { text-decoration: none; font-weight: 700; font-size: .92rem; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--clay); }
.mobile-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.language-switcher ul { list-style: none; display: flex; gap: .25rem; padding: 0; margin: 0; }
.language-switcher a {
  display: grid; place-items: center; min-width: 2.15rem; height: 2.15rem; padding: 0 .45rem;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .75rem; font-weight: 800;
}
.language-switcher .current-lang a { background: var(--ink); color: white; }
.menu-toggle { display: none; border: 0; background: transparent; padding: .5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--clay); color: white; text-decoration: none; font-weight: 800;
  box-shadow: 0 8px 24px rgba(184, 95, 55, .18); transition: .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--clay-dark); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.button-secondary:hover, .button-secondary:focus-visible { color: white; background: var(--ink); }
.button-small { min-height: 40px; padding: .55rem .85rem; font-size: .85rem; }

.hero { padding: clamp(3.2rem, 7vw, 7rem) 0 4rem; position: relative; }
.hero::after {
  content: ""; position: absolute; width: 33rem; height: 33rem; right: -13rem; top: -10rem;
  border: 1px solid rgba(184, 95, 55, .2); border-radius: 50%; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.eyebrow { margin: 0 0 1rem; color: var(--clay); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: .77rem; }
.hero h1, .section-title, .page-hero h1, .single-title {
  font-family: Georgia, "Times New Roman", serif; line-height: .98; letter-spacing: -.045em; margin: 0;
}
.hero h1 { font-size: clamp(3.2rem, 7.4vw, 6.9rem); max-width: 9ch; }
.hero h1 em { color: var(--clay); font-style: italic; font-weight: 500; }
.hero-lead { max-width: 58ch; margin: 1.5rem 0 0; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-soft); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-note { display: flex; gap: .6rem; align-items: center; margin-top: 1.6rem; color: var(--ink-soft); font-size: .9rem; }
.hero-note::before { content: ""; width: 28px; height: 1px; background: var(--clay); }
.hero-social { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-top: 1rem; font-size: .86rem; color: var(--ink-soft); }
.hero-social > span { font-weight: 700; margin-right: .15rem; }
.hero-social a, .hero-social button { appearance: none; border: 1px solid var(--line); background: rgba(255,255,255,.58); color: var(--ink); border-radius: 999px; padding: .48rem .75rem; font: inherit; font-weight: 850; text-decoration: none; cursor: pointer; }
.hero-social a:hover, .hero-social button:hover { border-color: var(--clay); color: var(--clay); }
.hero-collage { position: relative; min-height: 610px; }
.hero-photo { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-deep); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { width: 72%; height: 76%; right: 0; top: 0; transform: rotate(1.2deg); }
.hero-photo-top { width: 43%; height: 38%; left: 0; top: 6%; transform: rotate(-3deg); border: 8px solid var(--paper); }
.hero-photo-bottom { width: 48%; height: 42%; left: 5%; bottom: 0; transform: rotate(2deg); border: 8px solid var(--paper); }
.hero-badge {
  position: absolute; right: 2%; bottom: 7%; width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center; padding: 1rem; text-align: center; background: var(--ink); color: white;
  font-family: Georgia, serif; font-weight: 700; transform: rotate(-6deg); box-shadow: var(--shadow);
}

.trust-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.34); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 1.25rem; text-align: center; border-right: 1px solid var(--line); font-weight: 800; }
.trust-item:last-child { border-right: 0; }
.trust-item small { display: block; margin-top: .25rem; color: var(--ink-soft); font-weight: 500; }

.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section-compact { padding: clamp(3.2rem, 6vw, 5.3rem) 0; }
.section-kicker { color: var(--clay); font-size: .76rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .8rem; }
.section-title { font-size: clamp(2.45rem, 5.2vw, 5rem); max-width: 12ch; }
.section-intro { max-width: 60ch; color: var(--ink-soft); font-size: 1.08rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }

.category-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.category-card {
  position: relative; overflow: hidden; min-height: 350px; border-radius: var(--radius); color: white; text-decoration: none;
  grid-column: span 4; isolation: isolate;
}
.category-card:nth-child(1), .category-card:nth-child(6) { grid-column: span 6; }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; z-index: -2; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 22%, rgba(22,22,18,.83)); z-index: -1; }
.category-card:hover img { transform: scale(1.04); }
.category-copy { position: absolute; inset: auto 1.35rem 1.25rem; }
.category-copy span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.category-copy h3 { margin: .3rem 0 0; font-family: Georgia, serif; font-size: 1.6rem; line-height: 1.1; }

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.work-card { border-radius: 1rem; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.work-card a { text-decoration: none; }
.work-media { aspect-ratio: 1 / 1.08; overflow: hidden; background: var(--paper-deep); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-copy { padding: 1rem 1rem 1.2rem; }
.work-copy h3 { margin: 0; font-family: Georgia, serif; font-size: 1.2rem; line-height: 1.2; }
.work-copy p { margin: .45rem 0 0; color: var(--ink-soft); font-size: .86rem; }

.process-section { background: var(--ink); color: white; }
.process-section .section-kicker { color: #eeb981; }
.process-section .section-title { max-width: 10ch; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 3rem; background: rgba(255,255,255,.14); }
.process-step { background: var(--ink); padding: 2rem; min-height: 260px; }
.process-number { font-family: Georgia, serif; color: #eeb981; font-size: 3rem; font-style: italic; }
.process-step h3 { margin: 1.4rem 0 .5rem; font-size: 1.1rem; }
.process-step p { margin: 0; color: rgba(255,255,255,.7); }

.split-panel { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: calc(var(--radius) * 1.2); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.split-media { min-height: 510px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { padding: clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.materials { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.4rem 0 0; }
.material-pill { border: 1px solid var(--line); border-radius: 999px; padding: .55rem .9rem; font-weight: 800; font-size: .86rem; }

.special-card { display: grid; grid-template-columns: .86fr 1.14fr; background: var(--clay); color: white; border-radius: var(--radius); overflow: hidden; }
.special-card img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.special-copy { padding: clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.special-copy .section-kicker { color: #ffe0be; }
.special-copy .button { align-self: flex-start; background: white; color: var(--ink); }

.contact-band { position: relative; overflow: hidden; background: var(--gold); }
.contact-band::before { content: "MEERCUT"; position: absolute; right: -2rem; bottom: -3rem; font-family: Georgia,serif; font-weight: 900; font-size: clamp(7rem, 20vw, 18rem); color: rgba(255,255,255,.18); line-height: .7; }
.contact-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: clamp(3rem, 6vw, 5rem); }
.contact-inner h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; max-width: 12ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact-band .button { background: var(--ink); }
.contact-band .button-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }

.page-hero { padding: clamp(4rem, 8vw, 8rem) 0 3rem; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6.5rem); max-width: 12ch; }
.page-hero p { max-width: 58ch; color: var(--ink-soft); font-size: 1.15rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2.5rem; }
.filter-button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .6rem 1rem; cursor: pointer; font-weight: 800; }
.filter-button.is-active, .filter-button:hover { background: var(--ink); color: white; }
.design-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-bottom: 6rem; }
.design-card[hidden] { display: none; }

.single-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); padding: 5rem 0 7rem; align-items: start; }
.single-image { border-radius: var(--radius); overflow: hidden; background: var(--paper-deep); }
.single-image img { width: 100%; max-height: 760px; object-fit: cover; }
.single-title { font-size: clamp(2.6rem, 5vw, 5.2rem); }
.single-meta { color: var(--clay); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.single-content { color: var(--ink-soft); }
.single-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.5rem; }
.prose { width: min(calc(100% - 2rem), 820px); margin: 0 auto; padding: 2rem 0 7rem; }
.prose h2, .prose h3 { font-family: Georgia,serif; line-height: 1.15; }
.prose h2 { font-size: 2.2rem; margin-top: 2.5rem; }

.site-footer { background: #171b17; color: white; padding: 4rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 2rem; }
.footer-brand { max-width: 34ch; color: rgba(255,255,255,.7); }
.footer-title { margin: 0 0 1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: #eeb981; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.55); font-size: .8rem; }
.floating-whatsapp { position: fixed; z-index: 80; right: 1rem; bottom: 1rem; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #237e4b; color: white; text-decoration: none; font-weight: 900; box-shadow: 0 12px 35px rgba(0,0,0,.25); }

body.modal-open { overflow: hidden; }
.site-modal[hidden] { display: none !important; }
.site-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.site-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(18,20,17,.72); backdrop-filter: blur(5px); cursor: pointer; }
.site-modal-panel { position: relative; z-index: 1; width: min(920px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; background: var(--paper); border-radius: var(--radius); box-shadow: 0 28px 90px rgba(0,0,0,.35); }
.site-modal-close { position: absolute; z-index: 3; top: .75rem; right: .75rem; width: 42px; height: 42px; border: 1px solid rgba(0,0,0,.12); border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.promotion-panel { display: grid; grid-template-columns: minmax(320px, .95fr) minmax(320px, 1.05fr); }
.promotion-image { background: var(--paper-deep); }
.promotion-image img { display: block; width: 100%; height: 100%; min-height: 520px; object-fit: contain; }
.promotion-copy { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.promotion-copy h2, .contact-choice-panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; }
.promotion-copy > p:not(.section-kicker), .contact-choice-panel > p { color: var(--ink-soft); }
.promotion-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.contact-choice-panel { width: min(700px, calc(100vw - 2rem)); padding: clamp(2rem, 5vw, 4rem); }
.contact-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.contact-choice-card { display: flex; flex-direction: column; gap: .2rem; min-height: 96px; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); color: var(--ink); text-decoration: none; }
.contact-choice-card:hover { border-color: var(--clay); transform: translateY(-1px); }
.contact-choice-card.is-primary { background: #237e4b; color: white; border-color: #237e4b; }
.contact-choice-card strong { font-size: 1.05rem; }
.contact-choice-card span { color: var(--ink-soft); font-size: .86rem; }
.contact-choice-card.is-primary span { color: rgba(255,255,255,.8); }

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: none; position: absolute; inset: 78px 0 auto; padding: 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .mobile-nav.is-open { display: grid; gap: .5rem; }
  .mobile-nav a { padding: .75rem; text-decoration: none; font-weight: 800; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-collage { min-height: 560px; }
  .category-card { grid-column: span 6; }
  .work-grid, .design-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand-tag, .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .hero { padding-top: 3.2rem; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  .hero-collage { min-height: 470px; }
  .hero-photo-main { width: 76%; height: 76%; }
  .hero-photo-top { width: 45%; height: 34%; }
  .hero-photo-bottom { width: 52%; height: 37%; }
  .hero-badge { width: 98px; height: 98px; font-size: .76rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { display: block; }
  .section-title { max-width: 10ch; }
  .category-grid { display: grid; grid-template-columns: 1fr; }
  .category-card, .category-card:nth-child(1), .category-card:nth-child(6) { grid-column: 1; min-height: 300px; }
  .work-grid, .design-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: auto; }
  .split-panel, .special-card, .single-layout { grid-template-columns: 1fr; }
  .split-media { min-height: 390px; }
  .contact-inner { display: block; }
  .contact-actions { margin-top: 1.5rem; }
  .promotion-panel { grid-template-columns: 1fr; }
  .promotion-image img { min-height: 0; max-height: 52vh; object-fit: contain; }
  .contact-choice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
}

@media (max-width: 470px) {
  .brand img { width: 48px; height: 48px; }
  .header-inner { min-height: 68px; }
  .mobile-nav { top: 68px; }
  .language-switcher a { min-width: 1.9rem; height: 1.9rem; }
  .hero-collage { min-height: 390px; }
  .work-grid, .design-grid { grid-template-columns: 1fr; }
}

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

