/* Somatherapy Institute — site styles */
:root {
  --teal: #2f5d5a;
  --teal-dark: #234745;
  --ink: #253238;
  --sand: #f6f1e7;
  --sand-dark: #ece3d2;
  --gold: #c9a227;
  --white: #ffffff;
  --muted: #5f6f74;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(37, 50, 56, 0.10);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--ink); }

a { color: var(--teal); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--teal-dark);
  color: #dfe9e5;
  font-size: 14px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.06em;
}
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 54px; width: auto; }

nav.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
nav.main-nav li { position: relative; }
nav.main-nav a {
  color: #eaf2ee;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  display: block;
  border-radius: 8px;
  white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { background: rgba(255,255,255,0.14); color: var(--white); }

nav.main-nav .dropdown > a::after { content: " ▾"; font-size: 10px; }
nav.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 101;
}
nav.main-nav .dropdown:hover .dropdown-menu,
nav.main-nav .dropdown:focus-within .dropdown-menu { display: block; }
nav.main-nav .dropdown-menu a { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }
nav.main-nav .dropdown-menu a:hover { background: var(--sand); color: var(--teal-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-size: 22px;
  border-radius: 8px;
  padding: 4px 12px;
  cursor: pointer;
}

/* ---------- Notice banner ---------- */
.notice {
  background: #fdf3d7;
  border-bottom: 1px solid #eadfa9;
  padding: 18px 24px;
  text-align: center;
}
.notice strong { color: #8a6d00; text-transform: uppercase; letter-spacing: 0.05em; }
.notice p { max-width: 900px; margin: 4px auto 0; font-size: 15px; color: #6b5d21; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 110px 24px;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(24, 42, 41, 0.62), rgba(24, 42, 41, 0.62));
}
.hero > * { position: relative; }
.hero .kicker { text-transform: uppercase; letter-spacing: 0.28em; font-size: 14px; font-weight: 800; color: #e8d48b; }
.hero h1 { color: var(--white); font-size: clamp(34px, 5.5vw, 58px); margin: 14px 0; }
.hero p { max-width: 640px; margin: 0 auto 28px; font-size: 19px; color: #e9efec; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #2c2408;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.btn.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.75); }
.btn.btn-teal { background: var(--teal); color: var(--white); }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--sand); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head .kicker { text-transform: uppercase; letter-spacing: 0.22em; font-size: 13px; font-weight: 800; color: var(--gold); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 8px; }
.section-head p { color: var(--muted); margin-top: 12px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }
.two-col h2 { font-size: 32px; margin-bottom: 16px; }
.two-col p + p { margin-top: 14px; }

.checklist { list-style: none; margin-top: 20px; }
.checklist li { padding: 7px 0 7px 34px; position: relative; font-weight: 600; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 7px;
  width: 24px; height: 24px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
  display: flex;
  flex-direction: column;
}
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 15.5px; color: var(--muted); flex: 1; }
.card .btn { margin-top: 18px; align-self: flex-start; padding: 10px 22px; font-size: 13px; }
.card ul { margin: 8px 0 0 20px; color: var(--muted); font-size: 15.5px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
blockquote {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  font-style: italic;
  color: var(--ink);
  position: relative;
}
blockquote::before { content: "“"; font-family: var(--font-head); font-size: 60px; color: var(--gold); line-height: 0.5; display: block; margin-bottom: 14px; }
blockquote cite { display: block; margin-top: 16px; font-style: normal; font-weight: 800; color: var(--teal); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 280px; object-fit: cover; }

/* ---------- Forms ---------- */
form.styled {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
form.styled label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 5px; }
form.styled input, form.styled select, form.styled textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d6d2c6;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15.5px;
  background: #fcfbf8;
}
form.styled input:focus, form.styled select:focus, form.styled textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white);
}
form.styled .btn { margin-top: 20px; width: 100%; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- FAQ ---------- */
details.faq-item {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
details.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 800;
  font-size: 16.5px;
  list-style: none;
  position: relative;
  padding-right: 52px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px; color: var(--gold); font-weight: 400;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item .answer { padding: 0 24px 22px; color: var(--muted); }
details.faq-item .answer p + p { margin-top: 10px; }

/* ---------- Tables ---------- */
table.fees { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.fees th, table.fees td { padding: 16px 20px; text-align: left; }
table.fees th { background: var(--teal); color: var(--white); letter-spacing: 0.06em; font-size: 14px; text-transform: uppercase; }
table.fees tr:nth-child(even) td { background: var(--sand); }
table.fees tr.total td { font-weight: 800; font-size: 18px; background: var(--sand-dark); }

/* ---------- Course list ---------- */
.course { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 18px; }
.course h3 { color: var(--teal-dark); font-size: 19px; margin-bottom: 8px; }
.course .meta { font-size: 13.5px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.course p { font-size: 15.5px; color: var(--muted); }
.course p + p { margin-top: 8px; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--teal); color: var(--white); text-align: center; padding: 64px 24px; }
.cta-strip h2 { color: var(--white); font-size: clamp(26px, 4vw, 38px); }
.cta-strip .phone { font-family: var(--font-head); font-size: clamp(30px, 5vw, 46px); color: #e8d48b; text-decoration: none; display: inline-block; margin: 14px 0 8px; }
.cta-strip p { color: #d7e3de; }

/* ---------- Accreditation logos ---------- */
.accred { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.accred img { height: 74px; width: auto; background: var(--white); padding: 8px; border-radius: 10px; }

/* ---------- Footer ---------- */
footer.site-footer { background: #1d2e2c; color: #aebfba; padding: 56px 0 28px; font-size: 15px; }
footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
footer img.foot-logo { height: 64px; width: auto; margin-bottom: 16px; }
footer h4 { color: var(--white); font-size: 16px; margin-bottom: 14px; letter-spacing: 0.05em; }
footer a { color: #d8e4df; text-decoration: none; }
footer a:hover { color: var(--gold); }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer .fineprint { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; text-align: center; font-size: 13px; color: #7f948e; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(rgba(28, 48, 46, 0.72), rgba(28, 48, 46, 0.72)), var(--teal-dark);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 76px 24px;
}
.page-hero .kicker { text-transform: uppercase; letter-spacing: 0.26em; font-size: 13px; font-weight: 800; color: #e8d48b; }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 5vw, 48px); margin-top: 10px; }
.page-hero p { max-width: 640px; margin: 14px auto 0; color: #dde7e3; }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 28px; margin: 36px 0 14px; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; color: var(--teal-dark); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0 12px 24px; }
.prose li { margin-bottom: 6px; }

.calendar-embed { position: relative; width: 100%; padding-bottom: 75%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.calendar-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--teal-dark);
    padding: 12px 20px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; }
  nav.main-nav .dropdown-menu { position: static; display: block; background: transparent; box-shadow: none; padding-left: 16px; }
  nav.main-nav .dropdown-menu a { color: #bcd3cc; }
  .two-col { grid-template-columns: 1fr; }
  footer .foot-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
