/* ==========================================================================
   Feldstein Studio - Styles
========================================================================== */

/* --------------------------------------------------------------------------
   Font Faces - Self-hosted Variable Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans/DMSans-Variable.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces/Fraunces-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #FAF9F6;
  --color-text: #434343;
  --color-accent: #FF70A6;

  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Fraunces", Georgia, serif;
  --font-brand: "Special Elite", var(--font-body);

  --border-width: 3px;
  --max-width: 900px;
  --spacing-unit: 1.5rem;
}

/* --------------------------------------------------------------------------
   Font Face - Special Elite (Self-hosted)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Special Elite";
  src: url("/assets/fonts/special-elite/SpecialElite-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: var(--spacing-unit);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  border-bottom: none;
  padding-bottom: 0;
}

h2 {
  font-size: 2.25rem;
  margin-top: calc(var(--spacing-unit) * 2);
}

h3 {
  font-size: 1.5rem;
  margin-top: var(--spacing-unit);
  font-weight: 700;
}

p {
  margin-bottom: var(--spacing-unit);
}

main ul, main ol {
  margin-bottom: var(--spacing-unit);
  list-style-position: outside;
  padding-left: 1.25rem;
}

main li {
  margin-bottom: 0.5rem;
}


main li:last-child {
  margin-bottom: 0;
}



/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */
a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

main {
  flex: 1;
  padding: calc(var(--spacing-unit) * 2) 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: var(--border-width) solid var(--color-text);
  padding: var(--spacing-unit) 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-unit);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
}

.site-brand:hover,
.site-brand:focus {
  color: var(--color-accent);
}

.site-brand .logo {
  display: block;
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.site-brand span {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  max-width: 6rem;
}

/* --------------------------------------------------------------------------
   Mobile Menu Toggle
   -------------------------------------------------------------------------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-text);
  stroke-width: 2.5;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-hamburger {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.5);
}

.nav-links {
  display: flex;
  gap: var(--spacing-unit);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 700;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

/* Language Switch */
.lang-switch {
  display: flex;
  border: 2px solid var(--color-text);
}

.lang-switch a {
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
}

.lang-switch a[aria-current="true"] {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.lang-switch a:not([aria-current="true"]):hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: var(--border-width) solid var(--color-text);
  padding: var(--spacing-unit) 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-unit);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: var(--spacing-unit);
  list-style: none;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.hero {
  margin-bottom: calc(var(--spacing-unit) * 2);
  padding: 0;
}

.hero .claim {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  border-left: none;
  padding-left: 0;
  margin: 0 0 var(--spacing-unit) 0;
  color: var(--color-text);
}

.hero > p:not(.claim) {
  font-size: 1.25rem;
  color: var(--color-text);
  opacity: 0.8;
}

.section {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.section-title {
  display: block;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 0.5rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Cards / Offer Blocks
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-unit);
  margin: var(--spacing-unit) 0;
}

.card {
  border: var(--border-width) solid var(--color-text);
  padding: var(--spacing-unit);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  margin-bottom: 0;
}

.card p + p {
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Featured Card (Hero Product)
   -------------------------------------------------------------------------- */
.featured-card {
  border: var(--border-width) solid var(--color-text);
  padding: calc(var(--spacing-unit) * 1.5);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.featured-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.featured-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.featured-intro {
  font-size: 1.1rem;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.featured-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 2);
}

.featured-principles ul,
.featured-process ol {
  margin: 0;
  padding-left: 1.25rem;
}

.featured-principles li,
.featured-process li {
  margin-bottom: 0.75rem;
}

.featured-principles li:last-child,
.featured-process li:last-child {
  margin-bottom: 0;
}

.featured-principles h3,
.featured-process h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.featured-cta {
  margin-top: calc(var(--spacing-unit) * 1.5);
  padding-top: calc(var(--spacing-unit) * 1.5);
  border-top: 1px solid var(--color-text);
}

.section-transition {
  font-style: italic;
  margin-bottom: var(--spacing-unit);
  color: var(--color-text);
  opacity: 0.85;
}

/* Featured Split (Block 1: two-column with & symbol) */
.featured-split {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 3);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}


.featured-split-col h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.featured-split-col ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style-position: outside;
}

.featured-split-amp {
  flex-shrink: 0;
  align-self: center;
  margin-top: 12px;
  margin-bottom: 12px;

}

