:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-strong: rgba(240, 243, 250, 0.98);
  --text: #111111;
  --muted: #333333;
  --accent: #0A1EBF;
  --accent-dark: #0815a0;
  --accent-light: #e8ebfc;
  --gold: #0A1EBF;
  --border: rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--text);
}

.container {
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(1rem, 2vw, 2rem);
  padding-right: clamp(1rem, 2vw, 2rem);
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(10, 30, 191, 0.06);
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem clamp(1rem, 2vw, 2rem);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.unit-list {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.unit-link {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.unit-link:hover {
  color: var(--accent);
}

.separator {
  padding: 0 0.8rem;
  color: var(--accent);
}



.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem clamp(1rem, 2vw, 2rem);
}

.brand-logo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo-image {
  height: auto;
  max-width: 100px;
  width: 100%;
}

.zeiss-mark {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.brand-logo small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.24s ease;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.55rem 1.3rem;
  font-size: 0.88rem;
  margin-left: 0.5rem;
  color: #ffffff !important;
}

.nav-cta:hover {
  color: #ffffff !important;
}

/* ── Hamburger button (hidden on desktop) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.hamburger:hover {
  background: rgba(10, 30, 191, 0.08);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animated X when open */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
}

.hero-carousel {
  display: grid;
  min-height: 80vh;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center start;
  padding: clamp(2rem, 4vw, 5rem);
  color: white;
  opacity: 0;
  animation: slideAnimation 10s infinite ease-in-out;
  background-blend-mode: multiply;
}


.hero-copy-container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 720px;
}

.hero-slide .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #c8d1ff;
  font-size: 0.85rem;
}

.hero-slide h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 0.96;
  color: #ffffff;
}

.hero-slide p {
  max-width: 610px;
  margin: 1.4rem 0 2rem;
  font-size: 1.05rem;
  color: rgba(245, 245, 245, 0.92);
  line-height: 1.8;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.24s ease, background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(10, 30, 191, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3a54f5);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ── Slide backgrounds ── */
.slide-1 {
  background-image: url('img/banner-desktop.png');
  animation-delay: 0s;
}

.slide-2 {
  background-image: url('img/banner-desktop.png');
  animation-delay: 5s;
}

@keyframes slideAnimation {
  0%, 40% { opacity: 1; transform: scale(1); }
  50%, 100% { opacity: 0; transform: scale(1.015); }
}

/* ── Sections ── */
.intro-section,
.technologies-section,
.testimonials-section,
.contact-section {
  padding: clamp(4rem, 5vw, 6rem) clamp(1rem, 4vw, 5rem);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  color: var(--accent);
}

/* ── Intro ── */
.sobre-otica {
  background-image: url('img/bg-sobre.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 1rem;
}

.intro-single {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-single h2 {
  margin-top: 0;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.intro-single p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
}

.sobre-action {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.btn-conheca-mais {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.2s;
  letter-spacing: 0.05em;
}

.btn-conheca-mais:hover {
  opacity: 0.9;
  color: #ffffff;
}

.sobre-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  gap: 0;
}

.sobre-divider .line {
  flex: 1;
  height: 2px;
  background-color: var(--accent);
}

.sobre-divider .diamond {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  background: transparent;
  margin: 0 15px;
}

/* ── Cards ── */
.tech-card,
.testimonial-card,
.location-card {
  padding: 1.8rem;
  background: #ffffff;
  border: 1px solid rgba(10, 30, 191, 0.1);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(10, 30, 191, 0.07);
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.tech-card:hover,
.testimonial-card:hover,
.location-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(10, 30, 191, 0.14);
}

.tech-card h3,
.location-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.tech-card p,
.testimonial-card p,
.location-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Technologies ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* ── Testimonials ── */
.testimonials-section {
  background: var(--accent-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
}

.testimonial-card p {
  color: #111111;
  font-style: italic;
}

.testimonial-card div {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.25rem;
}

.testimonial-card strong {
  color: var(--accent);
  font-weight: 700;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Contact / Locations ── */
.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.location-card-highlight {
  border-color: rgba(10, 30, 191, 0.3);
  background: var(--accent-light);
}

/* ── Footer ── */
.site-footer {
  padding: 1rem clamp(1rem, 4vw, 5rem);
  text-align: center;
  font-size: 0.85rem;
  color: #ffffff;
  background: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .intro-grid,
  .tech-grid,
  .testimonial-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }
  .hero-slide h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
  }
}

@media (max-width: 720px) {
  /* Topbar permanece visível mas menor */
  .topbar {
    flex-direction: row;
    justify-content: center;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  /* brand-row: logo left, hamburger right, inline */
  .brand-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    flex-wrap: nowrap;
    position: relative;
  }

  /* Logo menor no mobile */
  .logo-image {
    max-width: 80px;
  }

  /* Mostrar o botão hamburger */
  .hamburger {
    display: flex;
  }

  /* Nav: colapsa em dropdown abaixo do header */
  .site-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(10, 30, 191, 0.1);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    z-index: 100;
  }

  .site-nav.is-open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .nav-cta {
    margin: 0.75rem 1.5rem 1rem;
    border-radius: 999px;
    text-align: center;
    justify-content: center;
    color: #ffffff !important;
  }

  .hero-section {
    min-height: 62vh;
  }
  .hero-slide {
    padding: 1.5rem 1.25rem;
  }
  .slide-1, .slide-2 {
    background-image: url('img/banner-mobile.png');
  }
  .hero-slide p {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 520px) {
  .topbar,
  .brand-row {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-slide h1 {
    font-size: 2rem;
  }
  .btn {
    width: 100%;
  }
}
