/* ===========================
   RevHomecare - Main Stylesheet
   =========================== */

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

body {
  font-family: Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: rgb(27, 27, 27);
}

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

header {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 16px;
  position: relative;
  overflow: hidden;
}

.header-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 163, 156, 0.70);
  z-index: 1;
}

.logo-wrapper {
  display: inline-block;
  background: #fff;
  border-radius: 16px;
  padding: 20px 36px;
  position: relative;
  z-index: 2;
  box-shadow: none;
}

.logo {
  height: 160px;
  width: auto;
  display: block;
}

/* ===========================
   Navigation
   =========================== */

.main-nav {
  background-color: rgb(29, 163, 156);
  width: 100%;
}

.nav-inner {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
}

.nav-link {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 16px 24px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-bottom-color: #fff;
}

main {
  flex: 1;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
  min-height: 500px;
  background-image: url("images/hero-bg.png");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   Hero Content Box
   =========================== */

.hero-content {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px 48px;
  text-align: center;
  max-width: 480px;
}

.hero-content h1 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: rgb(27, 27, 27);
  margin-bottom: 12px;
}

.hero-content .subtitle {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: rgb(94, 94, 94);
  margin-bottom: 24px;
}

/* ===========================
   Button
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 40px;
  min-height: 48px;
  background-color: rgb(0, 103, 158);
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 48px;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: rgb(0, 129, 196);
}

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

.about {
  background-color: #fff;
  padding: 56px 24px;
  display: flex;
  justify-content: center;
}

.about p {
  max-width: 480px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgb(94, 94, 94);
}

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

footer {
  background-color: rgb(29, 163, 156);
  color: #fff;
  text-align: center;
  padding: 40px 16px;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* ===========================
   Page Hero (interior pages)
   =========================== */

.page-hero {
  background-color: #1d3461;
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.page-hero h1 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

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

.contact-section {
  background-color: #fff;
  padding: 72px 24px;
  display: flex;
  justify-content: center;
}

.contact-card {
  text-align: center;
  max-width: 480px;
}

.contact-card h2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d3461;
  margin-bottom: 16px;
}

.contact-card p {
  font-size: 0.95rem;
  color: rgb(94, 94, 94);
  margin-bottom: 12px;
}

.contact-email {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgb(0, 103, 158);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.contact-email:hover {
  color: rgb(29, 163, 156);
}

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

.calendly-section {
  background-color: #f8f8f8;
  padding: 64px 24px;
}

.calendly-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.calendly-widget-main {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.contact-form-section {
  background-color: #f8f8f8;
  padding: 64px 24px;
}

.contact-form-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
}

/* Form main */
.contact-form-main {
  background: #fff;
  padding: 48px;
}

.form-heading {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d3461;
  margin-bottom: 8px;
}

.form-subheading {
  font-size: 0.95rem;
  color: #5e5e5e;
  line-height: 1.6;
  margin-bottom: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1d3461;
}

.required {
  color: #1da39c;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid #ddd;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: Helvetica, Arial, sans-serif;
  color: #1b1b1b;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1da39c;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231d3461' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #1b1b1b;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background-color 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background-color: #1da39c;
  border-color: #1da39c;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.form-submit {
  align-self: flex-start;
  margin-top: 8px;
}

/* Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #fff;
  padding: 28px;
}

.sidebar-card h3 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d3461;
  margin-bottom: 10px;
}

.sidebar-card p {
  font-size: 0.9rem;
  color: #5e5e5e;
  line-height: 1.6;
  margin-bottom: 12px;
}

.sidebar-card .contact-email {
  font-size: 0.95rem;
}

.next-steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.next-steps li {
  counter-increment: steps;
  font-size: 0.9rem;
  color: #1b1b1b;
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.next-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background-color: #1da39c;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-card--teal {
  background-color: #1d3461;
}

.sidebar-card--teal h3 {
  color: #1da39c;
}

.sidebar-card--teal p {
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-link {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid #1da39c;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.sidebar-link:hover {
  color: #1da39c;
}

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

  .contact-form-main {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

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

.services-intro {
  background-color: #fff;
  padding: 48px 24px 16px;
  display: flex;
  justify-content: center;
}

.services-intro p {
  max-width: 700px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #1b1b1b;
  font-weight: 500;
}

/* ===========================
   Texas Expertise Banner (services page)
   =========================== */

.texas-banner {
  background-color: #1d3461;
  padding: 48px 24px;
}

.texas-banner-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

.texas-banner-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  margin-top: 4px;
}

.texas-banner-icon svg,
.texas-banner-icon img {
  width: 56px;
  height: 56px;
}

.texas-banner-text h3 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1da39c;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.texas-banner-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 760px;
}

/* ===========================
   Texas Expertise Banner (homepage)
   =========================== */

