/* ==========================================================================
   MILA MARKETING — Marketing & Branding Theme
   Clean, minimalist, editorial design.
   Palette: warm ivory base + cream sections + tan accent (reference site).
   Fonts: Poppins (body) + Butler (display serif — same font as reference site).
   ========================================================================== */

/* ==========================================================================
   0. FONTS — @font-face (Butler, self-hosted)
   Butler is a free serif typeface by Fabian De Smet.
   Licensed under CC BY-SA 4.0 (attribution required):
   https://creativecommons.org/licenses/by-sa/4.0/
   Source: https://www.fontsquirrel.com/fonts/butler
   ========================================================================== */
@font-face {
  font-family: "Butler";
  src: url("../../fonts/Butler-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Butler";
  src: url("../../fonts/Butler-Free-Lgt.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Butler";
  src: url("../../fonts/Butler-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Butler";
  src: url("../../fonts/Butler-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Butler";
  src: url("../../fonts/Butler-Medium.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Butler";
  src: url("../../fonts/Butler-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Butler";
  src: url("../../fonts/Butler-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. TOKENS / DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Colors — palette from the reference site (warm ivory + tan accent) */
  --ivory: #fffdf9;       /* base background */
  --ivoryText: #fffdf9c4;       /* base background */
  --cream: #f2efe8;       /* alt section background */
  --paper: #ffffff;
  --ink: #313330;         /* main text / dark sections */
  --ink-soft: #4a4b46;
  --muted: #8f8b81;
  --line: #ece7dd;
  --line-strong: #d9d2c4;

  --accent: #b3a083;      /* warm tan — brand accent */
  --accent-dark: #b3a083;
  --accent-light: #cabba5;
  --dark: #222222;
  --dark-deep: #111111;

  /* Alias tokens (used by components) */
  --red: #b3a083;         /* accent = tan */
  --red-dark: #b3a083;
  --orange: #cabba5;      /* light tan */
  --green: #8f8b81;       /* muted warm gray */
  --green-dark: #6e6a60;

  --grad-warm: linear-gradient(135deg, #cabba5 0%, #b3a083 100%);
  --grad-soft: linear-gradient(160deg, #f2efe8 0%, #fffdf9 100%);

  /* Typography — Poppins (body) + Butler (display serif, self-hosted) */
  --font-display: "Butler", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(49, 51, 48, 0.06);
  --shadow-md: 0 14px 40px rgba(49, 51, 48, 0.1);
  --shadow-lg: 0 30px 70px rgba(49, 51, 48, 0.16);

  /* Layout */
  --container: 1260px;
  --container-wide: 1520px;
  --gutter: clamp(10px, 2vw, 24px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 82px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(179, 160, 131, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ==========================================================================
   3. UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* .section {
  padding-block: var(--section);
} */

.section--tight {
  padding-block: calc(var(--section) * 0.62);
}

/* .section--cream {
  background: var(--cream);
} */

.section--cream-tight {
  background: #f2efe838;
}

.section--ink {
  background: var(--ink);
  color: var(--ivory);
}

.section--ink h2,
.section--ink h3 {
  color: var(--ivory);
}

.custom-logo{
  width: fit-content;
  max-height: 45px;
  object-fit: contain;
  transform: scale(1.3);
  -webkit-transform: scale(1.3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--grad-warm);
  border-radius: 2px;
}

.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--grad-warm);
  border-radius: 2px;
}

.section--ink .eyebrow {
  color: var(--orange);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  margin-top: 18px;
}

.section-head .lead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.section-head .btn {
  margin-top: 24px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.section--ink .lead {
  color: rgba(250, 246, 239, 0.72);
}

.accent {
  font-style: italic;
  color: var(--red);
  font-weight: 300;
}

.accent--orange {
  color: var(--orange);
}

.accent--green {
  color: var(--green);
}

.text-muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: var(--r-pill);
  font-weight: 400;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
  will-change: transform;
}

.btn .btn-arrow {
  transition: transform 0.35s var(--ease);
  width: 16px;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
  width: 18px;
}

.btn-primary {
  background: var(--cream);
  color: var(--accent-dark);
  box-shadow: 0 10px 26px rgba(138, 120, 95, 0.2);
}

.btn-primary:hover {
  background: #e9e2d3;
  color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(138, 120, 95, 0.28);
}

.btn-dark {
  background: var(--dark);
  color: var(--ivory);
}

.btn-dark:hover {
  background: #000;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--ivory);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.section--ink .btn-ghost {
  border-color: rgba(255, 253, 249, 0.4);
  color: var(--ivory);
}

.section--ink .btn-ghost:hover {
  border-color: var(--ivory);
  background: rgba(255, 253, 249, 0.12);
  color: var(--ivory);
}

.btn-sm {
  padding: 13px 24px;
  font-size: 0.76rem;
}

/* ==========================================================================
   5. HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    padding 0.4s var(--ease);
  padding-block: 22px;
  border-bottom: 1px solid rgba(49, 51, 48, 0.06);
}

.site-header.is-scrolled {
  background: rgba(255, 253, 249, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(49, 51, 48, 0.06);
  padding-block: 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 95vw !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 32px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-warm);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(138, 120, 95, 0.35);
}

.brand em {
  font-style: italic;
  color: var(--red);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  font-size: 0.90rem;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: 6px;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-warm);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* --- Navbar submenus (dropdown) --- */
.nav-links .menu-item-has-children {
  position: relative;
}

.nav-links .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-links .menu-item-has-children > a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-links .menu-item-has-children:hover > a::before,
.nav-links .menu-item-has-children:focus-within > a::before {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 10px;
  list-style: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease),
    visibility 0s linear 0.35s;
  z-index: 60;
}

.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.nav-links .sub-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--ink) !important;
  border-radius: 7px;
}

.nav-links .sub-menu a::after {
  display: none;
}

.nav-links .sub-menu a:hover {
  color: var(--ink);
  background: var(--cream);
}

/* Toggle (inserido via JS) — usado apenas no mobile; no desktop o dropdown é por hover */
.nav-links .submenu-toggle {
  display: none;
}

.nav-cta {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  background: var(--grad-warm);
  color: #fff;
  animation: ctaGlow 2.6s ease-in-out infinite;
}

.nav-cta:hover {
  background: var(--grad-warm);
  color: #fff;
  transform: translateY(-2px);
}

/* Pulsing glow ring */
@keyframes ctaGlow {
  0% {
    box-shadow: 0 10px 26px rgba(138, 120, 95, 0.35),
      0 0 0 0 rgba(179, 160, 131, 0.45);
  }
  70% {
    box-shadow: 0 10px 26px rgba(138, 120, 95, 0.35),
      0 0 0 14px rgba(179, 160, 131, 0);
  }
  100% {
    box-shadow: 0 10px 26px rgba(138, 120, 95, 0.35),
      0 0 0 0 rgba(179, 160, 131, 0);
  }
}

/* Periodic shine sweep */
.nav-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: ctaShine 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaShine {
  0%,
  55% {
    left: -70%;
  }
  100% {
    left: 130%;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  padding-inline: 12px;
  background: transparent;
  z-index: 120;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   5b. HEADER ACTIONS / SEARCH OVERLAY / OFFCANVAS MENU
   ========================================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 120;
}

.icon-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.icon-btn:hover {
  background: var(--grad-warm);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

/* Offcanvas hamburger (desktop only) */
.nav-offcanvas-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  padding-inline: 12px;
}

.nav-offcanvas-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav-offcanvas-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-offcanvas-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-offcanvas-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

html.offcanvas-open,
html.search-open,
body.offcanvas-open,
body.search-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* --- Search overlay --- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(255, 253, 249, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-overlay-close {
  position: absolute;
  top: 28px;
  right: clamp(20px, 5vw, 48px);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.search-overlay-close:hover {
  background: var(--grad-warm);
  border-color: transparent;
  color: #fff;
  transform: rotate(90deg);
}

.search-overlay-close svg {
  width: 20px;
  height: 20px;
}

.search-overlay-inner {
  width: min(720px, 100%);
  text-align: center;
  padding: 60px 0 30px;
}

.search-overlay-inner .eyebrow {
  display: block;
  margin-bottom: 20px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line-strong);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 200;
  line-height: 1.2;
  color: var(--ink);
}

.search-form input::placeholder {
  color: var(--muted);
}

.search-form .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.search-hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- Offcanvas menu --- */
.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.offcanvas.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.offcanvas-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.offcanvas.open .offcanvas-backdrop {
  opacity: 1;
}

.offcanvas-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(540px, 94vw);
  background: var(--ivory);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 0.55s var(--ease);
  overflow-y: auto;
}

.offcanvas.open .offcanvas-panel {
  transform: translateX(0);
}

.offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(22px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.offcanvas-head .brand {
  font-size: 1.55rem;
  line-height: 1.2;
}

.offcanvas-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.offcanvas-close:hover {
  background: var(--grad-warm);
  border-color: transparent;
  color: #fff;
  transform: rotate(90deg);
}

.offcanvas-close svg {
  width: 20px;
  height: 20px;
}

.offcanvas-nav {
  flex: 1;
  padding: clamp(28px, 5vw, 60px) clamp(22px, 4vw, 44px);
}

.offcanvas-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offcanvas-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem); /* max 30px */
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease),
    border-color 0.3s var(--ease);
}

.offcanvas-nav a i {
  font-style: normal;
  font-size: 0.7em;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.offcanvas-nav a:hover {
  color: var(--accent);
  padding-left: 10px;
  border-bottom-color: var(--line);
}

.offcanvas-nav a:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* --- Offcanvas submenu (acordeão) --- */
.offcanvas-nav .menu-item-has-children {
  position: relative;
}

.offcanvas-nav .menu-item-has-children > a {
  padding-right: 46px;
}

.offcanvas-nav .menu-item-has-children > a i {
  display: none; /* esconde a seta → dos itens com filhos */
}

.offcanvas-nav .submenu-toggle {
  display: grid;
  place-items: center;
  position: absolute;
  right: 0;
  top: 4px;
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.offcanvas-nav .submenu-toggle:hover {
  background: var(--cream);
  color: var(--ink);
}

.offcanvas-nav .submenu-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.offcanvas-nav .menu-item-has-children.open > .submenu-toggle svg {
  transform: rotate(180deg);
}

.offcanvas-nav .sub-menu {
  display: none;
  list-style: none;
  margin: 0 0 10px 16px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.offcanvas-nav .menu-item-has-children.open > .sub-menu {
  display: block;
}

.offcanvas-nav .sub-menu a {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  padding: 8px 2px;
}

.offcanvas-nav .sub-menu a i {
  display: none;
}

.offcanvas-foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 4vw, 44px);
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.offcanvas-foot .nav-cta {
  width: 100%;
  justify-content: center;
}

.offcanvas-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.offcanvas-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--accent); /* tan #b3a083 — same as the reference offcanvas */
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}

.offcanvas-social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.offcanvas-social svg {
  width: 17px;
  height: 17px;
}

.offcanvas-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offcanvas-contact a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: color 0.3s var(--ease);
}

.offcanvas-contact a:hover {
  color: var(--accent);
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(202, 187, 165, 0.22), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(179, 160, 131, 0.14), transparent 55%),
    var(--ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(179, 160, 131, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(179, 160, 131, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(179, 160, 131, 0); }
  100% { box-shadow: 0 0 0 0 rgba(179, 160, 131, 0); }
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  letter-spacing: -0.025em;
  line-height: 1.03;
}

.hero h1 .accent {
  display: inline-block;
  position: relative;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 0.42em;
  background: var(--grad-warm);
  opacity: 0.22;
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  margin-top: 26px;
  max-width: 520px;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 48px);
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.stat-num sup {
  font-size: 0.5em;
  color: var(--red);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.8;
}

.hero-media img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(49, 51, 48, 0) 55%, rgba(49, 51, 48, 0.35));
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: -1;
}

.hero-blob--red {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(179, 160, 131, 0.4), rgba(179, 160, 131, 0.06));
  top: -40px;
  right: -30px;
}

.hero-blob--orange {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 60% 40%, rgba(202, 187, 165, 0.45), rgba(202, 187, 165, 0.08));
  bottom: 6%;
  left: -50px;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(236, 231, 221, 0.8);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

.hero-card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-warm);
  color: #fff;
  flex-shrink: 0;
}

.hero-card .icon svg {
  width: 20px;
  height: 20px;
}

.hero-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.2;
}

