/*
 * CLOUD7 Limousine Services Inc styles
 *
 * This stylesheet uses a dark, luxurious color palette with golden accents.
 * Typography is handled through imported Google fonts: Playfair Display for
 * headings and Open Sans for body copy. The layout is responsive, with
 * flexible grids and a mobile navigation toggle. Smooth transitions and
 * subtle animations enhance the user experience without overwhelming the
 * content.
 */

/* CSS Variables for easy theming */
:root {
  /*
   * Colour palette updated for a bright, uplifting look.
   * The base background is a very light grey, sections use white
   * panels and the primary accent colour is a rich azure to evoke
   * the “Cloud” namesake. Text colours are dark for contrast and
   * accent‑light tints use the primary hue with low opacity.
   */
  --bg-color: #f7f9fc;
  --primary-color: #0078d4; /* vibrant azure accent */
  --secondary-color: #ffffff;
  --text-color: #2a2a2a;
  --text-light: #555555;
  --accent-light: rgba(0, 120, 212, 0.1);
  --transition-speed: 0.3s;
  --max-width: 1200px;
  --border-radius: 8px;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--text-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  /* Darken the primary colour slightly on hover for contrast */
  color: #005fa3;
}

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

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  z-index: 1000;
  /* Subtle shadow on the fixed navigation bar */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.company-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links li a {
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: 0.05rem;
  transition: color var(--transition-speed);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  display: block;
  transition: all var(--transition-speed) ease-in-out;
  position: relative;
}

/* Hamburger animation when open */
.nav-toggle.open .hamburger {
  background-color: transparent;
}

.nav-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: url('hero-bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* A soft white overlay ensures text remains readable on the bright hero image */
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.btn-primary {
  /* Use the primary accent colour for buttons with white text */
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  /* Darken the button on hover for subtle feedback */
  background-color: #005fa3;
  color: #ffffff;
}

/* Sections */
section {
  padding: 4rem 0;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* About Section */
.about p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  text-align: justify;
}

/* Services Section */
.services {
  background-color: var(--secondary-color);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-color);
  border: 1px solid var(--accent-light);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.service-image {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  margin-bottom: 1rem;
}

.service-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Contact Section */
.contact {
  background-color: var(--bg-color);
}

.contact-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.contact-details {
  flex: 1 1 260px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact-details h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-form {
  flex: 1 1 360px;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  /* Light shadow around the form card */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.form-group input,
  .form-group textarea {
  width: 100%;
  padding: 0.6rem;
  /* Use a white background for form fields to contrast against the light section */
  background-color: var(--secondary-color);
  border: 1px solid var(--accent-light);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: 0.9rem;
  transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form button {
  margin-top: 0.5rem;
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.social-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.social-links li a {
  color: var(--text-light);
  font-size: 1.1rem;
  transition: color var(--transition-speed);
}

.social-links li a:hover {
  color: var(--primary-color);
}

/* Scroll-to-top button */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed), visibility var(--transition-speed), transform var(--transition-speed);
  z-index: 999;
}

#scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-top i {
  font-size: 1rem;
}

/* Reveal animation */
.service-card,
.about p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-speed) ease-out, transform var(--transition-speed) ease-out;
}

.service-card.reveal,
.about p.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Form notification */
.form-notification {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background-color: var(--secondary-color);
  border-left: 4px solid var(--primary-color);
  color: var(--text-color);
  font-size: 0.9rem;
  border-radius: var(--border-radius);
}

/* Pricing Section */
.pricing {
  background-color: var(--bg-color);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background-color: var(--secondary-color);
  border: 1px solid var(--accent-light);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.pricing-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.pricing-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--secondary-color);
    width: 200px;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-speed) ease-in-out;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  .nav-links.open {
    max-height: 300px;
  }
  .nav-links li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--accent-light);
  }
  .nav-toggle {
    display: block;
  }
  .navbar {
    padding: 0.5rem 1rem;
  }
  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .contact-grid {
    flex-direction: column;
  }
}