/* ═══════════════════════════════════════════════════════════════
   CLT GREECE — SHARED SITE CSS
   site.css — loaded by every page via <link>
   Do NOT edit per-page styles here. Page-specific rules stay
   in each file's own <style> block.
═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  /* Backgrounds */
  --bg-ivory: #FBF8F3;
  --bg-sand:  #F5EFE6;
  --bg-warm:  #EDE2D1;

  /* Surfaces & borders */
  --surface:      #FFFFFF;
  --border:       #E6D7C3;
  --border-sub:   #F0E8DC;
  --border-subtle:#EAE0D0;

  /* Text */
  --ink:    #1E1A16;
  --ink-2:  #2E2822;
  --muted:  #6E6358;
  --subtle: #9B9189;

  /* Terracotta scale */
  --tc-700: #8B3A10;
  --tc-600: #A84B1A;
  --tc-500: #C05C22;
  --tc-400: #CC7040;
  --tc-300: #D88C64;
  --tc-100: #F2DDD3;

  /* Warm dark scale (hero / footer / panels) */
  --warm-900: #3D1F08;
  --warm-800: #5A2E12;
  --warm-700: #6B3820;
  --warm-600: #B38A69;

  /* Logo / gold accent */
  --logo-tc:         #AD4F17;
  --logo-gold:       #C2A066;
  --logo-gold-light: #DEC28A;

  /* Glows */
  --warm-border:     rgba(194,160,102,.18);
  --warm-border-mid: rgba(194,160,102,.32);
  --warm-glow-tc:    rgba(173,79,23,.18);
  --warm-glow-gold:  rgba(222,194,138,.24);

  /* Deprecated aliases — kept so old pages don't break */
  --dark:           #3D1F08;  /* = warm-900 */
  --dark-2:         #5A2E12;  /* = warm-800 */
  --dark-border:    rgba(255,255,255,.08);
  --shadow-card:    0 2px 12px rgba(30,26,22,.05);

  /* Radius */
  --radius:    20px;
  --radius-lg: 28px;
  --radius-xl: 44px;

  /* Shadows */
  --shadow:    0 16px 48px rgba(30,26,22,.08);
  --shadow-lg: 0 28px 72px rgba(30,26,22,.13);
  --shadow-sm: 0 2px 12px rgba(30,26,22,.05);

  /* Motion */
  --ease:   cubic-bezier(.22,1,.36,1);
  --ease-e: cubic-bezier(.34,1.56,.64,1);

  /* Typography */
  --font: "Manrope", system-ui, sans-serif;
  --mono: "SF Mono", "Fira Code", monospace;
  --max-w: 1400px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-ivory);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.sl, .reveal.slide-left  { transform: translateX(-32px); }
.reveal.sr, .reveal.slide-right { transform: translateX(32px); }
.reveal.sc, .reveal.scale-in    { transform: scale(.96); }
.reveal.fu                      { transform: translateY(40px); }
.reveal.is-in { opacity: 1; transform: none; }

/* Background image scroll */
.scroll-image {
  background-position:
    var(--scroll-image-pos-x, center)
    calc(var(--scroll-image-pos-y, 50%) + var(--scroll-image-offset, 0px));
  will-change: background-position;
}

/* ── LAYOUT ── */
.container { width: min(var(--max-w), 100%); padding: 0 clamp(20px,4vw,64px); margin: 0 auto; }
.section    { padding: clamp(64px,8vw,112px) 0; }
.section-sm { padding: clamp(40px,5vw,72px) 0; }

/* ── HEADER ── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
/* Before scroll — transparent over dark hero */
.site-header:not(.scrolled) .brand-text          { color: rgba(255,255,255,.9); }
.site-header:not(.scrolled) .brand-text span      { color: var(--logo-gold-light); }
.site-header:not(.scrolled) .nav-link             { color: rgba(255,255,255,.6); }
.site-header:not(.scrolled) .nav-link:hover       { color: white; background: rgba(255,255,255,.08); }
.site-header:not(.scrolled) .nav-link.active      { color: var(--logo-gold-light); }
.site-header:not(.scrolled) .nav-toggle           { color: white; }