.hero-card span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-card--top {
  top: 34px;
  left: -30px;
  animation-delay: 0.4s;
}

.hero-card--bottom {
  bottom: 40px;
  right: -24px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-rotate-badge {
  position: absolute;
  top: -38px;
  right: -38px;
  width: 128px;
  height: 128px;
  z-index: 3;
}

.hero-rotate-badge svg {
  width: 100%;
  height: 100%;
  animation: spin 18s linear infinite;
}

.hero-rotate-badge .badge-text {
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}

.hero-rotate-badge .badge-center {
  fill: var(--red);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   7. LOGO BAR
   ========================================================================== */
.logo-bar {
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding-block: 26px;
}

.logo-bar .logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5vw, 64px);
}

.logo-bar .logo-label {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.logo-item {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: #b6ad9f;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  filter: grayscale(1);
  opacity: 0.85;
}

.logo-item:hover {
  color: var(--ink);
  transform: translateY(-2px);
  filter: none;
  opacity: 1;
}

/* ==========================================================================
   8. ABOUT PREVIEW (home)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media .frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 4.6;
}

.about-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-media .frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  z-index: 2;
}

.about-media .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(49, 51, 48, 0) 60%, rgba(49, 51, 48, 0.3));
}

.about-frame-bg {
  position: absolute;
  inset: 26px -26px -26px 26px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  z-index: -1;
}

/* Variante parallax da mídia (About Host do Podcast, como no site de ref.) */
.about-media--parallax {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: var(--r-lg);
  min-height: 480px;
  box-shadow: var(--shadow-md);
}
.about-media--parallax .about-frame-bg {
  display: none;
}
/* O [data-reveal] aplica will-change: opacity, transform no elemento — isso
   cria um "containing block" e faz o Chromium tratar o background-attachment:
   fixed como relativo ao próprio elemento, anulando o parallax (o fundo rola
   junto com a mídia). Aqui neutralizamos o will-change no modo parallax para
   o fundo ficar fixo na viewport. */
.about-media--parallax[data-reveal],
.about-media--parallax[data-reveal].revealed {
  will-change: auto;
}
@media (max-width: 900px) {
  .about-media--parallax {
    background-attachment: scroll;
    min-height: 320px;
  }
}

.about-quote-card {
  position: absolute;
  bottom: 28px;
  left: -28px;
  z-index: 2;
  max-width: 300px;
  padding: 22px 26px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

.about-quote-card .q-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--orange);
}

