/*
 * S K Cab Services Website Styles
 *
 * Colour palette:
 *   --primary-color: Charcoal (#2c3e50) used for headers and footers
 *   --secondary-color: Red (#c0392b) used for buttons and highlights
 *   --light-color: Off‑white (#f7f9fa) used for backgrounds
 *   --dark-color: Dark grey (#333) used for text
 *
 * The layout uses a max‑width wrapper (.container) to centre content
 * and flexible grid areas for sections like services and FAQs. Forms
 * are styled for readability and accessibility.
 */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #c0392b;
  --light-color: #f7f9fa;
  --dark-color: #333;
  --max-width: 1100px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.6;
}

/* Global container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and navigation */
header {
  background-color: var(--primary-color);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
header h1 {
  /* The site title has been replaced by a logo image. */
  display: none;
}

/* Logo styling */
.logo img {
  height: 40px;
  width: auto;
}

/* Navigation menu */
nav {
  position: relative;
}

nav .menu {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav .menu li {
  position: relative;
}

nav .menu a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
  display: block;
}

nav .menu a:hover,
nav .menu a:focus {
  background-color: var(--secondary-color);
  color: #fff;
}

/* Dropdown menu for routes */
nav .routes > a::after {
  content: "\25BE"; /* downward chevron */
  margin-left: 5px;
  font-size: 0.7rem;
}

nav .routes .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 200px;
  display: none;
  z-index: 1000;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav .routes .dropdown li a {
  padding: 8px 16px;
  white-space: nowrap;
}

nav .routes:hover .dropdown {
  display: block;
}

/* Hamburger / toggle button for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #fff;
}

/* Mobile styles */
@media (max-width: 768px) {
  nav .menu {
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-color);
    margin-top: 10px;
    display: none;
  }
  nav .menu.show {
    display: flex;
  }
  nav .menu li {
    width: 100%;
  }
  nav .routes .dropdown {
    position: static;
    background-color: var(--primary-color);
    box-shadow: none;
    border-radius: 0;
    min-width: unset;
    display: none;
  }
  nav .routes.open .dropdown {
    display: flex;
    flex-direction: column;
  }
  .nav-toggle {
    display: flex;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}
nav a:hover,
nav a:focus {
  background-color: var(--secondary-color);
  color: #fff;
}

/* Highlight active navigation link */
nav a.active {
  background-color: var(--secondary-color);
  color: #fff;
}

/* Hero section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.6); /* overlay for readability */
  z-index: 0;
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}
.hero h2 {
  margin-top: 0;
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn:hover {
  background-color: #a93226;
}

/* Section styling */
section {
  padding: 60px 0;
}
section h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.service-card .card-content {
  padding: 15px;
}
.service-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* About section layout */
.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.about-section img {
  flex: 1 1 350px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.about-section .about-text {
  flex: 1 1 350px;
}
.about-section h3 {
  text-align: left;
}

/* Why choose us list */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.reason {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}
/* Icon styling for reasons section */
.reason .icon {
  font-size: 40px;
  line-height: 1;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

/* FAQ styling */
.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.faq-item summary {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  background: var(--primary-color);
  color: #fff;
  border-bottom: 1px solid #e0e0e0;
}
.faq-item summary:hover {
  background: var(--secondary-color);
}
.faq-item p {
  padding: 15px 20px;
  margin: 0;
}

/* Contact form styling */
form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}
form .form-group {
  margin-bottom: 15px;
}
form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}
form input,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  font-size: 1rem;
}
form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}
form button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
form button:hover {
  background-color: #a93226;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 20px 0;
}
footer p {
  margin: 5px 0;
}

/* Floating call/SMS/WhatsApp buttons */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.floating-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  transition: background-color 0.3s;
}
.floating-buttons a:hover {
  background-color: #a93226;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }
  .about-section {
    flex-direction: column;
  }
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }
}
/* ---------- Contact section base ---------- */
#contact .contact-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px;
}

.whatsapp-form {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.whatsapp-form .form-group {
  display: grid;
  gap: 6px;
}

.whatsapp-form input,
.whatsapp-form select,
.whatsapp-form button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

.whatsapp-form button {
  background: #0a7d34;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.whatsapp-form button:hover {
  filter: brightness(0.95);
}

/* ---------- Mobile: style when moved below hero heading ---------- */
@media (max-width: 767px) {
  /* Give hero some breathing space for the form */
  .hero {
    padding-bottom: 16px;
    background-size: cover;
    background-position: center;
  }

  .hero .hero-content {
    padding: 16px;
  }

  /* When the #contact section appears under hero, make it look like a card */
  .hero .hero-content + #contact,
  .hero .hero-content #contact {
    /* in case DOM ends up nested */
    width: 100%;
  }

  #contact {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background:
      linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
      url('images/taxi2.png') center/cover no-repeat;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    color: #fff;
  }

  #contact h3,
  #contact label {
    color: #fff;
  }

  .whatsapp-form input,
  .whatsapp-form select {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.65);
  }

  .whatsapp-form button {
    background: #00a884; /* WhatsApp-ish green */
  }
}

/* ---------- Desktop keeps original layout ---------- */
@media (min-width: 768px) {
  /* nothing special needed; form stays in original section */
}
