/* ============================================================
   Circle of Health — stylesheet
   ============================================================ */

/* ---------- Custom properties ---------- */
:root {
  --sage:       #7a9e7e;
  --sage-light: #a8c5a0;
  --sage-dark:  #5a7a5e;
  --beige:      #f0ebe1;
  --beige-dark: #e0d8cc;
  --offwhite:   #faf8f4;
  --brown:      #6b5c4e;
  --text:       #3d3530;
  --text-light: #7a6e68;
  --white:      #ffffff;

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,.07);
  --shadow-md:0 8px 40px rgba(0,0,0,.10);

  --max-w: 1100px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.4rem; }

/* ---------- Utilities ---------- */
.container {
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}
.centered { text-align: center; }
.section-label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: .75rem;
}
.section-intro {
  max-width: 560px;
  margin-inline: auto;
  margin-top: .75rem;
  color: var(--text-light);
}
.rich-text p + p { margin-top: 1rem; }
.btn {
  display: inline-block;
  padding: .8rem 2rem;
  background: var(--sage);
  color: var(--white);
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--sage-dark); transform: translateY(-1px); }
.btn-full { width: 100%; text-align: center; }

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige-dark);
  z-index: 100;
  transition: box-shadow .3s;
}
#site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}

/* Logo */
.logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--sage-dark);
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo img { height: 44px; width: auto; object-fit: contain; }

/* Logo upload zone (edit mode) */
.logo-upload-zone {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem;
  border: 2px dashed var(--sage-light);
  border-radius: var(--radius);
  font-size: .8rem;
  color: var(--sage-dark);
  cursor: pointer;
  transition: background .2s;
}
.logo-upload-zone:hover { background: rgba(122,158,126,.1); }
.logo-upload-hint { pointer-events: none; }

/* Nav */
#main-nav ul {
  display: flex;
  gap: 2rem;
}
#main-nav a {
  font-size: .875rem;
  font-weight: 400;
  color: var(--text-light);
  transition: color .2s;
  position: relative;
}
#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transition: transform .2s;
}
#main-nav a:hover { color: var(--text); }
#main-nav a:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-photo {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #c5d9c1 0%, #e8ddd0 100%);
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(60,50,44,.45) 0%, rgba(60,50,44,.15) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
  color: var(--white);
  max-width: 620px;
}
.hero-eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 1rem;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.hero-sub {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 2rem;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.section-over { background: var(--offwhite); }
.section-diensten { background: var(--beige); }
.section-contact { background: var(--offwhite); }

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* ---------- About ---------- */
.photo-col { position: relative; }
.portrait-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #c5d9c1 0%, #d6cfc5 100%);
  box-shadow: var(--shadow-md);
  background-size: cover;
  background-position: center top;
}
.text-col h2 { margin-bottom: 1.25rem; }
.text-col .section-label { margin-bottom: .5rem; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.75rem;
}
.badge {
  display: inline-block;
  padding: .35rem .9rem;
  background: rgba(122,158,126,.12);
  border: 1px solid rgba(122,158,126,.3);
  border-radius: 100px;
  font-size: .75rem;
  color: var(--sage-dark);
  font-weight: 500;
}

/* ---------- Services / Cards ---------- */
.section-diensten h2 { margin-bottom: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-featured {
  background: var(--sage-dark);
  color: var(--white);
}
.card-featured h3,
.card-featured p { color: var(--white); }
.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(122,158,126,.15);
  border-radius: 50%;
  margin-bottom: .25rem;
}
.card-featured .card-icon { background: rgba(255,255,255,.15); }
.card-icon svg { width: 20px; height: 20px; color: var(--sage-dark); }
.card-featured .card-icon svg { color: var(--white); }
.card p { font-size: .9rem; color: var(--text-light); }
.card-price {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--sage-dark) !important;
  font-weight: 500;
  margin-top: auto;
}
.card-featured .card-price { color: rgba(255,255,255,.9) !important; }

/* ---------- Contact ---------- */
.contact-cols { align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info .section-label { margin-bottom: .5rem; }
.contact-info > p { color: var(--text-light); margin-bottom: 1.75rem; }
.contact-details { display: flex; flex-direction: column; gap: .85rem; }
.contact-details li {
  display: flex; align-items: center; gap: .75rem;
  font-size: .9rem; color: var(--text-light);
}
.contact-details svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--sage); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-row:last-of-type { margin-bottom: 1.5rem; }
label { font-size: .8rem; font-weight: 500; color: var(--text-light); letter-spacing: .04em; }
input, textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--beige-dark);
  border-radius: 8px;
  font: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--offwhite);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
input:focus, textarea:focus {
  border-color: var(--sage-light);
  box-shadow: 0 0 0 3px rgba(122,158,126,.15);
}
input::placeholder, textarea::placeholder { color: #bbb; }

.form-feedback {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--sage-dark);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--beige-dark);
  text-align: center;
  padding: 1.75rem 1rem;
  font-size: .8rem;
  color: var(--text-light);
}

/* ---------- Photo zones (base) ---------- */
.photo-zone { position: relative; }

/* ---------- Edit mode ---------- */
body.edit-mode .editable {
  outline: 2px dashed rgba(122,158,126,.5);
  outline-offset: 3px;
  border-radius: 4px;
  cursor: text;
  transition: outline-color .15s;
}
body.edit-mode .editable:focus {
  outline-color: var(--sage);
  background: rgba(255,255,255,.6);
}
body.edit-mode .editable:hover { outline-color: var(--sage-light); }
body.edit-mode .editable:empty::before {
  content: attr(data-placeholder);
  color: #bbb;
  pointer-events: none;
}

body.edit-mode .photo-zone {
  outline: 2px dashed rgba(122,158,126,.5);
  outline-offset: 4px;
  cursor: pointer;
}
body.edit-mode .photo-zone:hover { outline-color: var(--sage); }
body.edit-mode .photo-zone::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.55);
  color: var(--sage-dark);
  font-size: .85rem;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .2s;
}
body.edit-mode .photo-zone:hover::after { opacity: 1; }
body.edit-mode .photo-zone.has-photo::after { background: rgba(255,255,255,.4); }

/* Edit bar */
.edit-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 44px;
  background: var(--sage-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1.5rem;
  font-size: .8rem;
  font-weight: 500;
  z-index: 200;
  gap: 1rem;
}
.edit-bar-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  opacity: .9;
}
.edit-save-btn {
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.edit-save-btn.saving { color: var(--white); }

/* FAB pencil */
.edit-fab {
  position: fixed;
  bottom: 64px; right: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 200;
  transition: background .2s, transform .15s;
}
.edit-fab svg { width: 20px; height: 20px; }
.edit-fab:hover { background: var(--sage-dark); transform: scale(1.05); }

/* ---------- Drag-over state ---------- */
.photo-zone.drag-over {
  outline-color: var(--sage-dark) !important;
  background-color: rgba(122,158,126,.1) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .photo-col { order: -1; }
  .portrait-wrap { aspect-ratio: 4/3; max-height: 360px; }
  .cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .contact-cols { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(250,248,244,.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--beige-dark);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s, opacity .3s;
  }
  #main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  #main-nav ul { flex-direction: column; gap: 1.25rem; }
  #main-nav a { font-size: 1rem; }
  .nav-toggle { display: flex; }
  .contact-form-wrap { padding: 1.5rem; }
}
