/* ============================================
   DESIGN TOKENS — change colors/sizes here
   ============================================ */
:root {
  /* Brand palette */
  --color-eggshell: #F4EFE6;
  --color-burgundy: #7A1F2B;
  --color-burgundy-dark: #5C1620;
  --color-charcoal: #2A2422;
  --color-taupe: #A8967A;
  --color-muted: #6B6259;
  --color-line: rgba(42, 36, 34, 0.12);

  /* Typography */
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;

  /* Spacing & shape */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --section-pad-y: 110px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms var(--ease);
  --transition-med: 350ms var(--ease);
  --transition-fast: 200ms var(--ease);
}

/* ============================================
   RESET & BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-eggshell);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 1100px) {
  .container { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  background-color: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-charcoal);
  text-decoration: none;
  letter-spacing: 0.3px;
  z-index: 1000;
  transition: opacity 200ms var(--ease);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-charcoal);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background-color: var(--color-burgundy);
  transition: width var(--transition-med);
}
.nav-links a:hover {
  color: var(--color-burgundy);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1020;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 2px;
  transition: background-color var(--transition-fast);
}
.nav-toggle:hover {
  background-color: rgba(122, 31, 43, 0.06);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-charcoal);
  transition: transform var(--transition-med),
              opacity var(--transition-med);
}

/* Animate the bars into an X when menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE: hamburger replaces inline links */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  /* The menu panel: hidden by default, slides in from right */
  #primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background-color: var(--color-eggshell);
    border-left: 1px solid var(--color-line);
    box-shadow: -10px 0 40px rgba(42, 36, 34, 0.12);
    transform: translateX(100%);
    transition: transform 400ms var(--ease);
    z-index: 1010;
    padding: 100px 36px 36px;
  }
  #primary-nav[data-open="true"] {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .nav-links a {
    font-family: var(--font-display);
    font-size: 22px;
    padding: 12px 0;
    display: inline-block;
  }
  .nav-links a::after {
    bottom: 6px;
  }

  /* Backdrop overlay behind the menu */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(42, 36, 34, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms var(--ease);
    z-index: 999;
  }
  .nav-backdrop[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
  }

  /* Prevent body scroll when menu is open */
  body.nav-open {
    overflow: hidden;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Image layer */
.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("Images/dzovana-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(0px);
  transition: filter var(--transition-slow), transform var(--transition-slow);
  z-index: 0;
}

/* Default eggshell wash — slightly stronger now that text sits directly on it */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(244, 239, 230, 0.85) 0%,
    rgba(244, 239, 230, 0.65) 55%,
    rgba(244, 239, 230, 0.45) 100%
  );
  transition: background var(--transition-slow), opacity var(--transition-slow);
  z-index: 1;
}

/* Clarity → image becomes sharp, overlay thins */
.hero[data-mode="clarity"] .hero-image {
  filter: blur(0.5px) saturate(1.05);
  transform: scale(1.02);
}
.hero[data-mode="clarity"] .hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(244, 239, 230, 0.55) 0%,
    rgba(244, 239, 230, 0.3) 55%,
    rgba(244, 239, 230, 0.15) 100%
  );
}

/* Complexity → image becomes murkier, overlay thickens */
.hero[data-mode="complexity"] .hero-image {
  filter: blur(14px) saturate(0.7);
  transform: scale(1.05);
}
.hero[data-mode="complexity"] .hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(244, 239, 230, 0.9) 0%,
    rgba(244, 239, 230, 0.8) 55%,
    rgba(244, 239, 230, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* No more box — text sits directly on the image */
.hero-text {
  max-width: 1000px;
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Make sure long words/headlines never overflow the container */
.hero-headline,
.hero-sub {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: none;
}

/* Burgundy anchor mark above the eyebrow */
.hero-mark {
  display: block;
  width: 56px;
  height: 2px;
  background-color: var(--color-burgundy);
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-muted);
  margin-bottom: 36px;
  font-weight: 500;
}

/* Bigger, more confident headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--color-charcoal);
  margin-bottom: 40px;
  /* Subtle text shadow keeps readability when overlay thins on hover */
  text-shadow: 0 1px 2px rgba(244, 239, 230, 0.6);
}

/* The closing clause */
.headline-soft {
  display: block;
  margin-top: 14px;
  font-style: italic;
  color: var(--color-muted);
  font-size: 0.55em;
  letter-spacing: -0.5px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(244, 239, 230, 0.6);
}

/* Interactive accent words */
.accent-word {
  color: var(--color-burgundy);
  font-weight: 500;
  position: relative;
  cursor: pointer;
  transition: color var(--transition-med);
  display: inline-block;
}
.accent-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  background-color: var(--color-burgundy);
  transform: scaleX(0.2);
  transform-origin: left;
  opacity: 0.4;
  transition: transform var(--transition-med), opacity var(--transition-med);
}
.accent-word:hover,
.accent-word:focus-visible {
  color: var(--color-burgundy-dark);
  outline: none;
}
.accent-word:hover::after,
.accent-word:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--color-charcoal);
  margin-bottom: 48px;
  max-width: 620px;
  line-height: 1.55;
  text-shadow: 0 1px 2px rgba(244, 239, 230, 0.5);
}
.hero-sub strong {
  font-weight: 600;
  color: var(--color-burgundy);
}

