/* =========================================================
   THERMOSTUDIO – Editorial Authority Design System
   Color palette: warm off-white, graphite, deep olive,
   muted clay, subtle solar yellow accent
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --off-white:   #F5F2EC;
  --warm-white:  #FDFAF5;
  --graphite:    #2A2A2A;
  --graphite-mid:#4A4A4A;
  --graphite-lt: #6E6E6E;
  --olive:       #3D4A2E;
  --olive-lt:    #5A6B42;
  --clay:        #8C6B52;
  --clay-lt:     #B8917A;
  --solar:       #C8A84B;
  --solar-lt:    #DFC07A;
  --border:      #D8D2C8;
  --border-lt:   #EAE5DC;

  --font-serif:  Georgia, 'Times New Roman', serif;
  --font-sans:   'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-w:       1160px;
  --section-v:   96px;
  --section-v-sm:64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--warm-white);
  color: var(--graphite);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* --- Typography Scale --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.2;
  color: var(--graphite);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  font-size: 1.0625rem;
  color: var(--graphite-mid);
  max-width: 68ch;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-v) 0;
}

.section--alt {
  background-color: var(--off-white);
}

.section--dark {
  background-color: var(--olive);
  color: var(--off-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--off-white);
}

.section--dark p {
  color: rgba(245,242,236,0.82);
}

.section--border-top {
  border-top: 1px solid var(--border);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--graphite);
  font-weight: normal;
  text-transform: uppercase;
}

.logo__tagline {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--graphite-lt);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--graphite-mid);
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--olive);
}

.header-cta {
  display: inline-block;
  padding: 10px 22px;
  background-color: var(--olive);
  color: var(--off-white) !important;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--olive);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.header-cta:hover {
  background-color: var(--olive-lt);
  border-color: var(--olive-lt);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--graphite);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--warm-white);
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  gap: 20px;
}

.mobile-nav a {
  font-size: 1rem;
  color: var(--graphite-mid);
  letter-spacing: 0.03em;
}

.mobile-nav .header-cta {
  align-self: flex-start;
  margin-top: 8px;
}

.mobile-nav.open {
  display: flex;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-sans);
  text-align: center;
}

.btn--primary {
  background-color: var(--olive);
  color: var(--off-white);
  border-color: var(--olive);
}

.btn--primary:hover {
  background-color: var(--olive-lt);
  border-color: var(--olive-lt);
}

.btn--secondary {
  background-color: transparent;
  color: var(--graphite);
  border-color: var(--graphite-mid);
}

.btn--secondary:hover {
  border-color: var(--olive);
  color: var(--olive);
}

.btn--ghost-light {
  background-color: transparent;
  color: var(--off-white);
  border-color: rgba(245,242,236,0.6);
}

.btn--ghost-light:hover {
  background-color: rgba(245,242,236,0.1);
  border-color: var(--off-white);
}

/* --- Hero --- */
.hero {
  background-color: var(--off-white);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content {}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 20px;
}

.hero__h1 {
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--graphite-mid);
  margin-bottom: 36px;
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__proof {
  font-size: 0.8125rem;
  color: var(--graphite-lt);
  letter-spacing: 0.03em;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.hero__image-wrap {
  position: relative;
}

.hero__placeholder {
  background-color: var(--border-lt);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.hero__placeholder p {
  font-size: 0.875rem;
  color: var(--graphite-lt);
  text-align: center;
  font-style: italic;
  max-width: 100%;
}

/* --- Brand Statement --- */
.brand-statement {
  padding: var(--section-v) 0;
}

.brand-statement__inner {
  max-width: 780px;
}

.brand-statement h2 {
  margin-bottom: 24px;
}

.brand-statement p {
  font-size: 1.125rem;
  line-height: 1.75;
}

/* --- Timeline --- */
.timeline {
  padding: var(--section-v) 0;
  background-color: var(--off-white);
}

.timeline h2 {
  margin-bottom: 56px;
}

.timeline__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--solar);
}

.timeline__item {
  padding: 32px 32px 32px 0;
  border-right: 1px solid var(--border);
  position: relative;
}

.timeline__item:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 32px;
}

.timeline__item:not(:first-child):not(:last-child) {
  padding-left: 32px;
}

.timeline__year {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--solar);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.timeline__item h3 {
  font-size: 1rem;
  color: var(--graphite);
  margin-bottom: 10px;
}

.timeline__item p {
  font-size: 0.9375rem;
  color: var(--graphite-mid);
}

/* --- Services Chapters --- */
.services {
  padding: var(--section-v) 0;
}

.services h2 {
  margin-bottom: 56px;
}

.service-chapter {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.service-chapter:last-child {
  border-bottom: 1px solid var(--border);
}

.service-chapter__number {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--border);
  line-height: 1;
  user-select: none;
}

.service-chapter__body h3 {
  margin-bottom: 16px;
  color: var(--olive);
}

.service-chapter__body p {
  font-size: 1rem;
}

/* --- Method Cards --- */
.method {
  padding: var(--section-v) 0;
  background-color: var(--off-white);
}

.method h2 {
  margin-bottom: 16px;
}

.method__intro {
  margin-bottom: 48px;
  font-size: 1.0625rem;
}

.method__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
}

.method__card {
  background-color: var(--warm-white);
  padding: 32px 28px;
}

.method__card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--graphite);
  margin-bottom: 12px;
  display: block;
}

.method__card p {
  font-size: 0.9375rem;
}

/* --- Reassurance --- */
.reassurance {
  padding: var(--section-v) 0;
}

.reassurance h2 {
  margin-bottom: 40px;
}

.reassurance__questions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
  border-top: 1px solid var(--border);
}

