/* src/styles/Home.module.css */
/* Focus: Aligned Typography (using globals), Consistent Spacing, Clean Aesthetics */

/* ============================================================
   Container & Layout
   ============================================================ */

.Home_container__9OuOz {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem; /* Consistent padding */
  font-family: var(--font-family); /* Use global font family */
}

/* ============================================================
       Header & Hero Section
       ============================================================ */

.Home_header__ZUWxe {
  text-align: center;
  padding: 3rem 1rem 3rem; /* Reduced vertical padding */
  margin-bottom: 3rem; /* Reduced margin */
  border-bottom: 1px solid var(--border-color);
}

.Home_hero__g_og0 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.Home_mainTitle__rXiAX {
  /* Adjusted: Based on globals, significantly smaller */
  font-size: 2.25rem; /* Example fixed size, between large and xlarge * 1.4 */
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0; /* Added bottom margin */
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.Home_subTitle__fHG7V {
  /* Adjusted: Use standard large */
  font-size: var(--font-size-large); /* 1.25rem */
  color: var(--text-color-secondary);
  margin: 0 0 2rem; /* Reduced bottom margin */
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6; /* Keep good line height */
}

/* Primary CTA Button */
.Home_ctaPrimary__HStw9 {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: var(--font-size-medium);
  font-weight: 600;
  border-radius: var(--border-radius);
  border: 1px solid var(--accent-color);
  background-color: transparent;
  color: var(--accent-color);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.Home_ctaPrimary__HStw9:hover,
.Home_ctaPrimary__HStw9:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* ============================================================
       Main Content Sections
       ============================================================ */

.Home_mainContent__nJQdL {
  /* No specific styles needed here usually */
}

.Home_featuresSection__PwesM,
.Home_aboutSection__i_8Gi {
  margin-bottom: 4rem; /* Reduced spacing between sections */
  padding: 0 1rem;
}

/* Section Titles (H2 equivalent) */
.Home_sectionTitle__kIhux {
  /* Adjusted: Use standard xlarge */
  font-size: var(--font-size-xlarge); /* 1.75rem */
  font-weight: 600;
  margin-bottom: 2.5rem; /* Reduced space below title */
  color: var(--primary-color);
  text-align: center;
  line-height: 1.2;
}

/* Sub-Section Titles (H3 equivalent) */
.Home_subSectionTitle__BmX7f {
  /* Adjusted: Use standard large */
  font-size: var(--font-size-large); /* 1.25rem */
  font-weight: 600;
  margin-top: 2.5rem; /* Reduced space above */
  margin-bottom: 1.25rem; /* Reduced space below */
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* General Description Styling */
.Home_description__zHUB6 {
  font-size: var(--font-size-medium); /* 1rem */
  line-height: 1.7; /* Slightly adjusted line height */
  margin-bottom: 1.5rem;
  color: var(--text-color-secondary);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
       Tools Overview Section ("featuresSection")
       ============================================================ */

.Home_featuresSection__PwesM {
  text-align: center;
}

.Home_flexToolsNav__uTTve {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(240px, 1fr)
  ); /* Slightly adjusted minmax */
  grid-gap: 1.5rem;
  gap: 1.5rem; /* Reduced gap */
  margin: 2.5rem auto 0; /* Reduced space above grid */
  padding: 0;
  list-style: none;
}

/* --- Tool Card Styling (Link itself) --- */
.Home_ctaButton__twyFF {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem; /* Simplified padding */
  border-radius: var(--border-radius); /* Use global radius */
  background-color: var(--secondary-color);
  color: var(--text-color);
  text-decoration: none;
  text-align: center;
  min-height: 170px; /* Adjusted min-height */
  border: 1px solid var(--border-color);
  transition: transform var(--transition-duration) ease-out,
    border-color var(--transition-duration) ease-out,
    box-shadow var(--transition-duration) ease-out; /* Use global duration */
  box-shadow: var(--box-shadow); /* Use global subtle shadow by default */
}

/* --- Tool Card Hover/Focus Effect --- */
.Home_ctaButton__twyFF:hover,
.Home_ctaButton__twyFF:focus-visible {
  transform: translateY(-3px); /* Slightly reduced lift */
  border-color: var(--accent-color);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.07); /* Adjusted hover shadow */
  text-decoration: none;
  outline: none;
}

.Home_toolIcon__mcU47 {
  margin-bottom: 1rem; /* Reduced space below icon */
  font-size: 1.8rem; /* Reduced icon size */
  color: var(--accent-color);
  line-height: 1;
}

/* Card Title (H3 equivalent) */
.Home_cardTitle__RPmAb {
  /* Adjusted: Use standard large */
  font-size: var(--font-size-large); /* 1.25rem */
  font-weight: 600; /* Bolder for title */
  margin: 0 0 0.6rem 0; /* Reduced space below title */
  color: var(--primary-color);
}

.Home_cardDescription__0mOPY {
  font-size: var(--font-size-medium); /* 1rem */
  line-height: 1.5; /* Slightly tighter line height */
  color: var(--text-color-secondary);
  margin: 0;
  flex-grow: 1;
}

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

.Home_aboutSection__i_8Gi {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.Home_aboutSection__i_8Gi header {
  text-align: center;
  margin-bottom: 1.5rem; /* Reduced space */
}

.Home_aboutSection__i_8Gi .Home_description__zHUB6 {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  color: var(--text-color);
}

/* Feature List Styling */
.Home_featureList__jRT1t {
  margin: 1.25rem 0 1.75rem 0; /* Adjusted margins */
  padding-left: 0.5rem;
  list-style: none;
  color: var(--text-color-secondary);
}

.Home_featureList__jRT1t li {
  margin: 0.6rem 0; /* Reduced spacing */
  line-height: 1.6; /* Adjusted */
  padding-left: 1.6rem; /* Adjusted space for marker */
  position: relative;
}

.Home_featureList__jRT1t li::before {
  content: '✓';
  color: var(--accent-color);
  font-weight: bold;
  display: inline-block;
  position: absolute;
  left: 0.25rem;
  top: 1px;
  width: 1em;
}

.Home_featureList__jRT1t strong {
  font-weight: 600;
  color: var(--primary-color);
}

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

.Home_footer__wJNRn {
  background-color: var(--secondary-color);
  padding: 3rem 1rem 2.5rem; /* Reduced padding */
  border-top: 1px solid var(--border-color);
  text-align: center;
  margin-top: 5rem; /* Reduced space above footer */
  color: var(--text-color-secondary);
}

.Home_footerContent__wfaND {
  max-width: 1000px;
  margin: 0 auto;
}

.Home_footerTitle__1CVA0 {
  font-size: var(--font-size-large); /* 1.25rem */
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem; /* Reduced space */
}

.Home_contactSection__HSPeJ {
  margin-bottom: 2rem; /* Reduced space */
}

.Home_footerDescription__UInVN {
  font-size: var(--font-size-medium); /* 1rem */
  margin-bottom: 0.5rem; /* Reduced space */
  line-height: 1.6;
}

.Home_footerContact__pEdiz {
  font-size: var(--font-size-medium); /* 1rem */
  font-weight: 500;
}

.Home_footerContact__pEdiz a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-duration) ease-out,
    border-color var(--transition-duration) ease-out; /* Use global duration */
  word-break: break-all;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.Home_footerContact__pEdiz a:hover,
.Home_footerContact__pEdiz a:focus-visible {
  color: color-mix(in srgb, var(--accent-color) 85%, var(--primary-color));
  border-bottom-color: color-mix(in srgb, var(--accent-color) 50%, transparent);
  outline: none;
}

/* Social Links Styling */
.Home_socialLinks__gym1b {
  margin-top: 1.5rem; /* Reduced space */
  margin-bottom: 2rem; /* Reduced space */
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem; /* Adjusted gap */
  justify-content: center;
  align-items: center;
}

.Home_socialLinkItem__7b3Rq {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-color-secondary);
  transition: color var(--transition-duration) ease-out; /* Use global duration */
}

.Home_socialLinkItem__7b3Rq:hover,
.Home_socialLinkItem__7b3Rq:focus-visible {
  color: var(--accent-color);
  text-decoration: none;
  outline: none;
}

.Home_socialLinkItem__7b3Rq .Home_icon__cxK0Z {
  width: 1.25rem; /* Slightly smaller icons */
  height: 1.25rem;
  color: currentColor;
}

.Home_socialLinkItem__7b3Rq .Home_iconLabel__1qYAK {
  font-size: var(--font-size-medium); /* 1rem */
  font-weight: 500;
}

/* Copyright Text */
.Home_copyright__L_krK {
  margin-top: 2.5rem; /* Reduced space */
  font-size: var(--font-size-small); /* 0.875rem */
  color: var(--text-color-muted, var(--text-color-secondary));
}

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

@media (max-width: 768px) {
  /* Tablet Adjustments */
  .Home_mainTitle__rXiAX {
    font-size: 2rem; /* Matches global h1 */
  }
  .Home_subTitle__fHG7V {
    font-size: 1.125rem; /* Between medium and large */
  }
  .Home_sectionTitle__kIhux {
    font-size: 1.5rem; /* Between large and xlarge */
  }
  .Home_cardTitle__RPmAb,
  .Home_subSectionTitle__BmX7f {
    font-size: 1.125rem; /* Keep slightly larger than body */
  }

  .Home_flexToolsNav__uTTve {
    grid-template-columns: repeat(
      auto-fit,
      minmax(220px, 1fr)
    ); /* Adjust min width */
    gap: 1.25rem;
  }

  .Home_ctaButton__twyFF {
    padding: 1.25rem;
    min-height: 160px;
  }
  .Home_toolIcon__mcU47 {
    font-size: 1.7rem;
  }

  .Home_footer__wJNRn {
    padding: 2.5rem 1rem 2rem;
  }
}

@media (max-width: 480px) {
  /* Mobile Adjustments */
  .Home_container__9OuOz {
    padding: 0 1rem 2rem; /* Reduce bottom padding */
  }
  .Home_header__ZUWxe {
    padding: 2.5rem 1rem 2rem;
    margin-bottom: 2.5rem;
  }
  .Home_mainTitle__rXiAX {
    font-size: 1.75rem; /* Use xlarge */
  }
  .Home_subTitle__fHG7V {
    font-size: var(--font-size-medium); /* 1rem */
    line-height: 1.5;
  }
  .Home_ctaPrimary__HStw9 {
    padding: 0.6rem 1.4rem;
  }
  .Home_sectionTitle__kIhux {
    font-size: 1.375rem; /* Between large and xlarge */
    margin-bottom: 2rem;
  }

  .Home_flexToolsNav__uTTve {
    grid-template-columns: 1fr; /* Single column */
    gap: 1rem;
  }

  .Home_ctaButton__twyFF {
    padding: 1.25rem 1rem;
    min-height: auto;
  }
  .Home_ctaButton__twyFF:hover,
  .Home_ctaButton__twyFF:focus-visible {
    transform: none; /* Disable lift on mobile hover if desired */
    box-shadow: var(--box-shadow); /* Reset to default shadow */
  }
  .Home_toolIcon__mcU47 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
  }
  .Home_cardTitle__RPmAb {
    font-size: 1.125rem; /* Keep slightly larger than body */
  }
  .Home_cardDescription__0mOPY {
    font-size: var(--font-size-small); /* 0.875rem */
    line-height: 1.4;
  }

  .Home_aboutSection__i_8Gi {
    margin-bottom: 3rem;
  }
  .Home_subSectionTitle__BmX7f {
    font-size: var(--font-size-large); /* 1.25rem */
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .Home_featureList__jRT1t li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
  }

  .Home_footer__wJNRn {
    margin-top: 3rem;
    padding: 2rem 1rem 1.5rem;
  }
  .Home_footerTitle__1CVA0 {
    font-size: var(--font-size-large);
  }
  .Home_socialLinks__gym1b {
    gap: 1rem 1.5rem; /* Reduce gap */
  }
  .Home_socialLinkItem__7b3Rq .Home_icon__cxK0Z {
    width: 1.15rem;
    height: 1.15rem;
  }
  .Home_socialLinkItem__7b3Rq .Home_iconLabel__1qYAK {
    font-size: var(--font-size-small); /* Smaller label on mobile */
  }
  .Home_copyright__L_krK {
    margin-top: 2rem;
  }
}

