/* ========================================
   Westchase Mobile Detail - Main Stylesheet
   ======================================== */

/* --- Custom Properties --- */
:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --blue: #4361ee;
  --blue-hover: #3a56d4;
  --gold: #ffd60a;
  --gold-hover: #e6c109;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --text: #2b2d42;
  --text-light: #8d99ae;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--blue-hover);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

.section-lg {
  padding: 6rem 0;
}

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-light { background: var(--off-white); }
.bg-gray { background: var(--gray-100); }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0.75rem auto 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.bg-navy .section-label {
  color: var(--gold);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Header / Nav --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  height: var(--header-height);
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.logo:hover {
  color: var(--gold);
}

.logo-icon {
  font-size: 1.5rem;
}

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}

.phone-btn:hover {
  background: var(--gold-hover);
  color: var(--navy);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(67,97,238,0.04) 100%);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 3.25rem);
  margin-bottom: 1rem;
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(67, 97, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

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

.card .price-from {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 1rem;
}

/* --- Trust Badges --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.trust-item {
  padding: 1.5rem 1rem;
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.trust-item h4 {
  margin-bottom: 0.25rem;
}

.trust-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step {
  padding: 1rem;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

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

/* --- Pricing Tables --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--blue);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.pricing-card.featured .pricing-header {
  padding-top: 3rem;
}

.pricing-header h3 {
  margin-bottom: 0.5rem;
}

.pricing-header .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
}

.pricing-header .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-header .price-note {
  font-size: 0.85rem;
  color: var(--text-light);
}

.pricing-body {
  padding: 1rem 2rem 2rem;
}

.pricing-body ul {
  margin-bottom: 1.5rem;
}

.pricing-body li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.pricing-body li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.pricing-body .btn {
  width: 100%;
}

/* Pricing Table (tabular) */
.pricing-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.pricing-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.pricing-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.pricing-table tbody tr:hover {
  background: var(--gray-100);
}

.pricing-table td:not(:first-child) {
  text-align: center;
  font-weight: 600;
  color: var(--navy);
}

.pricing-table .highlight-row {
  background: rgba(67, 97, 238, 0.05);
}

/* --- Testimonial --- */
.testimonial {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial blockquote {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
}

.stars {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* --- Service Area --- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.area-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  text-decoration: none;
}

.area-tag:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: var(--shadow-md);
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--blue);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--gray-400);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* --- Form --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: none;
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  position: relative;
}

.form-group:has(select)  {
  position: relative;
}

.form-group:has(select)::after {
  content: '';
  position: absolute;
  right: 1rem;
  bottom: 1.1rem;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6c757d;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gray-500);
  font-size: 0.9rem;
  gap: 0.5rem;
}

.gallery-placeholder .icon {
  font-size: 2.5rem;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  padding: 2rem 1.25rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Page Headers --- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* --- Area Pages --- */
.area-content {
  max-width: 800px;
  margin: 0 auto;
}

.area-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.area-content p {
  font-size: 1.05rem;
  color: var(--gray-700);
}

.area-cta-box {
  background: var(--off-white);
  border-left: 4px solid var(--blue);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
}

/* --- Subscription Box --- */
.subscription-box {
  background: linear-gradient(135deg, var(--navy) 0%, #0f3460 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--white);
  text-align: center;
  margin: 3rem 0;
}

.subscription-box h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.subscription-box .subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.sub-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.sub-tier {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.sub-tier h4 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.sub-tier .sub-price {
  font-size: 2rem;
  font-weight: 800;
}

.sub-tier .sub-price span {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.8;
}

.sub-tier p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0;
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.9rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 420px;
    padding: 2rem 0;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 380px;
  }

  .card {
    padding: 1.5rem;
  }

  .testimonial {
    padding: 2rem 1.5rem;
  }
}
