/*
Theme Name:  MyTheme
Theme URI:   https://yourwebsite.com
Author:      Your Name
Author URI:  https://yourwebsite.com
Description: Custom WordPress theme with Elementor support. Header, hero, location bar all built in.
Version:     1.0
License:     GNU General Public License v2 or later
Text Domain: mytheme
*/

/* ================================================================
   ✅ CSS VARIABLES – Change ALL colors/fonts from here in one place
================================================================ */
:root {
  --color-primary:             #FF6600;
  --color-primary-dark:        #e05a00;
  --color-heading:             #1a2a3a;
  --color-body:                #444444;
  --color-topbar-bg:           #FF6600;
  --color-topbar-text:         #ffffff;
  --color-nav-bg:              #ffffff;
  --color-nav-text:            #333333;
  --color-nav-hover:           #FF6600;
  --color-phone:               #FF6600;
  --color-cta-label:           #FF6600;
  --color-location-label:      #FF6600;
  --color-location-box-bg:     #f9f9f9;
  --color-location-box-border: #e0e0e0;
  --color-btn-bg:              #FF6600;
  --color-btn-text:            #ffffff;
  --color-link:                #FF6600;
  --color-footer-bg:           #1a2a3a;
  --color-footer-text:         #cccccc;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body:    'Segoe UI', Arial, sans-serif;
}

