/* Shared styles for all Iconfia pages: tokens, nav, buttons, sections, footer */

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

[hidden] {
  display: none !important;
}

:root {
  --orange: #E8520A;
  --orange-light: #FF6B1A;
  --orange-pale: #FFF0E8;
  --dark: #1A1A1A;
  --dark2: #232323;
  --mid: #444;
  --muted: #888;
  --light: #F7F7F5;
  --white: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* ── NAV DROPDOWNS ── */
.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 24px 0;
}

.dropdown-toggle {
  background: none;
  border: 0;
  color: var(--mid);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.2rem;
  line-height: 1;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 250px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  padding: 0.6rem;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  display: block;
}

.nav-links .dropdown a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--dark);
}

.nav-links .dropdown a:hover {
  background: var(--orange-pale);
  color: var(--orange);
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--dark);
  color: var(--dark);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* ── SECTION COMMONS ── */
section {
  padding: 90px 5%;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-h2 em {
  color: var(--orange);
  font-style: normal;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── BREADCRUMBS ── */
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--orange);
}

.breadcrumbs a {
  color: var(--mid);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--orange);
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 5%;
  text-align: center;
}

.footer-clients {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-clients h4 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.client-logos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.client-logos img {
  height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}

.client-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.footer-logo {
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 52px;
  width: auto;
  border-radius: 10px;
  padding: 4px 10px;
  background: var(--white);
}

.footer-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-area {
  font-size: 0.85rem;
  margin: -0.9rem 0 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  text-align: left;
}

.footer-grid h4 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-grid .footer-logo {
  justify-content: flex-start;
}

.footer-grid .footer-tagline {
  font-size: 0.7rem;
  margin-bottom: 1rem;
}

.footer-nap {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 0.8rem;
}

.footer-nap strong {
  color: var(--white);
}

.footer-grid .footer-area {
  margin: 0;
}

.footer-hours {
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.footer-map iframe {
  width: 100%;
  height: 170px;
  border: 0;
  border-radius: 12px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  font-size: 0.8rem;
}

/* ── FLOATING CALL / WHATSAPP (mobile only) ── */
.float-contact {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.float-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.float-wa {
  background: #25D366;
}

.float-call {
  background: var(--orange);
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .float-contact {
    display: flex;
  }

  nav.menu-open .nav-links {
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding-bottom: 7rem;
  }

  .has-dropdown {
    flex-wrap: wrap;
    padding: 0;
  }

  .dropdown-toggle {
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 0.6rem;
    background: var(--light);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 2rem 5%;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  /* nav's backdrop-filter makes it the containing block for fixed children, so anchor from its top */
  nav.menu-open .nav-cta {
    display: block;
    position: fixed;
    top: calc(100vh - 5.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 0.8rem 2.5rem;
  }

  .client-logos img {
    height: 80px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
