/* ============================================================
   SOMOGYI KAPUTECHNIKA KFT. – STYLESHEET
   Design: Local Trust-First Service
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  background-color: #f5f4f2;
  color: #2c2c2c;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1a4a7a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

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

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

h1 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }

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

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background-color: #1a4a7a;
  color: #fff;
  border-color: #1a4a7a;
}

.btn-primary:hover {
  background-color: #133a61;
  border-color: #133a61;
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: #1a4a7a;
  border-color: #1a4a7a;
}

.btn-outline:hover {
  background-color: #1a4a7a;
  color: #fff;
  text-decoration: none;
}

.btn-lg {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  background-color: #fff;
  border-bottom: 2px solid #e0ddd8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: #1a4a7a;
}

.main-nav {
  flex: 1;
}

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

.main-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c2c2c;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #1a4a7a;
  background-color: #eef3f9;
  text-decoration: none;
}

.header-cta {
  flex-shrink: 0;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #2c2c2c;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── MOBILE STICKY BAR ────────────────────────────────────── */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 2px solid #e0ddd8;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.sticky-btn {
  display: block;
  flex: 1;
  text-align: center;
  padding: 0.9rem 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.sticky-call {
  color: #2c2c2c;
  border-right: 1px solid #e0ddd8;
}

.sticky-quote {
  background-color: #1a4a7a;
  color: #fff;
}

