/**
 * Page-Specific Styles
 * Layout overrides for individual pages
 */

/* ═══════════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════════ */

/* Hero */
.hero {
  position: relative;
  background-color: var(--color-walnut);
  color: var(--color-cream);
  padding: var(--space-3xl) var(--gutter);
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-copper);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: var(--text-h1);
  color: var(--color-cream);
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.hero__description {
  font-size: 1.125rem;
  color: var(--color-parchment);
  max-width: 550px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .hero {
    padding: var(--space-4xl) var(--gutter);
    min-height: 80vh;
  }

  .hero__cta {
    flex-direction: row;
    gap: var(--space-md);
  }
}

/* Why Choose Mario */
.why-choose {
  display: grid;
  gap: var(--space-lg);
}

.why-choose__item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.why-choose__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background-color: var(--color-parchment);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.why-choose__title {
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.why-choose__text {
  font-size: var(--text-small);
  color: var(--color-text);
}

@media (min-width: 768px) {
  .why-choose {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Service area section */
.service-area__cities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
}

.service-area__city {
  background-color: var(--color-parchment);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  color: var(--color-text);
}

/* ═══════════════════════════════════════════
   SERVICES PAGE
   ═══════════════════════════════════════════ */

.service-detail {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-parchment);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--color-parchment);
}

.service-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail__content h3 {
  margin-bottom: var(--space-sm);
}

.service-detail__list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-md);
}

.service-detail__list li {
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
  font-size: var(--text-small);
}

.service-detail__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-cedar);
  font-weight: var(--weight-bold);
}

@media (min-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail:nth-child(even) {
    direction: rtl;
  }

  .service-detail:nth-child(even) > * {
    direction: ltr;
  }
}

/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */

.about-hero {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.about-hero__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background-color: var(--color-parchment);
}

.about-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero__veteran-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--color-walnut);
  color: var(--color-cream);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
  font-size: var(--text-small);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .about-hero {
    grid-template-columns: 2fr 3fr;
  }
}

/* ═══════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════ */

.contact-layout {
  display: grid;
  gap: var(--space-xl);
}

.contact-info {
  background-color: var(--color-walnut);
  color: var(--color-cream);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.contact-info__title {
  color: var(--color-cream);
  margin-bottom: var(--space-md);
}

.contact-info__text {
  color: var(--color-parchment);
  margin-bottom: var(--space-xl);
  font-size: var(--text-small);
}

.contact-info__methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form-wrapper {
  background-color: #fff;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Form success/error states */
.form-status {
  display: none;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
}

.form-status--success {
  display: block;
  background-color: rgba(74, 103, 65, 0.1);
  border: 1px solid var(--color-cedar);
  color: var(--color-cedar);
}

.form-status--error {
  display: block;
  background-color: rgba(192, 57, 43, 0.1);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

.form-status__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.form-status__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  margin-bottom: var(--space-sm);
}

.form-status__text {
  font-size: var(--text-small);
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1.5fr;
  }
}

/* ═══════════════════════════════════════════
   LEGAL PAGES (Privacy, Terms)
   ═══════════════════════════════════════════ */

.legal-content {
  max-width: var(--max-width-narrow);
  margin-inline: auto;
  padding: var(--space-2xl) var(--gutter);
}

.legal-content h2 {
  margin-top: var(--space-xl);
}

.legal-content p,
.legal-content li {
  font-size: var(--text-small);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════ */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--gutter);
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 15vw, 10rem);
  color: var(--color-parchment);
  line-height: 1;
}

.error-page__title {
  margin-bottom: var(--space-md);
}

.error-page__text {
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  max-width: 400px;
  margin-inline: auto;
}

/* Add bottom padding for sticky mobile CTA */
body {
  padding-bottom: 70px;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}
