/*
Theme Name: LAMS Digital
Theme URI: https://lamsdigital.com/
Author: LAMS Digital
Author URI: https://lamsdigital.com/
Description: Custom theme for LAMS Digital — a technical content and SEO studio for B2B technology companies. Editable homepage, custom Work entries, and a category-organized blog.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lams-digital
*/

/* ==========================================================================
   LAMS Digital — Design system
   Palette: Burgundy / Dusty Rose / Ballet Blush / Warm Ivory / Espresso / Sage.
   Type: Cormorant Garamond (display) + DM Sans (UI/body).
   Colors and fonts below are defaults; Appearance > Customize > Brand Colors
   & Typography overrides them at runtime via inline CSS custom properties.
   ========================================================================== */

:root {
  /* brand colors (defaults — overridden by the Customizer at runtime) */
  --burgundy: #642D3C;
  --burgundy-dark: #4a2130;
  --dusty-rose: #D8A7A7;
  --ballet-blush: #EED9D5;
  --warm-ivory: #FAF7F2;
  --espresso: #302624;
  --sage: #A9B5A6;

  /* semantic tokens */
  --bg: var(--warm-ivory);
  --bg-alt: var(--ballet-blush);
  --text: var(--espresso);
  --text-muted: #6b5c58;
  --accent: var(--burgundy);
  --accent-soft: var(--dusty-rose);
  --line: rgba(48, 38, 36, 0.12);
  --surface: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1200px;
  --section-pad: clamp(64px, 9vw, 132px);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; }
p { margin: 0; }

/* Admin bar offset so the fixed header doesn't sit under it */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.alignwide { max-width: calc(var(--container-w) + 120px); margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  color: var(--espresso);
  margin: 0 0 8px;
}
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease), opacity 0.3s var(--ease);
}
.text-link:hover { gap: 12px; }

/* ---------- buttons (also matches WP core Button block output) ---------- */
.btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:active, .wp-block-button__link:active { transform: scale(0.97); }
.btn-primary,
.wp-block-button__link {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(100, 45, 60, 0.55);
}
.btn-primary:hover,
.wp-block-button__link:hover {
  background: var(--burgundy-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(100, 45, 60, 0.6);
}
.btn-outline,
.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--espresso);
  border-color: var(--line);
  box-shadow: none;
}
.btn-outline:hover,
.is-style-outline .wp-block-button__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  transform: translateY(-2px);
}
.btn-sm { padding: 11px 22px; font-size: 0.85rem; }
.btn-full { width: 100%; padding: 17px 30px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(48, 38, 36, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark img.custom-logo { height: 40px; width: auto; display: block; }
.logo-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--espresso);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 38px); }
.main-nav li { position: relative; }
.main-nav a,
.mobile-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  transition: right 0.35s var(--ease);
}
.main-nav a:hover,
.main-nav li.current-menu-item > a,
.main-nav li.current-menu-ancestor > a { color: var(--espresso); }
.main-nav a:hover::after,
.main-nav li.current-menu-item > a::after,
.main-nav li.current-menu-ancestor > a::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--espresso);
  margin: 0 auto;
  transition: transform 0.35s var(--ease), opacity 0.35s 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); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--warm-ivory);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.mobile-nav.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav ul { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.7rem; color: var(--espresso); }