.texas-home-banner {
  background-color: #f0fbfa;
  border-top: 4px solid #1da39c;
  padding: 56px 24px;
  display: flex;
  justify-content: center;
}

.texas-home-inner {
  max-width: 600px;
  text-align: center;
}

.texas-home-label {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1da39c;
  margin-bottom: 14px;
}

.texas-home-inner p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #5e5e5e;
  margin-bottom: 28px;
}

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

.services-grid-section {
  background-color: #f8f8f8;
  padding: 56px 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background-color: #fff;
  border-top: 4px solid #1da39c;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.service-card-icon svg {
  width: 44px;
  height: 44px;
}

.service-card h2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d3461;
  margin-bottom: 8px;
}

.service-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: #1da39c;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5e5e5e;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  margin-bottom: 28px;
  width: 100%;
}

.service-list li {
  font-size: 0.9rem;
  color: #1b1b1b;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1da39c;
}

.service-card .btn {
  margin-top: auto;
}

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

.about-content {
  background-color: #fff;
  padding: 72px 24px;
  display: flex;
  justify-content: center;
}

.about-inner {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-block h2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d3461;
  margin-bottom: 16px;
}

.about-block p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #5e5e5e;
  margin-bottom: 12px;
}

.about-values {
  background-color: #f8f8f8;
  padding: 72px 24px;
}

.values-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.values-inner h2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d3461;
  text-align: center;
  margin-bottom: 48px;
}

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

.value-card {
  background-color: #fff;
  border-top: 4px solid #1da39c;
  padding: 36px 28px;
  text-align: center;
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}

.value-icon svg {
  width: 56px;
  height: 56px;
}

.value-card h3 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d3461;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #5e5e5e;
}

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

/* ===========================
   FAQ Page
   =========================== */

.faq-section {
  background-color: #fff;
  padding: 72px 24px;
  display: flex;
  justify-content: center;
}

.faq-inner {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.faq-category-title {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1da39c;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.faq-item {
  border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d3461;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: block;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: #1da39c;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item[open] .faq-question {
  color: #1da39c;
}

.faq-answer {
  padding: 0 0 24px 0;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #5e5e5e;
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-cta {
  background-color: #f8f8f8;
  padding: 72px 24px;
  display: flex;
  justify-content: center;
}

.faq-cta-inner {
  text-align: center;
  max-width: 500px;
}

.faq-cta-inner h2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d3461;
  margin-bottom: 12px;
}

.faq-cta-inner p {
  font-size: 0.95rem;
  color: #5e5e5e;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ===========================
   Service Detail Pages
   =========================== */

.detail-content {
  background-color: #fff;
  padding: 72px 24px;
  display: flex;
  justify-content: center;
}

.detail-inner {
  max-width: 800px;
  width: 100%;
}

.detail-inner h2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d3461;
  margin-bottom: 16px;
  margin-top: 40px;
}

.detail-inner h2:first-child {
  margin-top: 0;
}

.detail-inner p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5e5e5e;
  margin-bottom: 16px;
}

.detail-inner ul {
  list-style: none;
  margin-bottom: 24px;
}

.detail-inner ul li {
  font-size: 0.95rem;
  color: #1b1b1b;
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.detail-inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1da39c;
}

/* Guarantee callout */
.guarantee-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background-color: #f0fbfa;
  border-left: 5px solid #1da39c;
  padding: 32px 36px;
  margin-bottom: 40px;
}

.guarantee-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.guarantee-icon svg {
  width: 52px;
  height: 52px;
}

.guarantee-text h3 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d3461;
  margin-bottom: 10px;
}

.guarantee-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1b1b1b;
  margin-bottom: 0;
}

.process-list {
  margin: 16px 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process-list li {
  color: #5e5e5e;
  line-height: 1.7;
  padding-left: 6px;
}

.detail-cta {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid #f0f0f0;
  text-align: center;
}

.detail-cta p {
  font-size: 1.1rem;
  color: #1b1b1b;
  margin-bottom: 24px;
}

/* ===========================
   Services CTA Banner
   =========================== */

.services-cta {
  background-color: #1d3461;
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}

.services-cta h2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.services-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.btn--white {
  background-color: #fff;
  color: #1d3461;
}

.btn--white:hover {
  background-color: #1da39c;
  color: #fff;
}

/* ===========================
   Responsive
   =========================== */

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

@media (max-width: 768px) {
  .hero {
    background-position: center -100px;
  }

  .hero-content {
    padding: 32px 24px;
    margin: 0 16px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .logo {
    height: 120px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .services-cta h2 {
    font-size: 1.5rem;
  }
}

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

  .calendly-section {
    padding: 40px 16px;
  }

  .calendly-inline-widget {
    min-width: 0 !important;
    width: 100% !important;
  }
}
