/*
Theme Name: Counsellor Theme
Theme URI: https://example.com
Author: Your Studio
Author URI: https://example.com
Description: A generic, soft-styled WordPress starter theme for any small business or practice. Homepage sections (Hero, About, Services, plus four general-purpose sections) are each independently editable in wp-admin, alongside About, Services and Contact page templates — nothing in the theme is tied to any one industry.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: counsellor
*/

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&family=Karla:wght@400;500;700&display=swap');

:root {
  --color-bg: #fbfaf6;
  --color-surface: #f2f6ee;
  --color-text: #2c2a2e;
  --color-accent: #7bc47f;
  --color-accent-pink: #e8a6c1;
  --color-divider: color-mix(in srgb, #2c2a2e 12%, transparent);

  --color-neutral-100: #fbfaf6;
  --color-neutral-200: #f2f0ea;
  --color-neutral-300: #e4e1d8;
  --color-neutral-400: #cac6ba;
  --color-neutral-500: #a8a398;
  --color-neutral-600: #868175;
  --color-neutral-700: #645f55;
  --color-neutral-800: #453f38;
  --color-neutral-900: #2c2a2e;

  --color-accent-100: #eaf8ea;
  --color-accent-200: #d1efd3;
  --color-accent-300: #aee1b3;
  --color-accent-400: #8dd193;
  --color-accent-500: #7bc47f;
  --color-accent-600: #5da868;
  --color-accent-700: #458456;
  --color-accent-800: #33613f;
  --color-accent-900: #603a52;

  --font-heading: "Quicksand", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Karla", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-md: 16px;

  --shadow-sm: 0 2px 8px color-mix(in srgb, #2c2a2e 8%, transparent);
  --shadow-md: 0 8px 24px color-mix(in srgb, #2c2a2e 10%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 var(--space-3);
}
h1 { font-size: 52px; }
h2 { font-size: 36px; }
h3 { font-size: 26px; }
h4 { font-size: 20px; color: #603a52; }
h6 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.screen-reader-text { position: absolute !important; left: -9999px; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-surface { background: var(--color-surface); }
.section-accent { background: var(--color-accent-900); color: var(--color-neutral-100); }
.section-accent h2, .section-accent h3 { color: var(--color-neutral-100); }

/* soft frame — corner registration marks hidden for a gentler, personal feel */
.blueprint { position: relative; border: 1px solid var(--color-divider); border-radius: var(--radius-md); overflow: hidden; }
.blueprint > .corner { display: none; }

.duotone { position: relative; overflow: hidden; background: var(--color-neutral-300); border-radius: var(--radius-md); }
.duotone::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--color-accent-pink); mix-blend-mode: soft-light; opacity: .6; }
.duotone img { width: 100%; height: 100%; object-fit: cover; }

/* image placeholder — replace with a real <img> or featured image once photos are supplied */
.img-placeholder {
  width: 100%; height: 100%; min-height: 200px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--color-neutral-300) 0 2px, var(--color-neutral-200) 2px 14px);
  color: color-mix(in srgb, var(--color-text) 55%, transparent); font-size: 12px; text-align: center; padding: 12px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-600); color: #fff; text-decoration: none; }
.btn-secondary { border-color: var(--color-accent-pink); color: var(--color-text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-accent-pink) 16%, transparent); text-decoration: none; }
.section-accent .btn-secondary { border-color: color-mix(in srgb, #fff 30%, transparent); color: #fff; }

.tag { display: inline-flex; align-items: center; font-size: 12px; letter-spacing: .04em; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--color-accent-pink); color: var(--color-accent-800); background: color-mix(in srgb, var(--color-accent-pink) 12%, transparent); }
.section-accent .tag { border-color: color-mix(in srgb, #fff 55%, transparent); color: #fff; background: transparent; }

.card { position: relative; padding: 24px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.card-title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin: 0 0 8px; }
.card-body { margin: 0; font-size: 14px; opacity: .8; }

/* header / nav 
.site-header { border-bottom: 1px solid var(--color-divider); background: var(--color-bg); }
.nav { display: flex; align-items: center; gap: var(--space-6); padding: 18px 40px; max-width: 1240px; margin: 0 auto; }
.nav-brand { font-family: var(--font-heading); font-weight: 600; font-size: 19px; margin-right: auto; color: var(--color-text); }
.nav-links { margin-left: auto; }
.nav-links ul { display: flex; gap: 32px; }
.nav-links a { color: var(--color-text); font-size: 15px; text-decoration: none; }
.nav-links a:hover, .nav-links .current-menu-item > a { color: var(--color-accent); text-decoration: none; }
.nav-links a:btn hover, .nav-links .current-menu-item > a { color: #fff; text-decoration: none; }
*/

.site-header { border-bottom: 1px solid var(--color-divider); background: var(--color-bg); }
.nav { display: flex; align-items: center; gap: var(--space-6); padding: 18px 40px; max-width: 1240px; margin: 0 auto; }
.nav-brand { font-family: var(--font-heading); font-weight: 600; font-size: 19px; margin-right: auto; color: var(--color-text); }
.nav-links { margin-left: auto; }
.nav-links ul { display: flex; gap: 32px; }
.nav-links a { color: var(--color-text); font-size: 15px; text-decoration: none; }
.nav-links a:hover, .nav-links .current-menu-item > a { color: var(--color-accent); text-decoration: none; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; padding: 0; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--color-text); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; }
.mobile-nav.is-open { display: flex; flex-direction: column; gap: 4px; padding: 8px 40px 24px; border-top: 1px solid var(--color-divider); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--color-text); font-size: 16px; }
.mobile-nav a:hover, .mobile-nav .current-menu-item > a { color: var(--color-accent); }

/* footer */
.site-footer { border-top: 1px solid var(--color-divider); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h6 { margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-bottom { margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--color-divider); font-size: 13px; opacity: .6; }

/* grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* contact form */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input { width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 10px; }
textarea.input { min-height: 120px; resize: vertical; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  h1 { font-size: 38px; }
}

@media (max-width: 900px) {
  #about .grid-4 {
    grid-template-columns: 1fr !important;
  }
}