/* After scroll — warm dark bar */
.site-header.scrolled {
  background: rgba(61,31,8,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(194,160,102,.18), 0 4px 24px rgba(0,0,0,.32);
}
.site-header.scrolled .brand-text      { color: white; }
.site-header.scrolled .brand-text span { color: var(--logo-gold-light); }
.site-header.scrolled .nav-link        { color: rgba(255,255,255,.62); }
.site-header.scrolled .nav-link:hover  { color: white; background: rgba(255,255,255,.1); }
.site-header.scrolled .nav-link.active { color: var(--logo-gold-light); }
.site-header.scrolled .nav-toggle      { color: white; }

/* Pages without a dark hero should keep the warm header from first paint */
body.always-warm-nav .site-header,
body.always-warm-nav .site-header:not(.scrolled),
body.always-warm-nav .site-header.scrolled {
  background: rgba(61,31,8,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(194,160,102,.18), 0 4px 24px rgba(0,0,0,.32);
}
body.always-warm-nav .site-header .brand-text,
body.always-warm-nav .site-header:not(.scrolled) .brand-text,
body.always-warm-nav .site-header.scrolled .brand-text {
  color: white;
}
body.always-warm-nav .site-header .brand-text span,
body.always-warm-nav .site-header:not(.scrolled) .brand-text span,
body.always-warm-nav .site-header.scrolled .brand-text span {
  color: var(--logo-gold-light);
}
body.always-warm-nav .site-header .nav-link,
body.always-warm-nav .site-header:not(.scrolled) .nav-link,
body.always-warm-nav .site-header.scrolled .nav-link {
  color: rgba(255,255,255,.62);
}
body.always-warm-nav .site-header .nav-link:hover,
body.always-warm-nav .site-header:not(.scrolled) .nav-link:hover,
body.always-warm-nav .site-header.scrolled .nav-link:hover {
  color: white;
  background: rgba(255,255,255,.1);
}
body.always-warm-nav .site-header .nav-link.active,
body.always-warm-nav .site-header:not(.scrolled) .nav-link.active,
body.always-warm-nav .site-header.scrolled .nav-link.active {
  color: var(--logo-gold-light);
}
body.always-warm-nav .site-header .nav-toggle,
body.always-warm-nav .site-header:not(.scrolled) .nav-toggle,
body.always-warm-nav .site-header.scrolled .nav-toggle {
  color: white;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 clamp(20px,4vw,64px);
  max-width: var(--max-w); margin: 0 auto; gap: 24px;
}
.brand      { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--logo-tc);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: white; letter-spacing: -.5px; flex-shrink: 0;
}
.brand-text      { font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.brand-text span { color: var(--tc-500); }
.nav      { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-link.active { font-weight: 600; }
.header-cta  { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle  { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 72px 0 0 0;
  background: rgba(61,31,8,.97); backdrop-filter: blur(24px);
  z-index: 99; padding: 24px 20px; flex-direction: column; gap: 4px;
  border-top: 1px solid rgba(194,160,102,.2);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { font-size: 16px; padding: 14px 16px; border-radius: 12px; color: rgba(255,255,255,.72); }
.mobile-nav .nav-link.active { color: var(--logo-gold-light); }
.mobile-nav .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* ── BUTTONS — all class names work (old + new) ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 12px 24px; border-radius: 12px;
  line-height: 1; letter-spacing: -.1px;
  transition: transform .15s var(--ease), box-shadow .15s, background .2s;
  text-decoration: none; border: none; cursor: pointer;
  font-family: var(--font);
}
.btn:active { transform: scale(.98); }

/* Primary — terracotta (both naming conventions) */
.btn-p, .btn-primary {
  background: var(--tc-500); color: white;
  box-shadow: 0 4px 16px rgba(192,92,34,.3), 0 1px 0 rgba(255,255,255,.15) inset;
}
.btn-p:hover, .btn-primary:hover {
  background: var(--tc-600);
  box-shadow: 0 6px 24px rgba(192,92,34,.4);
  transform: translateY(-1px);
}
/* Ghost / outline */
.btn-g, .btn-ghost, .btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-g:hover, .btn-ghost:hover, .btn-outline:hover {
  background: var(--bg-sand); border-color: var(--tc-400);
}
/* White (on dark bg) */
.btn-w, .btn-white {
  background: white; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-w:hover, .btn-white:hover { background: var(--bg-ivory); transform: translateY(-1px); }
/* Outline white */
.btn-ow, .btn-outline-w {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,.28);
}
.btn-ow:hover, .btn-outline-w:hover {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55);
}
/* Dark warm */
.btn-dark, .btn-dk {
  background: var(--warm-900); color: rgba(255,255,255,.9);
  border: 1px solid rgba(194,160,102,.2);
}
.btn-dark:hover, .btn-dk:hover { background: var(--warm-800); border-color: rgba(194,160,102,.4); }
/* Sizes */
.btn-lg { font-size: 15px; padding: 15px 32px; border-radius: 14px; }
.btn-sm { font-size: 13px; padding: 9px 18px;  border-radius: 9px; }
/* Icon helper */
.btn-i, .btn-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; }

/* ── TYPOGRAPHY ── */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tc-400); margin-bottom: 16px;
}
.kicker-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.kicker.white     { color: rgba(255,255,255,.7); }
.kicker.white .kicker-dot { background: rgba(255,255,255,.4); }
.kicker.dim       { color: var(--subtle); }