/* GLOBAL RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); background: #fff; color: var(--color-body); font-size: 16px; line-height: 1.6; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--color-link); text-decoration: none; }

/* TOP BAR */
.header-topbar {
  background-color: var(--color-topbar-bg);
  color: var(--color-topbar-text);
  font-size: 13px;
  padding: 6px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.header-topbar a { color: var(--color-topbar-text); font-weight: 500; transition: opacity 0.2s; }
.header-topbar a:hover { opacity: 0.8; }
.topbar-search { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.topbar-search svg { width: 14px; height: 14px; }

/* MAIN HEADER */
.header-main {
  background-color: var(--color-nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  z-index: 99;
  min-height: 70px;
	
}
.header-left  { display: flex; align-items: center; gap: 16px; }
.header-logo img { height: 48px; width: auto; }
.header-logo-text {
  background-color: var(--color-primary);
  color: white;
  font-size: 22px;
  font-weight: 900;
  padding: 8px 18px;
  letter-spacing: 1px;
  border-radius: 3px;
  text-transform: uppercase;
}
.header-login a {
  color: var(--color-nav-text);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #ccc;
  padding: 5px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}
.header-login a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* NAVIGATION */
.header-nav { display: flex; align-items: center; }
.header-nav ul { list-style: none; display: flex; align-items: center; }
.header-nav ul li { position: relative; }
.header-nav ul li a {
  color: var(--color-nav-text);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  white-space: nowrap;
}
.header-nav ul li a:hover { color: var(--color-nav-hover); }
.header-nav .has-dropdown > a::after { content: 'v'; font-size: 10px; color: var(--color-primary); margin-left: 2px; }
.header-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-top: 3px solid var(--color-primary);
  z-index: 1000;
}
.header-nav .dropdown li a { padding: 10px 16px; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.header-nav .has-dropdown:hover .dropdown { display: block; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.header-cta-label { color: var(--color-cta-label); font-size: 13px; font-weight: 600; }
.header-subtitle   { color: #444; font-size: 11px; margin-top: 1px; }
.header-phone a    { color: var(--color-phone); font-size: 22px; font-weight: 700; }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--color-nav-text); margin: 5px 0; }

/* HERO SECTION */
.hero-section {
  display: flex;
  align-items: stretch;
  min-height: 420px;
  background: #ffffff;
}
.hero-text {
  flex: 1;
  padding: 60px 48px 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 58%;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-text p { font-size: 16px; line-height: 1.7; color: var(--color-body); max-width: 520px; }
.hero-image  { flex: 0 0 42%; position: relative; overflow: hidden; min-height: 360px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-image-placeholder {
  width: 100%; height: 100%; min-height: 360px;
  background: linear-gradient(135deg, #d0d8e0, #b0bec5);
  display: flex; align-items: center; justify-content: center;
  color: #78909c; font-size: 15px; text-align: center; padding: 20px;
}

/* LOCATION BAR */
.location-bar {
  background: var(--color-location-box-bg);
  border: 1px solid var(--color-location-box-border);
  border-radius: 6px;
  margin: 0 32px 40px 32px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.location-info      { flex: 1; min-width: 220px; }
.location-label     { color: var(--color-location-label); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.location-city      { font-size: 22px; font-weight: 700; color: var(--color-heading); margin-bottom: 6px; min-height: 28px; }
.location-subtext   { font-size: 14px; color: #555; margin-bottom: 8px; }
.location-change    { font-size: 13px; color: #555; }
.location-change a  { color: var(--color-link); text-decoration: underline; cursor: pointer; }
.location-cta a {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-btn-bg); color: var(--color-btn-text);
  font-size: 18px; font-weight: 700; padding: 14px 28px;
  border-radius: 4px; transition: background 0.2s; white-space: nowrap;
}
.location-cta a:hover { background: var(--color-primary-dark); }
.location-cta a .arrow { font-size: 20px; font-weight: 900; }
.location-city.loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid #ccc;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 8px; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* MAIN CONTENT */
.site-main { min-height: 200px; }

/* FOOTER */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  text-align: center;
  padding: 28px 24px;
  font-size: 14px;
  margin-top: 40px;
}
.site-footer a { color: var(--color-primary); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .mobile-menu-toggle { display: block; }
  .header-nav { width: 100%; order: 3; display: none; }
  .header-nav.open { display: flex; }
  .header-nav ul { flex-direction: column; width: 100%; border-top: 2px solid #eee; }
  .header-nav ul li a { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; width: 100%; }
  .header-nav .dropdown { position: static; box-shadow: none; border-top: none; background: #fafafa; display: none; }
  .header-nav .has-dropdown.open .dropdown { display: block; }
}
@media (max-width: 860px) {
  .hero-section { flex-direction: column; }
  .hero-text { max-width: 100%; padding: 40px 24px 30px; }
  .hero-image { min-height: 260px; flex: unset; width: 100%; }
  .location-bar { margin: 0 16px 30px; padding: 20px; }
}
@media (max-width: 540px) {
  .location-bar { flex-direction: column; align-items: flex-start; }
  .location-cta { width: 100%; }
  .location-cta a { width: 100%; justify-content: center; }
}
/* ================================================================
   SERVICES CAROUSEL SECTION
================================================================ */
.services-carousel-section {
  padding: 40px 0 50px;
  background: #fff;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  overflow: hidden;
  position: relative;
}

.services-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 60px 40px;
}

.carousel-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: #FF6600;
  padding: 10px 16px;
  min-width: 70px;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.carousel-arrow:hover { opacity: 0.7; }
.carousel-arrow svg { width: 28px; height: 28px; }
.carousel-arrow span { color: #aaa; font-size: 12px; }

.carousel-track-outer { overflow: hidden; flex: 1; }
.carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 28px 20px 22px;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  transition: all 0.25s ease;
  text-decoration: none;
  background: transparent;
  flex: 1;
}
.service-card:hover .service-icon svg { stroke: #FF6600; }
.service-card:hover .service-label { color: #FF6600; }

.service-card.active {
  border-color: #e0e0e0;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border-radius: 4px 4px 0 0;
}
.service-card.active .service-icon svg { stroke: #FF6600; }
.service-card.active .service-label { color: #1a2a3a; font-weight: 600; }

.service-card.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 22px;
  background: #FF6600;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 2;
}
.service-card.active::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: #FF6600;
}

.service-card-arrow { display: none; color: #FF6600; font-size: 13px; margin-top: 6px; letter-spacing: 1px; }
.service-card.active .service-card-arrow { display: block; }

.service-icon { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.service-icon svg {
  width: 44px; height: 44px;
  stroke: #1a2a3a; fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}

.service-label { font-size: 14px; color: #444; text-align: center; line-height: 1.3; transition: color 0.25s; white-space: nowrap; }

@media (max-width: 768px) {
  .service-card { min-width: 120px; padding: 20px 12px 16px; }
  .service-label { font-size: 12px; }
  .services-carousel-wrapper { padding: 10px 10px 40px; }
  .carousel-arrow { min-width: 44px; padding: 10px 6px; }
}
/* ================================================================
   LOGO SIZING
   ✅ EDIT: Change --logo-height to make logo bigger or smaller
================================================================ */
:root {
  --logo-height: 48px; /* ✅ Change this one value to resize logo */
}

.site-logo-img {
  height: var(--logo-height);
  width: auto;
  max-width: 220px;     /* prevents very wide logos from overflowing */
  min-width: 80px;      /* prevents tiny logos */
  object-fit: contain;
  display: block;
}

/* Slightly smaller on mobile */
@media (max-width: 768px) {
  .site-logo-img {
    height: calc(var(--logo-height) * 0.8);
  }
}