/* ============================================================
   FAGYÖNGY APARTMANHÁZAK — Custom Theme CSS
   Design tokens: brand colors + Oswald/Roboto typography
   ============================================================ */

/* ----------------------------------------------------------
   1. Design Tokens
   ---------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-sky:        #aac4e7;   /* light blue */
  --color-blue:       #758eaf;   /* medium blue */
  --color-cream:      #ebebdf;   /* warm cream */
  --color-sage:       #c0c9bd;   /* sage green */
  --color-black:      #000000;
  --color-white:      #ffffff;
  --color-light:      #f6f6f6;   /* off-white sections */
  --color-text:       #1a1a1a;
  --color-text-muted: #666666;
  --color-border:     #c0c9bd;   /* sage for borders */

  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Roboto', sans-serif;

  /* Font sizes (from tokens) */
  --fs-banner: 3.625rem;   /* 58px */
  --fs-h1:     2.25rem;    /* 36px */
  --fs-h2:     2rem;       /* 32px */
  --fs-h3:     1.75rem;    /* 28px */
  --fs-h4:     1.5rem;     /* 24px */
  --fs-h5:     1.25rem;    /* 20px */
  --fs-h6:     1.125rem;   /* 18px */
  --fs-body:   1rem;       /* 16px */
  --fs-small:  0.875rem;   /* 14px */
  --fs-link:   0.75rem;    /* 12px */

  /* Layout */
  --nav-height:      72px;
  --container-max:   1200px;
  --section-pad-v:   5rem;
  --section-pad-v-sm: 3rem;

  /* Shadows */
  --shadow-nav:  0 4px 30px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ----------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

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

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

a:hover { text-decoration: underline; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  line-height: 1.15;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 400; }
h3 { font-size: var(--fs-h3); font-weight: 400; }
h4 { font-size: var(--fs-h4); font-weight: 400; }
h5 { font-family: var(--font-body); font-size: var(--fs-h5); font-weight: 600; text-transform: uppercase; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------
   3. Layout Utilities
   ---------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section--light {
  background: var(--color-light);
}

.section--cream {
  background: var(--color-cream);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 1rem;
}

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--color-sky);
  margin: 0 auto;
}

/* ----------------------------------------------------------
   4. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-link);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid var(--color-sage);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-sage);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

.btn-primary:hover {
  background: var(--color-sky);
  border-color: var(--color-sky);
  color: var(--color-black);
  text-decoration: none;
}

.btn-solid {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.btn-solid:hover {
  background: var(--color-sky);
  border-color: var(--color-sky);
  color: var(--color-black);
  text-decoration: none;
}

/* ----------------------------------------------------------
   5. Header / Navigation
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-white);
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-nav);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--color-black);
  letter-spacing: 0.02em;
}

.logo-text small {
  font-size: 0.65rem;
  font-weight: 400;
  display: block;
  color: var(--color-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav { display: flex; }

.nav-list {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--fs-link);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 0.5rem 0.875rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-blue);
  text-decoration: none;
}

.nav-link.is-active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--color-sky);
  margin-top: 2px;
  border-radius: 1px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* ----------------------------------------------------------
   6. Hero Section
   ---------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-height));
  background: var(--color-white);
  box-shadow: var(--shadow-nav);
}

.hero-image {
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-sky), var(--color-blue));
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: flex;
  align-items: center;
  padding: 4rem 5vw;
  background: var(--color-light);
}

.hero-text { max-width: 480px; }

.hero-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-divider {
  width: 56px;
  height: 9px;
  background: var(--color-black);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.hero-body {
  font-size: var(--fs-h6);
  color: var(--color-text);
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   7. About Section
   ---------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  font-size: var(--fs-h6);
  line-height: 1.75;
  color: var(--color-text);
}

.about-text p { margin-bottom: 1.25rem; }

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 0.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--color-sky) 0%, var(--color-cream) 100%);
  aspect-ratio: 4/3;
}

.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

/* ----------------------------------------------------------
   8. Offers Section
   ---------------------------------------------------------- */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.offer-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.offer-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-sky), var(--color-cream));
}

.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.offer-card:hover .offer-image img { transform: scale(1.05); }

.offer-body {
  padding: 1.5rem;
}

.offer-title {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-black);
}

.offer-text {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.offers-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ----------------------------------------------------------
   9. Testimonials Section
   ---------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  color: var(--color-sky);
}

.testimonial-text {
  font-size: var(--fs-body);
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
  flex: 1;
}

.testimonial-author {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  font-style: normal;
}

.testimonials-source {
  text-align: center;
  margin-top: 2rem;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------
   10. Contact Section
   ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.contact-subtitle {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-black);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.contact-list svg {
  flex-shrink: 0;
  color: var(--color-blue);
  margin-top: 2px;
}

.contact-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: var(--fs-h6);
  color: var(--color-text);
}

a.contact-value:hover { color: var(--color-blue); }

.contact-hours {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--color-cream);
  border-radius: 6px;
}

.contact-hours-title {
  font-family: var(--font-display);
  font-size: var(--fs-h6);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-hours p {
  font-size: var(--fs-small);
  color: var(--color-text);
  line-height: 1.65;
}

/* Form */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(170, 196, 231, 0.3);
}

.form-group textarea { resize: vertical; }

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* ----------------------------------------------------------
   11. Footer
   ---------------------------------------------------------- */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 4rem 0 0;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sky);
  margin-bottom: 1.25rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.75);
}

.footer-list svg { color: var(--color-sage); flex-shrink: 0; }

.footer-list a { color: inherit; }
.footer-list a:hover { color: var(--color-sky); text-decoration: none; }

.footer-text {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer-text strong { color: var(--color-white); }
.footer-text a { color: var(--color-sky); }

.payment-list li { color: rgba(255,255,255,0.75); font-size: var(--fs-small); }
.payment-list li::before { content: '—'; margin-right: 0.4rem; color: var(--color-sage); }

.footer-tax {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.55);
  margin-top: 0.75rem;
}

.footer-note {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.footer-dsp {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.55);
}

.footer-dsp-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.footer-dsp-logos img {
  height: 32px;
  width: auto;
  filter: invert(1);
}

.footer-dsp p {
  margin: 0;
  line-height: 1.5;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.45);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: var(--fs-small);
}

.footer-links a:hover { color: var(--color-sky); text-decoration: none; }

/* ----------------------------------------------------------
   12. Responsive
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-pad-v: var(--section-pad-v-sm);
    --fs-h1: 2rem;
    --fs-h2: 1.625rem;
    --fs-banner: 2.5rem;
  }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--color-white);
    padding: 2rem 1.5rem;
    flex-direction: column;
    box-shadow: var(--shadow-nav);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .main-nav.is-open { transform: translateX(0); }

  .nav-list { flex-direction: column; gap: 0; }

  .nav-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }

  /* Hero mobile: stack */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-image { height: 50vw; min-height: 220px; }

  .hero-content {
    padding: 2.5rem 1.5rem;
    background: var(--color-light);
  }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .about-gallery { grid-template-columns: repeat(2, 1fr); }
  .about-gallery .gallery-item:first-child { grid-column: span 2; }

  .offers-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .contact-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   13. Accessibility & utility
   ---------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-sky);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