.about-quote-card p {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.4;
}

.about-quote-card footer {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}

.about-copy .about-name {
  margin-top: 16px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.about-copy .role {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.about-copy .lead {
  margin-top: 22px;
}

.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.98rem;
}

.about-list .check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(179, 160, 131, 0.18);
  color: var(--accent-dark);
  flex-shrink: 0;
}

.about-list .check svg {
  width: 13px;
  height: 13px;
}

.about-copy .btn {
  margin-top: 34px;
}

/* ==========================================================================
   9. SERVICES (home cards)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  position: relative;
  padding: 36px 34px 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-warm);
  transform: translateY(102%);
  transition: transform 0.55s var(--ease);
  z-index: 0;
  border-radius: var(--r-lg);
}

.service-card:hover::before {
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card .num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
  z-index: 1;
  transition: color 0.4s var(--ease);
}

.service-card .icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(179, 160, 131, 0.16);
  color: var(--accent);
  margin-top: 26px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  z-index: 1;
}

.service-card .icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  margin-top: 22px;
  font-size: 1.5rem;
  z-index: 1;
  transition: color 0.4s var(--ease);
}

.service-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  z-index: 1;
  transition: color 0.4s var(--ease);
}

.service-card .link {
  margin-top: auto;
  padding-top: 26px;
  z-index: 1;
}

.service-card .link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}

.service-card .link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.service-card .link a:hover svg {
  transform: translateX(4px);
}

.service-card:hover .num,
.service-card:hover h3,
.service-card:hover .link a {
  color: #fff;
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.85);
}

.service-card:hover .icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ==========================================================================
   10. MARQUEE
   ========================================================================== */
.marquee {
  overflow: hidden;
  background: var(--ink);
  padding-block: 22px;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
  color: var(--ivory);
}

.marquee-item .dot-m {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-warm);
  flex-shrink: 0;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   11. LEAD MAGNET / CTA PANEL
   ========================================================================== */
.cta-panel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: clamp(44px, 6vw, 84px);
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(202, 187, 165, 0.3), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(179, 160, 131, 0.22), transparent 55%),
    var(--ink);
  color: var(--ivory);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border: 1.5px dashed rgba(202, 187, 165, 0.45);
  border-radius: 50%;
}

.cta-panel .eyebrow {
  color: var(--orange);
}

.cta-panel h2 {
  color: var(--ivory);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  margin-top: 18px;
}

.cta-panel .lead {
  margin-top: 18px;
  color: rgba(250, 246, 239, 0.74);
}

.cta-form {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-form .field {
  flex: 1;
  min-width: 240px;
}

.cta-form input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(250, 246, 239, 0.25);
  background: rgba(250, 246, 239, 0.08);
  color: var(--ivory);
}

.cta-form input::placeholder {
  color: rgba(250, 246, 239, 0.55);
}

.cta-form input:focus {
  outline: none;
  border-color: var(--orange);
}

.cta-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(250, 246, 239, 0.6);
}

.cta-check .check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(179, 160, 131, 0.3);
  color: #cabba5;
  flex-shrink: 0;
}

.cta-check .check svg {
  width: 11px;
  height: 11px;
}

.form-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(250, 246, 239, 0.55);
}

.cta-visual {
  position: relative;
}

.cta-illustration {
  position: relative;
  border-radius: var(--r-md);
  background: var(--grad-soft);
  padding: 30px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}

.cta-illustration .doc {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.cta-illustration .doc .doc-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad-warm);
  color: #fff;
  flex-shrink: 0;
}

.cta-illustration .doc .doc-icon svg {
  width: 20px;
  height: 20px;
}

.cta-illustration .doc strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.2;
  display: block;
}

