/* ======================================================================
   Fliesen Krasniqi — Site-wide Styles
   Farbpalette aus dem Logo: Rot #E30613, Blau #1E5FBF, Schwarz #0E0E0E
   ====================================================================== */

/* === Self-hosted Google Fonts (DSGVO-konform) === */

/* DM Serif Display — Regular */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Serif Display — Italic */
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans — 400, 500, 600, 700 (variable font, single file per subset) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Caveat — 500, 700 */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --cream:     #F7F4EE;
  --cream-2:   #EDE8DD;
  --ink:       #0E0E0E;
  --ink-soft:  #2A2A2A;
  --red:       #E30613;
  --red-dark:  #B30410;
  --blue:      #1E5FBF;
  --blue-dark: #164A96;
  --line:      #D9D1BE;
  --muted:     #6B665A;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.display {
  font-family: 'DM Serif Display', 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.script {
  font-family: 'Caveat', cursive;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Brand bar oben – rot/schwarz/blau */
.brand-bar {
  height: 4px;
  background: linear-gradient(90deg,
    var(--red) 0%,
    var(--red) 33%,
    var(--ink) 33%,
    var(--ink) 66%,
    var(--blue) 66%,
    var(--blue) 100%
  );
}

/* ====== Layout ====== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}
@media (min-width: 1600px) {
  .container { padding: 0 64px; }
}

/* ====== Navigation ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(14, 14, 14, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.nav-logo img { height: 80px; width: auto; }
.nav-links {
  display: none;
  gap: 36px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav-links a {
  position: relative;
  padding: 8px 0;
  color: var(--ink);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-cta {
  display: none;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background .2s;
}
.nav-cta:hover { background: var(--red); }
@media (min-width: 1024px) { .nav-cta { display: inline-block; } }

/* Mobile menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: all .3s ease;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-mobile {
  display: none;
  border-top: 1px solid rgba(14,14,14,0.08);
  padding: 24px;
  background: var(--cream);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(14,14,14,0.06);
}
.nav-mobile a:last-child { border-bottom: 0; }

/* ====== Buttons ====== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
  border: 0;
  text-align: center;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--red);
  transform: translateY(-1px);
}
.btn-red {
  background: var(--red);
  color: var(--cream);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ====== Sections ====== */
section { padding: 96px 0; }
@media (min-width: 1024px) { section { padding: 128px 0; } }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-label::before {
  content: '— ';
}

.eyebrow-blue { color: var(--blue); }

h1.display { font-size: clamp(44px, 7vw, 104px); }
h2.display { font-size: clamp(36px, 5vw, 72px); }
h3.display { font-size: clamp(24px, 3vw, 40px); }

.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

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

.italic-script {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
}

/* ====== Cards ====== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(14,14,14,0.15);
}
.card-img { aspect-ratio: 4/3; overflow: hidden; }
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 28px; }

/* ====== Hero ====== */
.hero {
  padding: 72px 0 96px;
  position: relative;
}
@media (min-width: 1024px) {
  .hero { padding: 96px 0 128px; }
}
.hero-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}
.hero h1 {
  margin: 0 0 28px;
}
.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(14,14,14,0.1);
  pointer-events: none;
}

/* ====== Fullscreen Hero (Index) ====== */
.hero-full {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}
@media (min-width: 768px) {
  .hero-full { min-height: 90vh; }
}
.hero-full-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-full-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.03);
}
@media (min-width: 768px) {
  .hero-full-bg img { object-position: center center; }
}
.hero-full-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14,14,14,0.9) 0%,
    rgba(14,14,14,0.6) 50%,
    rgba(14,14,14,0.15) 100%
  );
}
@media (min-width: 768px) {
  .hero-full-bg::after {
    background: linear-gradient(
      to top,
      rgba(14,14,14,0.85) 0%,
      rgba(14,14,14,0.4) 40%,
      rgba(14,14,14,0.05) 100%
    );
  }
}
.hero-full-content {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-full-content { padding: 96px 0; }
}
.hero-full-content .section-label { color: var(--cream); opacity: 0.7; }
.hero-full-content .display { color: var(--cream); }
.hero-full-content .lead { color: rgba(245,242,236,0.75); }
.hero-full-content .btn-outline {
  color: var(--cream);
  border-color: var(--cream);
}
.hero-full-content .btn-outline:hover {
  background: var(--cream);
  color: var(--ink);
}

