/* ============================================================
   TMS Cleaning & Maintenance – Main Stylesheet
   Colors: Brand Blue #1B4F9B, Accent Gold #F59E0B, Dark #0F172A
   ============================================================ */

:root {
  --tms-blue:       #1B4F9B;
  --tms-blue-dark:  #153d7a;
  --tms-blue-light: #2563EB;
  --tms-gold:       #F59E0B;
  --tms-gold-light: #FCD34D;
  --tms-dark:       #0F172A;
  --tms-gray:       #64748B;
  --tms-light:      #F8FAFC;
  --tms-white:      #FFFFFF;
  --tms-border:     #E2E8F0;
  --tms-success:    #10B981;
  --tms-warning:    #F59E0B;
  --tms-danger:     #EF4444;
  --font-base:      'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:      0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --radius:         .5rem;
  --radius-lg:      1rem;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-base);
  color: var(--tms-dark);
  background: var(--tms-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tms-blue); text-decoration: none; }
a:hover { color: var(--tms-blue-dark); text-decoration: underline; }

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

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

/* ── Bootstrap Overrides ── */
.btn-primary {
  background-color: var(--tms-blue);
  border-color: var(--tms-blue);
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--tms-blue-dark);
  border-color: var(--tms-blue-dark);
}
.btn-outline-primary {
  color: var(--tms-blue);
  border-color: var(--tms-blue);
  font-weight: 600;
}
.btn-outline-primary:hover {
  background-color: var(--tms-blue);
  border-color: var(--tms-blue);
}
.btn-gold {
  background-color: var(--tms-gold);
  border-color: var(--tms-gold);
  color: var(--tms-dark);
  font-weight: 700;
}
.btn-gold:hover {
  background-color: #D97706;
  border-color: #D97706;
  color: var(--tms-white);
}

/* ── Top Bar ── */
.topbar {
  background: var(--tms-blue-dark);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: .35rem 0;
}
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .75rem;
  transition: background .2s;
}
.topbar-right a:hover { background: rgba(255,255,255,.3); }

/* ── Navbar ── */
#mainNav {
  background: var(--tms-white);
  border-bottom: 1px solid var(--tms-border);
  box-shadow: var(--shadow-sm);
  padding: .6rem 0;
}
#mainNav .navbar-brand img { height: 48px; }
#mainNav .nav-link {
  font-weight: 500;
  color: var(--tms-dark);
  padding: .5rem .85rem;
  border-radius: .3rem;
  transition: background .15s, color .15s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--tms-blue);
  background: rgba(27,79,155,.06);
}
#mainNav .dropdown-menu {
  border: 1px solid var(--tms-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: .5rem;
}
#mainNav .dropdown-item {
  font-size: .9rem;
  border-radius: .3rem;
  padding: .45rem .75rem;
}
#mainNav .dropdown-item:hover { background: rgba(27,79,155,.07); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--tms-blue-dark) 0%, var(--tms-blue) 60%, #2563EB 100%);
  color: var(--tms-white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/hero-pattern.svg') center/cover no-repeat;
  opacity: .06;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 2rem;
  padding: .3rem .9rem;
  margin-bottom: 1.25rem;
}
.hero-kicker .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tms-gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .7; }
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero h1 .highlight {
  color: var(--tms-gold-light);
}
.hero-subtitle {
  font-size: 1.1rem;
  opacity: .88;
  max-width: 580px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}
.hero-actions .btn {
  font-size: 1rem;
  padding: .75rem 1.75rem;
  border-radius: .4rem;
}
.btn-ghost {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-weight: 600;
}
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tms-gold-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: .8rem;
  opacity: .8;
  margin-top: .15rem;
}