.cta-illustration .doc span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.cta-illustration .bar {
  height: 8px;
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.cta-illustration .bar i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: var(--grad-warm);
}

.cta-illustration .bar:nth-of-type(1) i { width: 92%; }
.cta-illustration .bar:nth-of-type(2) i { width: 74%; }

.cta-float-chip {
  position: absolute;
  top: -20px;
  right: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--paper);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.88rem;
}

.cta-float-chip .chip-emoji {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(179, 160, 131, 0.2);
  color: var(--accent-dark);
}

/* ==========================================================================
   12. PROCESS
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 30px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--red);
  line-height: 1;
}

.process-step h3 {
  margin-top: 18px;
  font-size: 1.22rem;
}

.process-step p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ==========================================================================
   13. PORTFOLIO (home + page)
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-bottom: var(--section);
}

.portfolio-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  box-shadow: var(--shadow-sm);
}

.portfolio-card .ph-image {
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease), box-shadow 0.5
}

.portfolio-card .ph-image,
.portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.portfolio-card:hover .ph-image,
.portfolio-card:hover img,
.portfolio-card:focus-within .ph-image,
.portfolio-card:focus-within img {
  transform: scale(1.07);
}

.portfolio-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(49, 51, 48, 0) 25%, rgba(49, 51, 48, 0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: #fff;
  opacity: 1;
  transform: translateY(0);
  transition: background 0.5s var(--ease);
}

.portfolio-card:hover .overlay,
.portfolio-card:focus-within .overlay {
  background: linear-gradient(200deg, rgba(49, 51, 48, 0) 5%, rgba(49, 51, 48, 0.92));
}

/* Title & tag always visible (anchored low); description + arrow expand on hover/focus */
.portfolio-card .overlay p,
.portfolio-card .overlay .arrow {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 0.45s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease), margin-top 0.4s var(--ease);
}

.portfolio-card:hover .overlay p,
.portfolio-card:focus-within .overlay p,
.portfolio-card:hover .overlay .arrow,
.portfolio-card:focus-within .overlay .arrow {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card:hover .overlay p,
.portfolio-card:focus-within .overlay p {
  margin-top: 8px;
}

.portfolio-card:hover .overlay .arrow,
.portfolio-card:focus-within .overlay .arrow {
  margin-top: 16px;
}

.portfolio-card .overlay .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.portfolio-card .overlay h3 {
  color: #fff;
  font-size: 1.35rem;
}

.portfolio-card .overlay p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}

.portfolio-card .overlay .arrow {
  margin-top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-warm);
  display: grid;
  place-items: center;
}

.portfolio-card .overlay .arrow svg {
  width: 16px;
  height: 16px;
}

.portfolio-card--wide {
  grid-column: span 1;
}

/* ==========================================================================
   14. JOURNAL / BLOG CARDS
   ========================================================================== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.post-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.post-card .thumb img,
.post-card .thumb .ph-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.post-card:hover .thumb img,
.post-card:hover .thumb .ph-image {
  transform: scale(1.07);
}

.post-card .cat {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(250, 246, 239, 0.92);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  z-index: 2;
}

.post-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 28px;
}

.post-card .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.post-card .meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.post-card h3 {
  margin-top: 12px;
  font-size: 1.32rem;
  font-weight: 300;
  line-height: 1.25;
}

.post-card p {
  margin-top: 10px;
  font-size: 0.94rem;
  color: var(--muted);
}

.post-card .read-more {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
}

.post-card .read-more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.post-card:hover .read-more svg {
  transform: translateX(4px);
}

/* ==========================================================================
   15. TESTIMONIALS
   ========================================================================== */
.testimonials {
  position: relative;
}

.t-slider {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
}

.t-viewport {
  overflow: hidden;
}

.t-track {
  display: flex;
  transition: transform 0.65s var(--ease);
}

.t-slide {
  flex: 0 0 100%;
  padding-inline: 10px;
  text-align: center;
}

.t-slide .stars {
  display: flex;
  justify-content: center;
  gap: 5px;
  color: var(--orange);
}

.t-slide .stars svg {
  width: 18px;
  height: 18px;
}

.t-slide blockquote {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
}

.t-slide blockquote .q {
  color: var(--red);
  font-style: italic;
}

.t-slide .author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.t-slide .author .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.t-slide .author .a-name {
  font-weight: 700;
  font-size: 0.98rem;
}

.t-slide .author .a-role {
  font-size: 0.82rem;
  color: var(--muted);
}

.t-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}

.t-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.t-arrow:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.t-arrow svg {
  width: 18px;
  height: 18px;
}

.t-dots {
  display: flex;
  gap: 8px;
}

.t-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.t-dots button.active {
  background: var(--red);
  transform: scale(1.35);
}

/* ==========================================================================
   16. STATS BAND (ink)
   ========================================================================== */
.stats-band {
  background: var(--ink);
  color: var(--ivory);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stats-grid .stat .stat-num {
  color: var(--ivory);
}

.stats-grid .stat .stat-num sup {
  color: var(--orange);
}

.stats-grid .stat .stat-label {
  color: rgba(250, 246, 239, 0.6);
}

/* ==========================================================================
   17. INSTAGRAM FEED
   ========================================================================== */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
}

.insta-item {
  position: relative;
  aspect-ratio: 9/12;
  border-radius: 0;
  overflow: hidden;
  display: block;
}

.insta-item .ph-image {
  position: absolute;
  inset: 0;
}

.insta-item .hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(179, 160, 131, 0.92), rgba(138, 120, 95, 0.92));
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.insta-item:hover .hover {
  opacity: 1;
}

.insta-item .hover svg {
  width: 26px;
  height: 26px;
}

/* Placeholder image gradients (replaced by real photos later) */
.ph-image {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--g1, #ece7dd), var(--g2, #d9d2c4));
}

.ph-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px 120px at 20% 20%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(160px 160px at 85% 80%, rgba(33, 28, 21, 0.16), transparent 60%);
}

.ph-image::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  color: rgba(255, 255, 255, 0.6);
  padding: 12px;
  text-align: center;
}