.featured-split-amp img {
  display: block;
}

/* Journey Grid (Block 3: 2x2 Kacheln) */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-unit);
  margin: var(--spacing-unit) 0;
}

.journey-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.journey-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.journey-cta {
  margin-top: 3rem;
}

.journey-cta p {
  margin-bottom: 0.5rem;
}

@media (max-width: 700px) {
  .featured-details {
    grid-template-columns: 1fr;
    gap: var(--spacing-unit);
  }
}

/* --------------------------------------------------------------------------
   Q&A / FAQ
   -------------------------------------------------------------------------- */
.qa-list {
  margin: 0 0 var(--spacing-unit) 0;
}

.qa-item {
  border-bottom: 1px solid var(--color-text);
  padding: var(--spacing-unit) 0;
}

.qa-item:first-child {
  border-top: none;
}

.qa-question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.qa-answer {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.post-list {
  list-style: none;
  padding-left: 0;
}

.post-item {
  border-bottom: 1px solid var(--color-text);
  padding: var(--spacing-unit) 0;
}

.post-item:first-child {
  border-top: 1px solid var(--color-text);
}

.post-meta {
  font-size: 0.875rem;
  color: var(--color-text);
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.post-title a {
  text-decoration: none;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-excerpt {
  margin-bottom: 0;
}

/* Single Post */
.post-header {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.post-content h2 {
  margin-top: calc(var(--spacing-unit) * 2);
}

.post-content h2:first-child {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-content {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  align-items: flex-start;
}

.about-photo {
  width: 400px;
  max-width: 50%;
  height: auto;
  flex-shrink: 1;
  order: 2;
}

.about-text {
  flex: 1;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-email {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-note {
  margin-top: var(--spacing-unit);
  padding: var(--spacing-unit);
  border: var(--border-width) solid var(--color-text);
  background-color: transparent;
}

.contact-note p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CTA Button
   -------------------------------------------------------------------------- */
.cta {
  display: inline-block;
  background-color: var(--color-text);
  color: var(--color-bg);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 700;
  border: var(--border-width) solid var(--color-text);
  transition: all 0.15s ease;
}

.cta:hover,
.cta:focus {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.cta-section p {
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Legal Pages
   -------------------------------------------------------------------------- */
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: calc(var(--spacing-unit) * 1.5);
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 675px) {
  :root {
    --spacing-unit: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }
  
h3 {
    font-size: 1.25rem;
  }

  body {
    font-size: 1rem;
  }

  .hero {
    padding: 0;
  }

  .hero .claim {
    font-size: 2rem;
  }

  .hero > p:not(.claim) {
    font-size: 1.0625rem;
  }


  /* Mobile Header Layout */
  .site-header {
    position: relative;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0;
  }

  .site-brand {
    order: 1;
    gap: 0;
  }

  .site-brand .logo {
    display: block;
    height: 32px;
    width: auto;
  }

  .site-brand span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(1px);
    font-size: 1.125rem;
    line-height: 1;
    max-width: none;
    white-space: nowrap;
  }

  .menu-toggle {
    display: block;
    order: 3;
    justify-self: end;
  }

  /* Mobile Nav - Hidden by default */
  .site-nav {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: var(--border-width) solid var(--color-text);
    padding: var(--spacing-unit);
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-unit);
    display: none;
    z-index: 99;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem 0;
  }

  .lang-switch {
    align-self: flex-start;
  }

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

  .featured-split {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-unit);
  }

  .featured-split-amp {
    align-self: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-content {
    flex-direction: column;
  }

  .about-photo {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    object-position: center top;
    order: 1;
  }

}


/* --------------------------------------------------------------------------
   Client Logos
   -------------------------------------------------------------------------- */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-unit);
  margin-top: var(--spacing-unit);
}
.client-logos img {
  height: 45px;
  width: auto;
  opacity: 0.55;
}
@media (max-width: 810px) {
  .client-logos img {
    height: 30px;
    object-fit: contain;
    object-position: center;
  }
}
/* --------------------------------------------------------------------------
   Cursor Glow
   -------------------------------------------------------------------------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(
      700px circle at var(--glow-x, -100%) var(--glow-y, -100%),
      rgba(255, 112, 166, 0.20),
      transparent 70%
    );
  }
}
