/*
Theme Name: Dóri – Terápia
Theme URI: https://dori.szatvari.hu/
Author: SZTVM
Author URI: https://sztvm.szatvari.hu/
Description: Egyedi, meleg hangvételű egyoldalas terápia/pszichológus landing téma a dori.szatvari.hu oldalhoz. Warm, calm, therapeutic single-page landing theme.
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: dori-terapia
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--bg:          #faf6f0;   /* cream page background */
	--bg-alt:      #f3ebdf;   /* warm alt section background */
	--card:        #fffdf9;   /* card surface */
	--text:        #3a352f;   /* warm dark text */
	--muted:       #6f665c;   /* muted body text */
	--accent:      #c17c5a;   /* muted terracotta / clay */
	--accent-dark: #a9663f;   /* terracotta hover */
	--sage:        #8a9a7b;   /* soft sage/olive */
	--sage-dark:   #6f7f61;
	--border:      #e7ddce;   /* soft border */
	--shadow:      0 10px 30px rgba(58, 53, 47, 0.08);
	--shadow-sm:   0 4px 14px rgba(58, 53, 47, 0.06);
	--radius:      14px;
	--radius-sm:   10px;
	--maxw:        1120px;
	--head: "Poppins", "Segoe UI", system-ui, sans-serif;
	--body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
	font-family: var(--head);
	font-weight: 600;
	line-height: 1.2;
	color: var(--text);
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

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

