/* ============================================================
   Chicagoland Remodel & Restoration - Main Stylesheet
   ============================================================ */

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

:root {
  --blue: #009dd8;
  --blue-dark: #007dac;
  --dark: #222222;
  --gray: #555555;
  --light-gray: #f5f5f5;
  --border: #dddddd;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.top-bar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.top-bar a {
  color: #ccc;
  transition: color 0.2s;
}
.top-bar a:hover { color: var(--white); }

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

.top-bar .fb-icon {
  width: 20px;
  height: 20px;
  fill: #ccc;
  transition: fill 0.2s;
}
.top-bar .fb-icon:hover { fill: var(--white); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.site-logo img {
  height: 70px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.site-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
}

.hero-slide-content h1 {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-slide-content h2 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 34px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.35);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.slider-arrow:hover { background: var(--blue); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.slider-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ============================================================
   IMAGE CAROUSEL (about photos)
   ============================================================ */
.img-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track img {
  min-width: 100%;
  width: 100%;
  height: 380px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.4);
  color: var(--white);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel-arrow:hover { background: var(--blue); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel-dot.active { background: var(--white); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  border: 2px solid transparent;
}

.btn:active { transform: scale(0.98); }

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

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

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

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: var(--blue);
  color: var(--white);
  padding: 50px 20px;
  text-align: center;
}

.page-banner h1 {
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 70px 0;
}

.section-white { background: var(--white); }
.section-gray  { background: var(--light-gray); }
.section-dark  { background: var(--dark); color: var(--white); }
.section-blue  { background: var(--blue); color: var(--white); }

.section-title {
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--dark);
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 40px;
}

.section-title.light { color: var(--white); }
.section-subtitle.light { color: rgba(255,255,255,0.8); }

.text-center { text-align: center; }

/* ============================================================
   HOME - ABOUT STRIP
   ============================================================ */
.about-strip {
  padding: 60px 0;
  background: var(--white);
}

.about-strip .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-strip-text h2 {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
}

.about-strip-text p {
  color: var(--gray);
  margin-bottom: 14px;
  line-height: 1.8;
}

/* carousel inside about strip uses .img-carousel styles */

/* ============================================================
   SERVICE CARDS (3-up)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 24px 20px 28px;
}

.card-body h3 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 10px;
}

.card-body p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   SERVICES LIST
   ============================================================ */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.service-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.service-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.service-item p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   INSURANCE STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  padding-top: 10px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: start;
}

.about-text h2 {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.about-photo-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 3px;
}

.about-photo-grid img:first-child {
  grid-column: 1 / 3;
  height: 200px;
}

/* Team member card */
.team-card {
  background: var(--light-gray);
  border-radius: 6px;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card-body {
  padding: 20px 24px 24px;
  text-align: center;
}

.team-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.team-card-body .title {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.team-card-body a {
  font-size: 14px;
  color: var(--gray);
}

/* ============================================================
   WARRANTY BADGE STRIP
   ============================================================ */
.warranty-strip {
  background: var(--blue);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.warranty-strip h2 {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.warranty-strip p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 24px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.contact-info-item h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 2px;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--gray);
  font-size: 15px;
}

/* Contact Form */
.contact-form h2 {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  color: #333;
  transition: border-color 0.2s;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* Alert messages */
.alert {
  padding: 14px 18px;
  border-radius: 3px;
  margin-bottom: 20px;
  font-size: 15px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--dark);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.cta-strip h2 {
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-strip p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-col a {
  color: #aaa;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li::before {
  content: '›';
  color: var(--blue);
  margin-right: 7px;
  font-weight: 700;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover { background: var(--blue); }

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: #aaa;
}

.footer-social a:hover svg { fill: var(--white); }

.footer-bottom {
  background: #111;
  text-align: center;
  padding: 16px 20px;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #2a2a2a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .about-strip .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-slider { height: 420px; }
  .hero-slide-content h1 { font-size: 36px; letter-spacing: 2px; }
  .hero-slide-content h2 { font-size: 17px; }
  .page-banner h1 { font-size: 26px; }
  .carousel-track img { height: 240px; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 16px; }
  .nav-toggle { display: flex; }
  .top-bar-left { flex-direction: column; gap: 4px; }
}
