/* ============================================================
   CRAFTABLY — Interior Renovation WordPress Theme
   Design system + base styles
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color — primary olive family */
  --c-olive: #5e6b2e;
  --c-olive-600: #4d5825;
  --c-olive-700: #3e4a1f;
  --c-olive-300: #8ea050;

  /* Cream / light surfaces */
  --c-cream: #efe9dc;
  --c-cream-2: #e6dec9;
  --c-cream-3: #f6f1e6;

  /* Dark — olive-brown for nav/footer/services bg */
  --c-dark: #2a2c1f;
  --c-dark-2: #1f2117;
  --c-dark-3: #14160e;

  /* Gold border accent (the thin outline you see on cards/buttons) */
  --c-gold: #c5a567;
  --c-gold-2: #d4b777;
  --c-gold-3: #b08d50;

  /* Text */
  --c-ink: #1f221a;
  --c-ink-2: #2a2c20;
  --c-muted: #6b6e60;
  --c-muted-on-dark: #b9bca6;

  --c-white: #ffffff;
  --c-paper: #fbf8f0;

  /* Type */
  --font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Type scale (tweakable) */
  --t-base: 16px;
  --t-scale: 1;

  /* Radius — squircle vocabulary */
  --r-pill: 999px;
  --r-card: 26px;
  --r-image: 40px;
  --r-card-corner-cut: 32px;

  /* Layout */
  --container: 1280px;
  --gutter: 24px;
  --section-y: clamp(64px, 8vw, 120px);

  /* Borders */
  --border-gold: 1px solid var(--c-gold);
  --border-gold-2: 1.5px solid var(--c-gold);

  /* Shadow */
  --shadow-card: 0 30px 60px -30px rgba(0,0,0,.18);
  --shadow-soft: 0 12px 32px -16px rgba(0,0,0,.15);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: calc(var(--t-base) * var(--t-scale));
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 0 0 .4em;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 6.2vw, 84px); font-weight: 800; }
h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 800; }
h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; }
p { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - calc(var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.container-wide {
  width: min(100% - calc(var(--gutter) * 2), 1440px);
  margin-inline: auto;
}
.section { padding-block: var(--section-y); position: relative; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-olive);
}
.eyebrow::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--c-gold);
  transform: rotate(45deg);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--c-olive-300); }
.eyebrow.boxed {
  border: 1.5px solid var(--c-gold);
  border-radius: var(--r-pill);
  padding: 10px 22px 10px 18px;
  background: rgba(197,165,103,0.08);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn-olive {
  background: var(--c-olive);
  color: #fff;
  border: 1.5px solid var(--c-gold);
}
.btn-olive:hover { background: var(--c-olive-600); }
.btn-outline-gold {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-gold);
}
.btn-outline-gold.on-dark { color: #fff; }
.btn-cream {
  background: var(--c-cream-3);
  color: var(--c-ink);
  border: 1.5px solid var(--c-gold);
}
.btn-dark {
  background: var(--c-dark);
  color: #fff;
  border: 1.5px solid var(--c-gold);
}

/* ---------- Diamond glyph ---------- */
.diamond {
  width: 12px; height: 12px;
  background: var(--c-gold);
  display: inline-block;
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Image squircle wrapper ---------- */
.squircle {
  border-radius: var(--r-image);
  overflow: hidden;
  position: relative;
  background: var(--c-cream-2);
}
.squircle img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Decorative leaf shape (behind hero images) ---------- */
.leaf {
  position: absolute;
  inset: 0;
  background: var(--c-olive);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* ============================================================
   TOP UTILITY BAR (logo + contacts + social)
   ============================================================ */
.topbar {
  background: var(--c-cream);
  position: relative;
  border-bottom: 1px solid rgba(197,165,103,.5);
}
.topbar::after {
  /* gold underline */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--c-gold);
}
.topbar-inner {
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.topbar .logo {
  display: flex; align-items: center; gap: 10px;
  position: relative;
  padding-right: 28px;
}
.topbar .logo::after {
  /* angled cream cut into white space */
  content: "";
  position: absolute;
  right: -50px; top: -14px; bottom: -14px;
  width: 80px;
  background: var(--c-cream);
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0% 100%);
}
.logo-img {
  display: block;
  height: 110px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
  margin: -20px 0; /* let it breathe past the topbar height without resizing the bar */
  filter: contrast(1.05);
}
.topbar { overflow: visible; }
.topbar-inner { overflow: visible; }
.topbar .logo.logo-flat { padding: 0; }
.logo-flat .logo-text { display: none; }
.logo-flat::after { display: none !important; }
.logo-mark {
  width: 56px; height: 56px;
  border: 1.5px solid var(--c-gold);
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--c-cream-3);
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: .04em;
}
.logo-text small { font-weight: 500; font-size: 10px; letter-spacing: .2em; color: var(--c-muted); }

.topbar-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.contact-pill {
  display: flex; align-items: center; gap: 14px;
}
.contact-pill .icon {
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  border: 1px solid var(--c-gold);
  display: grid; place-items: center;
  color: var(--c-olive);
  flex: none;
}
.contact-pill .label {
  font-size: 13px; color: var(--c-olive); font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 2px;
}
.contact-pill .value {
  font-size: 14px; color: var(--c-ink); font-weight: 600;
  line-height: 1.3;
}

.topbar-social {
  display: flex; gap: 8px;
}
.social-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-gold);
  display: grid; place-items: center;
  color: var(--c-olive);
  background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social-icon svg { transition: transform .2s ease; }
