/* ==========================================
   LINGsCARS — Pure CSS Design System
   Zero JavaScript Dependencies
   ========================================== */

:root {
  --primary: #0c3e9e;
  --accent:  #007BFF;
  --dark:    #111111;
  --gray:    #666666;
  --border:  #e0e0e0;
  --navbar-bg: #ebe7e6;
  --light-bg:  #F6F6F6;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
  padding-top: 65px;
}

a { color: inherit; text-decoration: none; transition: color 0.25s; }

/* ==========================================
   HIDDEN CHECKBOX INPUTS  (CSS-only toggles)
   ========================================== */
.nav-toggle-cb { display: none !important; }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 65px;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 25px;
  display: flex;
  align-items: center;
}

.navbar-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--dark);
  flex-shrink: 0;
}

/* ---- Nav Links ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex: 1;
}

.nav-links > li { position: relative; }

.nav-links a,
.about-us-btn {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  padding: 5px 0;
  position: relative;
  background: none;
  border: none;
  font-family: inherit;
}

/* Underline hover effect */
.nav-links a::after,
.about-us-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--dark);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover::after,
.about-us-btn:hover::after,
.nav-links a.active-link::after { width: 100%; }

/* ---- Nav Right (icons + hamburger) ---- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-icons { display: flex; gap: 6px; }

.nav-icons a {
  color: var(--dark);
  font-size: 1.05rem;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.nav-icons a:hover {
  background: rgba(0,0,0,0.06);
  color: var(--accent);
}

/* ---- Hamburger label (CSS-only toggle) ---- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px; height: 22px;
  cursor: pointer;
}

.hamburger-btn span {
  display: block;
  width: 100%; height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

/* Hamburger animates to X when checkbox checked */
.nav-toggle-cb:checked ~ .nav-right .hamburger-btn span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle-cb:checked ~ .nav-right .hamburger-btn span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-toggle-cb:checked ~ .nav-right .hamburger-btn span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   ABOUT US DROPDOWN  (pure CSS: hover + focus-within)
   ========================================== */
.about-us-btn { display: inline-flex; align-items: center; gap: 4px; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 65px; left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 40px 20px;
  z-index: 999;
  flex-direction: row;
  justify-content: center;
  gap: 80px;
  animation: dropFadeIn 0.25s ease both;
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Show on hover OR when li has keyboard focus inside */
.dropdown-li:hover .dropdown-content,
.dropdown-li:focus-within .dropdown-content {
  display: flex;
}

.dropdownfirst, .dropdownsecond { min-width: 175px; }

.dropdown-content h4 {
  color: var(--gray);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.dropdown-content a {
  display: block;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color 0.2s, transform 0.2s;
}

.dropdown-content a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* ==========================================
   HERO IMAGE SECTION
   ========================================== */
.image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.image-container > img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  will-change: transform;
}

.image-container:hover > img { transform: scale(1.02); }

.learn-more {
  position: absolute;
  bottom: clamp(18px, 7%, 100px);
  right: clamp(15px, 5%, 100px);
  padding: 12px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.learn-more:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.learn-more:active { transform: scale(0.97); }

/* ==========================================
   SECTION TITLE
   ========================================== */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 50px 0 25px;
  color: var(--dark);
}

/* ==========================================
   CSS ANIMATIONS  (no JS needed)
   ========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==========================================
   BRAND CAROUSEL  (CSS Scroll Snap)
   ========================================== */
.carousel-wrapper {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.carousel-track:active { cursor: grabbing; }
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 33.333%;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
}

.carousel-slide img {
  max-width: 80%;
  height: 110px;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter 0.35s, transform 0.35s;
  pointer-events: none;
}

.carousel-slide:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.carousel-hint {
  text-align: center;
  color: var(--gray);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  display: inline-block;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  background: #f6f6f6;
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-primary-outline:active { transform: scale(0.97); }

/* ==========================================
   INFO SECTION (Why LINGsCARS)
   ========================================== */
.info-section {
  background: var(--light-bg);
  padding: 50px 20px;
}

.info-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
}

.why-banner-img {
  width: 85%;
  max-width: 900px;
  display: block;
  margin: 0 auto 30px;
  border-radius: 8px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.why-item h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-item p  { color: var(--gray); font-size: 0.95rem; }

/* ==========================================
   QUICK LINKS
   ========================================== */
.quick-links-section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

.quick-links-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  margin-top: 25px;
}

.link-item {
  padding: 18px 25px;
  border-top: 2px solid #f5f5f5;
  border-bottom: 2px solid #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  transition: background 0.2s, padding-left 0.25s var(--ease);
  animation: fadeInUp 0.5s ease both;
}

.link-item:nth-child(1) { animation-delay: 0.05s; }
.link-item:nth-child(2) { animation-delay: 0.12s; }
.link-item:nth-child(3) { animation-delay: 0.19s; }
.link-item:nth-child(4) { animation-delay: 0.26s; }

.link-item:hover { background: #fafafa; padding-left: 32px; }

.link-item .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.link-item:hover .arrow { transform: translateX(6px); }

/* ==========================================
   FEATURE CARDS  (Service page)
   ========================================== */
.features-grid {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 0 20px;
}

.features-grid-2 {
  max-width: 860px;
  margin: 20px auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 0 20px;
}

.feature-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: fadeInUp 0.6s ease both;
}

.features-grid .feature-card:nth-child(1),
.features-grid-2 .feature-card:nth-child(1) { animation-delay: 0.05s; }
.features-grid .feature-card:nth-child(2),
.features-grid-2 .feature-card:nth-child(2) { animation-delay: 0.15s; }
.features-grid .feature-card:nth-child(3)   { animation-delay: 0.25s; }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-card img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 18px; }
.feature-card h3  { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p   { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

/* ==========================================
   IMAGE + TEXT FLEX ROW
   ========================================== */
.flex-row-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  gap: 40px;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.1s;
}

.flex-row-container.reverse { flex-direction: row-reverse; }

.flex-row-text { flex: 1; }
.flex-row-text h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; }
.flex-row-text p  { color: var(--gray); font-size: 1rem; line-height: 1.75; }

