:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1d232b;
  --muted: #5b6672;
  --line: #dbe1e7;
  --dark: #11161d;
  --accent: #1f4a6b;
  --accent-2: #16354d;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header,
.page-header {
  background: linear-gradient(135deg, #11161d, #1e2c39);
  color: #fff;
  padding: 70px 0 90px;
}

.small-header {
  padding: 55px 0 70px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: #c4d0db;
  margin: 0 0 14px;
}

/* Headings */
h1, h2, h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 900px;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.08rem;
  color: #dbe4ec;
  max-width: 760px;
}

/* Navigation */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}

.logo {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
}

/* Layout */
.section {
  padding: 64px 0;
}

.section-alt {
  background: #eef2f5;
}

.grid-two {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 2fr;
}

.cards-three {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-two {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--accent);
}

/* Hero Button */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 170px;
  text-align: center;
}

/* Contact form */
.contact-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd6de;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(31, 74, 107, 0.18);
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  background: #0f141a;
  color: #cfd7df;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 24px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
}

/* Messages */
.form-message {
  margin: 20px 0 30px 0;
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.form-message.success {
  background: #eaf7ee;
  color: #1f7a3f;
  border-color: #b7e4c7;
}

.form-message.error {
  background: #fdecea;
  color: #a94442;
  border-color: #f5c6cb;
}

/* Hero Canvas */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.site-header {
  position: relative;
}

.brand-block {
  position: relative;
  z-index: 1;
}

/* Turnstile Widget */
.cf-turnstile {
  margin: 20px 0;
}

.cf-turnstile iframe {
  border-radius: 8px !important;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s ease;
}

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

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

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

/* Search Bar */
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}

.search-toggle svg {
  width: 20px;
  height: 20px;
}

.search-box {
  display: none;
  align-items: center;
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  width: 0;
  transition: width 0.3s ease;
}

.search-box.open {
  display: flex;
  width: 200px;
}

.search-box input {
  border: none;
  background: transparent;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  color: var(--text);
}

.search-box button {
  background: var(--accent);
  border: none;
  padding: 7px 12px;
  cursor: pointer;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.search-box button:hover {
  background: var(--accent-2);
}

/* Responsive */
@media (max-width: 860px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .search-box.open {
    width: 160px;
  }

  .grid-two,
  .cards-two {
    grid-template-columns: 1fr;
  }

  .cards-three {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .container {
    width: 92%;
    padding: 0 4px;
  }

  .contact-form input:not([type="checkbox"]),
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cf-turnstile {
    transform: scale(0.78);
    transform-origin: left center;
    margin: 10px 0 0 0;
  }

  .contact-form {
    padding: 20px 16px;
    overflow: hidden;
  }
}
/* ===== SEARCH BUTTON UI UPGRADE ===== */

.search-toggle {
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: all 0.2s ease;
}

/* Hover effect */
.search-toggle:hover {
  background: #e9eef2;
  border-color: #c7d1da;
  color: var(--accent);
  transform: translateY(-1px);
}

/* Click effect */
.search-toggle:active {
  transform: translateY(0);
}

/* Focus (keyboard users) */
.search-toggle:focus {
  outline: 2px solid rgba(31, 74, 107, 0.2);
  outline-offset: 2px;
}

/* SVG icon size control */
.search-toggle svg {
  width: 18px;
  height: 18px;
}

/* ===== DROPDOWN MENU ===== */

.nav-item {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  padding: 8px 0;
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: #f4f6f8;
  color: var(--accent);
  padding-left: 22px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}