/* techNico, style.css v2 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --teal:        #1A6B6B;
  --teal-dark:   #124f4f;
  --teal-mid:    #1d7a7a;
  --teal-light:  #E8F2F2;
  --teal-faint:  #f0f7f7;
  --slate:       #2C3A47;
  --body:        #4A5868;
  --muted:       #8A9AAA;
  --border:      #E2E8EC;
  --bg-card:     #F7F8F8;
  --bg-warm:     #fafbfc;
  --white:       #FFFFFF;
  --font:        'DM Sans', system-ui, sans-serif;
  --max-w:       860px;
  --radius:      8px;
}

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

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  background: var(--teal-dark);
  z-index: 100;
  padding: 14px 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-tagline {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  line-height: 1;
  padding-left: 2px;
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 7px 18px;
  border-radius: var(--radius);
  transition: background 0.15s, border-color 0.15s;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  background: #1e7a7a;
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero-bg-mark {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  opacity: 0.08;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.hero .container,
.hero-container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 780px;
}

.hero h1 em { font-style: normal; }
.hero h1 .c-amber { color: #FAC775; }
.hero h1 .c-coral { color: #F0856B; }
.hero h1 .c-blue  { color: #7DC8F0; }
.hero h1 .c-dim   { color: rgba(255,255,255,0.7); }

.hero-intro {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 14px;
}

.hero-intro:last-of-type { margin-bottom: 0; }

.hero-cta {
  display: inline-block;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--teal);
  background: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.hero-cta:hover {
  background: var(--teal-light);
  text-decoration: none;
}

/* ── Sections ── */
section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

.section-alt { background: var(--teal-faint); }

/* ── Section icons ── */
/* ── Headings with inline icons ── */
h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2 i {
  font-size: 20px;
  color: var(--teal);
  flex-shrink: 0;
}

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
  list-style: none;
  background: var(--white);
}

.services-grid-item {
  font-size: 14px;
  color: var(--body);
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  list-style: none;
  transition: background 0.12s;
}

.services-grid-item:hover { background: var(--teal-faint); }
.services-grid-item:nth-child(2n) { border-right: none; }
.services-grid-item:nth-last-child(-n+2) { border-bottom: none; }

.services-grid-item::before {
  content: '';
  display: block;
  min-width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── Trust block ── */
.trust-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin: 24px 0;
}

.trust-block p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.85;
  margin: 0;
}

.trust-block strong {
  color: var(--slate);
  font-weight: 500;
}

/* ── Carousel ── */
.carousel {
  margin-top: 24px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 0.35s ease;
  width: calc(300% + 24px);
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  flex: 1;
  min-width: 0;
}

.case-icon {
  width: 38px;
  height: 38px;
  background: var(--teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
}

.case-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.4;
  margin-bottom: 8px;
}

.case-body {
  font-size: 13px;
  color: var(--body);
  line-height: 1.7;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--slate);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal);
}

.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.carousel-dots { display: flex; gap: 6px; align-items: center; }

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.carousel-dot.active {
  background: var(--teal);
  transform: scale(1.3);
}

/* ── How it works ── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.how-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.how-card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.how-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
}

.how-card-body {
  font-size: 13px;
  color: var(--body);
  line-height: 1.65;
}

/* ── CTA section ── */
.section-cta {
  background: var(--teal-dark);
  border-bottom: none;
}

.section-cta h2 { color: var(--white); }
.section-cta h2 i { color: rgba(255,255,255,0.7); }

.section-cta p { color: rgba(255,255,255,0.75); }

.section-cta .form-note { color: rgba(255,255,255,0.45); }

/* ── CTA button ── */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--teal);
  background: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font);
}

.btn:hover {
  background: var(--teal-light);
  text-decoration: none;
  color: var(--teal);
}

/* ── Map ── */
.map-wrap {
  margin: 24px 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 360px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.map-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* ── Contact form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  max-width: 560px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font);
  font-size: 15px;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,107,107,0.08);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* ── Page header (contact) ── */
.page-header {
  background: var(--teal);
  padding: 72px 0 56px;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  line-height: 1.8;
}

/* ── Footer ── */
footer {
  background: var(--slate);
  padding: 36px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 22px;
  width: auto;
  max-width: 120px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  section { padding: 52px 0; }
  .hero { padding: 56px 0 60px; }
  .hero-bg-mark { width: 200px; height: 200px; right: -10px; opacity: 0.06; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid-item { border-right: none !important; }
  .services-grid-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .services-grid-item:last-child { border-bottom: none !important; }
  .how-grid { grid-template-columns: 1fr; }
  .map-wrap { height: 260px; }
  .trust-block { padding: 20px 20px 20px 24px; }
  footer .container { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
