/* ==========================================================================
   Global Resets & Modern Rendering Engine
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px; /* Structural baseline for predictable scaling metrics */
  scroll-behavior: smooth;
}

body {
  background-color: #fffaf0; /* Warm organic canvas for high-readability text pairing */
  color: #2b323c; /* Crisp slate dark tone passing strict AAA contrast validation */
  font-family: 'Roboto', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, background-color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Suppresses inline layout baseline layout shifts */
}

/* ==========================================================================
   Container Structure Utilities
   ========================================================================== */
.container-wide {
  max-width: 80rem; 
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 64rem; /* Limits reading line lengths to eliminate tracking fatigue */
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-cta {
  max-width: 56rem; 
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Helpers */
.hidden { display: none !important; }
.text-center { text-align: center; }
.margin-bottom-1 { margin-bottom: 1rem; }

/* ==========================================================================
   Navigation Component Layout
   ========================================================================== */
.main-header {
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-title {
  font-weight: 700;
  color: #c2410c; 
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  letter-spacing: -0.02em;
}

.desktop-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.desktop-menu a {
  color: #374151;
  padding: 0.5rem 0.25rem;
}

.desktop-menu a:hover,
.desktop-menu a:focus,
.desktop-menu a.active {
  color: #ea580c;
  outline: none;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: #c2410c;
  cursor: pointer;
  padding: 0.5rem; /* Satisfies mobile 44px tap targets minimum standards */
}

.mobile-menu-btn:focus-visible {
  outline: 3px solid #ea580c;
  outline-offset: 2px;
}

.mobile-dropdown {
  border-top: 1px solid #ffedd5; 
  background-color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.mobile-dropdown-links {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  gap: 0.5rem;
}

.mobile-dropdown-links a {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: #fffaf0;
}

.mobile-dropdown-links a:hover,
.mobile-dropdown-links a:active {
  color: #ea580c;
  background-color: #ffedd5;
}

/* ==========================================================================
   Banner Component Layout
   ========================================================================== */
.banner-section {
  background-color: #ffffff;
}

.banner-section .wrapper {
  padding: 1.25rem;
}

.banner-img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(194, 65, 12, 0.08);
  border: 1px solid #ffedd5;
  object-fit: cover;
}

/* ==========================================================================
   Fluid Hero Presentation Section (Cool Palette Shift)
   ========================================================================== */
.hero-section {
  background: #f4f6f9; /* Clean, premium cool-toned layout to emphasize brand actions */
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid #e2e8f0;
}

.hero-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: #c2410c;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #374151;
  max-width: 52rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   Google Ecosystem Unified Tap Actions
   ========================================================================== */
.btn-group {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.12);
}

/* 🔵 Google Blue Variant */
.btn-login {
  background-color: #1a73e8;
  color: #ffffff; 
  border-color: #1a73e8; 
}

.btn-login:hover {
  background-color: #1557b0; 
  border-color: #1557b0;
}

/* 🟡 Google Amber Variant */
.btn-browse {
  background-color: #f9ab00; 
  color: #202124; /* Calibrated dark slate typography value for accessible contrast output */
  border-color: #f9ab00;
}

.btn-browse:hover {
  background-color: #f29900; 
  border-color: #f29900;
}

/* 🟢 Google Green Variant */
.btn-register {
  background-color: #1e8e3e; 
  color: #ffffff;
  border-color: #1e8e3e;
  box-shadow: 0 4px 10px rgba(30, 142, 62, 0.25);
}

.btn-register:hover {
  background-color: #137333;
  border-color: #137333;
}

/* ==========================================================================
   Semantic Section Geometries
   ========================================================================== */
.section-padding {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-text {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #374151;
}

.border-y-orange {
  background-color: #ffffff;
  border-top: 1px solid #ffedd5;
  border-bottom: 1px solid #ffedd5;
}

/* ==========================================================================
   Responsive Grid & Shared Component Sub-Elements
   ========================================================================== */
.features-grid, .about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.about-grid, .contact-grid {
  gap: 2rem;
}

.feature-card, .about-card, .contact-card {
  background-color: #fffaf0;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #ffedd5;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card, .contact-card {
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(194, 65, 12, 0.06);
}

.feature-icon-lg, .card-icon {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}
.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0;
}

.feature-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 0.75rem;
}

.card-title-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: #ea580c;
  margin-bottom: 1.25rem;
}

.highlight-box {
  background-color: #ffedd5;
  padding: 1.25rem;
  border-left: 4px solid #ea580c;
  margin: 1.25rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-weight: 500;
}
.highlight-box.center {
  text-align: center;
}

.action-box {
  background-color: #fef9c3;
  padding: 1.25rem;
  border: 1px dashed #eab308;
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.interactive-link {
  color: #c2410c;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s;
}
.interactive-link:hover {
  color: #ea580c;
}

.about-card-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.card-sub-divider {
  border-top: 1px solid #ffedd5;
  padding-top: 1.5rem;
}

/* Lists Ecosystem Configurations */
.styled-list {
  list-style-type: none;
  padding-left: 0;
}

.styled-list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.styled-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #ea580c;
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1;
}

.info-list li::before { content: "📝" !important; }
.social-list li::before { content: "🌐" !important; }
.portal-list li::before { content: "🔗" !important; }

/* Grid Modules Sections */
.services-section, .search-features-section {
  background-color: #fffaf0;
}
.services-grid, .community-grid, .search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.community-grid { gap: 2.5rem; }
.search-grid { gap: 1.25rem; }

.service-card, .search-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #ffedd5;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}
.search-card { padding: 1.75rem 1.25rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02); }

.service-title, .community-column h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.service-card p, .search-card p, .community-column p {
  margin-bottom: 1.25rem;
  color: #4b5563;
}
.search-card p { font-size: 0.95rem; line-height: 1.5; }

