/* INCOLN Technology — styles (palette from logo) */
:root {
  --primary: #4AC1E3;
  --primary-dark: #3DB8D9;
  --accent: #2b8cad;
  --text: #2d3748;
  --text-navy: #1e3a5f;
  --bg: #ffffff;
  --bg-alt: #f0f9fc;
  --bg-subtle: #f8fafb;
  --max-width: 1100px;
  --nav-height: 72px;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 4px 20px rgba(30, 58, 95, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}
.nav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-navy);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-menu a:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-navy);
  margin: 0 auto;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/logo.svg") center no-repeat;
  background-size: min(70vw, 520px);
  opacity: 0.09;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-navy);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.hero-tagline {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--primary-dark);
  font-weight: 600;
}
.hero-sub {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Sections ----- */
.section {
  padding: 3rem 0;
}
.section:nth-child(even) { background: var(--bg-subtle); }
.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-navy);
  text-align: center;
}

/* ----- About ----- */
.about-text {
  margin: 0;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ----- Products grid ----- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.product-image {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-title {
  margin: 0;
  padding: 1rem 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-navy);
}
.product-desc {
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
}
.products-subtitle {
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}
.products-intro {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--text);
  font-size: 0.9375rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.gallery--accessories {
  grid-template-columns: repeat(5, 1fr);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
}
.gallery img:hover {
  opacity: 0.9;
}
@media (max-width: 768px) {
  .gallery--accessories {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery--accessories {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- Lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-img {
  max-width: 95%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  cursor: default;
  pointer-events: auto;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ----- Contact ----- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-info { min-width: 0; }
.contact-address,
.contact-tel,
.contact-email {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}
.contact-address { margin-bottom: 1.25rem; }
.contact-info a {
  color: var(--primary-dark);
  text-decoration: none;
}
.contact-info a:hover { text-decoration: underline; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-navy);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  width: 100%;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 600;
  color: var(--bg);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.25rem;
}
.btn:hover { background: var(--accent); }
.contact-map { min-width: 0; }
.map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-subtle);
}
.map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.map-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--primary-dark);
  text-decoration: none;
}
.map-link:hover { text-decoration: underline; }

/* ----- Footer ----- */
.site-footer {
  padding: 2rem 0;
  background: var(--text-navy);
  color: #e2e8f0;
  text-align: center;
}
.site-footer a {
  color: #93c5fd;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.footer-name {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}
.footer-address,
.footer-contact {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  opacity: 0.95;
}
.footer-copy {
  margin: 1rem 0 0.5rem;
  font-size: 0.8125rem;
  opacity: 0.85;
}
.footer-top {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* ----- WhatsApp float button ----- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg {
  flex-shrink: 0;
}
.whatsapp-float-label {
  white-space: nowrap;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    gap: 0;
    transform: translateY(-100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.3s, visibility 0.3s, opacity 0.3s;
  }
  .nav-menu.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
  .nav-menu a { padding: 0.75rem 1rem; }
  .contact-wrap { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .whatsapp-float-label { display: none; }
  .whatsapp-float { padding: 0.85rem; bottom: 1.25rem; right: 1.25rem; }
}

@media (min-width: 769px) {
  .nav-menu { display: flex !important; }
}
