/**
 * Homepage Styles
 * ===============
 * Page-specific styles for the homepage only
 */

/* ==========================================
 * HERO SECTION - HOMEPAGE SPECIFIC
 * Open, calm, expansive - like standing in a quiet room
 * No card or box - background provides emotional containment
 * ========================================== */

.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--space-12) + 80px);
  padding-bottom: var(--space-24);
  overflow: hidden;
}

/* Background - soft vignette that gently frames the centred text
 * Creates emotional containment through environment, not a box
 * Soft transitions, no hard edges */
.home-hero .hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.home-hero .hero__gradient {
  position: absolute;
  inset: 0;
  background: 
    /* Central glow - draws focus to centre without hard edges */
    radial-gradient(
      ellipse 70% 55% at 50% 45%,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.6) 30%,
      rgba(254, 249, 246, 0.3) 60%,
      transparent 100%
    ),
    /* Soft vignette - frames the space gently */
    radial-gradient(
      ellipse 100% 80% at 50% 50%,
      transparent 40%,
      rgba(248, 235, 225, 0.4) 70%,
      rgba(248, 235, 225, 0.7) 100%
    ),
    /* Base gradient - warm, calming progression */
    linear-gradient(
      180deg,
      var(--color-blush) 0%,
      var(--color-cream) 40%,
      var(--color-cream) 60%,
      var(--color-cream-dark) 100%
    );
}

/* Content container - fully centred, no box */
.home-hero .hero__content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--space-6);
}

/* Text block - max 520px, centred, generous vertical spacing */
.home-hero .hero__text-block {
  width: 100%;
  max-width: 720px;
  text-align: center;
}

/* ----------------------------------------
 * PRIMARY TITLE (H1) - Anchor / Locator
 * Serif, UPRIGHT (not italic), medium size
 * Calm, grounded - "you're in the right place"
 * ---------------------------------------- */
.home-hero .hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  font-style: normal !important;
  line-height: var(--leading-normal);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .home-hero .hero__title {
    font-size: var(--text-4xl);
  }
}

/* ----------------------------------------
 * SECONDARY HEADLINE (H2) - Emotional subtitle
 * Serif, UPRIGHT (not italic), lighter weight
 * Smaller than H1, manually line-broken
 * ---------------------------------------- */
.home-hero .hero__subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  font-style: normal !important;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: var(--space-10);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .home-hero .hero__subtitle {
    font-size: var(--text-xl);
    line-height: 1.3;
  }
}

/* ----------------------------------------
 * BODY TEXT - Supporting copy
 * Sans-serif, generous line height, reduced line length
 * ---------------------------------------- */
.home-hero .hero__body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .home-hero .hero__body {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
  }
}

/* ----------------------------------------
 * TRUST LINE - Quiet reassurance
 * Small, understated, reduced contrast
 * ---------------------------------------- */
.home-hero .hero__trust-line {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-gray-400);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .home-hero .hero__trust-line {
    font-size: var(--text-sm);
  }
}

/* ----------------------------------------
 * CTA CONTAINER - Stacked vertically, centred
 * Tight grouping, not spread apart
 * ---------------------------------------- */
.home-hero .hero__cta-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

/* Primary CTA - calm, warm, not shouty */
.home-hero .hero__cta-primary {
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
}

@media (min-width: 768px) {
  .home-hero .hero__cta-primary {
    padding: var(--space-4) var(--space-8);
  }
}

/* Secondary CTA - text-only, clearly secondary */
.btn--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-base);
}

.btn--text:hover {
  color: var(--color-accent);
}

.btn--text:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.home-hero .hero__cta-secondary {
  text-transform: none;
  letter-spacing: 0;
}

/* ==========================================
 * START YOUR TRANSFORMATION CTA
 * ========================================== */

.transformation-cta {
  background-color: var(--color-cream);
  text-align: center;
}

.transformation-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.transformation-cta__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  color: var(--color-text-primary);
}

.transformation-cta__text strong {
  font-weight: var(--font-weight-semibold);
}

/* ==========================================
 * SERVICES SECTION - Card style with icons
 * ========================================== */

.services-section {
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-medium);
  font-style: italic;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.service-card__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
  margin-top: auto;
}

.service-card__link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-card__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==========================================
 * ABOUT SECTION HOMEPAGE SPECIFIC
 * ========================================== */

.home-about {
  background-color: var(--color-white);
  position: relative;
}

section.home-about::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px; /* 48–96px works well */
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(0, 0, 0, 0.035)
  );
}

.home-about__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .home-about__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.home-about__text {
  order: 2;
}

@media (min-width: 768px) {
  .home-about__text {
    order: 1;
  }
}

.home-about__text h2 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.home-about__text p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.home-about__image {
  order: 1;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .home-about__image {
    order: 2;
    justify-content: flex-end;
  }
}

.home-about__image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: var(--radius-full);
  object-fit: cover;
  aspect-ratio: 1;
}

/* Placeholder for image */
.home-about__image-placeholder {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-gray-200), var(--color-gray-300));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

/* ==========================================
 * WHAT YOU CAN EXPECT SECTION
 * ========================================== */

.what-to-expect {
  background-color: var(--color-cream);
}

.what-to-expect .section-header__title {
  font-style: italic;
  color: var(--color-primary);
}

.what-to-expect__content {
  max-width: var(--container-md);
  margin: 0 auto;
}

.what-to-expect__content p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.what-to-expect__content p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .what-to-expect__content p {
    font-size: var(--text-lg);
  }
}

/* ==========================================
 * CONTACT PREVIEW SECTION
 * ========================================== */

.contact-preview {
  background-color: var(--color-white);
}

.contact-preview__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--container-lg);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-preview__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
  }
}

.contact-preview__info h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-style: italic;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.contact-preview__info p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.contact-preview__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-preview__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-secondary);
}

.contact-preview__item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Placeholder for future map or image */
.contact-preview__visual {
  background-color: var(--color-gray-200);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}
