/* ===== Reset & base ===== */
*, *::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; color: #1a1a1a; }

/* ===== Header ===== */
.site-header {
  position: relative;
  padding: 1rem 2rem;
  background-image: url("images/hero-background.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lang-switcher:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.25);
}

.lang-sep {
  color: #999;
  user-select: none;
}

.lang-option {
  padding: 0 0.15rem;
}

.lang-option.active {
  color: #0066cc;
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

.hero-desc {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
}

.btn-secondary {
  color: #1a1a1a;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
}

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-polyspheres {
  max-width: 100%;
  height: auto;
  max-height: 315px;
  object-fit: contain;
}

/* Fallback if background image not yet added */
.site-header:not([style]) { background-color: #f8fafc; }
.hero-bg { background-color: #f8fafc; }

/* ===== About Us ===== */
.about {
  background-color: #FFFFFF;
  padding: 4rem 2rem 4rem;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-illustration {
  max-width: 70%;
  height: auto;
  object-fit: contain;
}

.about-content {
  max-width: 540px;
}

.about-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

.about-desc {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
}

.about-banner {
  width: 100%;
  margin-top: 4rem;
  overflow: hidden;
}

.about-features-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-content {
    max-width: none;
  }
}

/* ===== Our Services ===== */
.services {
  background-color: #FFFFFF;
  padding: 4rem 2rem;
}

.services-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
}

.services-intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  color: #333;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.services-list {
  max-width: 540px;
}

.service-item {
  margin: 0;
}

.service-name {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
}

.service-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.service-divider {
  margin: 1.25rem 0;
  border: none;
  border-top: 1px solid #e5e5e5;
}

.services-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-illustration {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .services-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-list {
    max-width: none;
  }
  .services-visual {
    order: -1;
  }
}

/* ===== Client Reviews (carousel) ===== */
.reviews {
  background-color: #FFFFFF;
  padding: 4rem 2rem;
}

.reviews-header {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reviews-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.carousel-btn:hover {
  opacity: 0.85;
}

.carousel-prev {
  background: #e8e8e8;
  color: #1a1a1a;
}

.carousel-next {
  background: #1a1a1a;
  color: #fff;
}

.reviews-viewport {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.35s ease-out;
  will-change: transform;
}

.review-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: #fff;
}

.review-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-meta {
  margin: 0;
}

.review-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.review-role {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #666;
}

.review-quote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
  font-style: normal;
}

.review-quote::before {
  content: "\201C";
}

.review-quote::after {
  content: "\201D";
}

@media (max-width: 900px) {
  .review-card {
    flex: 0 0 calc(100% - 1rem);
  }
}

/* ===== Contact Us ===== */
.contact {
  position: relative;
  padding: 4rem 1.5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/contact-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.4) 0%, rgba(240,248,255,0.2) 100%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
}

.contact-form {
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.contact-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
}

.contact-subtitle {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.contact-field {
  margin-bottom: 1.25rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
}

.contact-input {
  width: 100%;
  padding: 0.5rem 0 0.6rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a1a;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
  transition: border-color 0.2s;
}

.contact-input::placeholder {
  color: #999;
}

.contact-input:focus {
  border-bottom-color: #2563eb;
}

.contact-input:invalid:not(:placeholder-shown):not(:focus) {
  border-bottom-color: #dc2626;
}

.contact-textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-submit {
  margin-top: 1.5rem;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.contact-popup[hidden] {
  display: none;
}

.contact-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.contact-popup-box {
  position: relative;
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.contact-popup-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.contact-popup-text {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.contact-popup-close {
  min-width: 120px;
}

@media (max-width: 600px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Footer ===== */
.site-footer {
  background: #FFFFFF;
  padding: 2.5rem 2rem;
  border-top: 1px solid #eee;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo .logo-img {
  height: 40px;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #2563eb;
}

.footer-info {
  margin-top: 1.25rem;
}

.footer-address,
.footer-email {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #555;
}

.footer-email a {
  color: #2563eb;
  text-decoration: none;
}

.footer-email a:hover {
  text-decoration: underline;
}

.footer-divider {
  margin: 1.5rem 0 1rem;
  border: none;
  border-top: 1px solid #e5e5e5;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

/* ===== Legal pages (Privacy, Terms) ===== */
.legal-page {
  background: #FFFFFF;
  padding: 3rem 2rem 4rem;
  min-height: 60vh;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-title {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
}

.legal-updated {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: #666;
}

.legal-section {
  margin-bottom: 1.75rem;
}

.legal-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.legal-section p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333;
}
