/* =====================================================================
   main.css — Shared styles for all pages
   MindCaring · Μιχαέλα Σκλατινιώτη
   ===================================================================== */

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

:root {
  --clr-bg:        #F7F5F0;
  --clr-surface:   #FFFFFF;
  --clr-primary:   #3D6B6B;
  --clr-primary-d: #2A4E4E;
  --clr-accent:    #B07D5A;
  --clr-sage:      #7A9E7E;
  --clr-text:      #2C3A2C;
  --clr-muted:     #7A8A7A;
  --clr-border:    #E0DDD5;
  --ff-serif:      'EB Garamond', Georgia, serif;
  --ff-sans:       'Noto Sans', system-ui, sans-serif;
  --radius:        12px;
  --shadow-sm:     0 2px 10px rgba(44,58,44,.07);
  --shadow-md:     0 8px 32px rgba(44,58,44,.12);
  --shadow-lg:     0 20px 60px rgba(44,58,44,.16);
  --transition:    .35s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: var(--ff-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── Utility ──────────────────────────────────────────────────────── */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section      { padding: 96px 0; }
.section--alt { background: var(--clr-surface); }

.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(61,107,107,.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--ff-sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn--primary {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(176,125,90,.35);
}
.btn--primary:hover { background: #9A6B4A; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(176,125,90,.45); }

.btn--outline {
  background: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
}
.btn--outline:hover { background: var(--clr-primary); color: #fff; transform: translateY(-2px); }

/* ── Navbar — shared structure ────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-logo-img {
  height: 115px;
  width: auto;
  display: block;
  transition: height var(--transition), filter var(--transition), opacity var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--clr-surface);
  position: absolute;
  top: 100%; left: 0; right: 0;
  box-shadow: var(--shadow-md);
  padding: 8px 0 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 24px;
  font-size: .95rem;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { background: var(--clr-bg); color: var(--clr-primary); }

/* ── Footer ───────────────────────────────────────────────────────── */
#footer {
  background: var(--clr-text);
  color: rgba(255,255,255,.65);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand { font-family: var(--ff-serif); font-size: 1.3rem; color: #fff; }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .78rem; }
.footer-credit { font-size: .88rem; color: rgba(255,255,255,.38); width: 100%; text-align: center; }
.footer-credit a { color: rgba(255,255,255,.52); transition: color var(--transition); }
.footer-credit a:hover { color: #fff; }

/* ── Back to top ──────────────────────────────────────────────────── */
#back-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.7);
  transition: var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-md);
}
#back-top.show { opacity: 1; transform: scale(1); }
#back-top:hover { background: var(--clr-primary-d); transform: scale(1.08); }
#back-top svg { width: 18px; height: 18px; }

/* ── Scroll-reveal ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible       { opacity: 1; transform: translateY(0); }
.reveal-delay-1       { transition-delay: .1s; }
.reveal-delay-2       { transition-delay: .2s; }
.reveal-delay-3       { transition-delay: .3s; }
.reveal-delay-4       { transition-delay: .4s; }

/* ── Responsive base ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links    { display: none; }
  .nav-burger   { display: flex; }
  .nav-logo-img { height: 64px !important; }
  .section      { padding: 64px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  #back-top     { bottom: 20px; right: 20px; }
}

@media (max-width: 380px) {
  .container    { padding: 0 16px; }
  .nav-logo-img { height: 52px !important; }
  .btn          { padding: 12px 20px; font-size: .85rem; }
}