.ph-image--red { --g1: #d6c3ab; --g2: #b3a083; }
.ph-image--orange { --g1: #e3d2b8; --g2: #cabba5; }
.ph-image--green { --g1: #b8ad99; --g2: #8f8b81; }
.ph-image--ink { --g1: #3f403c; --g2: #222222; }

/* Real photo backgrounds for portfolio cards */
.ph-image--photo {
  background-size: cover;
  background-position: center;
}
.ph-image--photo::before,
.ph-image--photo::after {
  display: none;
}

/* ==========================================================================
   18. NEWSLETTER
   ========================================================================== */
.newsletter {
  position: relative;
  text-align: center;
}

.newsletter-box {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.newsletter-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--grad-warm);
}

.newsletter-box h2 {
  margin-top: 16px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.newsletter-box .lead {
  margin-top: 14px;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 30px auto 0;
}

.newsletter-form .field {
  flex: 1;
}

.newsletter-form input {
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--ivory);
  transition: border-color 0.3s var(--ease);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--red);
}

/* ==========================================================================
   19. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--dark-deep);
  color: var(--ivory);
  padding-top: clamp(64px, 8vw, 96px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.footer-brand .brand {
  color: var(--ivory);
}

.footer-brand p {
  margin-top: 20px;
  max-width: 300px;
  color: rgba(250, 246, 239, 0.66);
  font-size: 0.98rem;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(250, 246, 239, 0.18);
  color: var(--ivory);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.footer-social a:hover {
  background: var(--grad-warm);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: rgba(250, 246, 239, 0.68);
  font-size: 0.95rem;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 239, 0.12);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(250, 246, 239, 0.55);
}

.footer-bottom .legal {
  display: flex;
  gap: 20px;
}

.footer-bottom .legal a:hover {
  color: var(--orange);
}

/* ==========================================================================
   20. BACK TO TOP
   ========================================================================== */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    visibility 0.4s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--grad-warm);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   21. PAGE HERO (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: clamp(56px, 7vw, 96px);
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(202, 187, 165, 0.2), transparent 60%),
    #f2efe838;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  margin-top: 20px;
}

.page-hero .lead {
  max-width: 640px;
  margin: 22px auto 0;
}

.page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 26px;
}

.page-hero .breadcrumb .sep {
  color: var(--red);
}

/* 404 */
.page-hero--404 h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-top: 10px;
}
.page-hero--404 h5 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--muted);
  max-width: 620px;
  margin: 18px auto 0;
  line-height: 1.6;
}
.page-hero--404 .lead {
  font-size: 1rem;
}
.page-hero--404 .search-form {
  max-width: 420px;
  width: 100%;
}

/* ==========================================================================
   22. ABOUT PAGE
   ========================================================================== */
.about-page-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.story-copy .lead {
  margin-top: 18px;
}

.story-copy p + p {
  margin-top: 16px;
}

.story-copy .sign {
  margin-top: 30px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--red);
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.story-stat {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
}

.story-stat .n {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
}

.story-stat .l {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.value-card .icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-inline: auto;
  border-radius: 50%;
  background: rgba(179, 160, 131, 0.16);
  color: var(--accent);
}

.value-card .icon svg {
  width: 26px;
  height: 26px;
}

.value-card h3 {
  margin-top: 18px;
  font-size: 1.25rem;
}

.value-card p {
  margin-top: 10px;
  font-size: 0.93rem;
  color: var(--muted);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line-strong);
}

.t-item {
  position: relative;
  padding-left: 64px;
  padding-bottom: 44px;
}

.t-item:last-child {
  padding-bottom: 0;
}

.t-item::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-warm);
  box-shadow: 0 0 0 5px rgba(179, 160, 131, 0.18);
}

.t-item .t-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.t-item h3 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.t-item p {
  margin-top: 8px;
  color: var(--muted);
}

/* ==========================================================================
   23. SERVICES PAGE
   ========================================================================== */
.service-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.service-feature + .service-feature {
  margin-top: clamp(56px, 8vw, 96px);
}

.service-feature--reverse .service-media {
  order: 2;
}

.service-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  box-shadow: var(--shadow-md);
}

.service-media img,
.service-media .ph-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-media .chip {
  position: absolute;
  bottom: 18px;
  left: 18px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: rgba(250, 246, 239, 0.94);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.service-feature h3 {
  margin-top: 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.service-feature .lead {
  margin-top: 14px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.98rem;
  font-weight: 500;
}

.feature-list .check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(179, 160, 131, 0.18);
  color: var(--accent-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list .check svg {
  width: 13px;
  height: 13px;
}

.service-feature .btn {
  margin-top: 28px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.price-card--featured {
  background: var(--ink);
  color: var(--ivory);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.price-card--featured h3,
.price-card--featured .price .amount {
  color: var(--ivory);
}

.price-card .flag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--grad-warm);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.35rem;
}

.price-card .price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-card .price .amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}

.price-card .price .per {
  color: var(--muted);
  font-size: 0.9rem;
}

.price-card--featured .price .per {
  color: rgba(250, 246, 239, 0.6);
}

.price-card .desc {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.price-card--featured .desc {
  color: rgba(250, 246, 239, 0.66);
}

.price-card ul {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  flex: 1;
}

.price-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.94rem;
}

.price-card li .check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(179, 160, 131, 0.18);
  color: var(--accent-dark);
  flex-shrink: 0;
}

.price-card--featured li .check {
  background: rgba(202, 187, 165, 0.3);
  color: #e3d2b8;
}

.price-card li .check svg {
  width: 12px;
  height: 12px;
}

.price-card .btn {
  margin-top: 30px;
}

/* ==========================================================================
   24. PORTFOLIO PAGE — FILTERS
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 12px 24px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.portfolio-grid.filtering .portfolio-card {
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.portfolio-grid.filtering .portfolio-card.hide {
  display: none;
}

/* ==========================================================================
   25. BLOG PAGE
   ========================================================================== */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: clamp(56px, 7vw, 80px);
}

.featured-post .media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.featured-post .media img,
.featured-post .media .ph-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.featured-post:hover .media img,
.featured-post:hover .media .ph-image {
  transform: scale(1.06);
}

.featured-post .content {
  padding: clamp(28px, 4vw, 48px);
}

.featured-post .content .cat {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.featured-post .content h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.featured-post .content p {
  margin-top: 14px;
  color: var(--muted);
}

.featured-post .content .read-more {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--red);
}

