/* ============================================================
   SERVICE INDEX PAGE — service.css
   Matches the design screenshot exactly
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@700&family=Open+Sans:wght@400;500;700&display=swap");

/* ── Tokens ── */
:root {
  --gray: #555555;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 320px;
  background: url("/images/service page hero image.webp") center / cover
    no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}

.hero-text {
  color: #fff;
}

.hero-heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: "Open Sans Condensed", sans-serif;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.8);
}

.hero-button {
  display: inline-block;
  background: #c62828;
  color: #fff;
  padding: 13px 36px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease;
  border-radius: 30px;
}

/* ============================================================
   RESPONSIVE — hero
   ============================================================ */

@media (max-width: 768px) {
  .hero-section {
    min-height: 380px;
    padding: 60px 20px;
  }
  .hero-heading {
    font-size: 34px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .hero-heading {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
}

@media (max-width: 400px) {
  .hero-heading {
    font-size: 24px;
  }
}

/* ============================================================ ALL SERVICES SECTION ============================================================ */

.all-services-section {
  background: linear-gradient(
    180deg,
    rgba(198, 40, 40, 0.12) 99.99%
  ) !important;
  padding: 60px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.services-header {
  text-align: center;
  margin-bottom: 40px;
}

.services-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.services-header h2 span {
  color: #e74c3c;
}

.services-header p {
  position: relative;
  font-size: 20px;
  font-weight: 500;
  font-family: "Open Sans";
  color: #000000;
  text-align: center;
  display: inline-block;
  margin-bottom: 30px;
  margin-top: 0px;
}

/* ===== Toggle Checkbox ===== */
.toggle-checkbox {
  display: none;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

/* ===== Service Card ===== */
.service-card {
  perspective: 1000px;
  height: 280px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.service-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Front & Back */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Front */
.card-front {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.front-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  );
}

.front-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  text-align: center;
}

.service-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
  font-style: italic;
}

.service-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e74c3c;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border-radius: 4px;
}

/* Back */
.card-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
}

.back-content {
  position: relative;
  z-index: 2;
  padding: 25px;
  text-align: center;
}

.back-description {
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 20px;
}

.view-details-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #e74c3c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.25s;
}

.view-details-btn:hover {
  background: #c0392b;
}

/* ===== Extra Services (Hidden by default) ===== */
.service-card.extra-service {
  display: none;
}

/* Show extra services when toggled */
.toggle-checkbox:checked ~ .services-grid .service-card.extra-service {
  display: block;
  animation: fadeInUp 0.4s ease;
}

/* ===== View All Button ===== */
.view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  padding: 15px;
}

.btn-text {
  font-size: 1.1rem;
  color: #000000;
  font-weight: 500;
}

.btn-arrow {
  color: #c62828;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Change text when checked */
.toggle-checkbox:checked ~ .view-all-btn .btn-text {
  font-size: 0;
}

.toggle-checkbox:checked ~ .view-all-btn .btn-text::after {
  content: "Show Less";
  font-size: 1.1rem;
  color: #000000;
  font-weight: 500;
}

.toggle-checkbox:checked ~ .view-all-btn .btn-arrow {
  transform: rotate(180deg);
}

/* ===== No Services ===== */
.no-services {
  text-align: center;
  padding: 40px;
  color: #666;
  grid-column: 1 / -1;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================ RESPONSIVE ============================================================ */

@media (max-width: 767px) {
  .all-services-section {
    padding: 40px 0;
  }

  .services-header h2 {
    font-size: 1.5rem;
  }

  .services-grid {
    gap: 15px;
  }

  .service-card {
    height: 240px;
  }

  .service-name {
    font-size: 1rem;
    padding: 8px;
  }

  .back-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 220px;
  }
}

/* ============================================================ CTA BANNER SECTION ============================================================ */

.cta-banner-section {
  position: relative;
  min-height: 350px;
  background: url("/images/services/area rug cleaners brooklyn CTA img.webp")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  overflow: hidden;
}

/* Red corner accents */
.cta-corner {
  position: absolute;
  width: 120px;
  height: 120px;
  background: #e74c3c;
  z-index: 2;
}

.cta-corner-left {
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.cta-corner-left::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.cta-corner-right {
  bottom: 0;
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.cta-corner-right::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* Content */
.cta-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  color: #fff;
}

/* Eyebrow */
.cta-eyebrow {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  text-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.6);
}

.eyebrow-line {
  display: block;
  width: 60px;
  height: 2px;
  background: #fff;
}

/* Title */
.cta-banner-title {
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.2;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.7);
}

