/* ==========================================================================
   Shiel's Building Services — stylesheet
   ========================================================================== */

:root {
  --blue: #1857c9;
  --blue-dark: #123f96;
  --navy: #0a0e2e;
  --navy-2: #0d1338;
  --orange: #f2792a;
  --bg-light: #eef4fb;
  --text-dark: #142042;
  --text-body: #5b6472;
  --border-soft: #e2e8f2;
  --white: #ffffff;

  --font-display: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  margin: 0;
}

svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 8px;
}

.divider {
  display: block;
  width: 46px;
  height: 3px;
  background: var(--orange);
  margin: 14px auto 0;
  border-radius: 2px;
}

.divider-left { margin: 14px 0 0; }

.section-heading {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
}

.section-lead {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-solid {
  background: var(--blue);
  color: #fff;
  transition: background 0.25s ease;
}
.btn-solid:hover { background: var(--blue-dark); }
.btn-solid svg { fill: #fff; }

.btn-muted {
  background: #232a52;
  color: #fff;
}
.btn-muted:hover { background: #2c3562; }
.btn-muted svg { fill: #fff; }

/* ==========================================================================
   Top bar
   ========================================================================== */

.top-bar {
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
}

.top-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-left { display: flex; align-items: center; gap: 24px; }
.top-bar-left a, .top-bar-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.95);
}
.top-bar-left svg, .top-bar-location svg { width: 13px; height: 13px; fill: #fff; }

.top-bar-right { display: flex; align-items: center; gap: 16px; }

.social-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-dot svg { width: 12px; height: 12px; fill: #fff; }

@media (max-width: 700px) {
  .top-bar-left { gap: 14px; }
  .top-bar-left a:nth-child(2) { display: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 14px rgba(10,14,46,0.06);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo { height: 54px; width: auto; }

.brand-tagline {
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

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

.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  transition: transform .3s ease, opacity .3s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-overlay { z-index: 1; }

.hero-slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8% 0 24px;
}

.hero-text { max-width: 620px; text-align: right; }

.eyebrow-hero { color: var(--orange); }

.hero-text h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.hero-text .accent { color: var(--orange); }

.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

@media (max-width: 780px) {
  .hero-slide-content { justify-content: center; padding: 0 24px; }
  .hero-text { text-align: center; max-width: 92%; }
  .hero-arrow { display: none; }
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 480px;
  max-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,10,30,0.72) 0%, rgba(6,10,30,0.42) 42%, rgba(6,10,30,0.15) 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-left: auto;
  margin-right: 8%;
  text-align: right;
  padding: 0 24px;
}

.eyebrow-hero { color: var(--orange); }

.hero-content h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.hero-content .accent { color: var(--orange); }

.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.38); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.hero-dot.active { background: var(--orange); width: 22px; border-radius: 4px; }

@media (max-width: 780px) {
  .hero-content { margin: 0 auto; text-align: center; max-width: 92%; }
  .hero-arrow { display: none; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-section {
  padding: 90px 24px 100px;
  max-width: var(--container);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(10,20,60,0.08);
}

.service-card.card-light { background: var(--bg-light); }

.service-photo { height: 180px; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }

.service-body { padding: 22px 22px 26px; }

.service-body h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
}

.service-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.check-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  font-size: 0.85rem;
  color: var(--text-dark);
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Questions CTA band
   ========================================================================== */

.questions-band {
  background: var(--navy);
  padding: 60px 24px;
  text-align: center;
}

.questions-band h2 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.questions-band p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin: 0 0 26px;
}

.questions-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-section {
  background: var(--bg-light);
  padding: 100px 24px;
}

.about-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 4px; }

.about-text p {
  font-size: 0.93rem;
  line-height: 1.75;
  margin: 18px 0 0;
}

.about-checklist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-checklist li {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding-left: 26px;
}

.about-checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(24,87,201,0.12);
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card {
  background: var(--blue);
  border-radius: 16px;
  padding: 34px 30px;
}

.why-card h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-list li {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-left: 30px;
}

.why-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section {
  padding: 100px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 26px;
  align-items: start;
  margin-top: 10px;
}

.contact-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.contact-details-card,
.contact-form-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 30px;
}

.contact-map {
  flex: 1;
  min-height: 240px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-light);
}

.contact-map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
}

.contact-map .leaflet-control-attribution {
  font-size: 0.68rem;
}

.contact-details-card h3,
.contact-form-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.contact-details-card a,
.contact-details-card .contact-static {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.contact-details-card svg { fill: var(--blue); width: 15px; height: 15px; }

.form-lead {
  font-size: 0.85rem;
  color: var(--text-body);
  margin: -10px 0 20px;
}

.contact-form-card .hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-field { margin-bottom: 14px; }

.form-field input,
.form-field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #97a1b3; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-form-card .btn { margin-top: 4px; }

.form-status {
  font-size: 0.82rem;
  color: var(--text-body);
  margin: 12px 0 0;
  min-height: 1.2em;
}
.form-status.success { color: #1a8f4c; }
.form-status.error { color: #c9412c; }

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-2);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 70px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-logo { height: 52px; width: auto; margin-bottom: 16px; border-radius: 50%; }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: #fff; }
.footer-col svg { fill: rgba(255,255,255,0.65); width: 14px; height: 14px; }

.contact-static {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}
.contact-static svg { fill: rgba(255,255,255,0.65); width: 14px; height: 14px; }

.footer-social { display: flex; gap: 10px; margin-top: 6px; }

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.footer-social svg { width: 14px; height: 14px; fill: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer-bottom a { color: rgba(255,255,255,0.75); border-bottom: 1px solid rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile nav
   ========================================================================== */

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand-tagline { display: none; }
}