.mobile-nav li.current-menu-item > a { color: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(140px, 20vw, 200px) 0 clamp(80px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -12%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at center, rgba(216, 167, 167, 0.35), rgba(216, 167, 167, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.08;
  color: var(--espresso);
  margin: 0 0 26px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-media { position: relative; justify-self: center; }
.hero-photo-frame {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  background: var(--ballet-blush);
  box-shadow: 0 40px 70px -30px rgba(100, 45, 60, 0.4);
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  animation: photo-in 1.4s var(--ease) both;
}
.hero-accent { position: absolute; color: var(--accent); pointer-events: none; }
.hero-accent--sparkle {
  top: -6%;
  left: -8%;
  width: 52px; height: 52px;
  animation: sparkle-float 5s ease-in-out infinite;
}
.hero-accent--ring {
  bottom: -8%;
  right: -10%;
  width: 130px; height: 130px;
  border: 1.5px solid var(--dusty-rose);
  border-radius: 50%;
}

@keyframes photo-in {
  from { transform: scale(1.12); filter: saturate(0.85); }
  to { transform: scale(1); filter: saturate(1); }
}
@keyframes sparkle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(12deg); }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-section {
  padding: 40px 0 clamp(56px, 7vw, 90px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.marquee {
  overflow: hidden;
  -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;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 84px);
  padding-right: clamp(48px, 6vw, 84px);
}
.marquee-group img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}
.marquee-group img:hover { transform: translateY(-2px); }

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

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: var(--section-pad) 0; }
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}
.about-media { position: relative; }
.about-photo-frame {
  width: min(340px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ballet-blush);
}
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about-stat {
  position: absolute;
  right: -18px;
  bottom: -24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  box-shadow: 0 20px 40px -24px rgba(48, 38, 36, 0.3);
  text-align: center;
  min-width: 130px;
}
.about-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.about-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-copy p { color: var(--text-muted); margin-bottom: 20px; max-width: 58ch; }
.about-copy .section-title { color: var(--espresso); margin-bottom: 22px; }

/* ==========================================================================
   Services / generic section backgrounds
   ========================================================================== */
.services { padding: var(--section-pad) 0; background: var(--bg-alt); }

/* ==========================================================================
   Experience / Testimonials
   ========================================================================== */
.experience { padding: var(--section-pad) 0; }
.stat-row {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 7vw, 90px);
  flex-wrap: wrap;
  margin-bottom: clamp(56px, 7vw, 90px);
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 16ch;
}

.testimonial-carousel { max-width: 760px; margin: 0 auto; }
.testimonial-track { display: grid; }
.testimonial-card {
  grid-area: 1 / 1;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px);
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.testimonial-card.is-active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.testimonial-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--espresso);
  flex-shrink: 0;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.testimonial-arrow svg { width: 18px; height: 18px; }
.testimonial-arrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.testimonial-dots { display: flex; align-items: center; gap: 10px; }
.testimonial-dot {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%;
  background: var(--dusty-rose); opacity: 0.45;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), width 0.3s var(--ease);
}
.testimonial-dot:hover { opacity: 0.8; }
.testimonial-dot.is-active { opacity: 1; background: var(--accent); width: 22px; border-radius: 5px; }
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--espresso);
  margin-bottom: 24px;
}
.testimonial-card footer { display: flex; align-items: center; gap: 12px; }
.testimonial-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-card cite { display: block; font-style: normal; font-weight: 700; font-size: 0.92rem; color: var(--espresso); }
.testimonial-card footer span { font-size: 0.82rem; color: var(--text-muted); }

/* ==========================================================================
   Why
   ========================================================================== */
.why { padding: var(--section-pad) 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-item {
  padding: 30px 24px;
  border-top: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 24px 40px -32px rgba(48, 38, 36, 0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.why-item:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(48, 38, 36, 0.3); }
.why-item h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--espresso); }
.why-item p { font-size: 0.92rem; color: var(--text-muted); }

/* ==========================================================================
   Contact (homepage band + dedicated Contact page)
   ========================================================================== */
