/*
Theme Name: Álomfa Műhely
Theme URI: https://alomfamuhely.hu
Author: OpenAI / ChatGPT
Description: Egyedi, letisztult WordPress téma az Álomfa Műhely gyerekágyas weboldalához. Szerkeszthető kezdőlap, ágy modellek, galéria és ajánlatkérő konfigurátor.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alomfa-muhely
Tags: custom-logo, custom-menu, featured-images, one-column, e-commerce, portfolio
*/

:root {
  --am-bg: #faf7f1;
  --am-bg-soft: #fffdf8;
  --am-card: #ffffff;
  --am-ink: #221b16;
  --am-muted: #6e6258;
  --am-line: #eadfce;
  --am-accent: #a67c52;
  --am-accent-dark: #745136;
  --am-accent-soft: #efe1cf;
  --am-radius: 28px;
  --am-shadow: 0 24px 70px rgba(72, 52, 35, .13);
  --am-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--am-ink);
  background: var(--am-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .am-site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.am-container { width: min(var(--am-max), calc(100% - 40px)); margin: 0 auto; }
.am-section { padding: 94px 0; }
.am-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--am-accent-dark);
}
.am-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--am-accent); display: inline-block; }
.am-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.05em;
  margin: 14px 0 20px;
}
.am-title-small {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin: 12px 0 18px;
}
.am-lead { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--am-muted); max-width: 720px; }
.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 760;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}
.am-btn:hover { transform: translateY(-1px); }
.am-btn-primary { background: var(--am-ink); color: #fff; box-shadow: 0 14px 30px rgba(34,27,22,.18); }
.am-btn-primary:hover { background: #000; }
.am-btn-secondary { background: rgba(255,255,255,.74); border-color: rgba(34,27,22,.14); color: var(--am-ink); }
.am-btn-secondary:hover { background: #fff; }
.am-btn-light { background: #fff; color: var(--am-ink); border-color: rgba(34,27,22,.1); }

.am-site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250,247,241,.83);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(234,223,206,.72);
}
.am-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.am-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.am-brand-main { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.02em; font-size: 1.45rem; }
.am-brand-sub { margin-top: 5px; font-size: .71rem; text-transform: uppercase; letter-spacing: .18em; color: var(--am-muted); }
.am-nav { display: flex; align-items: center; gap: 24px; font-size: .94rem; font-weight: 650; color: #3f342d; }
.am-nav a { text-decoration: none; opacity: .86; }
.am-nav a:hover { opacity: 1; }
.am-mobile-toggle { display: none; background: transparent; border: 0; font-size: 1.7rem; }

.am-hero {
  min-height: min(820px, calc(100vh - 76px));
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.am-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250,247,241,.95) 0%, rgba(250,247,241,.86) 38%, rgba(250,247,241,.43) 69%, rgba(250,247,241,.12) 100%);
}
.am-hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 180px;
  background: linear-gradient(180deg, rgba(250,247,241,0), var(--am-bg));
}
.am-hero-content { position: relative; z-index: 2; max-width: 680px; padding: 105px 0 130px; }
.am-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.am-hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; color: #483b32; }
.am-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(34,27,22,.12); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.58); font-size: .92rem; font-weight: 650; }
.am-pill::before { content: "•"; color: var(--am-accent); font-size: 1.2rem; }

.am-intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.am-soft-card { background: var(--am-card); border: 1px solid var(--am-line); border-radius: var(--am-radius); box-shadow: var(--am-shadow); padding: clamp(26px, 4vw, 46px); }
.am-feature-list { display: grid; gap: 16px; margin: 26px 0 0; padding: 0; list-style: none; }
.am-feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.am-check { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--am-accent-soft); color: var(--am-accent-dark); font-weight: 800; }
.am-image-stack { position: relative; }
.am-image-stack img { border-radius: var(--am-radius); box-shadow: var(--am-shadow); object-fit: cover; width: 100%; aspect-ratio: 4 / 5; }
.am-floating-note { position: absolute; left: -22px; bottom: 28px; max-width: 270px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border: 1px solid rgba(234,223,206,.8); border-radius: 20px; padding: 18px 20px; box-shadow: 0 18px 45px rgba(72, 52, 35, .13); font-weight: 700; }
.am-floating-note span { display: block; font-size: .88rem; color: var(--am-muted); font-weight: 500; margin-top: 4px; }

