/* =========================================================
   TVM Medical Equipment & Trading — Landing Page Styles
   ========================================================= */

:root {
  --navy: #0a2e45;
  --navy-2: #0d3b52;
  --navy-3: #123f57;
  --teal: #127f96;
  --teal-light: #e8f4f7;
  --accent: #2fa9c4;
  --text-dark: #1c2a32;
  --text-gray: #5a6a72;
  --bg-light: #f6f9fa;
  --white: #ffffff;
  --border: #e2e9ec;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(10, 46, 69, 0.08);
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: var(--navy);
}

p { margin: 0 0 12px; color: var(--text-gray); }

ul { list-style: none; margin: 0; padding: 0; }

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

img { max-width: 100%; display: block; }

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.125em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 34px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--teal); color: var(--white); }

.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); width: 100%; }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }

.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-sm { padding: 9px 22px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(10,46,69,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 72px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: 'Poppins', sans-serif; font-size: 22px; color: var(--navy); letter-spacing: 1px; }
.logo-text small { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--teal); border-color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-quote .icon { width: 16px; height: 16px; }
.btn-quote:hover { background: var(--navy); border-color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(9, 32, 48, 0.94) 0%, rgba(10, 46, 69, 0.82) 42%, rgba(10, 46, 69, 0.4) 75%, rgba(10, 46, 69, 0.15) 100%);
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide.active .hero-text { animation: fadeUp 0.6s ease; }

.hero-slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 24px;
}

.hero-text { max-width: 640px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--white);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero p {
  color: #cfe4ec;
  font-size: 17px;
  margin-bottom: 28px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.22); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero-dots span.active { background: var(--accent); transform: scale(1.2); }

/* ---------- About ---------- */
.about { padding: 90px 0 60px; background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}

.about-text h2 { font-size: 32px; margin-bottom: 18px; }

.value-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.value-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.value-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin: 0 auto 14px;
}

.value-card h3 { font-size: 16px; margin-bottom: 8px; }
.value-card p { font-size: 13px; margin: 0; }

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.vm-card {
  border: 2px solid var(--teal);
  border-radius: 20px;
  padding: 36px 34px;
  background: var(--white);
}

.vm-card h3 {
  font-size: 26px;
  margin-bottom: 24px;
}

.vm-card ul { display: flex; flex-direction: column; gap: 20px; }

.vm-card li { display: flex; gap: 16px; align-items: flex-start; }

.vm-card li .icon {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}

.vm-card li strong { display: block; margin-bottom: 4px; font-size: 15px; color: var(--navy); }
.vm-card li p { font-size: 13.5px; margin: 0; }

/* ---------- Products ---------- */
.products { padding: 90px 0; background: var(--bg-light); overflow: hidden; }

.product-slider { position: relative; padding: 0 60px; }

.product-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-track::-webkit-scrollbar { display: none; }
.product-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.product-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s, color 0.2s;
}
.product-arrow:hover { background: var(--teal); color: var(--white); }
.product-arrow.prev { left: 0; }
.product-arrow.next { right: 0; }

.product-page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 26px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(10, 46, 69, 0.16); }

.product-photo {
  width: 100%;
  height: 190px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  -webkit-user-drag: none;
  user-select: none;
}

.product-card h3 {
  font-size: 15.5px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .desc,
.product-card .product-desc {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Services ---------- */
.services { padding: 90px 0; background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  text-align: center;
  padding: 34px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.service-card .icon { width: 30px; height: 30px; color: var(--teal); margin-bottom: 16px; }
.service-card h3 { font-size: 16px; margin-bottom: 8px; }
.service-card p { font-size: 13.5px; margin: 0; }

/* ---------- Contact ---------- */
.contact { padding: 90px 0; background: var(--bg-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: var(--white);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-light);
  resize: vertical;
}
.contact-form select { appearance: auto; cursor: pointer; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.form-status { min-height: 18px; font-size: 13.5px; color: var(--teal); margin: 0; }

.field-error {
  display: block;
  margin-top: -8px;
  font-size: 12.5px;
  color: #c0392b;
}

.contact-side { display: flex; flex-direction: column; gap: 22px; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 220px;
}
.map-frame iframe { width: 100%; height: 220px; border: 0; }

.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info li .icon {
  width: 42px; height: 42px; min-width: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  padding: 11px;
}
.contact-info li strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.contact-info li span { display: block; font-size: 13.5px; color: var(--text-gray); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfe4ec; padding-top: 46px; }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo-icon { height: 42px; width: auto; display: block; }
.footer-logo .logo-text strong { color: var(--white); }
.footer-logo .logo-text small { color: var(--accent); }

.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.5px; color: #cfe4ec; }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px 24px 28px;
  font-size: 13px;
}

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
}
.social-links a:hover { background: var(--teal); border-color: var(--teal); }

/* ---------- Auth (Login) ---------- */
.auth-section {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--teal) 130%);
  padding: 60px 0;
}

.auth-wrap { display: flex; justify-content: center; }

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 20px;
  padding: 44px 38px;
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-title { font-size: 26px; margin-bottom: 26px; }

.auth-card .contact-form { text-align: left; }

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-gray);
  cursor: pointer;
}
.auth-remember input { width: auto; }

.auth-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  margin-top: 4px;
}
.auth-links a { color: var(--teal); font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }

/* ---------- Request a Quote modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(9, 32, 48, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: 0 24px 60px rgba(9, 32, 48, 0.35);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--teal-light); color: var(--teal); }
.modal-close .icon { width: 18px; height: 18px; }

.modal-title { font-size: 24px; margin-bottom: 8px; }
.modal-subtitle { font-size: 13.5px; margin-bottom: 24px; }

/* ---------- WhatsApp float button ---------- */
.whatsapp-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(10, 46, 69, 0.3);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .vm-grid { grid-template-columns: 1fr; }
  .product-page { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 92px; left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(10,46,69,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }

  .btn-quote { padding: 9px 14px; font-size: 12px; }

  .modal-box { padding: 30px 22px; }

  .hero h1 { font-size: 30px; }
  .hero-arrow { display: none; }

  .value-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .product-slider { padding: 0 46px; }
  .product-photo { height: 160px; }
  .product-arrow { width: 38px; height: 38px; }

  .footer-top, .footer-bottom { flex-direction: column; text-align: center; }

  .whatsapp-float { left: 16px; bottom: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

@media (max-width: 480px) {
  .product-slider { padding: 0 38px; }
  .product-page { grid-template-columns: 1fr; gap: 16px; }
}