.section {
	padding: clamp(56px, 8vw, 104px) 0;
	scroll-margin-top: 90px;
}
.section--alt { background: var(--bg-alt); }
.section__eyebrow {
	display: inline-block;
	font-family: var(--head);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 12px;
}
.section__lead {
	font-size: 1.15rem;
	color: var(--muted);
	max-width: 640px;
}
.section__head { max-width: 720px; margin-bottom: 48px; }
.text-center { text-align: center; }
.text-center .section__lead { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-block;
	font-family: var(--head);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	padding: 16px 30px;
	border-radius: 50px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
	text-align: center;
}
.btn--primary {
	background: var(--accent);
	color: #fff;
	box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost {
	background: transparent;
	color: var(--accent-dark);
	border-color: var(--accent);
}
.btn--ghost:hover { background: var(--accent); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 246, 240, 0.9);
	backdrop-filter: saturate(150%) blur(10px);
	border-bottom: 1px solid var(--border);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
}
.brand {
	font-family: var(--head);
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1.2;
	color: var(--text);
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
	flex: 0 0 auto;
}
.brand:hover { color: var(--accent-dark); }
.brand__mark {
	width: 34px; height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent) 0%, var(--sage) 100%);
	display: inline-block;
	flex: 0 0 auto;
}
.main-nav ul {
	list-style: none;
	display: flex;
	gap: 22px;
	margin: 0; padding: 0;
	align-items: center;
}
.main-nav a {
	font-family: var(--head);
	font-weight: 500;
	font-size: .95rem;
	color: var(--text);
	white-space: nowrap;
}
.main-nav a:hover { color: var(--accent-dark); }
.main-nav .btn { color: #fff; }
.main-nav .btn:hover { color: #fff; }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle span {
	display: block;
	width: 24px; height: 2px;
	background: var(--text);
	margin: 5px 0;
	transition: .25s;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(1100px 500px at 85% -10%, rgba(193,124,90,.16), transparent 60%),
		radial-gradient(900px 500px at 5% 110%, rgba(138,154,123,.18), transparent 60%),
		var(--bg);
}
.hero__inner {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 56px;
	align-items: center;
	padding: clamp(56px, 9vw, 120px) 0;
}
.hero h1 { margin-bottom: .35em; }
.hero__sub {
	font-size: 1.2rem;
	color: var(--muted);
	max-width: 520px;
	margin-bottom: 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 22px; font-size: .95rem; color: var(--muted); }

/* Placeholder image block (real photo goes here) */
.photo-ph {
	position: relative;
	border-radius: var(--radius);
	background: linear-gradient(150deg, #e9d9c8 0%, #d7c3ae 45%, #b9c3ac 100%);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.photo-ph::after {
	content: attr(data-label);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	font-family: var(--head);
	font-size: .9rem;
	letter-spacing: .5px;
	color: rgba(58,53,47,.55);
	background: rgba(255,253,249,.14);
}
.hero .photo-ph { aspect-ratio: 4 / 5; }

/* ==========================================================================
   About
   ========================================================================== */
.about__inner {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: 56px;
	align-items: center;
}
.about .photo-ph { aspect-ratio: 3 / 4; }
.about__signature {
	font-family: var(--head);
	font-weight: 600;
	color: var(--accent-dark);
	margin-top: 6px;
}

/* ==========================================================================
   Help: quick list + detail cards
   ========================================================================== */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 48px;
}
.chip {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 50px;
	padding: 10px 20px;
	font-family: var(--head);
	font-weight: 500;
	font-size: .98rem;
	box-shadow: var(--shadow-sm);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 30px 28px;
	box-shadow: var(--shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
	width: 46px; height: 46px;
	border-radius: 12px;
	background: rgba(193,124,90,.14);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.4rem;
	margin-bottom: 16px;
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ==========================================================================
   Education timeline
   ========================================================================== */
.timeline {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	padding-left: 30px;
	border-left: 2px solid var(--border);
}
.timeline__item { position: relative; padding: 0 0 34px 26px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
	content: "";
	position: absolute;
	left: -39px; top: 4px;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--accent);
	border: 3px solid var(--bg-alt);
}
.timeline__year {
	font-family: var(--head);
	font-weight: 600;
	color: var(--accent-dark);
	font-size: .95rem;
}
.timeline__item h3 { margin: 2px 0 .2em; font-size: 1.1rem; }
.timeline__item p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ==========================================================================
   How therapy works (framework)
   ========================================================================== */
.frame-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.frame {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow-sm);
}
.frame h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.frame h3 .num {
	width: 30px; height: 30px; flex: 0 0 auto;
	border-radius: 50%;
	background: var(--sage);
	color: #fff;
	font-size: .9rem;
	display: flex; align-items: center; justify-content: center;
}
.frame p { margin: 0; color: var(--muted); font-size: 1rem; }
.frame__price {
	margin-top: 26px;
	background: linear-gradient(135deg, rgba(193,124,90,.1), rgba(138,154,123,.12));
	border: 1px dashed var(--accent);
	border-radius: var(--radius);
	padding: 24px 28px;
	text-align: center;
}
.frame__price strong { font-family: var(--head); font-size: 1.3rem; color: var(--accent-dark); }

/* ==========================================================================
   Accordion (details)
   ========================================================================== */
.accordion { max-width: 820px; margin: 0 auto; }
.accordion details {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	margin-bottom: 14px;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}
.accordion summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 24px;
	font-family: var(--head);
	font-weight: 600;
	font-size: 1.05rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
	content: "+";
	font-size: 1.4rem;
	color: var(--accent);
	transition: transform .2s ease;
	flex: 0 0 auto;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc__body { padding: 0 24px 22px; color: var(--muted); }
.accordion .acc__body p { margin: 0; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.quote {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 30px 28px;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
}
.quote__mark { font-family: var(--head); font-size: 3rem; line-height: .6; color: var(--accent); opacity: .5; margin-bottom: 6px; }
.quote p { color: var(--text); font-style: italic; }
.quote__who { margin-top: auto; font-family: var(--head); font-weight: 600; color: var(--accent-dark); font-size: .98rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__inner {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 56px;
	align-items: start;
}
.contact__info p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 26px 0 0; }
.contact__list li {
	display: flex; gap: 14px; align-items: flex-start;
	margin-bottom: 18px;
	font-family: var(--head);
	font-weight: 500;
}
.contact__list .ic {
	width: 42px; height: 42px; flex: 0 0 auto;
	border-radius: 12px;
	background: rgba(138,154,123,.16);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.15rem;
}
.contact__list small { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); }
.contact__list a { color: var(--text); }
.contact__list a:hover { color: var(--accent-dark); }

.form-wrap {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: clamp(26px, 4vw, 42px);
	box-shadow: var(--shadow);
}

/* CF7 form styling */
.form-wrap .dori-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.form-wrap p { margin: 0 0 18px; }
.form-wrap label {
	display: block;
	font-family: var(--head);
	font-weight: 600;
	font-size: .95rem;
	color: var(--text);
}
.form-wrap .req { color: var(--accent); }
.form-wrap input[type="text"],
.form-wrap input[type="email"],
.form-wrap input[type="tel"],
.form-wrap select,
.form-wrap textarea {
	width: 100%;
	margin-top: 8px;
	font-family: var(--body);
	font-size: 1rem;
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 13px 15px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.form-wrap textarea { resize: vertical; min-height: 130px; }
.form-wrap input:focus,
.form-wrap select:focus,
.form-wrap textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(193,124,90,.15);
}
.form-wrap .wpcf7-submit {
	font-family: var(--head);
	font-weight: 600;
	font-size: 1rem;
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 50px;
	padding: 15px 34px;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: background .2s ease, transform .15s ease;
}
.form-wrap .wpcf7-submit:hover { background: var(--accent-dark); transform: translateY(-2px); }
.form-wrap .wpcf7-spinner { margin: 10px auto 0; display: block; }
.form-wrap .wpcf7-not-valid-tip { color: var(--accent-dark); font-family: var(--body); font-weight: 400; font-size: .9rem; }
.form-wrap .wpcf7-response-output {
	border-radius: var(--radius-sm);
	margin: 18px 0 0;
	padding: 14px 16px;
	font-family: var(--body);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: #322e29;
	color: #cabfae;
	padding: 56px 0 30px;
}
.site-footer a { color: #e4d7c4; }
.site-footer a:hover { color: #fff; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 36px;
}
.footer-brand {
	font-family: var(--head);
	font-weight: 700;
	font-size: 1.2rem;
	color: #fff;
	margin-bottom: 12px;
	display: flex; align-items: center; gap: 10px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.12);
	padding-top: 22px;
	font-size: .9rem;
	color: #9d9285;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
}

/* ==========================================================================
   Inner page (page.php / index.php)
   ========================================================================== */
.page-hero {
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border);
	padding: clamp(48px, 7vw, 80px) 0;
}
.entry {
	max-width: 780px;
	margin: 0 auto;
	padding: clamp(40px, 6vw, 70px) 0;
}
.entry h2 { margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry img { border-radius: var(--radius); margin: 1.4em 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.hero__inner,
	.about__inner,
	.contact__inner { grid-template-columns: 1fr; }
	.hero .photo-ph { aspect-ratio: 16 / 11; max-width: 460px; }
	.about .photo-ph { aspect-ratio: 16 / 11; max-width: 460px; }
	.cards, .frame-grid, .quotes { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }

	/* Collapse nav to hamburger earlier so it never crowds the logo */
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute;
		top: 72px; left: 0; right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
		display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 24px 20px;
	}
	.main-nav li { border-bottom: 1px solid var(--border); }
	.main-nav li:last-child { border-bottom: 0; padding-top: 12px; }
	.main-nav a { display: block; padding: 12px 0; white-space: normal; }
	.main-nav .btn { text-align: center; }
}

@media (max-width: 680px) {
	body { font-size: 17px; }
	.cards, .frame-grid, .quotes { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.form-wrap .dori-form-grid { grid-template-columns: 1fr; }
	.hero__cta { flex-direction: column; }
	.hero__cta .btn { width: 100%; }
}