.contact { padding: var(--section-pad) 0; background: var(--burgundy); color: var(--warm-ivory); position: relative; overflow: hidden; }
.contact::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at center, rgba(216, 167, 167, 0.18), transparent 70%);
  border-radius: 50%;
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; position: relative; }
.contact .eyebrow { color: var(--dusty-rose); }
.contact .section-title { color: var(--warm-ivory); }
.contact-copy > p { color: rgba(250, 247, 242, 0.78); max-width: 42ch; margin-bottom: 28px; font-size: 1.05rem; }
.contact-form {
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.18);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  backdrop-filter: blur(6px);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.75);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: rgba(250, 247, 242, 0.95);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--espresso);
  resize: vertical;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #9a8a86; }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--dusty-rose);
  box-shadow: 0 0 0 4px rgba(216, 167, 167, 0.25);
}
.form-row--hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.form-status { margin-top: 16px; font-size: 0.9rem; min-height: 1.4em; }
.form-status[data-state="success"] { color: #cfe3d0; }
.form-status[data-state="error"] { color: #f3c6c6; }

.contact-page { padding: clamp(140px, 18vw, 190px) 0 var(--section-pad); }
.contact-copy .eyebrow { margin-top: 0; }
.contact-copy h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.12; margin-bottom: 20px; }
.contact-page-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-direct { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.contact-direct a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--espresso); transition: color 0.3s var(--ease); }
.contact-direct a:hover { color: var(--accent); }
.contact-direct svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-page .contact-form { background: var(--surface); border-color: var(--line); }
.contact-page .contact-form .form-row label { color: var(--text-muted); }
.contact-page .contact-form input, .contact-page .contact-form textarea { background: var(--bg-alt); }
.contact-page .form-status[data-state="success"] { color: #3f6b45; }
.contact-page .form-status[data-state="error"] { color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--espresso); color: rgba(250, 247, 242, 0.75); padding: 56px 0 28px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.14);
}
.footer-inner .logo-monogram { color: var(--dusty-rose); }
.footer-inner .logo-name { color: var(--warm-ivory); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--warm-ivory); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.2);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-social a:hover { border-color: var(--dusty-rose); background: rgba(216, 167, 167, 0.12); }
.footer-bottom { padding-top: 24px; font-size: 0.82rem; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Content is visible by default — JS opts elements INTO the hidden
   pre-animation state (.reveal-armed) only once it's actually running and
   about to animate them in. This keeps content visible with no JS at all
   (crawlers, no-JS visitors, and the WordPress block editor's preview,
   which never runs front-end scripts). */
[data-reveal] { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].reveal-armed { opacity: 0; transform: translateY(28px); }
[data-reveal].reveal-armed.is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero { position: relative; padding: clamp(140px, 18vw, 190px) 0 clamp(56px, 7vw, 90px); overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute;
  top: -14%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(216, 167, 167, 0.3), rgba(216, 167, 167, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}
.page-hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.12; max-width: 18ch; margin-bottom: 20px; }
.page-hero-sub { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--text-muted); max-width: 62ch; }

/* ==========================================================================
   Who we help (tag row)
   ========================================================================== */
.who-help { padding: clamp(48px, 6vw, 80px) 0; }
.who-help-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 70px); align-items: start; }
.who-help h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); max-width: 14ch; }
.who-help-copy p { color: var(--text-muted); max-width: 58ch; margin-bottom: 22px; }
.icp-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.icp-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ==========================================================================
   Service clusters
   ========================================================================== */
.service-clusters { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-cluster { background: var(--surface); padding: clamp(30px, 4vw, 48px); display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(24px, 4vw, 56px); }
.service-cluster-head h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); margin-bottom: 10px; color: var(--espresso); }
.service-cluster-head p { color: var(--text-muted); font-size: 0.95rem; max-width: 34ch; }
.service-cluster-list { display: flex; flex-direction: column; gap: 18px; }
.service-cluster-list li { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.service-cluster-list li:last-child { border-bottom: none; padding-bottom: 0; }
.service-cluster-list h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--espresso); }
.service-cluster-list p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Packages
   ========================================================================== */
