/* ========================================
   Woodward Renovations — Global Styles
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Top Info Bar (fades on scroll)
   ======================================== */
.top-bar {
  background: #fff;
  padding: 6px 0;
  font-size: 13px;
  color: #555;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
  max-height: 40px;
}

.top-bar.hidden {
  opacity: 0;
  max-height: 0;
  padding: 0;
}

.top-bar .container-wide {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar a {
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar a:hover {
  color: #1c1c1c;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Home page: header overlays the hero with dark transparent bg */
.site-header.header-home {
  position: absolute;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.header-home .nav-links a {
  color: #fff;
}

.site-header.header-home .nav-links a:hover,
.site-header.header-home .nav-links a.active {
  color: #e8a020;
}

.site-header.header-home .nav-toggle span {
  background: #fff;
}

/* When scrolled: header becomes sticky white */
.site-header.header-home.scrolled {
  position: sticky;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.site-header.header-home.scrolled .nav-links a {
  color: #333;
}

.site-header.header-home.scrolled .nav-links a:hover,
.site-header.header-home.scrolled .nav-links a.active {
  color: #c8860a;
}

.site-header.header-home.scrolled .nav-toggle span {
  background: #1c1c1c;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.nav-bar--home {
  justify-content: flex-end;
}

.nav-logo img {
  height: 40px;
}

.nav-logo .logo-placeholder {
  font-weight: 700;
  font-size: 18px;
  color: #1c1c1c;
  border: 2px solid #1c1c1c;
  padding: 4px 10px;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #c8860a;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1c1c1c;
  margin: 5px 0;
  transition: 0.3s;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-living-room.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 180px;
  margin: 0 auto 16px;
}

.hero-logo img {
  width: 100%;
}

.hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #c8860a;
  color: #fff;
  border-radius: 50px;
}

.btn-primary:hover {
  background: #e8a020;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

.btn-dark {
  background: #1c1c1c;
  color: #fff;
}

.btn-dark:hover {
  background: #333;
}

/* ========================================
   Section Headers (dark bar with triangle)
   ======================================== */
.section-header {
  background: #1c1c1c;
  color: #fff;
  padding: 14px 40px;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 40px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #1c1c1c;
}

.section-header-line {
  width: 40px;
  height: 2px;
  background: #888;
}

.section-bar {
  background: #1c1c1c;
  width: 100%;
  padding: 0;
}

.section-bar .section-header {
  display: inline-flex;
}

/* ========================================
   About Us Section
   ======================================== */
.about-section {
  padding: 60px 0 40px;
}

.about-card {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.about-card-inner {
  display: flex;
  gap: 0;
}

.about-card-image {
  flex: 0 0 45%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

.about-card-content {
  flex: 1;
  padding: 30px;
}

.about-card-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1c1c1c;
}

.about-card-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.7;
}

.read-more-link {
  color: #1c1c1c;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more-link:hover {
  color: #c8860a;
}

/* About expanded text (hidden by default) */
.about-expanded {
  display: none;
  padding: 0 30px 30px;
}

.about-expanded.show {
  display: block;
}

.about-expanded p {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ========================================
   BBB Section
   ======================================== */
.bbb-card {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 8px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.bbb-logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.bbb-logo img {
  width: 100%;
  border-radius: 8px;
}

.bbb-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bbb-info p {
  font-size: 14px;
  color: #555;
}

.bbb-card .learn-more {
  position: absolute;
  right: 40px;
  bottom: 24px;
  color: #1c1c1c;
  font-size: 12px;
  text-decoration: underline;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials-section {
  padding: 40px 0 60px;
  background: #f7f5f2;
}

/* Carousel */
.carousel-viewport {
  overflow: hidden;
  margin-top: 20px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

/* Card widths are set by JS based on viewport size */
.carousel-track .testimonial-card {
  flex-shrink: 0;
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 24px 28px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testimonial-avatar svg {
  width: 50px;
  height: 50px;
  color: #1c1c1c;
}

.testimonial-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.6;
}

.testimonial-card .read-more-link {
  font-size: 13px;
}

.testimonial-date {
  font-size: 13px;
  color: #999;
  margin: 8px 0;
}

.stars {
  color: #c8860a;
  font-size: 18px;
  letter-spacing: 2px;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dots span {
  width: 30px;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
  cursor: pointer;
}

.carousel-dots span.active {
  background: #1c1c1c;
  width: 40px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  padding: 60px 0 40px;
}

/* Home page simple contact (phone + address side by side) */
.contact-simple {
  display: flex;
  justify-content: space-around;
  padding: 40px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-top: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  color: #c8860a;
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-item h4 {
  color: #c8860a;
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 14px;
  color: #555;
}

/* Contact Form */
.contact-form h3 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.contact-form .subtitle {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 10px 12px 10px 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c8860a;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
  padding-left: 12px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #aaa;
}

.input-wrapper input {
  width: 100%;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 12px;
  color: #666;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-checkbox a {
  color: #1a73e8;
  text-decoration: underline;
}

.btn-send {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 12px 24px;
  background: #1c1c1c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-send:hover {
  background: #333;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  text-align: center;
  padding: 30px 0;
  background: #e8e4df;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #1c1c1c;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-icon:hover {
  background: #c8860a;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: #888;
}

.footer-links a {
  color: #888;
}

.footer-links a:hover {
  color: #333;
}

/* Scroll to top button */
/* Policy / Legal pages */
.container h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1c1c1c;
  margin: 28px 0 12px;
}

.container p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.container ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.container ul li {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 6px;
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 50;
}

.scroll-top.visible {
  opacity: 1;
}

.scroll-top:hover {
  border-color: #1c1c1c;
}

/* ========================================
   Services Page
   ======================================== */
.services-intro {
  padding: 40px 0;
  text-align: justify;
}

.services-intro p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.services-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.service-card {
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

/* Fade-in only on the services listing page (applied via .services-grid-animated) */
.services-grid-animated .service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.services-grid-animated .service-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.service-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.service-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 14px 0 8px;
}

.service-card p {
  font-size: 13px;
  color: #666;
  padding: 0 10px;
  margin-bottom: 10px;
}

.service-card .learn-more {
  color: #1c1c1c;
  font-size: 12px;
  text-decoration: underline;
}

/* ========================================
   Service Detail Page
   ======================================== */
.service-detail-hero {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
}

.service-detail-image {
  flex: 0 0 45%;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.service-detail-text {
  flex: 1;
  padding: 30px;
}

.service-detail-text h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.service-detail-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}

.service-detail-body {
  padding: 0 0 40px;
}

.service-detail-body p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}

.related-services {
  padding: 40px 0;
}

.related-services h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ========================================
   Availability Section
   ======================================== */
.availability-section {
  padding: 40px 0;
}

.hours-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  flex-wrap: wrap;
}

.hours-day {
  text-align: center;
  width: 80px;
}

.hours-day .clock-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  color: #888;
}

.hours-day .day-name {
  font-size: 14px;
  font-weight: 600;
  color: #c8860a;
  margin-bottom: 4px;
}

.hours-day .day-time {
  font-size: 12px;
  color: #555;
}

.hours-day.closed .clock-icon {
  color: #ccc;
}

.hours-day.closed .day-name {
  color: #ccc;
}

/* ========================================
   Location / Map Section
   ======================================== */
.location-section {
  background: #f7f5f2;
  padding: 0;
}

.location-content {
  display: flex;
  gap: 0;
}

.location-map {
  flex: 1;
  min-height: 300px;
  background: #e8e4df;
  position: relative;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 300px;
}

.location-info {
  flex: 0 0 40%;
  padding: 30px;
  background: rgba(255,255,255,0.9);
}

.location-info p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1c;
  margin-top: 12px;
}

.directions-link:hover {
  color: #c8860a;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    gap: 16px;
    z-index: 200;
  }

  .nav-links a {
    color: #333 !important;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-bar--home {
    justify-content: flex-end;
  }

  .site-header {
    position: relative;
  }

  .site-header.header-home {
    position: relative;
    background: rgba(0,0,0,0.5);
  }

  .site-header.header-home.scrolled {
    position: sticky;
  }

  .hero {
    height: 360px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .about-card-inner {
    flex-direction: column;
  }

  .about-card-image {
    min-height: 200px;
  }

  /* On mobile, JS will handle single-card sizing */

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .service-detail-hero {
    flex-direction: column;
  }

  .service-detail-image {
    min-height: 220px;
  }

  .bbb-card {
    flex-direction: column;
    text-align: center;
  }

  .location-content {
    flex-direction: column;
  }

  .hours-grid {
    gap: 12px;
  }

  .hours-day {
    width: 60px;
  }

  .contact-simple {
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .section-header {
    font-size: 16px;
    padding: 12px 20px;
  }
}
