/* Design tokens */
:root {
  --color-primary: #0f6b3a;
  --color-primary-dark: #0a4d29;
  --color-primary-light: #1a8f4e;
  --color-accent: #f0c14b;
  --color-bg: #f4f7f5;
  --color-surface: #ffffff;
  --color-text: #1a2e22;
  --color-text-muted: #5a6f62;
  --color-border: rgba(15, 107, 58, 0.12);
  --shadow-sm: 0 2px 8px rgba(10, 77, 41, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 77, 41, 0.1);
  --shadow-lg: 0 20px 50px rgba(10, 77, 41, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --nav-height: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --page-padding: clamp(16px, 4.5vw, 28px);
  --content-max: 1200px;
  --section-gap: clamp(40px, 8vw, 72px);
}

[data-theme="dark"] {
  --color-primary: #2dce6a;
  --color-primary-dark: #1e8f4a;
  --color-primary-light: #4ade80;
  --color-accent: #f0c14b;
  --color-bg: #0b1410;
  --color-surface: #152019;
  --color-text: #e8f5ec;
  --color-text-muted: #94b39f;
  --color-border: rgba(45, 206, 106, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .navbar {
  background: rgba(11, 20, 16, 0.92);
}

[data-theme="dark"] .section-alt {
  background: rgba(45, 206, 106, 0.05);
}

[data-theme="dark"] .hero-bg::after {
  background: linear-gradient(
    160deg,
    rgba(5, 12, 8, 0.9) 0%,
    rgba(15, 80, 45, 0.75) 50%,
    rgba(5, 20, 12, 0.92) 100%
  );
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
  background: #0b1410;
  color: var(--color-text);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
  background: var(--color-surface);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-light);
}

/* Language visibility */
.lang {
  display: none;
  width: 100%;
  overflow-x: clip;
}
.lang.lang-el { display: block; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition), height var(--transition);
}

.navbar.nav-menu-open {
  height: auto;
  min-height: var(--nav-height);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  color: var(--color-text);
  min-width: 0;
  flex: 1;
}

.nav-brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: rgba(15, 107, 58, 0.08);
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  background: var(--color-bg);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--color-border);
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.lang-toggle button.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(15, 107, 58, 0.3);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: white !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
}