.featured-post .content .read-more svg {
  width: 15px;
  height: 15px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.pagination a:hover {
  border-color: var(--ink);
}

.pagination .current {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.pagination .next {
  width: auto;
  padding-inline: 20px;
  border-radius: var(--r-pill);
}

/* Categories sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 28px;
}

.side-widget {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.side-widget h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.side-widget .search-form {
  display: flex;
}

.side-widget .search-form input {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill) 0 0 var(--r-pill);
  background: var(--ivory);
}

.side-widget .search-form input:focus {
  outline: none;
  border-color: var(--red);
}

.side-widget .search-form button {
  padding: 0 18px;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: var(--ink);
  color: var(--ivory);
  display: grid;
  place-items: center;
}

.side-widget .search-form button svg {
  width: 16px;
  height: 16px;
}

.side-widget ul {
  display: grid;
  gap: 10px;
}

.side-widget ul a {
  display: flex;
  justify-content: space-between;
  font-size: 0.93rem;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  transition: color 0.3s var(--ease);
}

.side-widget ul a:hover {
  color: var(--red);
}

.side-widget ul a span {
  color: var(--muted);
}

.side-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-tag a {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.side-tag a:hover {
  background: var(--ink);
  color: var(--ivory);
}

/* ==========================================================================
   26. CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad-warm);
  color: #fff;
  flex-shrink: 0;
}

.contact-card .icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h3 {
  font-size: 1.08rem;
}

.contact-card p,
.contact-card a {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card a:hover {
  color: var(--red);
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.contact-socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.contact-socials a:hover {
  background: var(--ink);
  color: var(--ivory);
  transform: translateY(-3px);
}

.contact-socials svg {
  width: 19px;
  height: 19px;
}

/* Form */
.contact-form-wrap {
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form-wrap h3 {
  font-size: 1.5rem;
}

.contact-form-wrap .lead {
  margin-top: 8px;
  font-size: 0.98rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.form-grid .field {
  display: grid;
  gap: 8px;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

.form-grid label {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--ivory);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(179, 160, 131, 0.16);
}

.form-grid .hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.form-submit {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-success {
  display: none;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: rgba(179, 160, 131, 0.14);
  border: 1px solid rgba(179, 160, 131, 0.35);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-success.show {
  display: block;
  animation: fadeUp 0.5s var(--ease);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}

.faq-item.open {
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
}

.faq-q .plus {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}

.faq-q .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.open .plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-a p {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Map embed with brand overlay */
.map-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21 / 6;
  background: var(--cream);
}

.map-wrap .map-embed,
.map-wrap #map {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Fallback sem API key: tinge o iframe com os tons creme/tan do tema */
.map-wrap .map-embed {
  filter: grayscale(1) sepia(0.45) saturate(0.6) brightness(1.05) contrast(0.95) hue-rotate(5deg);
}

/* Container do mapa estilizado por js/map.js (ativado quando há API key) */
.map-wrap #map {
  display: none;
}

.map-wrap #map.is-active {
  display: block;
}

.map-wrap .map-brand {
  position: absolute;
  left: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: rgba(255, 253, 249, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.map-wrap .map-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-warm);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.map-wrap .map-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.map-wrap .map-brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.map-wrap .map-brand-text strong em {
  color: var(--accent);
  font-style: normal;
}

.map-wrap .map-brand-text span {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ==========================================================================
   27. REVEAL ANIMATIONS
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

[data-reveal="zoom"] {
  transform: scale(0.94);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

.hero-enter {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.9s var(--ease) forwards;
}

.hero-enter:nth-child(1) { animation-delay: 0.05s; }
.hero-enter:nth-child(2) { animation-delay: 0.15s; }
.hero-enter:nth-child(3) { animation-delay: 0.25s; }
.hero-enter:nth-child(4) { animation-delay: 0.35s; }
.hero-enter:nth-child(5) { animation-delay: 0.45s; }

/* ==========================================================================
   27A. ELEMENTOR EDITOR — sempre mostrar o conteúdo no canvas
   ========================================================================== */
/* O reveal ([data-reveal]) depende do JS adicionar a classe .revealed.
   No canvas do Elementor isso não dispara para widgets adicionados/recriados,
   então forçamos visibilidade dentro do editor (e desligamos as animações). */
body.elementor-editor-active [data-reveal],
body.elementor-editor-preview [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body.elementor-editor-active .hero-enter,
body.elementor-editor-preview .hero-enter {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   28. RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid,
  .pricing-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  /* Keep the desktop navbar from getting cramped mid-width */
  .main-nav {
    gap: 20px;
  }

  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  /* Offcanvas trigger is desktop-only; mobile uses .nav-toggle */
  .nav-offcanvas-btn {
    display: none;
  }

  .main-nav {
    /* Sized with viewport units instead of inset so it always covers the
       whole screen — the scrolled header's backdrop-filter makes it a
       containing block for fixed descendants, which would shrink inset:0. */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh; /* matches the visible viewport on mobile */
    z-index: 110;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 60px var(--gutter);
    background: var(--ivory);
    transform: translateY(-100%);
    transition: transform 0.55s var(--ease);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links a {
    font-size: 1.7rem;
    font-family: var(--font-display);
  }

  /* Mobile submenus (acordeão dentro do menu fullscreen) */
  .nav-links .menu-item-has-children > a::before {
    display: none;
  }

  .nav-links .submenu-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    color: var(--accent);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
  }

  .nav-links .submenu-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease);
  }

  .nav-links .menu-item-has-children.open > .submenu-toggle svg {
    transform: rotate(180deg);
  }

  .nav-links .sub-menu {
    position: static;
    min-width: 0;
    margin: 4px 0 4px 14px;
    padding: 0 0 0 14px;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-links .menu-item-has-children.open > .sub-menu {
    display: block;
  }

  .nav-links .sub-menu a {
    font-size: 1.3rem;
    font-family: var(--font-display);
    padding: 8px 2px;
    white-space: normal;
    border-radius: 0;
  }

  .nav-links .sub-menu a:hover {
    background: transparent;
    color: var(--accent);
  }

  .nav-cta {
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  html.nav-open,
  body.nav-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .hero-card--top {
    left: -6px;
  }

  .hero-card--bottom {
    right: -6px;
  }

  .about-grid,
  .about-page-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }

  .about-quote-card {
    left: 12px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-visual {
    max-width: 420px;
    margin-inline: auto;
  }

  .service-feature {
    grid-template-columns: 1fr;
  }

  .service-feature--reverse .service-media {
    order: 0;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post .media {
    aspect-ratio: 16 / 9;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  /* .search-form{
    flex-direction: column;
  } */

  .btn-search{
    padding: 14px 13px;
    font-size: 0.75rem;
  }

  .services-grid,
  .pricing-grid,
  .portfolio-grid,
  .process-grid,
  .values-grid,
  .journal-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-list {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-card {
    padding: 12px 14px;
  }

  .hero-card .icon {
    width: 36px;
    height: 36px;
  }

  .hero-rotate-badge {
    width: 96px;
    height: 96px;
    top: -24px;
    right: -12px;
  }

  .cta-form,
  .newsletter-form {
    flex-direction: column;
  }

  .cta-form .field,
  .newsletter-form .field {
    min-width: 0;
    width: 100%;
  }

  .cta-form .btn,
  .newsletter-form .btn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .field--full {
    grid-column: auto;
  }

  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 40px);
  }
}

/* ==========================================================================
   28A. HERO SLIDER — home-2 (full-screen parallax image slider, like reference)
   ========================================================================== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 620px;
  background: var(--ink);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 0s 1s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s var(--ease), visibility 0s;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  will-change: transform;
}

.hero-slide.is-active .hero-slide-bg {
  animation: heroZoom 8s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.2); }
  to { transform: scale(1.08); }
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(49, 51, 48, 0.55) 0%,
    rgba(49, 51, 48, 0.22) 45%,
    rgba(49, 51, 48, 0.62) 100%
  );
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px var(--gutter) 90px;
  color: var(--ivory);
}

.hero-slide-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #e3d2b8;
  opacity: 0;
  transform: translateY(24px);
}

.hero-slide.is-active .hero-slide-eyebrow {
  animation: heroFadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-slide-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 10vw, 12rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ivoryText);
  max-width: 12ch;
}

.hero-slide-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-slide-title .word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.09s + 0.25s);
}

.hero-slide.is-active .hero-slide-title .word-inner {
  transform: translateY(0);
}

.hero-slide-sub {
  margin-top: 24px;
  max-width: 620px;
  font-size: clamp(0.92rem, 1.3vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.85);
  opacity: 0;
  transform: translateY(28px);
}

.hero-slide.is-active .hero-slide-sub {
  animation: heroFadeUp 1s var(--ease) 0.55s forwards;
}

.hero-slide-cta {
  margin-top: 36px;
  opacity: 0;
  transform: translateY(28px);
}

.hero-slide.is-active .hero-slide-cta {
  animation: heroFadeUp 1s var(--ease) 0.7s forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 253, 249, 0.8);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-scroll-hint .line {
  width: 1px;
  height: 46px;
  background: rgba(255, 253, 249, 0.3);
  overflow: hidden;
  position: relative;
}

.hero-scroll-hint .line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ivory);
  animation: scrollLine 2.2s var(--ease) infinite;
}

@keyframes scrollLine {
  to { top: 100%; }
}

/* Dots */
.hero-slider .s-dots {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(26px, 4vw, 48px);
  z-index: 6;
  display: flex;
  gap: 10px;
}

.hero-slider .s-dots button {
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 253, 249, 0.3);
  transition: background 0.3s var(--ease);
}

.hero-slider .s-dots button.active {
  background: var(--ivory);
}

/* Controls: pagination + progress + arrows */
.hero-slider .controls {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: clamp(22px, 4vw, 46px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-slider .s-pagination {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ivory);
  font-family: var(--font-body);
}

.hero-slider .s-pagination .current {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.hero-slider .s-pagination .sep {
  color: rgba(255, 253, 249, 0.6);
  font-size: 1rem;
}

.hero-slider .s-pagination .total {
  font-size: 1rem;
  color: rgba(255, 253, 249, 0.6);
}

.hero-slider .s-progress {
  width: 90px;
  height: 2px;
  background: rgba(255, 253, 249, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.hero-slider .s-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ivory);
  transform-origin: left;
  transform: scaleX(0);
}

.hero-slider .s-progress i.anim {
  animation: sProgress var(--autoplay, 5s) linear forwards;
}

@keyframes sProgress {
  to { transform: scaleX(1); }
}

.hero-slider .s-arrows {
  display: flex;
  gap: 10px;
}

.hero-slider .s-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 249, 0.35);
  color: var(--ivory);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-slider .s-arrow:hover {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
  transform: translateY(-2px);
}

.hero-slider .s-arrow svg {
  width: 18px;
  height: 18px;
}

/* Light header over the dark slider */
body.header-light .site-header:not(.is-scrolled) .brand,
body.header-light .site-header:not(.is-scrolled) .nav-links a {
  color: var(--ivory);
}

body.header-light .site-header:not(.is-scrolled) .nav-links a::after {
  background: var(--ivory);
}

body.header-light .site-header:not(.is-scrolled) .nav-toggle {
  border-color: rgba(255, 253, 249, 0.08);
}

body.header-light .site-header:not(.is-scrolled) .nav-toggle span {
  background: var(--ivory);
}

/* search + offcanvas icons over the dark hero */
body.header-light .site-header:not(.is-scrolled) .icon-btn {
  border-color: rgba(255, 253, 249, 0.08);
  color: var(--ivory);
}

body.header-light .site-header:not(.is-scrolled) .nav-offcanvas-btn span {
  background: var(--ivory);
}

body.header-light .site-header:not(.is-scrolled) .icon-btn:hover {
  color: #fff;
}

/* keep mobile menu readable when opened over the light overlay */
body.header-light .main-nav.open .nav-links a {
  color: var(--ink-soft);
}

body.header-light .main-nav.open .nav-links a:hover {
  color: var(--ink);
}

body.header-light .main-nav.open .nav-links a.active {
  color: var(--ink);
}

/* When the mobile menu is open, header-actions icons must be dark (#000)
   so they stay visible over the ivory menu overlay (mobile only — the menu
   only opens via .nav-toggle on mobile). */
body.nav-open .site-header .header-actions .icon-btn {
  color: #000;
  border-color: var(--line-strong);
}

body.nav-open .site-header .header-actions .icon-btn:hover {
  color: #fff;
}

body.nav-open .site-header .header-actions .nav-toggle {
  border-color: var(--line-strong);
}

body.nav-open .site-header .header-actions .nav-toggle span {
  background: #000;
}

/* hero slider responsiveness */
@media (max-width: 900px) {
  .hero-slider {
    height: 92vh;
  }

  .hero-slider .s-dots {
    display: none;
  }

  .hero-slider .controls {
    right: 16px;
    bottom: 18px;
    gap: 12px;
  }

  .hero-slider .s-progress {
    width: 60px;
  }
}

/* ==========================================================================
   28B. BLOG SECTION — home-3 (like the reference blog)
   ========================================================================== */
.blog-section {
  position: relative;
  overflow: hidden;
}

.blog-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.blog-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.06em;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.blog-head .w--accent {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  margin-inline: 0.05em;
}

.blog-subhead {
  margin-top: 16px;
  max-width: 520px;
  color: var(--muted);
}

/* Latest — horizontal cover carousel (scroll-snap) */
.latest {
  position: relative;
}

.latest-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.latest-viewport::-webkit-scrollbar {
  display: none;
}

.latest-track {
  display: flex;
  width: max-content;
}

.latest-card {
  flex: 0 0 auto;
  width: clamp(260px, 27vw, 360px);
  scroll-snap-align: start;
  padding-right: 24px;
}

.latest-card .cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.latest-card .cover .ph-image,
.latest-card .cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.latest-card .cover:hover img {
  transform: scale(1.07);
}

.latest-card .cover .cat {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 253, 249, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.latest-card .cover .ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(49, 51, 48, 0) 35%, rgba(49, 51, 48, 0.78) 100%);
  color: var(--ivory);
}

.latest-card .cover .ov .meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 253, 249, 0.72);
}

.latest-card .cover .ov h3 {
  margin-top: 8px;
  color: var(--ivory);
  font-size: 1.45rem;
  line-height: 1.2;
}

.latest-arrows {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.latest-arrows .c-arrow {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.latest-arrows .c-arrow:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.latest-arrows .c-arrow svg {
  width: 18px;
  height: 18px;
}

/* Journal — full-width vertical list */
.journal-list {
  display: grid;
  gap: 28px;
  margin-top: clamp(48px, 6vw, 72px);
}

.j-list-item {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.j-list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.j-list-item .media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.j-list-item .media .ph-image,
.j-list-item .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.j-list-item:hover .media img {
  transform: scale(1.06);
}

.j-list-item .content {
  padding: clamp(26px, 4vw, 48px);
}

.j-list-item .content .cat {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.j-list-item .content .meta {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.j-list-item .content h3 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.12;
}

.j-list-item .content p {
  margin-top: 14px;
  color: var(--muted);
}

.j-list-item .content .read-more {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

.j-list-item .content .read-more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.j-list-item .content .read-more:hover svg {
  transform: translateX(4px);
}

/* alternate rows */
.j-list-item--rev {
  grid-template-columns: 1.05fr 0.95fr;
}

.j-list-item--rev .media {
  order: 2;
}

@media (max-width: 900px) {
  .j-list-item,
  .j-list-item--rev {
    grid-template-columns: 1fr;
  }

  .j-list-item--rev .media {
    order: 0;
  }

  .j-list-item .media {
    aspect-ratio: 16 / 10;
  }
}

/* Blog top slider — shorter full-width variant of the hero slider */
.hero-slider--blog {
  height: clamp(440px, 62vh, 620px);
  min-height: 400px;
}

.hero-slider--blog .hero-slide-content {
  align-items: flex-start;
  text-align: left;
  justify-content: center;
  max-width: 780px;
  padding-top: 130px;
  padding-bottom: 80px;
}

.hero-slider--blog .hero-slide-title {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  max-width: 25ch;
}

.hero-slider--blog .hero-slide-eyebrow {
  letter-spacing: 0.2em;
}

/* Blog posts grid — two per line */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

/* Blog sidebar — author + categories with images */
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 28px;
}

.side-author {
  padding: 30px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}

.side-author img {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  margin-inline: auto;
  border: 4px solid var(--cream);
}

.side-author h3 {
  margin-top: 16px;
  font-size: 1.5rem;
}

.side-author .role {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.side-author p {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.side-author .btn {
  margin-top: 18px;
}

.side-cats {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.side-cats h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.side-cats ul {
  display: grid;
  gap: 12px;
}

.side-cats li {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}

.side-cats li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-cats li a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}

.side-cats li a:hover {
  color: var(--accent);
}

.side-cats li a img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.side-cats li a .n {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   29. SINGLE POST — article layout
   ========================================================================== */
.page-hero--single .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 26px;
}

.page-hero--single .breadcrumb .sep {
  color: var(--red);
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.single-layout .blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 28px;
}

/* Article body typography */
.entry-content {
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--ink);
}

.entry-content > * + * {
  margin-top: 1.4em;
}

.entry-content h2 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 2.2em;
}

.entry-content h3 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 1.8em;
}

.entry-content p {
  margin-top: 1.4em;
}

.entry-content strong {
  color: var(--ink);
}

.entry-content a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(179, 160, 131, 0.45);
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

.entry-content a:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent);
}

.entry-content ul,
.entry-content ol {
  list-style: none;
  margin: 1.5em 0;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

.entry-content ul li {
  position: relative;
  padding-left: 30px;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-warm);
}

.entry-content ol {
  counter-reset: item;
}

.entry-content ol li {
  position: relative;
  padding-left: 40px;
  counter-increment: item;
}

.entry-content ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--red);
}

.entry-content blockquote {
  position: relative;
  margin: 2.2em 0;
  padding: 30px 34px 30px 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

.entry-content blockquote p {
  margin-top: 0;
}

.entry-content blockquote cite,
.entry-content blockquote figcaption {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.entry-content figure {
  margin: 2.2em 0;
}

.entry-content figure img,
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.entry-content figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* First paragraph drop cap */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--red);
}

@media (max-width: 1080px) {
  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-layout .blog-sidebar {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .single-layout .blog-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   30. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