.flex-row-image { flex: 1; display: flex; justify-content: center; }
.flex-row-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================
   SERVICE CARDS (with image)
   ========================================== */
.cards-grid {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.card-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: fadeInUp 0.6s ease both;
}

.cards-grid .card-item:nth-child(1) { animation-delay: 0.05s; }
.cards-grid .card-item:nth-child(2) { animation-delay: 0.18s; }

.card-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-item > img { width: 100%; height: 220px; object-fit: cover; }

.card-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card-content p  { font-size: 0.92rem; color: var(--gray); margin-bottom: 20px; flex: 1; line-height: 1.6; }

.card-btn {
  align-self: flex-start;
  padding: 8px 20px;
  color: var(--accent);
  font-weight: 700;
  border: 2px solid var(--accent);
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background 0.25s, color 0.25s;
}

.card-btn:hover { background: var(--accent); color: #fff; }

/* ==========================================
   SERVICE PAGE HERO
   ========================================== */
.service-hero-wrap {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.service-hero-wrap > img {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  display: block;
  opacity: 0.72;
}

.service-hero-centered {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 90%;
  max-width: 800px;
  animation: fadeIn 0.8s ease both;
}

.service-hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.9;
}

.service-hero-title h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

.service-hero-breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 700;
}

.service-intro {
  max-width: 900px;
  margin: 55px auto 20px;
  text-align: center;
  padding: 0 20px;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.1s;
}

.service-intro h1 { font-size: 2rem; font-weight: 700; margin-bottom: 18px; }
.service-intro p  { color: var(--gray); font-size: 1.05rem; line-height: 1.8; }

/* ==========================================
   CONTACT FORM  &  SIGN-IN FORM
   ========================================== */
.form-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 165px);
  padding: 40px 20px;
}

.form-card {
  background: #fff;
  padding: 45px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 520px;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.15s;
}

.form-card h1 {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.form-card h2 { font-size: 1.8rem; margin-bottom: 28px; }

.form-card > p { color: var(--gray); font-size: 0.95rem; margin-bottom: 28px; }

.form-group-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fafafa;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-control:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 62, 158, 0.12);
}

