/**
 * grid.css - Universal CSS Grid System
 * Delight Acupuncture
 */

/* ==========================================================================
   1-Column Grid
   Used for full-width single card surfaces, announcements, or single topics
   ========================================================================== */
.grid-1col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   2-Column Symmetric Grid (Equal Columns)
   Used for side-by-side panels, comparisons, pricing/hours, etc.
   ========================================================================== */
.grid-2col-equal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Asymmetric 2-Column Grid (Sidebar / Profile + Main Content)
   Used for practitioner profile & bio, sidebar layouts, etc.
   ========================================================================== */
.grid-sidebar-content {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Surface Decoration (Decoupled from Grid Geometry)
   Translucent card surface with rounded corners and inner padding
   ========================================================================== */
.grid-card-surface {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* ==========================================================================
   Grid Panel (Standard Column/Panel Building Block)
   ========================================================================== */
.grid-panel,
.home-visit-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  padding: 0;
}

.grid-panel h3,
.home-visit-panel h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
}

.grid-panel * + h3,
.home-visit-panel * + h3 {
  margin-top: 1.25rem;
}

.grid-panel p,
.home-visit-panel p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--default-text, #303030);
  margin-bottom: 0.85rem;
}

.grid-panel > :last-child,
.home-visit-panel > :last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile & Tablet <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .grid-2col-equal {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-sidebar-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-card-surface {
    padding: 1.25rem 1rem;
  }
}