.social-icon:hover { background: var(--c-olive); color: #ffffff; border-color: var(--c-gold-2); }
.social-icon:hover svg { color: #ffffff; transform: scale(1.05); }

/* ============================================================
   PRIMARY NAV (dark)
   ============================================================ */
.nav {
  background: var(--c-dark);
  border-bottom: 1.5px solid var(--c-gold);
  position: relative;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 14px;
}
.nav-menu {
  display: flex; gap: 36px;
  flex: 1;
}
.nav-menu a {
  color: #d8d6c9;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
  position: relative;
  transition: color .2s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--c-olive-300); }
.nav-menu a.active { font-weight: 600; }

.nav-tools { display: flex; align-items: center; gap: 18px; }
.nav-search {
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: #fff;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.nav-search:hover { background: rgba(197,165,103,.15); border-color: var(--c-gold); }
.nav-cta {
  padding: 14px 26px;
  border: 1.5px solid var(--c-gold);
  border-radius: var(--r-pill);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover { background: var(--c-olive); color: #fff; border-color: var(--c-gold-2); }

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--c-cream);
  position: relative;
  overflow: hidden;
  padding-block: 80px 100px;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%23c5a567' stroke-width='0.6' opacity='0.18'><path d='M100 30 C 60 30, 50 70, 100 100 C 150 70, 140 30, 100 30 Z'/><path d='M100 100 C 70 110, 60 150, 100 170 C 140 150, 130 110, 100 100 Z'/><circle cx='100' cy='100' r='3' fill='%23c5a567'/></g></svg>");
  background-size: 220px 220px;
  pointer-events: none;
  opacity: .7;
}
[data-patterns="off"] .hero-pattern { display: none; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-left { padding-left: 18px; position: relative; }
.hero-left::before {
  content: "";
  position: absolute;
  top: -6px; left: 0; bottom: 60px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--c-gold), transparent);
}

.hero-tag {
  display: inline-block;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero-title .outline {
  -webkit-text-stroke: 1.5px var(--c-ink);
  color: transparent;
  font-weight: 800;
}
.hero-sub {
  color: var(--c-muted);
  max-width: 520px;
  font-size: 17px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero right: layered round images */
.hero-art {
  position: relative;
  height: 540px;
}
.hero-art .leaf-bg {
  position: absolute;
  width: 380px; height: 460px;
  background: var(--c-olive);
  border-radius: 240px 240px 240px 240px / 280px 280px 200px 200px;
  right: 80px; top: 30px;
}
.hero-art .img-back, .hero-art .img-front {
  position: absolute;
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-art .img-back {
  width: 280px; height: 320px;
  left: 0; top: 90px;
}
.hero-art .img-front {
  width: 360px; height: 460px;
  right: 30px; top: 50px;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.hero-art-social {
  position: absolute;
  right: -10px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 3;
}
.hero-art-social .social-icon { background: #fff; }

/* ============================================================
   MISSION / ABOUT BLOCK
   ============================================================ */
.mission { background: var(--c-paper); position: relative; overflow: hidden; }
.mission-deco {
  position: absolute;
  left: -40px; bottom: 80px;
  width: 220px; height: 80px;
  pointer-events: none;
  opacity: .4;
}
.mission-deco svg { width: 100%; height: 100%; }
[data-patterns="off"] .mission-deco { display: none; }

.mission-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mission-art {
  position: relative;
  height: 620px;
}
.mission-art .main-img {
  position: absolute;
  inset: 0 60px 80px 0;
  border-radius: var(--r-image);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.mission-art .main-img img { width: 100%; height: 100%; object-fit: cover; }

.mission-art .years-pill {
  position: absolute;
  left: 24px; bottom: 0;
  width: 130px; height: 320px;
  background: var(--c-olive);
  border-radius: var(--r-pill);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: capitalize;
  display: grid; place-items: center;
  text-align: center;
  z-index: 2;
}
.mission-art .years-pill span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.mission-art .years-num {
  position: absolute;
  left: -2px; bottom: -8px;
  width: 134px; height: 134px;
  background: #fff;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-size: 36px; font-weight: 800;
  color: var(--c-ink);
  z-index: 3;
}

.mission-content h2 { margin-bottom: 22px; }
.mission-eyebrow { margin-bottom: 16px; }
.mission-text {
  color: var(--c-muted);
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 520px;
}
.mission-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 30px;
}
.mission-ba {
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1.5 / 1;
  background: var(--c-cream-2);
}
.mission-ba .ba-img { display: flex; height: 100%; }
.mission-ba .ba-img > div {
  flex: 1; background-size: cover; background-position: center; position: relative;
}
.mission-ba .ba-img > div::after {
  content: attr(data-label);
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(20,22,14,.7); color: #fff;
  font-size: 11px; padding: 3px 8px; border-radius: 6px;
}
.mission-ba::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px;
  background: #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.mission-ba::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: #fff;
  transform: translateX(-50%);
  z-index: 1;
}
.mission-checks { display: grid; gap: 12px; align-content: center; }
.check-row {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px;
}
.check-row::before {
  content: "✓";
  width: 20px; height: 20px; flex: none;
  color: var(--c-olive); font-weight: 800;
}

.mission-divider {
  border-top: 1px solid var(--c-gold);
  margin-bottom: 22px;
  opacity: .5;
}
.mission-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.rating-cluster {
  display: flex; align-items: center; gap: 14px;
}
.avatars {
  display: flex;
}
.avatars .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #fff;
  background: var(--c-cream-2);
  margin-left: -10px;
  background-size: cover; background-position: center;
}
.avatars .avatar:first-child { margin-left: 0; }
.stars {
  display: flex; gap: 2px;
  color: var(--c-olive);
  margin-bottom: 2px;
}

/* ============================================================
   SERVICES (dark)
   ============================================================ */
.services {
  background: var(--c-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.services-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'><g fill='none' stroke='%23c5a567' stroke-width='0.5' opacity='0.5'><path d='M200 80 C 120 80, 80 140, 100 200 C 80 260, 120 320, 200 320 C 280 320, 320 260, 300 200 C 320 140, 280 80, 200 80 Z'/><path d='M200 130 C 160 130, 130 170, 150 200 C 130 230, 160 270, 200 270 C 240 270, 270 230, 250 200 C 270 170, 240 130, 200 130 Z'/><path d='M120 200 Q 100 100, 200 60 Q 300 100, 280 200'/><path d='M120 200 Q 100 300, 200 340 Q 300 300, 280 200'/><circle cx='200' cy='200' r='15'/></g></svg>");
  background-size: 320px 320px;
  pointer-events: none;
  opacity: .25;
}
[data-patterns="off"] .services-pattern { display: none; }
.services h2 { color: #fff; }
.services .eyebrow { color: var(--c-olive-300); }

.services-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(197,165,103,.35);
  margin-bottom: 56px;
}
.services-head h2 { max-width: 700px; margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
  z-index: 2;
}
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--c-dark-2);
  border: 1px solid rgba(197,165,103,.35);
  aspect-ratio: 16 / 11;
}
.service-card .img-fill {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.95);
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
}
.service-card .num {
  position: absolute; left: 20px; top: 20px;
  width: 44px; height: 44px;
  background: var(--c-olive);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  z-index: 3;
  border: 1.5px solid var(--c-gold);
}
.service-card .meta {
  position: absolute;
  left: 0; bottom: 0;
  right: 110px; /* leave consistent room for the Details button */
  background: var(--c-dark);
  border-top: 1px solid var(--c-gold);
  border-right: 1px solid var(--c-gold);
  padding: 22px 24px;
  border-top-right-radius: 26px;
  z-index: 3;
}
.service-card .meta-cut::before { display: none; }
.service-card h3 { color: #fff; font-size: 22px; margin: 0; font-weight: 700; }
.service-card .details {
  position: absolute; right: 12px; bottom: 14px;
  background: var(--c-olive);
  color: #fff;
  border: 1.5px solid var(--c-gold);
  border-radius: var(--r-pill);
  padding: 12px 22px;
  font-size: 14px; font-weight: 600;
  z-index: 4;
  transition: background .2s ease, transform .2s ease;
}
.service-card .details:hover { background: var(--c-olive-700); transform: translateY(-2px); color: #fff; }

/* ============================================================
   WHY US
   ============================================================ */
.why { background: var(--c-cream); position: relative; overflow: hidden; }
.why-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'><g fill='none' stroke='%23c5a567' stroke-width='0.5' opacity='0.4'><path d='M0 50 Q 150 0, 300 50 T 600 50'/><path d='M0 110 Q 150 60, 300 110 T 600 110'/><path d='M0 170 Q 150 120, 300 170 T 600 170'/><path d='M0 230 Q 150 180, 300 230 T 600 230'/><path d='M0 290 Q 150 240, 300 290 T 600 290'/><path d='M0 350 Q 150 300, 300 350 T 600 350'/><path d='M0 410 Q 150 360, 300 410 T 600 410'/></g></svg>");
  background-size: 700px 700px;
  background-position: -100px center;
  pointer-events: none;
  opacity: .9;
}
[data-patterns="off"] .why-pattern { display: none; }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
  position: relative; z-index: 2;
}
.why h2 { margin-bottom: 22px; }
.why-text { color: var(--c-muted); font-size: 16px; margin-bottom: 28px; max-width: 520px; }
.why-features {
  background: var(--c-cream-2);
  border-radius: var(--r-card);
  padding: 24px 28px;
  margin-bottom: 16px;
}
.why-features-row {
  display: flex; gap: 30px; flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-gold);
  margin-bottom: 18px;
}
.why-progress {
  display: grid; gap: 8px;
}
.why-progress-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 15px;
}
.why-progress-bar {
  height: 8px; background: rgba(0,0,0,.06); border-radius: 4px; overflow: hidden;
  position: relative;
}
.why-progress-fill {
  height: 100%;
  width: 100%;
  background: var(--c-olive);
  border-radius: 4px;
  position: relative;
}
.why-progress-fill::after {
  content: "100%";
  position: absolute; right: -22px; top: -28px;
  background: var(--c-olive);
  color: #fff;
  padding: 3px 8px; font-size: 11px; font-weight: 700;
  border-radius: 4px;
}
.why-progress-fill::before {
  content: ""; position: absolute; right: -6px; top: -6px;
  width: 10px; height: 10px; background: var(--c-olive);
  transform: rotate(45deg);
}