.theme-toggle {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.theme-toggle:hover {
  background: rgba(15, 107, 58, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: clamp(420px, 85svh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 32px) var(--page-padding) clamp(48px, 10vw, 80px);
  overflow: hidden;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("header-smart-house.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 31, 18, 0.82) 0%,
    rgba(15, 107, 58, 0.65) 50%,
    rgba(10, 77, 41, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: min(780px, 100%);
  width: 100%;
  color: white;
  padding: 0 4px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.92;
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(12px, 2.5vw, 14px) clamp(20px, 5vw, 28px);
  border-radius: 999px;
  font-family: var(--font);
  font-size: clamp(0.875rem, 2.5vw, 0.95rem);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  max-width: 100%;
}

.btn-primary {
  background: white;
  color: var(--color-primary-dark);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

.btn-green {
  background: var(--color-primary);
  color: white;
}

.btn-green:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 107, 58, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  z-index: 1;
}

.hero-scroll::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 4px;
  animation: scroll-hint 1.8s ease infinite;
}

@keyframes scroll-hint {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* Trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(12px, 2.5vw, 16px);
  max-width: var(--content-max);
  width: 100%;
  margin: clamp(-40px, -6vw, -48px) auto 0;
  padding: 0 var(--page-padding);
  position: relative;
  z-index: 2;
}

.trust-card {
  background: var(--color-surface);
  padding: clamp(16px, 3vw, 22px);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--transition);
}

.trust-card:hover {
  transform: translateY(-3px);
}

.trust-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.trust-card strong {
  font-size: 0.9rem;
  color: var(--color-text);
}

.trust-card span:last-child {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Alternating sections */
.section-alt {
  background: rgba(15, 107, 58, 0.04);
  border-radius: var(--radius-lg);
  padding-left: clamp(12px, 3vw, 24px);
  padding-right: clamp(12px, 3vw, 24px);
  margin-left: calc(-1 * clamp(12px, 3vw, 24px));
  margin-right: calc(-1 * clamp(12px, 3vw, 24px));
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(16px, 3vw, 20px);
}

.why-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(22px, 4vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.why-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  background: rgba(15, 107, 58, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(20px, 4vw, 32px);
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: clamp(20px, 4vw, 28px);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  position: relative;
}

.process-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(15, 107, 58, 0.25);
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.process-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* CTA Banner */
.cta-banner {
  padding: 0;
}

.cta-banner-inner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  font-weight: 800;
}

.cta-banner p {
  margin: 0;
  opacity: 0.9;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  max-width: 480px;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.cta-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.nav-links a.active {
  background: rgba(15, 107, 58, 0.1);
  color: var(--color-primary);
  font-weight: 600;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Layout ── */
main {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--page-padding) clamp(40px, 8vw, 60px);
}

section {
  padding: var(--section-gap) 0;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: min(640px, 100%);
  margin: 0 auto clamp(28px, 6vw, 48px);
  padding: 0 4px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  border: none;
  padding: 0;
}

.section-header p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

/* ── Cards ── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: clamp(18px, 4vw, 28px);
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.card-body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card-img {
  width: 100%;
  height: clamp(160px, 28vw, 220px);
  object-fit: cover;
}

/* Services grid – min() prevents horizontal overflow on narrow screens */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 3vw, 24px);
  width: 100%;
}

/* Smart home */
.smart-intro {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: clamp(24px, 5vw, 40px);
  width: 100%;
}

.smart-intro-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.smart-intro-text {
  padding: clamp(20px, 4.5vw, 36px);
}

.smart-intro-text p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 2.5vw, 16px);
  margin: clamp(20px, 4vw, 32px) 0;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-surface);
  padding: clamp(14px, 3vw, 18px) clamp(14px, 3vw, 20px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 0;
}

.feature-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(15, 107, 58, 0.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-icon img {
  width: 24px;
  height: 24px;
}

.feature-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.feature-item span {
  font-size: clamp(0.875rem, 2.2vw, 0.95rem);
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tech-badges--center {
  justify-content: center;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 8px;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.section-subtitle--spaced {
  margin-top: clamp(24px, 5vw, 40px);
}

.cta-center {
  text-align: center;
  margin-top: clamp(20px, 4vw, 32px);
}

.cta-center .btn {
  width: 100%;
  max-width: 320px;
}

.badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Inspection */
.inspection-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4.5vw, 40px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.inspection-img {
  border-radius: var(--radius-md);
  width: 100%;
  height: clamp(180px, 35vw, 280px);
  object-fit: cover;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

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

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr));
  gap: clamp(12px, 2.5vw, 20px);
  margin: clamp(20px, 4vw, 32px) 0;
  width: 100%;
}

.doc-item {
  text-align: center;
  padding: clamp(16px, 3vw, 24px) clamp(10px, 2vw, 16px);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition);
}

.doc-item:hover {
  transform: translateY(-3px);
}

.doc-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.doc-emoji {
  font-size: 2rem;
  margin: 0 auto 12px;
  line-height: 1;
}

.doc-item p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(12px, 2.5vw, 20px);
  width: 100%;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

/* About */
.about-block {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.profile-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0 0 20px;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 4vw, 32px);
  width: 100%;
}

.contact-info {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
}