.packages { padding: var(--section-pad) 0; background: var(--bg-alt); }
.packages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.package-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 34px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.package-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(48, 38, 36, 0.3); }
.package-card--featured { border-color: var(--accent); position: relative; }
.package-card--featured::before {
  content: 'Most requested';
  position: absolute;
  top: -13px;
  left: clamp(26px, 3vw, 34px);
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.package-name { font-size: 1.35rem; color: var(--espresso); margin-bottom: 6px; }
.package-for { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 18px; min-height: 2.6em; }
.package-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.package-includes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex-grow: 1; }
.package-includes li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.45; }
.package-includes li svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; color: var(--sage); }
.package-card .btn,
.package-card .wp-block-button__link { width: 100%; }

/* ==========================================================================
   Process
   ========================================================================== */
.process { padding: var(--section-pad) 0; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.process-step { position: relative; padding: 0 clamp(16px, 2vw, 28px) 0 0; border-right: 1px solid var(--line); }
.process-step:last-child { border-right: none; padding-right: 0; }
.process-step-number { font-family: var(--font-display); font-style: italic; font-size: 2.4rem; color: var(--dusty-rose); line-height: 1; display: block; margin-bottom: 16px; }
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--espresso); }
.process-step p { font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================================================
   FAQ (also matches WP core Details block output)
   ========================================================================== */
.faq { padding: var(--section-pad) 0; background: var(--bg-alt); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item,
.faq-list .wp-block-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 26px;
}
.faq-item summary,
.faq-list .wp-block-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-weight: 700;
  color: var(--espresso);
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker,
.faq-list .wp-block-details summary::-webkit-details-marker { display: none; }
.faq-item summary::after,
.faq-list .wp-block-details summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
  line-height: 1;
}
.faq-item[open] summary::after,
.faq-list .wp-block-details[open] summary::after { transform: rotate(45deg); }
.faq-item p,
.faq-list .wp-block-details p { color: var(--text-muted); padding: 0 0 22px; max-width: 62ch; margin: 0; }

/* ==========================================================================
   Final CTA band
   ========================================================================== */
.final-cta { padding: var(--section-pad) 0; background: var(--burgundy); color: var(--warm-ivory); text-align: center; position: relative; overflow: hidden; }
.final-cta::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at center, rgba(216, 167, 167, 0.18), transparent 70%);
  border-radius: 50%;
}
.final-cta-inner { position: relative; max-width: 700px; margin: 0 auto; }
.final-cta .eyebrow { color: var(--dusty-rose); }
.final-cta h2 { color: var(--warm-ivory); font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.final-cta p { color: rgba(250, 247, 242, 0.8); font-size: 1.05rem; margin-bottom: 32px; }
.final-cta .btn-outline,
.final-cta .is-style-outline .wp-block-button__link { color: var(--warm-ivory); border-color: rgba(250, 247, 242, 0.35); }
.final-cta .btn-outline:hover,
.final-cta .is-style-outline .wp-block-button__link:hover { border-color: var(--warm-ivory); color: var(--warm-ivory); background: rgba(250, 247, 242, 0.08); }

/* ==========================================================================
   Work page (Work Entry custom post type)
   ========================================================================== */
.work-entries { display: flex; flex-direction: column; }
.work-entry {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.work-entry:first-child { padding-top: 0; }
.work-entry-meta h3 { font-size: 1.5rem; color: var(--espresso); margin-bottom: 10px; }
.work-entry-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work-entry-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-alt);
  padding: 5px 12px;
  border-radius: 999px;
}
.work-entry-body p { color: var(--text-muted); margin-bottom: 18px; max-width: 62ch; }
.work-entry-body ul { display: flex; flex-direction: column; gap: 4px; }
.work-entry-links a,
.work-entry-body ul a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--espresso);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.work-entry-links a:last-child { border-bottom: none; }
.work-entry-links a:hover,
.work-entry-body ul a:hover { color: var(--accent); padding-left: 6px; }

/* ==========================================================================
   Blog listing (category-grouped) + single post
   ========================================================================== */