.why-art {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  position: relative;
  border: 1px solid var(--c-gold);
}
.why-art img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { background: var(--c-cream); position: relative; overflow: hidden; }
.portfolio-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%23c5a567' stroke-width='0.5' opacity='0.18'><path d='M100 30 C 60 30, 50 70, 100 100 C 150 70, 140 30, 100 30 Z'/></g></svg>");
  background-size: 220px 220px;
  pointer-events: none;
  opacity: .4;
}
[data-patterns="off"] .portfolio-pattern { display: none; }

.portfolio-corner {
  position: absolute;
  right: -2px; top: -2px;
  width: 55%; height: 80%;
  background: var(--c-olive);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}
.portfolio-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 56px;
  position: relative; z-index: 3;
}
.portfolio-head h2 { margin-bottom: 0; }
.portfolio-nav { display: flex; gap: 12px; }
.portfolio-nav button {
  width: 56px; height: 56px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1.5px solid var(--c-gold);
  color: var(--c-ink);
  display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
}
.portfolio-nav button:hover { background: var(--c-olive); color: #ffffff; }
.portfolio-nav button:hover svg { color: #ffffff; }

.portfolio-track-wrap {
  position: relative; z-index: 2;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow: hidden;
}
.portfolio-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 320px;
  gap: 24px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-block: 8px;
  padding-bottom: 24px;
  scrollbar-width: none;
}
.portfolio-track::-webkit-scrollbar { display: none; }
.portfolio-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--c-cream-2);
  scroll-snap-align: start;
}
.portfolio-card .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.portfolio-card .label {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--c-cream-3);
  padding: 18px 80px 18px 22px;
  border-top-right-radius: 24px;
  z-index: 2;
  min-width: 55%;
}
.portfolio-card .label small {
  color: var(--c-olive); font-weight: 700;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.portfolio-card .label h3 {
  font-size: 20px; margin: 4px 0 0; font-weight: 700;
}
.portfolio-card .arrow {
  position: absolute; right: 14px; bottom: 14px;
  width: 44px; height: 44px;
  background: var(--c-dark); color: #fff;
  border-radius: 12px;
  display: grid; place-items: center;
  z-index: 3;
  transition: background .2s ease, transform .2s ease;
}
.portfolio-card .arrow:hover { background: var(--c-olive); transform: rotate(-15deg); }

/* ============================================================
   CONTACT + TESTIMONIALS
   ============================================================ */
.cta-row { background: var(--c-dark); position: relative; }
.cta-row-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.contact-form-card {
  background: var(--c-olive);
  border-radius: var(--r-card);
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-form-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'><g fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.15'><path d='M0 100 Q 150 50, 300 100 T 600 100'/><path d='M0 160 Q 150 110, 300 160 T 600 160'/><path d='M0 220 Q 150 170, 300 220 T 600 220'/><path d='M0 280 Q 150 230, 300 280 T 600 280'/><path d='M0 340 Q 150 290, 300 340 T 600 340'/><path d='M0 400 Q 150 350, 300 400 T 600 400'/><path d='M0 460 Q 150 410, 300 460 T 600 460'/></g></svg>");
  background-size: 700px 700px;
  pointer-events: none;
}
[data-patterns="off"] .contact-form-card::before { display: none; }

.contact-form-card h3 { color: #fff; font-size: 28px; margin-bottom: 28px; }
.contact-form-card .eyebrow { color: var(--c-gold-2); margin-bottom: 8px; }
.contact-form-card .eyebrow::before { background: var(--c-gold); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative; z-index: 2;
}
.form-grid .full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: 14px; font-weight: 600; color: #fff;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 0;
  background: var(--c-cream-3);
  font: inherit;
  font-size: 15px;
  color: var(--c-ink);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.btn-form {
  width: 100%;
  background: var(--c-dark);
  color: #fff;
  border: 1.5px solid var(--c-gold);
  border-radius: 14px;
  padding: 16px;
  font-weight: 600;
}

.testimonials-side {
  padding: 30px 0;
}
.testimonials-side .eyebrow { color: var(--c-olive-300); margin-bottom: 16px; }
.testimonials-side h2 { color: #fff; margin-bottom: 36px; max-width: 480px; }

.testimonial-track-wrap {
  position: relative; overflow: hidden;
}
.testimonial-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  background: var(--c-cream-3);
  border-radius: var(--r-card);
  padding: 28px;
  scroll-snap-align: start;
}
.testimonial-card .head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.testimonial-card .head img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover;
}
.testimonial-card .head .name { font-weight: 700; font-size: 17px; }
.testimonial-card .head .place { font-size: 13px; color: var(--c-muted); }
.testimonial-card .stars { margin-bottom: 6px; }
.testimonial-card p { font-size: 14px; color: var(--c-ink); line-height: 1.6; }

.testimonial-nav {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 22px;
}
.testimonial-nav button {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--c-olive);
  color: #fff;
  border: 1.5px solid var(--c-gold);
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.testimonial-nav button:hover { background: var(--c-olive-700); color: #fff; transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-dark);
  color: #d8d6c9;
  position: relative;
  overflow: hidden;
  padding-block: 80px 28px;
}
.footer-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'><g fill='none' stroke='%23c5a567' stroke-width='0.4' opacity='0.18'><path d='M200 80 C 120 80, 80 140, 100 200 C 80 260, 120 320, 200 320 C 280 320, 320 260, 300 200 C 320 140, 280 80, 200 80 Z'/></g></svg>");
  background-size: 400px 400px;
  pointer-events: none;
}
[data-patterns="off"] .footer-pattern { display: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 30px;
  position: relative; z-index: 2;
}
.footer-card {
  border: 1px solid var(--c-gold);
  border-radius: var(--r-card);
  padding: 30px;
}
.footer-card.no-border { border: none; padding-top: 0; }
.footer-card h4 {
  color: #fff; font-size: 20px; margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-gold);
  display: inline-block;
}
.footer-card p { font-size: 15px; line-height: 1.7; margin: 0 0 22px; }
.footer-list { display: grid; gap: 12px; }
.footer-list a { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.footer-list a:hover { color: #fff; }

.footer-contact-list { display: grid; gap: 18px; }
.footer-contact-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
}
.footer-contact-list .ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(197,165,103,.12);
  color: var(--c-olive-300);
  display: grid; place-items: center;
  flex: none;
}
.footer-bottom {
  border-top: 1px solid rgba(197,165,103,.35);
  margin-top: 56px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--c-muted-on-dark);
  position: relative; z-index: 2;
}