.contact-info h3 {
  margin: 0 0 24px;
  font-size: 1.3rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail a {
  color: white;
  font-weight: 500;
}

.phone-label {
  font-size: 0.85em;
  opacity: 0.85;
  font-weight: 400;
}

.contact-detail a:hover {
  color: var(--color-accent);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-buttons .btn {
  font-size: 0.85rem;
  padding: 11px 20px;
}

.contact-buttons .btn-primary {
  background: white;
  color: var(--color-primary-dark);
}

.contact-buttons .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.contact-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.contact-form-card h3 {
  margin: 0 0 24px;
  font-size: 1.3rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

input, textarea {
  width: 100%;
  max-width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 107, 58, 0.12);
  background: white;
}

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

.btn-submit {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 4px;
}

.btn-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.form-status {
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.form-status--success {
  background: rgba(15, 107, 58, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(15, 107, 58, 0.25);
}

.form-status--error {
  background: rgba(200, 50, 50, 0.1);
  color: #c62828;
  border: 1px solid rgba(200, 50, 50, 0.25);
}

[data-theme="dark"] .form-status--error {
  color: #ff8a80;
}

/* Map actions */
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.map-actions .btn {
  font-size: 0.875rem;
  padding: 11px 20px;
}

.btn-maps {
  background: #4285f4;
  color: white !important;
}

.btn-maps:hover {
  background: #3367d6;
  color: white;
}

/* Map */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}

.map-wrapper iframe {
  width: 100%;
  height: clamp(220px, 50vw, 380px);
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(40px, 6vw, 56px) var(--page-padding) 0;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(28px, 5vw, 40px);
  padding-bottom: clamp(28px, 5vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  font-size: 1.05rem;
  color: white;
  margin-bottom: 6px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-contact span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  padding: clamp(18px, 3vw, 24px) var(--page-padding);
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  opacity: 0.7;
}

footer {
  /* legacy alias */
  background: var(--color-primary-dark);
}

/* Floating CTA */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: white;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fab a:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

.fab-whatsapp { background: #25d366; }
.fab-phone { background: var(--color-primary); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary);
  color: white;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-img {
  max-width: min(95vw, 1000px);
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: white;
  margin-top: 16px;
  font-size: 1rem;
  text-align: center;
  max-width: 600px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* FAQ panel */
.faq-toggle {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 850;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.faq-toggle:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.faq-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: min(420px, 100vw);
  max-height: 85vh;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.faq-panel.open {
  transform: translateY(0);
}

.faq-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.faq-panel-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.faq-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
  padding: 4px 8px;
}

.faq-list {
  overflow-y: auto;
  padding: 12px 16px 24px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--color-bg);
}

.faq-item summary {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
  padding: 16px var(--page-padding);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.cookie-btn--accept {
  background: var(--color-primary);
  color: white;
}

.cookie-btn--accept:hover {
  background: var(--color-primary-dark);
}

.cookie-btn--decline {
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; flex-shrink: 0; }

  .nav-menu-open .nav-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-bottom: 16px;
  }

  .nav-menu-open .nav-links {
    display: flex;
    flex-direction: column;
    order: 4;
    width: 100%;
    background: var(--color-surface);
    padding: 12px 0 8px;
    gap: 2px;
  }

  .nav-menu-open .nav-links a {
    padding: 12px 0;
    width: 100%;
    font-size: 1rem;
  }

  .nav-menu-open .nav-actions {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    margin-top: 4px;
  }

  .nav-menu-open .nav-cta {
    display: inline-flex;
  }

  .inspection-block,
  .about-block {
    grid-template-columns: 1fr;
  }

  .about-block {
    text-align: center;
  }

  .profile-img {
    max-width: 260px;
    margin: 0 auto;
  }

  .cert-badges {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-height: 60px;
    --section-gap: 40px;
  }

  .nav-brand-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .lang-toggle button {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .services-grid,
  .feature-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

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

  .contact-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .tech-badges {
    justify-content: center;
  }

  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .trust-bar {
    margin-top: -24px;
  }

  .trust-card:hover {
    transform: none;
  }

  .back-to-top {
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }

  .faq-toggle {
    bottom: 76px;
    font-size: 0.82rem;
    padding: 10px 16px;
  }

  .badge,
  .badge-outline {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .card:hover,
  .doc-item:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .fab a {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll::before {
    animation: none;
  }
}

@media (max-width: 380px) {
  :root {
    --page-padding: 14px;
  }

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

  .fab {
    bottom: 12px;
    right: 12px;
  }
}