/* HTML5 native validation feedback — no JS needed */
.form-control:not(:placeholder-shown):valid   { border-color: #27ae60; }
.form-control:not(:placeholder-shown):invalid { border-color: #e74c3c; }

.btn-submit-full,
.btn-submit-blue {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 10px;
  transition: background 0.25s, transform 0.15s, box-shadow 0.2s;
}

.btn-submit-full { background: var(--dark); color: #fff; }
.btn-submit-full:hover { background: #333; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-submit-full:active { transform: scale(0.97); }

.btn-submit-blue { background: var(--primary); color: #fff; }
.btn-submit-blue:hover { background: #083299; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-submit-blue:active { transform: scale(0.97); }

.privacy-notice {
  font-size: 0.8rem;
  color: var(--gray);
  background: #f9f9f9;
  padding: 14px;
  border-radius: 6px;
  margin: 18px 0;
  line-height: 1.55;
}

/* Sign-in specific */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span { font-size: 0.8rem; color: #aaa; white-space: nowrap; }

.trouble-link { text-align: right; margin-bottom: 12px; font-size: 0.82rem; }
.trouble-link a { color: var(--gray); }
.trouble-link a:hover { color: var(--primary); text-decoration: underline; }

.create-id { text-align: center; font-size: 0.9rem; }
.create-id a { color: var(--gray); }
.create-id a:hover { color: var(--primary); text-decoration: underline; }

/* ==========================================
   FLOATING CONTACT BUTTON
   ========================================== */
.chat-widget-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.chat-button {
  background: var(--dark);
  color: #fff;
  width: 55px; height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.chat-button:hover {
  transform: scale(1.12) rotate(8deg);
  background: var(--primary);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: #e9e9e9;
  padding: 50px 20px 40px;
  margin-top: 60px;
}

.back-to-top {
  display: block;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  margin-bottom: 35px;
  transition: color 0.25s, transform 0.25s;
}

.back-to-top:hover { color: var(--primary); transform: translateY(-3px); }

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 80px;
  text-align: center;
}

.footer-col h4 { font-size: 1.05rem; margin-bottom: 14px; }

.footer-col a {
  display: block;
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--dark);
}

.footer-socials { display: flex; gap: 25px; }

.footer-socials a {
  color: var(--dark);
  font-size: 1.8rem;
  transition: color 0.25s, transform 0.25s;
}

.footer-socials a:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* ==========================================
   MEDIA QUERIES
   ========================================== */

/* Tablet */
@media (max-width: 992px) {
  .flex-row-container,
  .flex-row-container.reverse {
    flex-direction: column !important;
    text-align: center;
  }
  .flex-row-image img { max-width: 100%; }
  .dropdown-content { gap: 40px; padding: 30px 20px; }
}

/* Mobile */
@media (max-width: 768px) {
  body { padding-top: 60px; }

  .navbar { height: 60px; padding: 0 15px; }

  .hamburger-btn { display: flex; }

  /* ---- Mobile drawer ---- */
  .nav-links {
    position: fixed;
    top: 60px; left: -100%;
    width: 80%; max-width: 310px;
    height: calc(100vh - 60px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 25px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transition: left 0.4s var(--ease);
    overflow-y: auto;
    z-index: 1000;
  }

  /* Open drawer via checkbox */
  .nav-toggle-cb:checked ~ .nav-links { left: 0; }

  /* ---- Dropdown always expanded inside mobile drawer ---- */
  .dropdown-content {
    position: static !important;
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0 0 12px !important;
    box-shadow: none !important;
    width: 100%;
    border-left: 3px solid var(--border);
    margin-top: 6px;
    animation: none;
  }

  .dropdown-content h4   { margin-bottom: 8px; }
  .dropdown-content a    { margin-bottom: 4px; }
  .dropdownfirst         { margin-bottom: 12px; }

  /* ---- Hero button repositioned ---- */
  .image-container { display: block; }
  .learn-more {
    position: static;
    display: block;
    margin: 15px auto;
    text-align: center;
    width: 80%;
    max-width: 250px;
  }

  .why-grid         { grid-template-columns: 1fr; }
  .carousel-slide   { flex: 0 0 50%; }
  .form-group-row   { flex-direction: column; gap: 12px; }
  .form-card        { padding: 28px 20px; }
  .footer-links-grid { grid-template-columns: 1fr; gap: 25px; }
  .quick-links-container { grid-template-columns: 1fr; }
  .service-hero-title h1 { font-size: 1.3rem; }
  .service-hero-subtitle { font-size: 0.72rem; }
  .chat-widget-container { bottom: 18px; right: 18px; }
}

@media (max-width: 480px) {
  .carousel-slide   { flex: 0 0 100%; }
  .section-title    { font-size: 1.4rem; }
  .info-section h2  { font-size: 1.5rem; }
}