/* ---------- Card style tweaks ---------- */
[data-cards="flat"] .service-card,
[data-cards="flat"] .portfolio-card,
[data-cards="flat"] .testimonial-card,
[data-cards="flat"] .footer-card,
[data-cards="flat"] .why-features {
  border: none !important;
  box-shadow: none;
}
[data-cards="bordered"] .service-card,
[data-cards="bordered"] .portfolio-card,
[data-cards="bordered"] .testimonial-card,
[data-cards="bordered"] .why-features {
  border: 1.5px solid var(--c-gold) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .topbar-inner { grid-template-columns: 200px 1fr auto; }
  .topbar-contacts { grid-template-columns: 1fr 1fr; }
  .topbar-contacts .contact-pill:nth-child(3) { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 480px; }
  .mission-inner, .why-inner, .cta-row-inner { grid-template-columns: 1fr; gap: 50px; }
  .mission-art { height: 540px; }
}
@media (max-width: 760px) {
  :root { --section-y: 56px; --gutter: 18px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }

  /* ---- Mobile header redesign ---- */
  .topbar { padding-block: 6px; }
  .topbar-inner { grid-template-columns: 1fr; gap: 0; padding-block: 10px; }
  .topbar-contacts, .topbar-social { display: none; }
  .topbar .logo::after { display: none; }
  .topbar .logo { padding-right: 0; justify-content: flex-start; }
  .logo-img { height: 72px; max-width: 200px; margin: -12px 0; }
  .logo-mark { width: 44px; height: 44px; border-radius: 10px; }
  .logo-mark svg { width: 22px; height: 22px; }
  .logo-text { font-size: 12px; }
  .logo-text small { font-size: 9px; }

  .nav { padding-block: 0; }
  .nav-inner { padding-block: 12px; gap: 12px; justify-content: space-between; }
  .nav-menu { display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--c-dark);
    border-top: 1px solid var(--c-gold);
    padding: 12px 18px;
    z-index: 60;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 0; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border: 1px solid var(--c-gold); border-radius: 10px; color: #fff;
    order: 3;
  }
  .nav-cta { padding: 11px 18px; font-size: 13px; order: 2; }
  .nav-search { display: none; }
  .nav-tools { gap: 10px; }

  /* ---- Hero ---- */
  .hero { padding-block: 50px 60px; }
  .hero-art { height: 360px; margin-top: 18px; }
  .hero-art .img-back { display: none; }
  .hero-art .img-front { width: 280px; height: 340px; right: 50%; top: 0; transform: translateX(50%); }
  .hero-art .leaf-bg { width: 280px; height: 320px; right: 50%; top: 12px; transform: translateX(50%); }
  .hero-art-social { display: none; }

  .mission-art { height: 460px; }
  .mission-art .years-pill { width: 90px; height: 220px; }
  .mission-art .years-num { width: 96px; height: 96px; font-size: 24px; left: -2px; }

  .mission-cta-row { grid-template-columns: 1fr; gap: 18px; }
  .mission-bottom { flex-direction: column; align-items: stretch; }

  .services-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .portfolio-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .portfolio-corner { display: none; }
  .footer-grid { grid-template-columns: 1fr; }

  /* ---- Contact form fix ---- */
  .cta-row-inner { gap: 30px; }
  .contact-form-card { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-grid .full { grid-column: 1; }
  .btn-form {
    background: var(--c-dark);
    color: #ffffff;
    border: 1.5px solid var(--c-gold);
    border-radius: 14px;
    padding: 16px;
    font-weight: 700;
    font-size: 15px;
    width: 100%;
  }
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 16px; }
}