/* CTA row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 34px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  transition: background-color var(--transition-med),
              transform var(--transition-med),
              box-shadow var(--transition-med);
}
.btn--primary {
  background-color: var(--color-burgundy);
  color: var(--color-eggshell);
  box-shadow: 0 4px 18px rgba(122, 31, 43, 0.22);
}
.btn--primary:hover {
  background-color: var(--color-burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(122, 31, 43, 0.32);
}
.btn--primary:hover .btn-arrow {
  transform: translateX(4px);
}
.btn-arrow {
  display: inline-block;
  transition: transform var(--transition-med);
  font-size: 17px;
}

.hero-hint {
  font-size: 13px;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
  letter-spacing: 0.3px;
  margin-top: 20px;
}
.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-burgundy);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

@media (hover: none) {
  .hero-hint { display: none; }
  .accent-word { cursor: default; }
}


/* ============================================
   GENERIC SECTIONS (placeholders for now)
   ============================================ */
.section {
  padding: var(--section-pad-y) 0;
  position: relative;
}
.section--light {
  background-color: #FBF8F2;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--color-charcoal);
  letter-spacing: -0.5px;
}
.section-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic;
  color: var(--color-charcoal);
  max-width: 760px;
  line-height: 1.4;
}
.placeholder-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--color-taupe);
  font-style: italic;
}
/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  /* Override default section padding for a more spacious feel */
  padding: 140px 0 120px;
}

.section-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-burgundy);
  font-weight: 500;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background-color: var(--color-burgundy);
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--color-charcoal);
  margin-bottom: 36px;
  max-width: 900px;
}

.about-headline-accent {
  color: var(--color-burgundy);
  font-style: italic;
}

.about-bridge {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 680px;
  margin-bottom: 72px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.about-card {
  background-color: var(--color-eggshell);
  padding: 40px 36px;
  border-radius: 4px;
  border: 1px solid var(--color-line);
  position: relative;
  /* A whisper of shadow at rest, so the card already feels like an object */
  box-shadow: 0 1px 2px rgba(42, 36, 34, 0.04);
  /* Initial state for scroll animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease),
              transform 700ms var(--ease),
              border-color var(--transition-med),
              box-shadow var(--transition-med);
  will-change: transform;
}

/* When card is visible (scroll-in complete) AND not hovered */
.about-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover lift — only applies after the card has settled into view */
.about-card.is-visible:hover {
  transform: translateY(-6px);
  border-color: var(--color-burgundy);
  box-shadow:
    0 12px 32px rgba(42, 36, 34, 0.10),
    0 2px 8px rgba(122, 31, 43, 0.06);
}


/* Stagger the cards — each fades in slightly after the previous */
.about-card[data-card="1"] { transition-delay: 0ms; }
.about-card[data-card="2"] { transition-delay: 120ms; }
.about-card[data-card="3"] { transition-delay: 240ms; }
.about-card[data-card="4"] { transition-delay: 360ms; }


.about-card-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-charcoal);
  margin-bottom: 18px;
  padding-bottom: 18px;
  letter-spacing: -0.3px;
  border-bottom: 1px solid var(--color-line);
  position: relative;
}

.about-card-title::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 1px;
  background-color: var(--color-burgundy);
  transition: width var(--transition-med);
}

.about-card:hover .about-card-title::before {
  width: 60px;
}

.about-card-body {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-muted);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .about-card {
    opacity: 1;
    transform: none;
    transition: border-color var(--transition-med),
                box-shadow var(--transition-med);
  }
}

/* Responsive */
@media (max-width: 860px) {
  .about-section { padding: 90px 0 80px; }
  .about-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-card { padding: 32px 28px; }
  .about-bridge { margin-bottom: 48px; }
}

/* ============================================
   TOOLS & METHODS — magazine credits style
   ============================================ */
.tools-section {
  padding: 70px 0 70px;
  background-color: var(--color-eggshell);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.tools-eyebrow {
  margin-bottom: 32px;
}

.tools-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tools-group {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line);
}
.tools-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tools-group-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--color-burgundy);
  letter-spacing: 0.3px;
  min-width: 110px;
  flex-shrink: 0;
}

.tools-items {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 14.5px;
  color: var(--color-charcoal);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Each item with a small burgundy dot separator between them */
.tools-items span {
  position: relative;
  padding: 4px 18px 4px 0;
  transition: color var(--transition-fast);
}
.tools-items span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-burgundy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.tools-items span:hover {
  color: var(--color-burgundy);
}

/* Responsive */
@media (max-width: 768px) {
  .tools-section { padding: 50px 0; }
  .tools-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .tools-group-label {
    min-width: 0;
  }
  .tools-items {
    font-size: 13px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-charcoal);
  color: var(--color-eggshell);
  text-align: center;
  padding: 28px 0;
}
.site-footer p {
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Responsive — intermediate (half-screen, small laptops) */
@media (max-width: 1100px) {
  .hero-headline {
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: -1.4px;
  }
  .hero-text { max-width: 100%; }
}

/* Responsive — tablet & narrow windows */
@media (max-width: 860px) {
  .hero-headline {
    font-size: clamp(36px, 6.5vw, 56px);
    letter-spacing: -1px;
    margin-bottom: 32px;
  }
  .headline-soft { font-size: 0.55em; }
  .hero-sub { font-size: 16px; margin-bottom: 36px; }
}

/* Responsive — mobile */
@media (max-width: 768px) {
  .hero-mark { margin-bottom: 22px; width: 40px; }
  .eyebrow { margin-bottom: 24px; font-size: 12px; letter-spacing: 2.2px; }
  .hero-headline {
    font-size: clamp(32px, 8vw, 48px);
    letter-spacing: -0.8px;
    margin-bottom: 28px;
  }
  .headline-soft { font-size: 0.55em; margin-top: 10px; }
  .hero-sub { margin-bottom: 32px; }
  .hero-cta-row { gap: 16px; }
  .btn { padding: 15px 26px; font-size: 14px; }
}
