/*
Theme Name: Studio Vita
Description: Egyedi WordPress téma a Studio Vita weboldalhoz — meleg, organikus design, saját admin kezelőfelülettel a csapat, szolgáltatások, workshopok és foglalások szerkesztéséhez.
Author: Studio Vita
Version: 1.0
Text Domain: studiovita
*/

/* ======================= Design tokens ======================= */
:root {
  --bg-primary: #FAF8F5;
  --bg-secondary: #F3EFEA;
  --bg-tertiary: #EAE5DE;

  --text-primary: #3E362E;
  --text-secondary: #63584D;
  --text-muted: #9A8F83;
  --text-inverse: #FFFFFF;

  --terracotta: #C98E7B;
  --sage: #A3B19B;
  --brown: #7A5C50;
  --brown-dark: #63584D;
  --taupe: #B5A79A;

  --white: #FFFFFF;
  --cream: #FCFBF9;

  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --shadow-soft: 0 8px 32px rgba(62, 54, 46, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Manrope', -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(163,177,155,0.07), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(201,142,123,0.06), transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { color: var(--text-secondary); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) { .container { padding: 0 32px; } }

section { padding: 96px 0; }
.section-sm { padding: 48px 0; }

/* ======================= Header ======================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(250, 248, 245, 0.9);
  border-bottom: 1px solid var(--bg-tertiary);
}
.site-header .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; max-height: 80px; overflow: hidden; }
.brand .custom-logo-link { display: flex; align-items: center; }
.brand .custom-logo-link img.custom-logo,
.site-header img.custom-logo {
  max-height: 56px !important;
  height: auto !important;
  width: auto !important;
  max-width: 220px;
  object-fit: contain;
}
.brand .leaf {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--brown); color: #fff;
  display: grid; place-items: center; font-size: 16px;
}
.brand span.name { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--text-primary); }

.main-nav { display: none; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.9rem; letter-spacing: 0.02em; color: var(--text-secondary);
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.current { color: var(--brown); }

@media (min-width: 1024px) { .main-nav { display: flex; } .mobile-toggle { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 12px 24px; font-size: 0.9rem;
  letter-spacing: 0.03em; transition: all .25s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { background: var(--brown-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; border: 1px solid var(--taupe); color: var(--brown); }
.btn-secondary:hover { background: var(--bg-secondary); }

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

.mobile-toggle {
  background: none; border: none; padding: 8px; border-radius: 999px; cursor: pointer;
}
.mobile-toggle:hover { background: var(--bg-secondary); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 60;
  overflow-y: auto;
  box-shadow: 0 12px 24px rgba(62,54,46,0.08);
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { display: block; }
.mobile-nav .inner { padding: 12px 24px 32px; display: flex; flex-direction: column; }
.mobile-nav a {
  padding: 16px 4px;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--bg-tertiary);
  color: var(--text-primary);
}
.mobile-nav a.current { color: var(--brown); }
.mobile-nav .btn { margin-top: 24px; width: 100%; }

/* ======================= Cards & components ======================= */
.card {
  background: var(--white);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.pill { display:inline-block; padding: 4px 14px; border-radius: 999px; background: var(--bg-secondary); color: var(--brown); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.placeholder-block {
  width: 100%; min-height: 280px;
  background: rgba(234,229,222,0.4);
  border: 2px dashed rgba(181,167,154,0.35);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-family: 'Cormorant Garamond', serif; font-style: italic;
  text-align: center; padding: 32px;
}
.placeholder-block img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }

/* ======================= Forms ======================= */
input, textarea, select {
  width: 100%; background: var(--white); border: 1px solid var(--bg-tertiary);
  border-radius: 0.9rem; padding: 12px 16px; font-family: inherit; font-size: 0.95rem;
  color: var(--text-primary);
}
input:focus, textarea:focus, select:focus {
  outline: none; box-shadow: 0 0 0 2px var(--sage);
}
label { display:block; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.form-notice { padding: 14px 18px; border-radius: 0.9rem; margin-bottom: 18px; font-size: 0.9rem; }
.form-notice.success { background: rgba(163,177,155,0.15); color: #3E362E; }
.form-notice.error { background: rgba(201,142,123,0.18); color: #3E362E; }

/* ======================= Hero ======================= */
.hero { padding: 72px 0 96px; }
.hero .eyebrow { color: var(--brown); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; max-width: 44ch; }

/* ======================= Footer ======================= */
.site-footer { margin-top: 96px; background: var(--bg-secondary); border-top: 1px solid var(--bg-tertiary); }
.footer-grid { display: grid; gap: 40px; padding: 64px 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { font-size: 1.15rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.footer-bottom { border-top: 1px solid var(--bg-tertiary); padding: 20px 0; text-align: center; font-size: 0.78rem; color: var(--text-muted); }

/* ======================= FAQ ======================= */
.faq-item {
  background: var(--white);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin-bottom: 16px;
}
.faq-q { display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-family:'Cormorant Garamond',serif; font-size:1.3rem; }
.faq-a { max-height:0; overflow:hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 400px; padding-top: 14px; }
.faq-q .icon { transition: transform .3s ease; color: var(--text-muted); font-size:1.4rem; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }

/* ======================= Team / Service / Workshop cards ======================= */
.team-card, .service-card, .workshop-card { display:flex; flex-direction:column; height:100%; }
.team-card h3, .service-card h3, .workshop-card h3 { margin-bottom:4px; }
.team-card .role { color: var(--brown); font-size:0.9rem; margin-bottom:12px; }
.tag-row { display:flex; flex-wrap:wrap; gap:6px; margin: 10px 0; }
.tag { font-size:0.75rem; padding:3px 10px; border-radius:999px; background:var(--bg-secondary); color:var(--text-secondary); }
.meta-row { display:flex; gap:16px; font-size:0.85rem; color: var(--text-muted); margin: 10px 0; }
.category-heading { margin: 56px 0 24px; }
.category-heading:first-child { margin-top: 0; }

/* ======================= CTA box ======================= */
.cta-box {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
}
.cta-box p { max-width: 46ch; margin-left: auto; margin-right: auto; }

/* ======================= Utility ======================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--text-muted); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