.am-models { background: var(--am-bg-soft); border-top: 1px solid var(--am-line); border-bottom: 1px solid var(--am-line); }
.am-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.am-section-head .am-lead { margin: 0; }
.am-model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.am-model-card { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); overflow: hidden; box-shadow: 0 20px 60px rgba(72, 52, 35, .08); display: grid; grid-template-rows: auto 1fr; }
.am-model-card figure { margin: 0; overflow: hidden; background: #eee1d2; }
.am-model-card figure img { width: 100%; aspect-ratio: 4 / 3.7; object-fit: cover; transition: transform .6s ease; }
.am-model-card:hover figure img { transform: scale(1.035); }
.am-model-body { padding: 30px; }
.am-model-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.am-model-body h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 8px; }
.am-badge { border-radius: 999px; background: var(--am-accent-soft); color: var(--am-accent-dark); padding: 7px 11px; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.am-model-desc { color: var(--am-muted); margin: 12px 0 22px; }
.am-model-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.am-meta { border: 1px solid var(--am-line); border-radius: 16px; padding: 12px 14px; background: #fffaf4; }
.am-meta small { display: block; text-transform: uppercase; letter-spacing: .12em; color: var(--am-muted); font-size: .7rem; font-weight: 800; }
.am-meta strong { display: block; margin-top: 3px; font-size: .97rem; }
.am-card-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.am-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.am-gallery-item { border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--am-line); box-shadow: 0 16px 40px rgba(72, 52, 35, .07); }
.am-gallery-item:nth-child(1), .am-gallery-item:nth-child(4) { grid-column: span 2; }
.am-gallery-item img { width: 100%; height: 100%; min-height: 230px; aspect-ratio: 1; object-fit: cover; }

.am-gallery-item[hidden] { display: none !important; }
.am-gallery-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.am-gallery-actions[hidden] { display: none !important; }

.am-config { background: #efe4d5; }
.am-config-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 34px; align-items: start; }
.am-form { background: #fff; border: 1px solid rgba(166,124,82,.25); border-radius: var(--am-radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--am-shadow); }
.am-form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.am-field { margin-bottom: 14px; }
.am-field label { display: block; font-weight: 750; margin-bottom: 6px; color: #40342d; }
.am-field input, .am-field select, .am-field textarea {
  width: 100%; border: 1px solid #dfd1c0; border-radius: 14px; padding: 13px 14px; font: inherit; color: var(--am-ink); background: #fffdf9;
}
.am-field textarea { min-height: 120px; resize: vertical; }
.am-form-note { font-size: .88rem; color: var(--am-muted); margin: 12px 0 0; }
.am-alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; font-weight: 700; }
.am-alert-success { background: #e6f4e8; color: #1b5e2a; }
.am-alert-error { background: #fbe8e5; color: #8a2a18; }

.am-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.am-step { background: #fff; border: 1px solid var(--am-line); border-radius: 24px; padding: 24px; }
.am-step-number { width: 38px; height: 38px; border-radius: 50%; background: var(--am-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 18px; }
.am-step h3 { margin: 0 0 8px; }
.am-step p { margin: 0; color: var(--am-muted); }

.am-faq { background: var(--am-bg-soft); border-top: 1px solid var(--am-line); }
.am-faq-list { display: grid; gap: 12px; max-width: 900px; }
.am-faq details { background: #fff; border: 1px solid var(--am-line); border-radius: 18px; padding: 18px 22px; }
.am-faq summary { font-weight: 800; cursor: pointer; }
.am-faq p { color: var(--am-muted); margin-bottom: 0; }

.am-footer { background: #211a15; color: #fff8ee; padding: 52px 0 30px; }
.am-footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; }
.am-footer a { color: inherit; text-decoration: none; opacity: .85; }
.am-footer a:hover { opacity: 1; }
.am-footer h3, .am-footer h4 { margin-top: 0; }
.am-footer p, .am-footer li { color: rgba(255,248,238,.72); }
.am-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.am-copyright { border-top: 1px solid rgba(255,255,255,.13); margin-top: 36px; padding-top: 22px; color: rgba(255,248,238,.62); font-size: .9rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.am-page-main { padding: 74px 0 96px; }
.am-page-card { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: clamp(28px, 5vw, 60px); box-shadow: var(--am-shadow); }
.am-page-card h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1; letter-spacing: -.04em; }

@media (max-width: 900px) {
  body.admin-bar .am-site-header { top: 46px; }
  .am-mobile-toggle { display: block; }
  .am-nav { position: absolute; left: 20px; right: 20px; top: 76px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--am-line); border-radius: 20px; padding: 14px; box-shadow: var(--am-shadow); }
  .am-nav.is-open { display: flex; }
  .am-nav a { padding: 12px; }
  .am-hero { min-height: 720px; background-position: 63% center; }
  .am-hero::before { background: linear-gradient(180deg, rgba(250,247,241,.95) 0%, rgba(250,247,241,.88) 46%, rgba(250,247,241,.65) 100%); }
  .am-intro-grid, .am-config-grid, .am-model-grid { grid-template-columns: 1fr; }
  .am-section-head { display: block; }
  .am-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .am-gallery-item:nth-child(1), .am-gallery-item:nth-child(4) { grid-column: span 1; }
  .am-steps { grid-template-columns: repeat(2, 1fr); }
  .am-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .am-container { width: min(100% - 28px, var(--am-max)); }
  .am-section { padding: 68px 0; }
  .am-hero-content { padding: 74px 0 108px; }
  .am-form-row, .am-model-meta, .am-steps, .am-footer-grid { grid-template-columns: 1fr; }
  .am-gallery-grid { grid-template-columns: 1fr; }
  .am-floating-note { position: static; margin-top: 16px; max-width: none; }
}