.blog-intro { max-width: 62ch; color: var(--text-muted); }
.blog-category { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.blog-category:first-of-type { border-top: none; }
.blog-category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.blog-category-head h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--espresso); }
.blog-category-head p { color: var(--text-muted); font-size: 0.92rem; max-width: 46ch; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 32px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(48, 38, 36, 0.3); }
.blog-card-meta { display: flex; align-items: center; gap: 10px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.blog-card-meta span:first-child { color: var(--accent); }
.blog-card-thumb { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; aspect-ratio: 16/10; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card h3 { font-size: 1.3rem; color: var(--espresso); margin-bottom: 10px; }
.blog-card h3 a { transition: color 0.3s var(--ease); }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 18px; flex-grow: 1; }
.blog-card-more { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--accent); }
.blog-empty-note { color: var(--text-muted); font-size: 0.92rem; font-style: italic; padding: 20px 0; }

.post { padding: 0 0 var(--section-pad); }
.post-header { padding: clamp(140px, 18vw, 190px) 0 clamp(40px, 5vw, 60px); }
.post-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 24px; transition: color 0.3s var(--ease); }
.post-back:hover { color: var(--accent); }
.post-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.post-meta-row a { color: inherit; }
.post-meta-row span.post-date,
.post-meta-row span.post-author { color: var(--text-muted); text-transform: none; font-weight: 500; letter-spacing: normal; }
.post-title { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 20ch; line-height: 1.12; }
.post-featured-image { margin: 32px 0 8px; border-radius: var(--radius); overflow: hidden; }
.post-body { max-width: 700px; }
.post-body p { color: var(--text-muted); margin-bottom: 22px; font-size: 1.05rem; line-height: 1.75; }
.post-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--espresso); margin: 46px 0 18px; }
.post-body h3 { font-size: 1.2rem; color: var(--espresso); margin: 30px 0 14px; }
.post-body ul, .post-body ol { color: var(--text-muted); margin: 0 0 22px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 1.02rem; line-height: 1.6; list-style: revert; }
.post-body img { border-radius: var(--radius-sm); margin: 12px 0; }
.post-body a { color: var(--accent); font-weight: 600; border-bottom: 1px solid currentColor; }
.post-body strong { color: var(--espresso); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; max-width: 700px; }
.post-tags a {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: var(--bg-alt); padding: 6px 14px; border-radius: 999px;
}
.post-cta { margin-top: 48px; padding: clamp(28px, 3vw, 38px); background: var(--bg-alt); border-radius: var(--radius); max-width: 700px; }
.post-cta p { color: var(--text-muted); margin-bottom: 18px; }
.post-cta p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Selected Work preview (Home page grid — separate from the Work Entry
   listing on the dedicated Work page, which uses .work-entries/.work-entry)
   ========================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 70px);
}
.work-category h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.work-category ul { display: flex; flex-direction: column; }
.work-category li { border-bottom: 1px solid var(--line); }
.work-category li:last-child { border-bottom: none; }
.work-category a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  font-weight: 500;
  color: var(--espresso);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.work-category a:hover { color: var(--accent); padding-left: 8px; }
.work-category a span {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.work-category a:hover span { color: var(--dusty-rose); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-step:nth-child(2) { border-right: none; }
  .service-cluster { grid-template-columns: 1fr; }
  .service-cluster-list li { grid-template-columns: 130px 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions .btn-primary.btn-sm { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-media { justify-self: start; margin-top: 8px; }

  .about-inner { grid-template-columns: 1fr; }
  .about-media { justify-self: center; margin-bottom: 20px; }

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

  .who-help-inner { grid-template-columns: 1fr; }
  .work-entry { grid-template-columns: 1fr; }
  .contact-page-inner { grid-template-columns: 1fr; }
  .post-title { max-width: none; }
}

@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 28px 40px; }
  .hero-photo-frame { width: min(300px, 70vw); }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .packages-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none !important; padding-right: 0; }
  .service-cluster-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ==========================================================================
   WordPress core alignment helpers used inside the block editor content
   ========================================================================== */
.entry-content > * { max-width: 100%; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}
