/* -----------------------------------------------------------------------
   İpek Hepekiz — Mental health & spiritual healing
   Rich, CSS-only design system
   ----------------------------------------------------------------------- */

:root {
  /* Palette: warm cream, sage, terracotta gold */
  --bg: #f8f6f2;
  --bg-soft: #f2efe8;
  --bg-card: #fffefb;
  --text: #2d2a26;
  --text-muted: #716d66;
  --accent: #b8956e;
  --accent-hover: #9a7b54;
  --accent-soft: rgba(184, 149, 110, 0.12);
  --sage: #8a9b7a;
  --sage-soft: rgba(138, 155, 122, 0.15);
  --border: #e5e1d9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(45, 42, 38, 0.06);
  --shadow-lg: 0 8px 32px rgba(45, 42, 38, 0.08);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Karla", system-ui, sans-serif;
  --space: 1.5rem;
  --wrap: min(720px, 92vw);
  --nav-h: 3.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ----- Navbar ----- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(45, 42, 38, 0.08);
}

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

.navbar-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.navbar-logo:hover {
  color: var(--accent);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.navbar-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.navbar-nav .navbar-cta {
  color: var(--bg-card);
  background: var(--accent);
  margin-left: 0.25rem;
}

.navbar-nav .navbar-cta:hover {
  background: var(--accent-hover);
  color: var(--bg-card);
}

main {
  min-height: calc(100vh - var(--nav-h) - 140px);
  padding: 3rem 0 4rem;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--space);
}

.site-footer {
  padding: 2rem var(--space) 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ----- Typography ----- */
h1, .hero {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.muted {
  color: var(--text-muted);
  font-size: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.08s;
  text-decoration: none;
}

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

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ----- Homepage ----- */
.hero-section {
  text-align: center;
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.hero-section .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.hero-section .hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.hero-section .hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

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

.intro-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin-top: 2rem;
}

.intro-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}

.intro-section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.intro-section p:last-of-type {
  margin-bottom: 1.5rem;
}

.intro-section .btn {
  margin-top: 0.25rem;
}

.contact-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.contact-section .muted {
  margin-bottom: 1.25rem;
}

.contact-section .contact-success {
  margin-bottom: 1.25rem;
}

/* ----- Test form ----- */
.test-page .wrap {
  max-width: 640px;
}

.test-page h1 {
  margin-bottom: 0.25rem;
}

.test-page .muted {
  margin-bottom: 2rem;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.q-block {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.q-block:last-of-type {
  border-bottom: none;
}

.q-num {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  margin-bottom: 0.4rem;
}

.q-text {
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.scale-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scale-row label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.scale-row label:hover {
  background: var(--accent-soft);
}

.scale-row input[type="radio"] {
  accent-color: var(--accent);
}

#submit-wrap {
  margin-top: 2.5rem;
}

#submit-wrap .btn {
  min-width: 180px;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.error {
  color: #b85450;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* ----- Result page ----- */
.result-page .wrap {
  max-width: 640px;
}

.result-hero {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.result-section {
  margin-bottom: 2rem;
}

.result-section h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 0.6rem;
}

.result-section p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.scores-bar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-label {
  min-width: 110px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.score-track {
  flex: 1;
  height: 10px;
  background: var(--bg-soft);
  border-radius: 5px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease;
}

.score-fill.body {
  background: linear-gradient(90deg, #8a9b7a, #9cad88);
}

.score-fill.mind {
  background: linear-gradient(90deg, #7d8fa8, #9aaac4);
}

.score-fill.emotion {
  background: linear-gradient(90deg, #a87a9e, #c495b0);
}

.score-pct {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 2.5rem;
  text-align: right;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cta-row .btn {
  margin-right: 0;
}

.cta-row .btn.secondary,
.cta-row .btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.cta-row .btn.secondary:hover,
.cta-row .btn--outline:hover {
  background: var(--accent-soft);
}

.top-articles {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.top-articles li {
  margin-bottom: 0.4rem;
}

.top-articles a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.top-articles a:hover {
  color: var(--accent);
}

/* ----- Lead capture ----- */
.lead-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-top: 2.5rem;
}

.lead-box h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.lead-box > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.lead-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.lead-form .form-group {
  margin-bottom: 0;
  flex: 1;
  min-width: 200px;
}

.lead-form .btn {
  flex-shrink: 0;
}

.lead-msg {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.lead-msg.success {
  color: var(--sage);
}

.lead-msg.err {
  color: #b85450;
}

.lead-box__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.lead-box__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.lead-form--stacked {
  flex-direction: column;
  align-items: stretch;
}

.lead-form--stacked .form-group {
  flex: none;
  min-width: 0;
  margin-bottom: 1rem;
}

.lead-form--stacked .form-group:last-of-type {
  margin-bottom: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.checkbox-label input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s;
  resize: vertical;
}

textarea {
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.input-error {
  border-color: #b85450 !important;
}

.field-error {
  display: block;
  font-size: 0.9rem;
  color: #b85450;
  margin-top: 0.35rem;
}

.form-errors {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(184, 84, 80, 0.1);
  border-radius: var(--radius-sm);
  color: #b85450;
  font-size: 0.95rem;
}

/* ----- Contact page ----- */
.contact-page .wrap {
  max-width: 560px;
}

.contact-page h1 {
  margin-bottom: 0.25rem;
}

.contact-page .muted {
  margin-bottom: 1.5rem;
}

.contact-success {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--sage-soft);
  border-radius: var(--radius-sm);
  color: var(--sage);
  font-weight: 500;
}

.contact-form-box {
  margin-top: 0;
}

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

/* ----- Utils ----- */
.ta-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
