/* ============================================================
   G+P Faipar – styles.css
   Mobile-first, warm woodworking trust site
   ============================================================ */

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

:root {
  --warm-white:   #F7F3EC;
  --walnut:       #5A3A24;
  --walnut-dark:  #3E2710;
  --charcoal:     #22201D;
  --olive:        #59654A;
  --olive-dark:   #404A33;
  --light-wood:   #D8B98A;
  --light-wood-2: #EDE0CC;
  --border:       #C9B99A;
  --text-body:    #2E2B26;
  --text-muted:   #6B6358;
  --white:        #FFFFFF;

  --font: Inter, "Segoe UI", Arial, sans-serif;
  --max-w: 1160px;
  --radius: 4px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--warm-white);
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.65;
}

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

a { color: var(--walnut); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
  border-radius: var(--radius);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }

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

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  min-height: 48px;
  line-height: 1.3;
}

.btn-primary {
  background: var(--walnut);
  color: var(--white);
  border-color: var(--walnut);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--walnut-dark);
  border-color: var(--walnut-dark);
  text-decoration: none;
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--walnut);
  border-color: var(--walnut);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--walnut);
  color: var(--white);
  text-decoration: none;
}

.btn-olive {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}
.btn-olive:hover, .btn-olive:focus-visible {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  text-decoration: none;
  color: var(--white);
}

/* ---- Section spacing ---- */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--light-wood-2); }
.section--dark { background: var(--charcoal); color: var(--warm-white); }
.section--dark h2, .section--dark h3 { color: var(--light-wood); }
.section--dark p { color: #CCC5B8; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 2rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  border-bottom: 3px solid var(--walnut);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--light-wood);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { color: var(--warm-white); }
.logo:hover { text-decoration: none; color: var(--light-wood); }

/* Desktop nav */
.site-nav {
  display: none;
  gap: 0.25rem;
  align-items: center;
}

.site-nav a {
  color: #CCC5B8;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover, .site-nav a.active {
  color: var(--light-wood);
  background: rgba(216,185,138,0.12);
  text-decoration: none;
}

.header-cta { display: none; }

/* Hamburger */
.nav-toggle {
  background: none;
  border: 2px solid var(--light-wood);
  color: var(--light-wood);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle:focus-visible { outline: 3px solid var(--olive); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #1A1916;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
  border-top: 1px solid rgba(216,185,138,0.2);
}
.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  color: #CCC5B8;
  font-size: 1rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--light-wood);
  text-decoration: none;
}
.mobile-nav .btn { margin-top: 0.75rem; width: 100%; }

/* ============================================================
   MOBILE STICKY CTA BAR
   ============================================================ */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--charcoal);
  border-top: 2px solid var(--walnut);
  display: flex;
  gap: 0;
}

.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 0.5rem;
  min-height: 56px;
  color: var(--white);
  text-decoration: none;
  transition: background var(--transition);
}
.mobile-cta-bar a:first-child {
  background: var(--olive);
  border-right: 1px solid rgba(255,255,255,0.15);
}
.mobile-cta-bar a:first-child:hover { background: var(--olive-dark); }
.mobile-cta-bar a:last-child { background: var(--walnut); }
.mobile-cta-bar a:last-child:hover { background: var(--walnut-dark); }
.mobile-cta-bar a:focus-visible { outline: 3px solid var(--light-wood); outline-offset: -3px; }

/* Body padding for sticky bar on mobile */
body { padding-bottom: 56px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--charcoal);
  color: var(--warm-white);
  padding: 3rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-content { max-width: 580px; }

.hero h1 {
  color: var(--warm-white);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: #CCC5B8;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-trust {
  font-size: 0.82rem;
  color: var(--light-wood);
  letter-spacing: 0.05em;
}

.hero-image {
  background: #3A2E22;
  border-radius: var(--radius);
  border: 1px solid rgba(216,185,138,0.2);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.hero-image p {
  color: var(--light-wood);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--walnut);
  padding: 1.5rem 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.trust-item {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  color: var(--warm-white);
  font-size: 0.88rem;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.trust-item:last-child { border-right: none; }

.trust-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--light-wood);
}

/* ============================================================
   BEMUTATKOZÁS
   ============================================================ */
.intro-section .intro-text {
  max-width: 680px;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--walnut);
  box-shadow: 0 2px 8px rgba(90,58,36,0.12);
}

.service-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--walnut);
}

/* ============================================================
   PROCESS / HOW IT WORKS
   ============================================================ */