.reassurance__q {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.0625rem;
  color: var(--graphite-mid);
  font-style: italic;
}

.reassurance__q::before {
  content: "— ";
  color: var(--solar);
}

.reassurance > .container > p {
  font-size: 1rem;
  color: var(--graphite-mid);
}

/* --- Final CTA Section --- */
.final-cta {
  padding: var(--section-v) 0;
  background-color: var(--olive);
  color: var(--off-white);
}

.final-cta h2 {
  color: var(--off-white);
  margin-bottom: 20px;
}

.final-cta p {
  color: rgba(245,242,236,0.82);
  margin-bottom: 36px;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background-color: var(--off-white);
}

.page-hero h1 {
  margin-bottom: 20px;
}

.page-hero__lead {
  font-size: 1.125rem;
  color: var(--graphite-mid);
  max-width: 64ch;
}

/* --- Service Detail Sections --- */
.service-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-lt);
}

.service-section:last-of-type {
  border-bottom: none;
}

.service-section__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
  display: block;
}

.service-section h2 {
  margin-bottom: 20px;
  color: var(--olive);
}

.service-section p {
  font-size: 1rem;
  max-width: 64ch;
}

/* --- CTA Block --- */
.cta-block {
  padding: var(--section-v) 0;
  background-color: var(--olive);
  color: var(--off-white);
}

.cta-block h2 {
  color: var(--off-white);
  margin-bottom: 16px;
}

.cta-block p {
  color: rgba(245,242,236,0.82);
  margin-bottom: 32px;
  font-size: 1.0625rem;
}

/* --- About Page --- */
.about-section {
  padding: var(--section-v) 0;
}

.about-section h2 {
  margin-bottom: 20px;
}

.about-section p {
  font-size: 1.0625rem;
  max-width: 68ch;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border);
}

.about-split__placeholder {
  background-color: var(--border-lt);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.about-split__placeholder p {
  font-size: 0.875rem;
  color: var(--graphite-lt);
  text-align: center;
  font-style: italic;
  max-width: 100%;
}

/* --- FAQ --- */
.faq-section {
  padding: var(--section-v) 0;
}

.faq-section h1 {
  margin-bottom: 56px;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-question__text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--graphite);
}

.faq-question__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
  color: var(--graphite-lt);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item.open .faq-question__icon {
  transform: rotate(45deg);
  background-color: var(--olive);
  border-color: var(--olive);
  color: var(--off-white);
}

.faq-answer {
  display: none;
  padding: 0 0 28px 0;
}

.faq-answer p {
  font-size: 1rem;
  color: var(--graphite-mid);
}

.faq-item.open .faq-answer {
  display: block;
}

/* --- Pályázatok --- */
.palyazat-section {
  padding: var(--section-v) 0;
}

.palyazat-section h1 {
  margin-bottom: 16px;
}

.palyazat-section__intro {
  font-size: 1.0625rem;
  color: var(--graphite-mid);
  margin-bottom: 56px;
}

.palyazat-item {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.palyazat-item:last-child {
  border-bottom: 1px solid var(--border);
}

.palyazat-item__code {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--clay);
  letter-spacing: 0.04em;
  padding-top: 4px;
}

.palyazat-item__body p {
  font-size: 1rem;
  color: var(--graphite-mid);
}

/* --- Contact Page --- */
.contact-section {
  padding: var(--section-v) 0;
}

.contact-section h1 {
  margin-bottom: 16px;
}

.contact-section__intro {
  font-size: 1.0625rem;
  color: var(--graphite-mid);
  margin-bottom: 56px;
  max-width: 60ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-panel h3 {
  margin-bottom: 24px;
  color: var(--olive);
}

.contact-panel__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-panel__row {
  font-size: 0.9375rem;
  color: var(--graphite-mid);
  line-height: 1.5;
}

.contact-panel__row strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-lt);
  margin-bottom: 2px;
}

.contact-panel__row a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-panel__row a:hover {
  color: var(--olive-lt);
}

.contact-panel__divider {
  height: 1px;
  background-color: var(--border);
  margin: 20px 0;
}

/* --- Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite-lt);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background-color: var(--warm-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--graphite);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--olive);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E6E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--olive);
  cursor: pointer;
}

.form-checkbox__label {
  font-size: 0.9rem;
  color: var(--graphite-mid);
  line-height: 1.5;
}

.form-microcopy {
  font-size: 0.8125rem;
  color: var(--graphite-lt);
  font-style: italic;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--graphite);
  color: rgba(245,242,236,0.7);
  padding: 56px 0 40px;
  border-top: 3px solid var(--solar);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--off-white);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.footer-logo__tagline {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-info p,
.footer-info a {
  font-size: 0.875rem;
  color: rgba(245,242,236,0.7);
  line-height: 1.6;
}

.footer-info a:hover {
  color: var(--solar-lt);
}

.footer-bottom {
  border-top: 1px solid rgba(245,242,236,0.12);
  padding-top: 24px;
  font-size: 0.8125rem;
  color: rgba(245,242,236,0.4);
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
  :root {
    --section-v: 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__image-wrap {
    order: -1;
  }

  .method__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline__items {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .timeline__item {
    border-right: none;
    border-left: 2px solid var(--solar);
    padding: 24px 0 24px 28px;
  }

  .timeline__item:last-child,
  .timeline__item:not(:first-child):not(:last-child) {
    padding-left: 28px;
    padding-right: 0;
  }

  .service-chapter {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-chapter__number {
    font-size: 2.5rem;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .palyazat-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-v: 56px;
  }

  .container {
    padding: 0 20px;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .method__cards {
    grid-template-columns: 1fr;
    gap: 0;
  }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
}