.sticky-call:hover { background-color: #f0ede8; text-decoration: none; }
.sticky-quote:hover { background-color: #133a61; text-decoration: none; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background-color: #fff;
  border-bottom: 1px solid #e0ddd8;
  padding: 3.5rem 0;
}

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

.hero-content h1 {
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.hero-sub {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 1.75rem;
  max-width: 520px;
}

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

.hero-micro {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* ── IMAGE PLACEHOLDERS ───────────────────────────────────── */
.img-placeholder {
  background-color: #e8e5e0;
  border: 2px dashed #bbb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 1.5rem;
  text-align: center;
}

.img-placeholder span {
  font-size: 0.82rem;
  color: #777;
  font-style: italic;
  line-height: 1.5;
  max-width: 280px;
}

.img-placeholder--tall {
  min-height: 360px;
}

/* ── TRUST STRIP ──────────────────────────────────────────── */
.trust-strip {
  background-color: #1a4a7a;
  color: #fff;
  padding: 1.25rem 0;
  border-bottom: 3px solid #133a61;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.trust-item {
  font-size: 0.88rem;
  color: #d8e8f5;
  padding: 0.3rem 0;
}

.trust-item strong {
  color: #fff;
  display: block;
  font-size: 0.9rem;
}

/* ── SOLUTION CARDS ───────────────────────────────────────── */
.solution-section {
  background-color: #f5f4f2;
}

.section-intro {
  color: #555;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.solution-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1.5rem;
  transition: box-shadow 0.18s, border-color 0.18s;
}

.solution-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  border-color: #1a4a7a;
}

.card-icon {
  color: #1a4a7a;
  font-size: 0.7rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.solution-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.solution-card p {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a4a7a;
}

.card-link:hover {
  text-decoration: underline;
}

/* ── PROCESS STEPS ────────────────────────────────────────── */
.process-section {
  background-color: #fff;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.4rem 1.75rem;
  border-bottom: 1px solid #e8e5e0;
  transition: background 0.15s;
}

.process-step:last-child {
  border-bottom: none;
}

.process-step:hover {
  background-color: #f9f8f6;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: #1a4a7a;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.step-body h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.step-body p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.section-cta {
  text-align: center;
}

/* ── WHY US ───────────────────────────────────────────────── */
.why-section {
  background-color: #f0ede8;
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.why-text h2 {
  margin-bottom: 1rem;
}

.why-text p {
  color: #444;
  margin-bottom: 1.25rem;
}

.why-list {
  list-style: none;
  padding: 0;
}

.why-list li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  position: relative;
  font-size: 0.95rem;
  color: #333;
  border-bottom: 1px solid #d8d4ce;
}

.why-list li:last-child {
  border-bottom: none;
}

.why-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #1a4a7a;
  font-weight: 700;
}

/* ── CONTACT CTA SECTION ──────────────────────────────────── */
.contact-cta-section {
  background-color: #1a4a7a;
  color: #fff;
}

.contact-cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.contact-cta-inner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.contact-cta-inner p {
  color: #c8ddf0;
  margin-bottom: 1.75rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.contact-cta-section .btn-outline {
  color: #fff;
  border-color: #fff;
}

.contact-cta-section .btn-outline:hover {
  background-color: #fff;
  color: #1a4a7a;
}

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  background-color: #fff;
  border-bottom: 1px solid #e0ddd8;
  padding: 2.5rem 0;
}

.page-hero h1 {
  margin-bottom: 0.6rem;
}

.page-intro {
  font-size: 1.05rem;
  color: #555;
  max-width: 680px;
  margin: 0;
}

/* ── PRODUCT SECTIONS ─────────────────────────────────────── */
.product-section {
  background-color: #fff;
}

.product-section--alt {
  background-color: #f9f8f6;
}

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-inner--reverse {
  direction: rtl;
}

.product-inner--reverse > * {
  direction: ltr;
}

.product-text h2 {
  margin-bottom: 0.75rem;
}

.product-text p {
  color: #444;
  margin-bottom: 1.5rem;
}

/* ── SERVICE GRID ─────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.service-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  border-bottom: 1px solid #e8e5e0;
  border-right: 1px solid #e8e5e0;
  transition: background 0.15s;
}

.service-card:nth-child(2n) {
  border-right: none;
}

.service-card:nth-last-child(-n+2) {
  border-bottom: none;
}

.service-card:hover {
  background-color: #f9f8f6;
}

.service-num {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #d0d8e4;
  line-height: 1;
  min-width: 36px;
}

.service-body h2 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #1a1a1a;
}

.service-body p {
  font-size: 0.88rem;
  color: #555;
  margin: 0;
}

/* ── FAQ ACCORDION ────────────────────────────────────────── */
.faq-section {
  background-color: #f5f4f2;
}

.faq-section h2 {
  margin-bottom: 1.5rem;
}

.accordion {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  background: #fff;
  border: none;
  padding: 1.1rem 1.5rem;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
}

.accordion-trigger:hover {
  background-color: #f0ede8;
}

.accordion-trigger[aria-expanded="true"] {
  background-color: #eef3f9;
  color: #1a4a7a;
}

.accordion-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: #1a4a7a;
  border-radius: 2px;
  transition: transform 0.2s;
}

.accordion-icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-panel {
  display: none;
  padding: 1rem 1.5rem 1.25rem;
  background-color: #fafaf8;
  border-top: 1px solid #e8e5e0;
}

.accordion-panel.is-open {
  display: block;
}

.accordion-panel p {
  font-size: 0.92rem;
  color: #444;
  margin: 0;
}

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-block {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.contact-info-block h2 {
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.contact-detail {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e8e5e0;
  font-size: 0.9rem;
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-label {
  font-weight: 600;
  color: #555;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

.contact-value {
  color: #2c2c2c;
  line-height: 1.55;
}

.contact-value a {
  color: #1a4a7a;
  font-weight: 600;
}

.map-placeholder {
  background-color: #e8e5e0;
  border: 2px dashed #bbb;
  border-radius: 4px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.map-placeholder span {
  font-size: 0.82rem;
  color: #777;
  font-style: italic;
}

/* ── CONTACT FORM ─────────────────────────────────────────── */
.contact-form-col h2 {
  margin-bottom: 0.5rem;
}

.form-intro {
  color: #555;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.35rem;
}

.required {
  color: #c0392b;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #2c2c2c;
  background-color: #fafaf8;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #1a4a7a;
  box-shadow: 0 0 0 3px rgba(26, 74, 122, 0.12);
  background-color: #fff;
}

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 fill='%23555' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-notice {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 1.25rem;
}

.form-success {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  background-color: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 3px;
  color: #2e7d32;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background-color: #1e2530;
  color: #b0bac8;
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: #b0bac8;
}

.site-footer strong {
  color: #d8e0ea;
}

.site-footer a {
  color: #8fb8e0;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-tax {
  font-size: 0.8rem;
  color: #7a8699;
  margin-top: 0.5rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.35rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: #8fb8e0;
}

.footer-bottom {
  border-top: 1px solid #2e3a4a;
  padding: 1rem 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #5a6a7a;
  text-align: center;
  margin: 0;
}

/* ── MAIN CONTENT WRAPPER ─────────────────────────────────── */
.main-content {
  background-color: #f5f4f2;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner,
  .why-inner,
  .product-inner,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-inner--reverse {
    direction: ltr;
  }

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

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
  }

  .service-card:nth-last-child(-n+2) {
    border-bottom: 1px solid #e8e5e0;
  }

  .service-card:last-child {
    border-bottom: none;
  }
}

/* Mobile: ≤ 640px */
@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
  }

  .logo {
    flex: 1;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    border-top: 1px solid #e0ddd8;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .main-nav.is-open {
    display: block;
  }

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

  .main-nav a {
    padding: 0.65rem 0.5rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid #f0ede8;
  }

  .mobile-sticky {
    display: flex;
  }

  body {
    padding-bottom: 60px;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    text-align: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .trust-item {
    padding: 0.2rem 0;
  }

  .section {
    padding: 2.5rem 0;
  }

  .process-step {
    padding: 1.1rem 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .contact-info-block {
    padding: 1.25rem;
  }

  .contact-detail {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    text-align: center;
  }

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