.process-steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--walnut);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 { margin-bottom: 0.3rem; }
.step-body p { color: var(--text-muted); margin: 0; }

/* ============================================================
   GALLERY / WORKS CARDS
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-card {
  background: #3A2E22;
  border-radius: var(--radius);
  border: 1px solid rgba(216,185,138,0.2);
  overflow: hidden;
}

.gallery-card-img {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: #2E2318;
}

.gallery-card-img p {
  color: var(--light-wood);
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.gallery-card-label {
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--warm-white);
  background: #3A2E22;
}

/* ============================================================
   WARRANTY / 3D SECTION
   ============================================================ */
.warranty-section {
  background: var(--olive);
  color: var(--white);
  padding: 3rem 0;
}
.warranty-section h2 { color: var(--white); }
.warranty-section p { color: rgba(255,255,255,0.88); }

.warranty-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.partner-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  letter-spacing: 0.03em;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 760px; }

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
}
.faq-question:focus-visible { outline: 3px solid var(--olive); border-radius: var(--radius); }
.faq-question:hover { color: var(--walnut); }

.faq-arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--walnut);
  transition: transform 0.2s;
}
.faq-item.is-open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 0.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq-item.is-open .faq-answer { display: block; }

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */
.final-cta {
  background: var(--walnut);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.final-cta h2 { color: var(--white); margin-bottom: 0.75rem; }
.final-cta p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.final-cta .btn-primary {
  background: var(--white);
  color: var(--walnut);
  border-color: var(--white);
}
.final-cta .btn-primary:hover {
  background: var(--light-wood-2);
  border-color: var(--light-wood-2);
  color: var(--walnut-dark);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--charcoal);
  color: var(--warm-white);
  padding: 2.5rem 0;
  border-bottom: 3px solid var(--walnut);
}
.page-hero h1 { color: var(--warm-white); margin-bottom: 0.6rem; }
.page-hero p { color: #CCC5B8; max-width: 640px; margin: 0; }

/* ============================================================
   SERVICES PAGE – category sections
   ============================================================ */
.service-category {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.service-category:last-child { border-bottom: none; }
.service-category h3 { color: var(--walnut); margin-bottom: 0.5rem; }

.service-cat-num {
  display: inline-block;
  background: var(--walnut);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

/* ============================================================
   GALLERY PAGE – filter tabs
   ============================================================ */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--charcoal);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  min-height: 40px;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--walnut);
  border-color: var(--walnut);
  color: var(--white);
}
.filter-btn:focus-visible { outline: 3px solid var(--olive); }

.gallery-item { display: block; }
.gallery-item.hidden { display: none; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-card h3 {
  color: var(--walnut);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--light-wood-2);
}

.contact-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--light-wood-2);
  font-size: 0.95rem;
}
.contact-row:last-child { border-bottom: none; }

.contact-row-icon { color: var(--walnut); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.contact-row-label { font-weight: 700; color: var(--text-muted); font-size: 0.8rem; display: block; margin-bottom: 0.1rem; }
.contact-row a { color: var(--walnut); }

/* Map placeholder */
.map-placeholder {
  background: var(--light-wood-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin-top: 1.5rem;
}
.map-placeholder p {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
}

/* Contact form */
.contact-form { display: grid; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
  min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--walnut);
  box-shadow: 0 0 0 3px rgba(90,58,36,0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1A1916;
  color: #9A9088;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.88rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-brand .logo { font-size: 1.15rem; margin-bottom: 0.5rem; }
.footer-brand p { color: #7A7068; font-size: 0.85rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--light-wood);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col ul a { color: #9A9088; font-size: 0.88rem; }
.footer-col ul a:hover { color: var(--light-wood); text-decoration: none; }

.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact-list li { color: #9A9088; font-size: 0.88rem; }
.footer-contact-list a { color: #9A9088; }
.footer-contact-list a:hover { color: var(--light-wood); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: #6B6358;
  font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE – Tablet & Desktop
   ============================================================ */
@media (min-width: 640px) {
  .hero-image { min-height: 320px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  /* Header */
  .site-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }

  /* Hide mobile CTA bar on desktop */
  .mobile-cta-bar { display: none; }
  body { padding-bottom: 0; }

  /* Hero */
  .hero { padding: 4rem 0 5rem; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-image { min-height: 400px; }

  /* Process */
  .process-steps { grid-template-columns: repeat(4, 1fr); }

  /* Footer */
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr 1.4fr; }
}

@media (min-width: 1100px) {
  .section { padding: 5rem 0; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
