/* =============================================
   RaisedBar Professional Clean LLC — Styles
   To customize: edit the :root variables below
   ============================================= */

:root {
  --color-bg:       #c0bbb2;
  --color-bg-dark:  #2b2b2b;
  --color-primary:  #000000;
  --color-accent:   #c94409;
  --color-white:    #ffffff;
  --color-card-bg:  #d4cfc7;
  --color-text:     #1a1a1a;
  --color-text-muted: #4a4a4a;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --radius: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  --max-width: 1000px;

  /* Card image bleed matches card side padding */
  --card-padding-x: 1.75rem;
  --card-padding-y: 2rem;
}

/* ===== RESET / BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

input, textarea, button {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ===== LAYOUT HELPERS ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-light {
  background-color: var(--color-bg);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

/* ===== BUTTONS — shared style for ALL buttons ===== */
.btn-primary,
.contact-form button {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover,
.btn-primary:focus,
.contact-form button:hover,
.contact-form button:focus {
  background-color: var(--color-accent);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url("images/cleaning-bg.png") no-repeat center center / cover;
  padding: 3rem 1.5rem;
  border-bottom: 4px solid var(--color-accent);
}

/* Dark photo overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.hero-logo {
  width: clamp(180px, 60%, 260px);
  height: auto;
}

/* Visually hidden — logo image already shows the name */
.hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

/* Hero CTA — full width inside the card */
.hero-inner .btn-primary {
  width: 100%;
}

/* ===== SERVICE CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

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

.card {
  background-color: var(--color-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  /* No top padding — image bleeds flush to top */
  padding: 0 var(--card-padding-x) var(--card-padding-y);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Photo banner at top of each card */
.card-image {
  position: relative;
  height: 180px;
  /* Bleed past the card's side padding to reach the edges */
  margin: 0 calc(-1 * var(--card-padding-x)) 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.pressure-img {
  background-image: url("images/pressurewashing.png");
}

.window-img {
  background-image: url("images/my-window.png");
}

/* Gradient so the white title text is always readable */
.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
}

.card-title {
  position: absolute;
  bottom: 12px;
  left: 16px;
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 1;
  letter-spacing: 0.02em;
}

.card-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.card-list li {
  font-size: 0.9rem;
  padding-left: 1.1rem;
  position: relative;
  color: var(--color-text);
}

.card-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Push the CTA button to the bottom of the card */
.card .btn-primary {
  margin-top: auto;
  display: block;
}

/* ===== WHY CHOOSE US ===== */
.why-choose {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.70)),
    url("images/austin-skyline.png") center / cover no-repeat;
  padding: 5rem 1.5rem;
  color: var(--color-white);
}

.why-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}

.why-content h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.why-subtitle {
  color: #ccc;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.icon {
  flex-shrink: 0;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.why-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.why-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== CONTACT ===== */
.contact-inner {
  text-align: center;
}

.contact-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.contact-phone {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.contact-phone:hover {
  color: #a83607;
}

/* "Text Us" button — centered beneath phone number */
.contact-inner > .btn-primary {
  margin: 0 auto 1.75rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-link {
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-link:hover {
  color: var(--color-accent);
}

.contact-area {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  width: 100%;
  max-width: 560px;
  margin: 1rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  font-size: 1rem;
  background-color: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 68, 9, 0.15);
}

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

#counter {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: right;
  margin-top: -0.5rem;
}

/* Submit button — full width to match the form */
.contact-form button {
  width: 100%;
  margin-top: 0.25rem;
}

#form-message {
  background: #e6ffed;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.75rem;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
}

/* ===== THANK YOU PAGE ===== */
.thank-you-section {
  text-align: center;
  padding: 6rem 1.5rem;
}

.thank-you-section h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.thank-you-section p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.back-btn {
  display: inline-block;
}