.search-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.search-card-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #c2410c;
}

.community-section { background-color: #ffffff; }
.community-column .styled-list { margin-bottom: 1.5rem; }

/* ==========================================================================
   Matrix & Comparison Table Styling
   ========================================================================== */
.scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #ea580c;
  margin-bottom: 1rem;
  font-weight: 500;
}

.table-responsive-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #fed7aa;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

.comparison-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
  text-align: left;
}

.comparison-matrix th, 
.comparison-matrix td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #ffedd5;
  font-size: 0.95rem;
}

.comparison-matrix thead th {
  background-color: #ffedd5;
  color: #7c2d12;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.comparison-matrix thead th:first-child { border-top-left-radius: 1rem; }
.comparison-matrix thead th:last-child { border-top-right-radius: 1rem; }
.comparison-matrix tbody tr:hover { background-color: #fffbf5; }

.comparison-matrix .category-header-row {
  background-color: #fef3c7;
  font-weight: 700;
  color: #78350f;
  font-size: 1rem;
}
.comparison-matrix .category-header-row td { padding: 0.75rem 1.25rem; border-bottom: 2px solid #fde68a; }
.comparison-matrix .feature-label { font-weight: 600; color: #1f2937; }
.comparison-matrix .value-cell { text-align: center; font-weight: 500; width: 22%; }

/* Access Matrix Badges */
.label-visible { color: #16a34a; font-weight: 600; }
.label-viewable, .label-contact { color: #2563eb; font-weight: 600; }
.label-hidden { color: #dc2626; font-weight: 600; }

/* ==========================================================================
   FAQ & Accordion Grid Styling
   ========================================================================== */
.faq-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.faq-card {
  background-color: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 700;
  color: #7c2d12;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.faq-answer { font-size: 0.95rem; color: #4b5563; }
.faq-answer p + p { margin-top: 0.75rem; }
.faq-answer strong { color: #c2410c; }

.system-note-box {
  background-color: #fef3c7;
  border-left: 4px solid #d97706;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-top: 2rem;
  font-weight: 500;
  color: #78350f;
  font-size: 0.95rem;
}

/* ==========================================================================
   Conversion Drive CTA Area (Auspicious Soft Blush Palette)
   ========================================================================== */
.cta-section {
  background-color: #fff2f0; /* Welcoming soft pink/red hue instead of black */
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  color: #431407; /* Clear dark brown-slate text readability execution */
  border-top: 1px solid #fee2e2;
  border-bottom: 1px solid #fee2e2;
}

.cta-title {
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #991b1b; /* Rich maroon tone for professional visual anchoring */
}

.cta-text {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 2.25rem;
  color: #622517;
}

.btn-cta {
  background-color: #1e8e3e; /* Unified with Google Green registration action */
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(30, 142, 62, 0.15); /* Balanced green shadow drop */
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #1e8e3e;
}

.btn-cta:hover, .btn-cta:focus {
  background-color: #137333; /* Deeper, rich Google Green on hover */
  border-color: #137333;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(19, 115, 51, 0.25); /* Enhanced hover interactive shadow */
  outline: none;
}

/* ==========================================================================
   High-Trust Clean Footer Properties (Balanced Architecture)
   ========================================================================== */
.main-footer {
  background-color: #ffffff; /* Clean white surface matching the sticky site header */
  color: #4b5563;
  padding: 4rem 0;
  border-top: 2px solid #f3f4f6;
}

.footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.footer-desc {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  max-width: 35rem;
  margin-left: auto;
  margin-right: auto;
  color: #6b7280;
}

.footer-copyright {
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid #f3f4f6;
  padding-top: 2rem;
  color: #6b7280;
}

.footer-copyright a {
  text-decoration: none;
  color: #1a73e8; /* High-trust Google Blue for interactive user targets */
  padding: 0.25rem 0.5rem;
  display: inline-block;
  font-weight: 500;
  border-radius: 0.25rem;
  transition: color 0.2s, background-color 0.2s;
}

.footer-copyright a:hover {
  color: #1557b0;
  background-color: #f1f3f4; /* Clean hover cushion block marker */
  text-decoration: underline;
}

/* ==========================================================================
   Media Breakpoint Engineering Hierarchy
   ========================================================================== */
@media (min-width: 480px) {
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .container-wide, .container-narrow { padding: 0 2rem; }
}

@media (min-width: 768px) {
  .desktop-menu { display: flex; }
  .mobile-menu-btn, .mobile-dropdown, .scroll-indicator { display: none !important; }
  
  .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid-layout { grid-template-columns: repeat(2, 1fr); }
  .search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .search-grid { gap: 1.75rem; }
}

/* ==========================================================================
   UPDATED CORE LAYOUT MODIFIERS FOR TERMS.CSS
   ========================================================================== */

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
  padding-top: 70px;
  display: block; /* Prevents global flex/grid collisions from style1.css */
}

/* Force container overrides so style1.css utility rows don't squash it */
.container.page-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 30px;
  margin: 20px auto;
  width: 100% !important;
  max-width: 1240px !important;
  padding: 0 20px !important;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .container.page-layout {
    /* Main Content gets 75% space, Sidebar gets 25% space */
    grid-template-columns: 75% calc(25% - 30px) !important; 
  }
}

/* Explicit properties preventing the article card from squishing */
.terms-card {
  background: #ffffff;
  border: 1px solid var(--border-element);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  width: 100% !important;        /* Forces full calculated width of the column */
  min-width: 0;                  /* Crucial CSS Grid override: breaks implicit minimum sizes */
  box-sizing: border-box;
}

/* Prevents the sidebar layout column from compressing the left side */
.sidebar-layout {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}
