/*
Theme Name: TA Scotland
Theme URI: 
Author: Developer
Author URI: 
Description: Custom WordPress theme for TA Scotland LTD, premium coach hire.
Version: 1.1.0
Text Domain: ta-scotland
*/

:root {
  --primary-color: #005EB8;
  --primary-hover: #004b93;
  --dark-bg: #1c1f24;
  --darker-bg: #111316;
  --bg-color: #f4f6f8;
  --text-color: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --border-color: #eaeaea;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary-color);
}

.logo-img {
  height: 400px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-text span {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.05rem;
  font-weight: 600;
  padding-bottom: 4px;
  position: relative;
}

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

nav a:hover::after, nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.header-contact span {
  color: var(--text-light);
  font-size: 0.8rem;
}

.header-contact svg {
  width: 20px;
  height: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,94,184,0.3);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1542289650-8b173dbbbbb1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  padding: 6rem 0 10rem 0; /* Extra padding bottom for inset images */
  color: var(--white);
}

.hero-content {
  max-width: 650px;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin: 0 0 2.5rem auto;
  font-weight: 300;
  max-width: 500px;
}

.hero-insets {
  position: absolute;
  bottom: -90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.hero-inset-img {
  width: 260px;
  height: 180px;
  border-radius: 16px;
  border: 3px solid #94a3b8;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* Section Common */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* Why Choose Us */
.why-choose {
  padding: 8rem 0 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--primary-color);
  color: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 3px solid var(--primary-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: 50%;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.feature-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.reviews-text {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.testimonial {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* Fleet Section */
.fleet {
  padding: 4rem 0;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.fleet-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid #94a3b8;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.fleet-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.fleet-info {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.fleet-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.fleet-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  align-content: flex-start;
}

.badge {
  background-color: #f0f7ff;
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #d1e5fd;
}

.fleet-info .btn {
  width: 100%;
  padding: 0.6rem;
  font-size: 0.9rem;
}

/* Quote Section */
.quote-section {
  padding: 4rem 0 0 0;
  position: relative;
  z-index: 10;
  margin-bottom: -4rem; /* Overlap footer */
}

.quote-wrapper {
  background: var(--dark-bg);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: var(--white);
  position: relative;
}

.quote-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.quote-wrapper h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quote-form input, .quote-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.quote-form .btn {
  width: 100%;
  border-radius: 8px;
}

/* Footer */
footer {
  background: var(--darker-bg);
  color: var(--white);
  padding: 8rem 0 3rem 0; /* Top padding to accommodate overlapping quote box */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-col p {
  color: #a0aab2;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

.social-icon {
  width: 35px;
  height: 35px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #a0aab2;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #a0aab2;
  font-size: 0.9rem;
}

.contact-info svg {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.footer-map {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  border: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #666;
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .features-grid, .fleet-grid, .quote-form {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-insets {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  .hero h1 { 
    font-size: 2.5rem; 
  }
  .hero p {
    margin: 0 auto 2rem auto;
  }
  .features-grid, .fleet-grid, .quote-form, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-insets {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
  }
  .hero {
    padding: 2rem 0 4rem;
  }
  .why-choose {
    padding: 4rem 0 2rem;
  }
  .quote-wrapper {
    padding: 2rem;
  }
}
