/* ============================================================
   Rooley Group — Main Stylesheet
   Palette: Red #CC1720 | Navy #1B3A6B | White #FFFFFF
   ============================================================ */

:root {
  --red:    #CC1720;
  --navy:   #1B3A6B;
  --white:  #FFFFFF;
  --dark:   #111111;
  --grey:   #F4F4F4;
  --mid:    #666666;
  --border: #DDDDDD;
  --max:    1180px;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Barlow', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; color: var(--mid); }
p:last-child { margin-bottom: 0; }

/* ---- Utility ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); }
.section--red  { background: var(--red);  }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-white h1,
.text-white h2,
.text-white h3,
.text-white p  { color: var(--white); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.section-label--white { color: rgba(255,255,255,0.7); }

.section-heading { margin-bottom: 1rem; }
.section-intro   { max-width: 640px; margin: 0 auto 2.5rem; font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: #a8111a;
  border-color: #a8111a;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: #142d56;
  border-color: #142d56;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}
.logo img { height: 46px; width: auto; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.header-phone svg { flex-shrink: 0; }

/* Nav */
.main-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.main-nav .nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 0.45rem 1rem;
}
.main-nav .nav-cta:hover { background: #a8111a; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: block; }
.mobile-nav ul   { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
}
.mobile-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.mobile-nav .nav-cta { background: var(--red); color: var(--white); text-align: center; margin-top: 0.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/trucks.webp');
  background-size: cover;
  background-position: center 60%;
  opacity: 0.22;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 4rem 0;
  margin: 0 auto;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.hero h1 span { color: var(--red); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin: 0 auto 2rem;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--red);
  padding: 1rem 0;
}
.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
}
.trust-bar li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.trust-bar li svg { flex-shrink: 0; opacity: 0.85; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--grey);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-card-icon svg { color: var(--red); }
.service-card h3 { color: var(--navy); margin-bottom: 0.5rem; }
.service-card p  { font-size: 0.92rem; margin-bottom: 1.25rem; }
.service-card a  {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.service-card a:hover { color: #a8111a; }
.service-card { overflow: hidden; }
.service-card-photo {
  margin: -2rem -1.5rem 1.5rem;
  height: 180px;
  background: var(--grey);
}
.service-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-card-photo.contain img { object-fit: contain; padding: 0.75rem; }

/* ============================================================
   WHY ROOLEY
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.why-item { text-align: center; }
.why-item-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.why-item h3 { color: var(--white); margin-bottom: 0.4rem; }
.why-item p  { color: rgba(255,255,255,0.75); font-size: 0.92rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-stars { color: var(--red); font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 0.1em; }
.testimonial-card blockquote {
  font-size: 0.97rem;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
}
.testimonial-card cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { padding: 4rem 0; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p  { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

/* ============================================================
   BEFORE/AFTER GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; }
.gallery-caption {
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
}
.gallery-caption strong { display: block; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.2rem; }
.gallery-caption span   { font-size: 0.82rem; color: var(--mid); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 3.5rem 0;
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,0.75); margin-top: 0.5rem; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { color: var(--navy); margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-detail svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }
.contact-detail strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mid); margin-bottom: 0.2rem; }
.contact-detail p { margin: 0; color: var(--dark); font-size: 0.97rem; }
.contact-detail a { color: var(--navy); font-weight: 600; }
.contact-detail a:hover { color: var(--red); }

.contact-form { background: var(--grey); border-radius: var(--radius); padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0d1f3c;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 44px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.footer-contact-item svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.footer-social a:hover { background: var(--red); }

/* ============================================================
   SPLIT LAYOUTS (side-by-side on desktop, stacked on mobile)
   ============================================================ */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; }
.split-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .split-2, .split-3 { grid-template-columns: 1fr; }
  .split-2 { gap: 2.5rem !important; }
  .split-2 > img { order: 2; } /* stacked: text first, photo below */
}

@media (max-width: 700px) {
  .main-nav  { display: none; }
  .hamburger { display: flex; }
  .header-phone { font-size: 1rem; }

  .hero { min-height: 480px; }
  .section { padding: 3.5rem 0; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-phone { font-size: 1.2rem; }
}

/* ============================================================
   CHAT WIDGET OVERRIDES
   ============================================================ */
#rg-footer {
  padding: 10px 8px !important;
}
#rg-input {
  border-radius: 6px !important;
  padding: 9px 14px !important;
}
.rg-msg {
  padding: 12px 18px !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}
#rg-messages {
  gap: 14px !important;
}

@media (max-width: 480px) {
  .trust-bar ul { gap: 0.5rem 1.5rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .cta-btns  { flex-direction: column; align-items: center; }
}