/* Nav transparent state for fullscreen hero */
.nav.nav--transparent {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.nav--transparent .nav-links a { color: var(--cream); }
.nav.nav--transparent .nav-links a:hover { color: #fff; }
.nav.nav--transparent .nav-links a.active::after { background: var(--cream); }
.nav.nav--transparent .nav-cta { background: var(--red); }
.nav.nav--transparent .nav-toggle span { background: #fff; }
.nav.nav--scrolled {
  position: fixed;
  top: 0; /* brand-bar scrolls away */
  left: 0;
  right: 0;
  background: rgba(247, 244, 238, 0.95) !important;
  backdrop-filter: saturate(180%) blur(10px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(10px) !important;
  border-bottom-color: rgba(14, 14, 14, 0.08) !important;
}
.nav.nav--scrolled .nav-links a { color: var(--ink); }
.nav.nav--scrolled .nav-links a:hover { color: var(--red); }
.nav.nav--scrolled .nav-links a.active::after { background: var(--red); }
.nav.nav--scrolled .nav-cta { background: var(--ink); }
.nav.nav--scrolled .nav-toggle span { background: var(--ink); }

/* ====== Stats ====== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  font-weight: 500;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 8px;
}

/* ====== Page header (innere Seiten) ====== */
.page-header {
  background: var(--cream-2);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { margin: 0 10px; opacity: 0.5; }

/* ====== Timeline (horizontal) ====== */
.timeline-h {
  position: relative;
  padding-top: 40px;
  margin-top: 16px;
}
.timeline-h-line {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(14,14,14,0.15);
  z-index: 0;
}
.timeline-h-items {
  display: flex !important;
  flex-direction: row !important;
  gap: 40px;
}
.timeline-h-item {
  position: relative;
  padding-top: 36px;
  flex: 1 1 0%;
  min-width: 0;
}
.timeline-h-dot {
  position: absolute;
  top: -9px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--red);
  z-index: 1;
  transition: transform .2s ease, background .2s ease;
}
.timeline-h-item:hover .timeline-h-dot {
  transform: scale(1.3);
  background: var(--red);
}
.timeline-h-year {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
}
.timeline-h-item h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
}
.timeline-h-item p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 767px) {
  .timeline-h-items {
    flex-wrap: wrap !important;
    gap: 32px 24px;
  }
  .timeline-h-item {
    flex: 0 0 calc(50% - 12px);
  }
}

/* ====== Footer ====== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 40px;
  margin-top: 0;
}
.site-footer a { color: var(--cream); opacity: 0.75; transition: opacity .2s; }
.site-footer a:hover { opacity: 1; color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.12);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-logo img { height: 64px; margin-bottom: 24px; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
  margin: 0 0 20px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; font-size: 15px; }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(245, 242, 236, 0.5);
}

/* ====== Forms ====== */
.form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .form-row.two-col { grid-template-columns: 1fr 1fr; }
}
.form-field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--red);
}
.form-field textarea { min-height: 160px; resize: vertical; }

/* ====== Utility ====== */
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

/* Grid helpers */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.grid-5 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }


/* ====== Scroll animation ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .8s ease forwards; }

/* Service card grid with numbers */
.service-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  align-items: start;
  transition: padding .3s ease;
}
.service-item:hover { padding-left: 16px; }
.service-num {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--red);
  font-weight: 500;
}
.service-item h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  margin: 0 0 12px;
  font-weight: 500;
}
.service-item p { color: var(--ink-soft); margin: 0 0 16px; max-width: 60ch; }
.service-item .arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--red);
}
.service-item .arrow:hover { color: var(--red-dark); }

/* Service item with slide-in image from right */
.service-item {
  position: relative;
  overflow: hidden;
}
.service-item-text {
  position: relative;
  z-index: 1;
}
.service-item-img {
  position: absolute;
  top: -10px;
  right: -20px;
  bottom: -10px;
  width: 55%;
  overflow: visible;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.service-item-img::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -80px;
  bottom: -10px;
  right: -20px;
  z-index: 1;
  background: linear-gradient(
    115deg,
    var(--cream) 20%,
    rgba(247,244,238,0.7) 38%,
    rgba(247,244,238,0) 60%
  );
}
/* Override for cream-2 background sections */
[style*="--service-bg"] .service-item-img::before {
  background: linear-gradient(
    115deg,
    var(--cream-2) 20%,
    rgba(237,232,221,0.7) 38%,
    rgba(237,232,221,0) 60%
  );
}
.service-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-item:hover .service-item-img {
  opacity: 1;
  transform: translateX(0);
}
.service-item:hover .service-item-img img {
  transform: scale(1.03);
}
@media (max-width: 767px) {
  .service-item-img { display: none; }
}

/* Quote block */
.quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 40px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  max-width: 36ch;
}
.quote::before { content: '« '; color: var(--red); }
.quote::after { content: ' »'; color: var(--red); }

/* Accent marker */
.accent-marker {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  margin-right: 12px;
  vertical-align: middle;
}