/* Text */
.cta-banner-text {
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 30px;
  line-height: 1.5;
  opacity: 1;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 0 6px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.cta-banner-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid #e74c3c;
}

.cta-btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* ============================================================ RESPONSIVE ============================================================ */

@media (max-width: 767px) {
  .cta-banner-section {
    min-height: 300px;
    padding: 50px 20px;
  }

  .cta-corner {
    width: 80px;
    height: 80px;
  }

  .cta-banner-title {
    font-size: 1.6rem;
  }

  .cta-banner-text {
    font-size: 0.9rem;
  }

  .cta-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .eyebrow-line {
    width: 40px;
  }
}

@media (max-width: 480px) {
  .cta-banner-section {
    min-height: 280px;
    padding: 40px 15px;
  }

  .cta-corner {
    width: 60px;
    height: 60px;
  }

  .cta-banner-title {
    font-size: 1.3rem;
  }

  .cta-eyebrow {
    font-size: 0.7rem;
    gap: 10px;
  }

  .eyebrow-line {
    width: 25px;
  }

  .cta-banner-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta-btn {
    width: 100%;
    max-width: 115px;
    margin: 0 auto;
  }
}

/* ============================================================ CONTACT SECTION - GET IN TOUCH ============================================================ */

.contact-section {
  background: #ffffff;
  padding: 60px 0;
}

/* ===== Layout ===== */
.contact-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ===== Left Column: Info ===== */
.contact-info-col {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 80px;
}

.info-box {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px 20px;
  background: #fff;
}

.info-address,
.info-phone {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #c62828;
  text-decoration: none;
  line-height: 1.5;
}

.info-address:hover,
.info-phone:hover {
  color: #a02020;
}

.info-hours {
  position: relative;
  padding-top: 30px;
}

.info-hours h3 {
  position: absolute;
  top: -24px;
  left: 20px;
  background: #fff;
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c62828;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-hours p {
  margin: 0;
  font-size: 1rem;
  color: #000000;
}

/* ===== Right Column: Form ===== */
.contact-form-col {
  flex: 1;
  min-width: 0;
}

.form-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #c62828;
  margin: 0 0 30px;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert p {
  margin: 0;
}

/* Form */
.contact-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #000000;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #c62828;
  border-radius: 12px;
  background: #fff;
  font-size: 0.95rem;
  color: #333;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #999;
}

.form-field input:focus,
.form-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field--full {
  grid-column: 1 / -1;
}

/* Buttons */
.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #fff;
  color: #c62828;
  border: 1.5px solid #c62828;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.btn-outline:hover {
  background: #c62828;
  color: #fff;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #c62828;
  color: #fff;
  border: 1.5px solid #c62828;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-solid:hover {
  background: #a02020;
  border-color: #a02020;
}

/* ============================================================ RESPONSIVE ============================================================ */

@media (max-width: 991px) {
  .contact-layout {
    flex-direction: column;
  }

  .contact-info-col {
    width: 100%;
    padding-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .info-box {
    flex: 1;
    min-width: 200px;
  }

  .info-hours {
    flex: 1 1 100%;
  }

  .contact-form-col {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .contact-section {
    padding: 40px 0;
  }

  .form-title {
    font-size: 1.4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  /* .btn-outline,
  .btn-solid {
    width: 100%;
  } */

  .contact-info-col {
    flex-direction: column;
  }

  .info-box {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .form-title {
    font-size: 1.2rem;
  }

  .form-field input,
  .form-field textarea {
    padding: 12px 14px;
    font-size: 16px; /* Prevent iOS zoom */
  }

  .info-address,
  .info-phone {
    font-size: 0.9rem;
  }
}

/* Dark overlay using ::before pseudo-element */
.cta-banner-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1;
}

/* Bump content above overlay */
.cta-banner-content {
  z-index: 2;
}

/* Bump corners above overlay too */
.cta-corner {
  z-index: 3;
}