/* Hero side card */
.hero-card {
  background: var(--tms-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  color: var(--tms-dark);
}
.hero-card-title { font-weight: 700; font-size: 1.1rem; color: var(--tms-blue); }
.hero-card-sub { font-size: .78rem; color: var(--tms-gray); }
.hero-checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--tms-border);
  font-size: .92rem;
}
.hero-checklist li:last-child { border-bottom: none; }
.hero-checklist .check {
  width: 20px; height: 20px; min-width: 20px;
  background: var(--tms-success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .65rem;
  margin-top: .1rem;
}

/* ── Section Utilities ── */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--tms-gray);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tms-blue);
  margin-bottom: .5rem;
}
.bg-tms { background: var(--tms-blue); color: #fff; }
.bg-light-blue { background: #EFF6FF; }

/* ── Service Cards ── */
.service-card {
  border: 1px solid var(--tms-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  background: var(--tms-white);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--tms-blue);
}
.service-icon {
  width: 56px; height: 56px;
  background: rgba(27,79,155,.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--tms-blue);
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.service-card p { font-size: .9rem; color: var(--tms-gray); margin-bottom: 1rem; }
.service-card .btn { font-size: .85rem; }

/* ── Trust Badges ── */
.trust-bar {
  background: var(--tms-light);
  border-top: 1px solid var(--tms-border);
  border-bottom: 1px solid var(--tms-border);
  padding: 1.5rem 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
}
.trust-item i { font-size: 1.6rem; color: var(--tms-blue); }
.trust-item .value { font-size: 1.4rem; font-weight: 800; color: var(--tms-dark); line-height: 1; }
.trust-item .label { font-size: .78rem; color: var(--tms-gray); }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--tms-white);
  border: 1px solid var(--tms-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}
.testimonial-card .stars { color: var(--tms-gold); font-size: 1rem; margin-bottom: .75rem; }
.testimonial-card blockquote {
  font-size: .95rem;
  color: var(--tms-dark);
  font-style: italic;
  margin: 0 0 1rem;
}
.testimonial-card cite { font-size: .85rem; font-weight: 600; color: var(--tms-blue); }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, var(--tms-blue-dark), var(--tms-blue));
  color: #fff;
  padding: 3rem 0;
}
.cta-band h2 { color: #fff; font-size: 1.6rem; }

/* ── Contact Form ── */
.contact-form-wrap {
  background: var(--tms-white);
  border: 1px solid var(--tms-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.form-label { font-weight: 600; font-size: .9rem; }
.form-control, .form-select {
  border-color: var(--tms-border);
  border-radius: .4rem;
  font-size: .95rem;
  padding: .6rem .85rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--tms-blue);
  box-shadow: 0 0 0 3px rgba(27,79,155,.12);
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── Service Area Page ── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.city-card {
  border: 1px solid var(--tms-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: border-color .2s, box-shadow .2s;
}
.city-card:hover {
  border-color: var(--tms-blue);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.city-card i { color: var(--tms-blue); font-size: 1.1rem; }
.city-card span { font-weight: 500; color: var(--tms-dark); font-size: .9rem; }

/* ── FAQ Accordion ── */
.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--tms-dark);
  background: var(--tms-white);
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--tms-blue);
  background: rgba(27,79,155,.04);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-body { color: var(--tms-gray); }

/* ── Page Header ── */
.page-header {
  background: linear-gradient(135deg, var(--tms-blue-dark), var(--tms-blue));
  color: #fff;
  padding: 4rem 0 3.5rem;
}
.page-header h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.page-header p { opacity: .88; font-size: 1.05rem; }
.breadcrumb-item a { color: rgba(255,255,255,.75); }
.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* ── Utility ── */
.text-gold { color: var(--tms-gold) !important; }
.bg-blue-soft { background: rgba(27,79,155,.06); }

/* ── Footer ── */
.site-footer {
  background: var(--tms-dark);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 1.5rem;
}
.footer-heading {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color .15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .75rem;
  font-size: .88rem;
}
.footer-contact i { color: var(--tms-gold); margin-top: .2rem; min-width: 14px; }
.footer-contact a { color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: #fff; text-decoration: none; }
.footer-text { color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-social a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  transition: background .2s;
}
.footer-social a:hover { background: var(--tms-blue); color: #fff; text-decoration: none; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 1.25rem; }
.footer-bottom a { color: rgba(255,255,255,.6); font-size: .82rem; }
.footer-bottom a:hover { color: #fff; text-decoration: none; }
.footer-bottom span { color: rgba(255,255,255,.45); font-size: .82rem; }

/* ── Admin Portal ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; min-width: 260px;
  background: var(--tms-dark);
  color: #fff;
  padding: 0;
  display: flex; flex-direction: column;
}
.admin-sidebar .brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar .brand img { height: 36px; }
.admin-nav .nav-link {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  padding: .6rem 1.25rem;
  border-radius: 0;
  display: flex; align-items: center; gap: .65rem;
}
.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.admin-nav .nav-link i { width: 16px; text-align: center; }
.admin-main {
  flex: 1;
  background: #F1F5F9;
  overflow-x: hidden;
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--tms-border);
  padding: .75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.admin-content { padding: 1.5rem; }
.stat-card {
  background: #fff;
  border: 1px solid var(--tms-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--tms-dark); }
.stat-card .stat-label { font-size: .8rem; color: var(--tms-gray); font-weight: 500; }
.stat-card .stat-icon { font-size: 1.5rem; color: var(--tms-blue); opacity: .3; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero-stats { gap: 1.25rem; }
  .admin-sidebar { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ── GHL Form Embed ── */
.ghl-form-container {
  background: var(--tms-white);
  border: 1px solid var(--tms-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ghl-form-container iframe {
  width: 100%;
  min-height: 520px;
  border: none;
}

/* ── Print ── */
@media print {
  .topbar, #mainNav, .cta-band, .site-footer { display: none !important; }
}
