/* ========================================
   INTERCOUNTY SUPPLIES - GYM FOAM & SPECIALS PAGE
   Location: assets/css/gym-foam.css
   Description: Matching homepage style
   Dependencies: global.css (must load first)
   ======================================== */

/* ============ VARIABLES - MATCHING HOMEPAGE ============ */
#ics-gym-page {
  --text: #1A202C;
  --text-light: #4A5568;
  --text-muted: #718096;
  --bg: #FFFFFF;
  --bg-secondary: #F7FAFC;
  --bg-tertiary: #EDF2F7;
  --border: #E2E8F0;
  --border-light: #EDF2F7;
  --accent: #FF6B35;
  --accent-dark: #E55A28;
  --accent-light: #FFF5F2;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  line-height: 1.7;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ PAGE WRAPPER ============ */
#ics-gym-page .ics-main {
  background: var(--bg);
  min-height: 100vh;
}

/* ============ PAGE HEADER (SIMPLE) ============ */
.icsG-page-header {
  text-align: center;
  padding: 50px 20px 30px;
  margin-bottom: 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.icsG-page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.icsG-page-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
}

/* ============ TYPOGRAPHY ============ */
.icsG-h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.icsG-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 12px auto 0;
  max-width: 800px;
  line-height: 1.7;
}

.icsG-section-header {
  text-align: center;
  margin-bottom: 40px;
}

/* ============ INTRO SECTION ============ */
.icsG-intro-section {
  padding: 80px 20px;
  background: var(--bg);
}

.icsG-intro-section .ics-container {
  max-width: 900px;
}

.icsG-intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  text-align: center;
  margin: 0 auto 16px;
}

.icsG-intro-text:last-child {
  margin-bottom: 0;
}

/* ============ FEATURED PROJECT ============ */
.icsG-featured-project {
  padding: 80px 20px;
  background: var(--bg-secondary);
}

.icsG-project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.icsG-project-image {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.icsG-project-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.icsG-project-content {
  padding: 0;
}

.icsG-project-desc {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 16px;
}

.icsG-project-detail {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0;
}

/* ============ BENEFITS SECTION ============ */
.icsG-benefits-section {
  padding: 80px 20px;
  background: var(--bg);
}

.icsG-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.icsG-benefit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow-xs);
}

.icsG-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.icsG-benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.icsG-benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.icsG-benefit-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* ============ GALLERY SECTION ============ */
.icsG-gallery-section {
  padding: 80px 20px;
  background: var(--bg-secondary);
}

.icsG-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.icsG-gallery-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-xs);
  aspect-ratio: 1;
}

.icsG-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.icsG-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s;
}

.icsG-gallery-item:hover img {
  transform: scale(1.05);
}

.icsG-gallery-wide {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-xs);
}

.icsG-gallery-wide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.icsG-gallery-wide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  max-height: 400px;
  object-fit: cover;
}

/* ============ CNC SECTION ============ */
.icsG-cnc-section {
  padding: 80px 20px;
  background: var(--bg);
}

.icsG-cnc-section .ics-container {
  max-width: 900px;
}

.icsG-cnc-content {
  text-align: center;
}

.icsG-cnc-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin: 16px 0;
}

/* ============ APPLICATIONS SECTION ============ */
.icsG-applications {
  padding: 80px 20px;
  background: var(--bg-secondary);
}

.icsG-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.icsG-app-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow-xs);
}

.icsG-app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.icsG-app-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.icsG-app-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.icsG-app-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* ============ CTA SECTION ============ */
.icsG-cta {
  padding: 80px 20px;
  background: var(--bg);
  text-align: center;
}

.icsG-cta .ics-h2 {
  margin-bottom: 16px;
}

.icsG-cta-text {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.icsG-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.icsG-btn {
  display: inline-block;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  border: 2px solid;
}

.icsG-btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.icsG-btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.icsG-btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--text);
}

.icsG-btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1100px) {
  .icsG-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .icsG-project-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .icsG-project-content {
    order: 2;
  }
  
  .icsG-project-image {
    order: 1;
  }
}

@media (max-width: 768px) {
  .icsG-page-header {
    padding: 40px 20px 24px;
    margin-bottom: 32px;
  }

  .icsG-intro-section,
  .icsG-featured-project,
  .icsG-benefits-section,
  .icsG-gallery-section,
  .icsG-cnc-section,
  .icsG-applications,
  .icsG-cta {
    padding: 60px 20px;
  }

  .icsG-benefits-grid,
  .icsG-app-grid {
    grid-template-columns: 1fr;
  }

  .icsG-gallery-grid {
    grid-template-columns: 1fr;
  }

  .icsG-cta-buttons {
    flex-direction: column;
  }

  .icsG-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .icsG-intro-text,
  .icsG-project-detail,
  .icsG-cnc-content p {
    font-size: 1rem;
  }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ PRINT STYLES ============ */
@media print {
  .icsG-intro-section,
  .icsG-featured-project,
  .icsG-benefits-section,
  .icsG-gallery-section,
  .icsG-cnc-section,
  .icsG-applications {
    page-break-inside: avoid;
  }
}

/* ========================================
   END OF GYM FOAM STYLES
   Matching homepage design! ✨
   ======================================== */