/* Base stylesheet for published sites. Theme values come from :root variables
   appended by the renderer; sections may override --sec-* locally. */

:root {
  --color-primary: #3355ff;
  --color-primary-contrast: #ffffff;
  --color-bg: #ffffff;
  --color-surface: #f5f6f8;
  --color-fg: #16181d;
  --color-muted: #5c6270;
  --font-heading: 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Segoe UI', system-ui, sans-serif;
  --radius: 10px;
  --container-max: 1080px;
  --sec-pad: 72px;
  --sec-bg: transparent;
  --sec-fg: inherit;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: var(--color-primary); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

.sec { padding: var(--sec-pad) 0; background: var(--sec-bg); color: var(--sec-fg); }

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

/* nav */
.sec-nav { padding: 18px 0; border-bottom: 1px solid var(--color-surface); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--color-fg); text-decoration: none; }

/* hero */
.hero-inner { display: flex; align-items: center; gap: 48px; }
.sec-hero.variant-center .hero-inner { flex-direction: column; text-align: center; }
.hero-copy { flex: 1; }
.hero-subtitle { color: var(--color-muted); font-size: 1.15rem; }
.hero-media { flex: 1; }
.hero-media img { border-radius: var(--radius); }

/* features */
.sec-title { text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.feature-card { background: var(--color-surface); border-radius: var(--radius); padding: 28px; }
.feature-card h3 { margin-bottom: 0.35em; }
.feature-card p { color: var(--color-muted); margin: 0; }

/* text */
.text-inner { max-width: 720px; }
.text-inner .sec-title { text-align: left; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.gallery-cell { margin: 0; }
.gallery-cell img { border-radius: var(--radius); width: 100%; height: 220px; object-fit: cover; }

/* cta */
.sec-cta { background: var(--color-primary); color: var(--color-primary-contrast); text-align: center; }
.sec-cta .btn { background: var(--color-primary-contrast); color: var(--color-primary); }
.cta-subtitle { opacity: 0.85; }

/* footer */
.sec-footer { background: var(--color-surface); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-text { color: var(--color-muted); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--color-muted); text-decoration: none; }

/* whole-slot links keep the surrounding text style */
.slot-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* richtext inline images: class-based sizing/alignment only, no absolutes */
.richtext img { display: block; margin: 12px 0; border-radius: var(--radius); }
.richtext img.rt-w-25 { width: 25%; }
.richtext img.rt-w-50 { width: 50%; }
.richtext img.rt-w-75 { width: 75%; }
.richtext img.rt-w-100 { width: 100%; }
.richtext img.rt-left { margin-right: auto; }
.richtext img.rt-center { margin-left: auto; margin-right: auto; }
.richtext img.rt-right { margin-left: auto; }

@media (max-width: 720px) {
  .hero-inner { flex-direction: column; }
  .nav-inner { flex-direction: column; gap: 12px; }
}

:root {
  --color-primary: #3355ff;
  --color-primary-contrast: #ffffff;
  --color-bg: #ffffff;
  --color-surface: #f5f6f8;
  --color-fg: #16181d;
  --color-muted: #5c6270;
  --font-heading: Inter;
  --font-body: Inter;
  --radius: 10px;
  --container-max: 1080px;
  --sec-pad: 72px;
  --c-c-brand: #3355ff;
  --c-c-ink: #16181d;
  --c-c-bg: #ffffff;
  --c-c-surface: #f5f6f8;
  --c-c-muted: #5c6270;
  --c-c-red: #ff0000;
  --c-c-yellow: #ffcc00;
  --shadow-s-card: 0px 8px 24px 0px #00000022;
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/1784f798-10a7-4a72-a14d-5e21548bfb29.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/5fc8f00f-7ebc-4820-a03d-a1f7cf35b703.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/60f5255b-80cd-4d84-ab9c-2ad968bb0a78.woff2') format('woff2');
}
.typo-t-heading {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--c-c-ink);
  text-decoration: none;
}
.typo-t-subheading {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--c-c-ink);
  text-decoration: none;
}
.typo-t-body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--c-c-ink);
  text-decoration: none;
}
