/* ========================================
   INTERCOUNTY SUPPLIES - WINTECH PAGE
   Location: assets/css/wintech.css
   Description: Matching homepage style with modals
   Dependencies: global.css (must load first)
   ======================================== */

/* ============ VARIABLES - MATCHING HOMEPAGE ============ */
#ics-wintech-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-wintech-page .ics-main {
  background: var(--bg);
  min-height: 100vh;
}

/* ============ PAGE HEADER (SIMPLE) ============ */
.icsW-page-header {
  text-align: center;
  padding: 50px 20px 30px;
  margin-bottom: 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.icsW-page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.icsW-page-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
}

/* ============ SECTION HEADER ============ */
.icsW-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.icsW-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 12px auto 0;
  max-width: 800px;
  line-height: 1.7;
}

/* ============ INTRO SECTION ============ */
.icsW-intro-section {
  padding: 80px 20px;
  background: var(--bg);
}

.icsW-intro-section .ics-container {
  max-width: 900px;
}

.icsW-intro-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin: 0 0 20px;
}

.icsW-intro-text:last-of-type {
  margin-bottom: 30px;
}

.icsW-highlight-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 30px;
  box-shadow: var(--shadow-xs);
}

.icsW-highlight-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0;
  text-align: center;
}

/* ============ CASE STUDIES SECTION ============ */
.icsW-case-studies-section {
  padding: 80px 20px;
  background: var(--bg-secondary);
}

.icsW-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.icsW-example-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.icsW-example-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.icsW-example-image {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.icsW-example-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s;
}

.icsW-example-card:hover .icsW-example-image img {
  transform: scale(1.05);
}

.icsW-example-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* ============ FEATURES SECTION ============ */
.icsW-features-section {
  padding: 80px 20px;
  background: var(--bg);
}

.icsW-features-section .ics-container {
  max-width: 900px;
}

.icsW-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icsW-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
}

.icsW-feature-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.icsW-feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.icsW-feature-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0;
  padding-top: 4px;
}

/* ============ GALLERY SECTION ============ */
.icsW-gallery-section {
  padding: 80px 20px;
  background: var(--bg-secondary);
}

.icsW-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.icsW-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: 4/3;
}

.icsW-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.icsW-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s;
}

.icsW-gallery-item:hover img {
  transform: scale(1.05);
}

/* ============ VIDEO SECTION ============ */
.icsW-video-section {
  padding: 80px 20px;
  background: var(--bg);
}

.icsW-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 28px;
}

.icsW-video-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.icsW-video-container:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.icsW-video-container iframe {
  position: absolute;
  top: 16px;
  left: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  border-radius: 8px;
}

/* ============ CTA SECTION ============ */
.icsW-cta {
  padding: 80px 20px;
  background: var(--bg-secondary);
  text-align: center;
}

.icsW-cta .ics-h2 {
  margin-bottom: 16px;
}

.icsW-cta-text {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.icsW-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.icsW-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;
}

.icsW-btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.icsW-btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.icsW-btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--text);
}

.icsW-btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============ MODAL STYLES ============ */
.icsW-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.icsW-modal.active {
  display: block;
}

.icsW-modal-content {
  background: var(--bg);
  margin: 5% auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 1000px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.icsW-modal-close {
  color: var(--text-muted);
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  font-size: 32px;
  font-weight: 700;
  background: var(--bg);
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  z-index: 1001;
  transition: color 0.3s;
}

.icsW-modal-close:hover {
  color: var(--accent);
}

.icsW-modal-title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--accent);
  padding: 32px 40px 20px;
  margin: 0;
  border-bottom: 2px solid var(--border);
  clear: both;
}

.icsW-modal-body {
  padding: 40px;
}

.icsW-modal-text {
  margin-bottom: 32px;
}

.icsW-modal-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin: 0 0 16px;
}

.icsW-modal-text p:last-child {
  margin-bottom: 0;
}

.icsW-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.icsW-modal-image {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.icsW-modal-image:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.icsW-modal-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 900px) {
  .icsW-video-grid {
    grid-template-columns: 1fr;
  }

  .icsW-modal-content {
    width: 95%;
    margin: 3% auto;
  }

  .icsW-modal-title {
    padding: 24px 24px 16px;
  }

  .icsW-modal-body {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .icsW-page-header {
    padding: 40px 20px 24px;
    margin-bottom: 32px;
  }

  .icsW-intro-section,
  .icsW-case-studies-section,
  .icsW-features-section,
  .icsW-gallery-section,
  .icsW-video-section,
  .icsW-cta {
    padding: 60px 20px;
  }

  .icsW-examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .icsW-gallery-grid {
    grid-template-columns: 1fr;
  }

  .icsW-cta-buttons {
    flex-direction: column;
  }

  .icsW-btn {
    width: 100%;
  }

  .icsW-modal-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .icsW-examples-grid {
    grid-template-columns: 1fr;
  }

  .icsW-video-grid {
    grid-template-columns: 1fr;
  }

  .icsW-intro-text,
  .icsW-feature-item 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 {
  .icsW-modal {
    display: none !important;
  }
  
  .icsW-intro-section,
  .icsW-features-section,
  .icsW-gallery-section {
    page-break-inside: avoid;
  }
}

/* ========================================
   END OF WINTECH STYLES
   Matching homepage design! ✨
   ======================================== */