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

/* ===== Design Tokens ===== */
/* Inspired by everon.swiss: serif display headings, clean sans-serif body,
   warm cream sections, gold-tan CTAs. Primary color #182155 per Tariq. */
:root {
  /* Primary */
  --primary: #182155;
  --primary-light: #2a3a80;

  /* Accent / CTA (warm gold-tan, matching Everon button style) */
  --accent: #C4AD6E;
  --accent-hover: #b59d5e;
  --accent-text: #1a1a1a;

  /* Text */
  --text: #2c2c2c;
  --text-secondary: #5a5a5a;
  --text-muted: #999999;

  /* Backgrounds */
  --bg: #ffffff;
  --bg-cream: #F7F4EE;
  --bg-light: #FAFAF7;

  /* Borders */
  --border: #E8E4DC;
  --border-light: #F0EDE6;

  /* Layout */
  --max-width: 1120px;
  --content-width: 680px;

  /* Fonts — Source Serif 4 for display, Inter for body/UI */
  --font-display: "Source Serif 4", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ===== Fonts (loaded from Google) ===== */
/* Loaded via <link> in HTML head:
   Source Serif 4: 400,600 (display headings)
   Inter: 400,500,600 (body, nav, UI) */

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.75;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.2;
}

h1 {
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 400;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

p { margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--primary-light); text-decoration: underline; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--content-width);
}

/* ===== CTA Buttons (Everon gold pill style) ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--bg);
}

/* ===== Header / Nav (Everon style) ===== */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.15em;
}

.site-logo:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
  text-decoration: none;
}

/* Language switcher (Everon "DE ∨" style) */
.lang-switch {
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.lang-switch summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  user-select: none;
}

.lang-switch summary::-webkit-details-marker { display: none; }

.lang-switch summary::after {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
}

.lang-switch[open] summary::after {
  border-top: none;
  border-bottom: 5px solid currentColor;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 100px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 200;
}

.lang-menu a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.lang-menu a:hover {
  background: var(--bg-cream);
  color: var(--primary);
  text-decoration: none;
}

.lang-menu a.active {
  font-weight: 700;
  color: var(--primary);
}

/* Nav CTA button (contact button in header) */
.nav-cta {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--primary);
  color: var(--bg);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ===== Sections (Everon alternating white/cream) ===== */
.section {
  padding: 5rem 0;
}

.section--cream {
  background: var(--bg-cream);
}

.section--white {
  background: var(--bg);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ===== Hero (Everon centered style) ===== */
.hero {
  padding: 7rem 0 6rem;
  text-align: center;
  background: var(--bg-cream);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.hero .hero-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero .btn {
  margin-top: 0.5rem;
}

/* Hero nav links (homepage only) */
.hero-links {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-links a {
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.hero-links a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.hero-links a::after {
  content: " \2192";
  font-size: 0.8em;
  opacity: 0.6;
}

/* ===== Cards Grid (Everon 3-column) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem 1.75rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== Page Content (inner pages) ===== */
.page {
  padding: 4rem 0 5rem;
}

.page-header {
  margin-bottom: 2.5rem;
}

.page-title {
  margin-bottom: 0.4rem;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

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

.post-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.post-list li:first-child {
  padding-top: 0;
}

.post-list a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.post-list a:hover {
  color: var(--accent-hover);
}

.post-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.post-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  line-height: 1.65;
}

/* ===== Article (Blog Post) ===== */
.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.article-header h1 {
  font-size: 2.2rem;
  max-width: 700px;
  margin: 0 auto 0.75rem;
}

.article-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-meta a {
  color: var(--text-muted);
}
.article-meta a:hover {
  color: var(--primary);
}

.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: 1rem;
}

/* TLDR / Quick Answer (GEO/AEO) */
.tldr {
  background: var(--bg-cream);
  border-left: 3px solid var(--primary);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  border-radius: 0 8px 8px 0;
}

.tldr-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.6rem;
}

.tldr p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* FAQ section */
.faq {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.faq h2 { margin-top: 0; }

.faq dt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.faq dd {
  margin-left: 0;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Author byline */
.byline {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.byline strong {
  color: var(--text);
  font-size: 0.92rem;
}

/* ===== Services ===== */
.services-list h3 {
  margin-top: 2.5rem;
}

.services-list h3:first-child {
  margin-top: 0;
}

/* ===== Contact ===== */
.contact-channels {
  margin-top: 2rem;
}

.contact-channels dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 1.5rem;
  margin-bottom: 0.2rem;
}

.contact-channels dd {
  margin-left: 0;
  font-size: 0.95rem;
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 520px;
  margin: 2rem auto 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  margin-top: 0.5rem;
}

/* ===== Blog Search ===== */
.blog-search {
  margin-bottom: 2rem;
}

.blog-search input {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.15s;
}

.blog-search input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== Footer (Everon multi-column style) ===== */
.site-footer {
  background: var(--bg-cream);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-decoration: none;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

@media (max-width: 680px) {
  html { font-size: 16px; }

  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.4rem; }
  .section-title { font-size: 1.8rem; }
  .article-header h1 { font-size: 1.7rem; }

  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3rem 0; }
  .page { padding: 2.5rem 0 3rem; }

  .container { padding: 0 1.25rem; }

  .header-inner { height: 56px; }

  /* Show hamburger */
  .nav-toggle { display: block; }

  .header-right {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    align-items: flex-start;
  }

  .header-right.open {
    display: flex;
  }

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

  .site-nav a { font-size: 0.9rem; }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ===== Print ===== */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  .page, .section { padding: 1rem 0; }
  body { font-size: 11pt; }
}
