/* ========================================
   Fónadné Szilbek Henrietta Ev. — Style
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #f7faf8;
  --fg: #1a2e24;
  --card: #ffffff;
  --primary: #3a9e76;
  --primary-dark: #2e7d5e;
  --primary-light: #e8f5ef;
  --primary-fg: #ffffff;
  --secondary: #f0f5f2;
  --muted: #6b8f7d;
  --border: #dce8e1;
  --radius: 0.75rem;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Container --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }
@media(min-width:768px) { .container { padding: 0 1.5rem; } }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media(min-width:768px) { .navbar .container { height: 76px; } }
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; }
.navbar-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.navbar-brand span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
@media(max-width:600px) { .navbar-brand span { display: none; } }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media(min-width:768px) { .nav-links { display: flex; } }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.56rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(58,158,118,.22);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.nav-links a.nav-cta,
.mobile-menu a.nav-cta { color: var(--primary-fg); }
.nav-links a.nav-cta:hover,
.mobile-menu a.nav-cta:hover {
  color: var(--primary-fg);
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(46,125,94,.28);
}
.nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(46,125,94,.22);
}
.nav-cta:focus-visible {
  outline: 2px solid rgba(58,158,118,.35);
  outline-offset: 2px;
}

/* Hamburger */
.hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--fg); transition: .3s; }
@media(min-width:768px) { .hamburger { display: none; } }

.mobile-menu {
  display: none; flex-direction: column; gap: 0.5rem;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 1rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { padding: 0.75rem 0; font-size: 1rem; font-weight: 500; color: var(--muted); }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .nav-cta { text-align: center; padding: 0.85rem; margin-top: 0.5rem; display: block; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  padding-top: 64px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,46,36,.82), rgba(26,46,36,.6), rgba(26,46,36,.3));
}
.hero-content { position: relative; z-index: 1; max-width: 640px; padding: 5rem 0; }
.hero-badge {
  display: inline-block; background: rgba(58,158,118,.25);
  color: var(--primary-fg); font-size: 0.875rem; font-weight: 500;
  padding: 0.375rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero h1 { font-size: 2.25rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--primary); }
@media(min-width:768px) { .hero h1 { font-size: 3rem; } }
@media(min-width:1024px) { .hero h1 { font-size: 3.5rem; } }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; line-height: 1.7; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; }
@media(min-width:640px) { .hero-buttons { flex-direction: row; } }
.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  padding: 1rem 2rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; text-align: center; border: none;
  cursor: pointer; transition: background .2s; display: inline-block;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  border: 1px solid rgba(255,255,255,.3); color: #fff;
  padding: 1rem 2rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; text-align: center;
  backdrop-filter: blur(4px); transition: background .2s; display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* --- Section shared --- */
.section { padding: 5rem 0; }
@media(min-width:1024px) { .section { padding: 7rem 0; } }
.section-bg { background: var(--secondary); }
.section-primary { background: var(--primary); color: var(--primary-fg); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
@media(min-width:768px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p { font-size: 1.125rem; color: var(--muted); max-width: 640px; margin: 0 auto; }
.section-primary .section-header p { color: rgba(255,255,255,.8); }

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

.card {
  background: var(--card); border-radius: 1rem; padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: box-shadow .3s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.card-icon {
  width: 48px; height: 48px; border-radius: 0.75rem;
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem;
}
.card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

/* --- Services split --- */
.services-split { display: grid; gap: 4rem; align-items: center; }
@media(min-width:1024px) { .services-split { grid-template-columns: 1fr 1fr; } }
.services-list { display: flex; flex-direction: column; gap: 1.5rem; }
.service-item { display: flex; gap: 1rem; }
.service-icon {
  width: 44px; height: 44px; border-radius: 0.75rem;
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 1.25rem;
}
.service-item h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.service-item p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.services-image { position: relative; }
.services-image img { border-radius: 1rem; width: 100%; object-fit: cover; aspect-ratio: 4/5; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.services-badge {
  position: absolute; bottom: -1rem; left: -1rem;
  background: var(--primary); color: var(--primary-fg);
  border-radius: 0.75rem; padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.services-badge p:first-child { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.services-badge p:last-child { font-size: 0.875rem; opacity: 0.9; }

/* --- USP grid --- */
.usp-grid { display: grid; gap: 1.5rem; }
@media(min-width:640px) { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .usp-grid { grid-template-columns: repeat(4, 1fr); } }
.usp-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(4px);
  border-radius: 1rem; padding: 1.5rem; text-align: center;
  transition: background .2s;
}
.usp-card:hover { background: rgba(255,255,255,.15); }
.usp-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1rem; font-size: 1.25rem;
}
.usp-card h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.usp-card p { font-size: 0.875rem; opacity: 0.75; }

/* --- Gallery --- */
.gallery-grid { display: grid; gap: 1.5rem; }
@media(min-width:640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { overflow: hidden; border-radius: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.gallery-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform .5s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* --- Contact --- */
.contact-grid { display: grid; gap: 3rem; }
@media(min-width:1024px) { .contact-grid { grid-template-columns: 2fr 3fr; } }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 0.75rem;
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 1.25rem;
}
.contact-item h3 { font-family: var(--font-display); font-weight: 600; margin-bottom: 0.25rem; }
.contact-item a, .contact-item p { color: var(--muted); font-size: 0.9375rem; transition: color .2s; }
.contact-item a:hover { color: var(--primary); }

.contact-form {
  background: var(--card); border-radius: 1rem; padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media(min-width:640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-group input,
.form-group textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); padding: 0.75rem 1rem;
  font-family: var(--font-body); font-size: 0.875rem; color: var(--fg);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58,158,118,.15);
}
.form-group textarea { resize: none; min-height: 100px; }
.btn-submit { width: 100%; margin-top: 0.5rem; }

/* --- Footer --- */
.footer { background: var(--fg); color: rgba(255,255,255,.65); padding: 3rem 0; }
.footer-grid { display: grid; gap: 2rem; }
@media(min-width:768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.footer-brand span { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: #fff; }
.footer h4 { font-family: var(--font-display); font-weight: 600; color: #fff; margin-bottom: 1rem; }
.footer a { color: rgba(255,255,255,.65); transition: color .2s; }
.footer a:hover { color: var(--primary); }
.footer p, .footer a { font-size: 0.875rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem; padding-top: 1.5rem;
  text-align: center; font-size: 0.75rem;
}

/* --- Legal page --- */
.legal-page { padding-top: 6rem; padding-bottom: 5rem; min-height: 100vh; }
.legal-page .back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--primary); font-size: 0.875rem; font-weight: 500;
  margin-bottom: 2rem; transition: color .2s;
}
.legal-page .back-link:hover { color: var(--primary-dark); }
.legal-page h1 { font-size: 1.875rem; margin-bottom: 2.5rem; }
@media(min-width:768px) { .legal-page h1 { font-size: 2.25rem; } }
.legal-page h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; margin-top: 0; }
.legal-section { margin-bottom: 2rem; }
.legal-section p, .legal-section li { color: var(--muted); font-size: 0.9375rem; line-height: 1.7; }
.legal-section ul { list-style: disc; margin-left: 1.5rem; margin-top: 0.5rem; }
.legal-section li { margin-bottom: 0.25rem; }
.legal-section a { color: var(--primary); }
.legal-section a:hover { text-decoration: underline; }

.legal-table { width: 100%; font-size: 0.9375rem; }
.legal-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table td:first-child { font-weight: 500; color: var(--fg); width: 160px; }
.legal-table td:last-child { color: var(--muted); }