.section-title {
  font-size: clamp(26px,3.2vw,44px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1; color: var(--ink); margin-bottom: 16px;
}
.section-title.white { color: white; }
.section-lead  { font-size: clamp(15px,1.2vw,17px); color: var(--muted); line-height: 1.7; max-width: 620px; }
.section-lead.white { color: rgba(255,255,255,.65); }
.section-head  { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }
.section-kicker { margin-bottom: 16px; }

.inline-link { color: var(--tc-500); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.inline-link:hover { color: var(--tc-700); }
.text-tc  { color: var(--tc-500); }
.bg-sand  { background: var(--bg-sand); }
.bg-warm  { background: var(--bg-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bg-dark  { background: var(--warm-900); color: white; }
.mt-auto  { margin-top: auto; }
.sr-only  { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── DARK SECTION (old pages use .section-dark) ── */
.section-dark {
  background: linear-gradient(155deg, var(--warm-800) 0%, var(--warm-900) 100%);
  color: white;
}
.section-dark .section-title { color: white; }
.section-dark .kicker         { color: rgba(255,255,255,.5); }
.section-dark .kicker-dot     { background: rgba(255,255,255,.3); }

/* ── FOOTER ── */
.footer {
  background: linear-gradient(150deg, var(--warm-700) 0%, var(--warm-800) 40%, var(--warm-900) 100%);
  color: rgba(255,255,255,.7);
  padding: clamp(48px,6vw,80px) 0 clamp(24px,3vw,40px);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 32px, rgba(194,160,102,.03) 32px, rgba(194,160,102,.03) 33px),
    radial-gradient(ellipse at 20% 20%, rgba(194,160,102,.14) 0%, transparent 46%),
    radial-gradient(ellipse at 82% 18%, rgba(173,79,23,.18) 0%, transparent 50%);
  pointer-events: none;
}
.footer .container {
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px,4vw,56px); margin-bottom: 48px;
}
.footer-tagline { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 14px; line-height: 1.6; }
.footer-brand .brand-text { color: white; }
.footer-contact-row { margin-top: 8px; margin-bottom: 40px; }
.footer-contact-row h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.footer .footer-contact-row .footer-contact {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.footer-contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 16px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.footer-contact-name { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.88); line-height: 1.35; }
.footer-contact-role { font-size: 11.25px; color: rgba(255,255,255,.52); line-height: 1.45; }
.footer-contact-note { font-size: 11.25px; color: rgba(255,255,255,.62); line-height: 1.5; }
.footer .footer-contact-card .footer-contact-line {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tc-400);
  transition: color .2s;
}
.footer .footer-contact-card .footer-contact-mail {
  font-size: 11.25px;
  color: rgba(255,255,255,.68);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
  line-height: 1.45;
}
.footer .footer-contact-card .footer-contact-line:hover,
.footer .footer-contact-card .footer-contact-mail:hover { color: white; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.72); transition: color .2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.48); }
.seo-credit-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.seo-credit {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.58);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.seo-credit-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-credit-name {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-10px);
  transition:
    max-width .35s var(--ease),
    margin-left .35s var(--ease),
    opacity .25s var(--ease),
    transform .35s var(--ease);
}
.seo-credit:hover,
.seo-credit:focus-visible { color: rgba(255,255,255,.86); }
.seo-credit:hover .seo-credit-name,
.seo-credit:focus-visible .seo-credit-name {
  max-width: 96px;
  margin-left: 8px;
  opacity: 1;
  transform: translateX(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .footer-contact-row .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact-card:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .site-header {
    position: relative;
    top: auto;
    inset: auto;
  }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav {
    position: relative;
    inset: auto;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer .footer-contact-row .footer-contact { grid-template-columns: 1fr; }
  .footer-contact-card:nth-child(3) { grid-column: auto; }
}

/* Shared logo + related pages rules */
.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}
.footer-logo {
  display: block;
  height: 46px;
  width: auto;
}
.brand.brand-logo-only,
.brand:has(.brand-logo),
.brand:has(.footer-logo) {
  gap: 0;
}
.kicker.w,
.kicker.white-dim {
  color: rgba(255,255,255,.55);
}
.kicker.w .kicker-dot,
.kicker.white-dim .kicker-dot {
  background: var(--logo-gold-light);
}
.related-pages {
  width: fit-content;
  max-width: 100%;
  padding: 20px 24px;
  background: var(--bg-warm, #f7f4ef);
  border: 1px solid var(--border, #e8e2d9);
  border-radius: 12px;
  margin-left: auto;
  margin-right: auto;
}
.related-pages-head {
  font-size: .88rem;
  color: #555;
  margin: 0 0 16px;
  text-align: center;
}
.related-pages-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.related-pages-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border, #e8e2d9);
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.related-pages-link:hover {
  background: white;
  border-color: rgba(192,92,34,.28);
  color: var(--tc-600);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
    padding: 0 16px;
  }
  .brand {
    max-width: calc(100vw - 88px);
  }
  .brand-logo {
    width: min(66vw, 280px);
    height: auto;
  }
  .footer-logo {
    height: 38px;
  }
}
