/* Ask Consult — design system
   Colours: petrol teal #1B4B48, warm stone #F6F1E7, terracotta #C1694F, warm charcoal #332E27
   Type: Lora (headings), Public Sans (body) */

:root {
  --teal: #1B4B48;
  --teal-dark: #123331;
  --stone: #F6F1E7;
  --stone-deep: #EDE5D3;
  --terracotta: #C1694F;
  --terracotta-dark: #A8523B;
  --charcoal: #332E27;
  --charcoal-soft: #5A5346;
  --border: #DCD3BE;
  --white: #FFFDF9;

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--teal);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.9em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.7em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--stone);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--teal); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--terracotta); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 66px 0 0 0;
    background: var(--stone);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 24px 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    overflow-y: auto;
  }
  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
  }
  .main-nav .nav-cta { margin-top: 1.4rem; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: var(--teal);
  color: var(--white);
  padding: 4.5rem 0 4rem;
}
.hero h1 { color: var(--white); }
.hero .lede {
  font-size: 1.2rem;
  max-width: 640px;
  color: rgba(255,255,255,0.88);
}
.hero .eyebrow { color: var(--terracotta); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

.page-hero {
  background: var(--teal);
  color: var(--white);
  padding: 3.4rem 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.4em; }
.page-hero .lede { color: rgba(255,255,255,0.85); max-width: 640px; font-size: 1.1rem; margin: 0; }

/* Sections */
section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }
.bg-white { background: var(--white); }
.bg-deep { background: var(--stone-deep); }

.section-head { max-width: 680px; margin: 0 0 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Grid / cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
}

.service-card h3 { margin-bottom: 0.5em; }
.service-card a.card-link {
  display: inline-block;
  margin-top: 0.6em;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  text-align: center;
}

/* Steps / process */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.4rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--teal);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--terracotta);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { margin-top: 0.8rem; color: var(--charcoal-soft); }

/* CTA band */
.cta-band {
  background: var(--terracotta);
  color: var(--white);
  padding: 3.2rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 1.6rem; }

/* Practitioner / about */
.practitioner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.practitioner img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--stone-deep);
}
@media (max-width: 720px) {
  .practitioner { grid-template-columns: 1fr; }
  .practitioner img { max-width: 260px; }
}

.photo-placeholder {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--stone-deep);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--charcoal-soft);
  font-size: 0.9rem;
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.principles li {
  padding-left: 1.6rem;
  position: relative;
}
.principles li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
}

/* Forms */
.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4em;
  font-size: 0.95rem;
  color: var(--teal);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.3rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.9rem; color: var(--charcoal-soft); margin-top: 1rem; }
.form-success {
  display: none;
  background: var(--stone-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.82);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1em;
}
.site-footer .logo { color: var(--white); }
.site-footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
.site-footer a:hover { color: var(--terracotta); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Blog */
.post-list { display: grid; gap: 1.75rem; }
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
}
.post-card .post-date { font-size: 0.85rem; color: var(--charcoal-soft); margin-bottom: 0.5em; }
.post-card h3 { margin-bottom: 0.4em; }
.post-card h3 a { color: var(--teal); text-decoration: none; }
.post-card h3 a:hover { color: var(--terracotta); }

.post-body { max-width: 700px; }
.post-body h2 { margin-top: 1.4em; }
.post-body ul { padding-left: 1.3em; }
.post-header { max-width: 700px; }
.post-meta { color: var(--charcoal-soft); font-size: 0.92rem; margin-bottom: 0.4em; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: 0.95rem; text-decoration: none; }

.empty-state {
  text-align: center;
  padding: 2.5rem;
  color: var(--charcoal-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }
