/* ==========================================================================
   Perfect Pool Companion Site Stylesheet - v.86.0 (Color Reset)
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

.companion-site-body {
  background-color: #f4fcff; 
  color: #191919;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  margin: 0; 
  padding: 12px 0 0 0; 
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   GLOBAL SECTION WRAPPERS (Unified 1024px Width, Borders, Shadows)
   ========================================================================== */

.banner-container,
.main-top-nav,
.content-container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto 12px auto; 
  border: 2px solid #00bff9;
  box-shadow: 0px 12px 10px -6px #007D9C; 
  background-color: #ffffff; 
}

.banner-container { padding: 0; } 
.content-container { padding: 16px; }

.main-top-nav { 
  padding: 0 16px; 
  position: sticky;
  top: 0;
  z-index: 9999;
}

.site-header-wrapper {
  display: contents;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block; 
}

/* Navigation Container */
.nav-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center; 
  align-items: center;
  min-height: 60px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap; 
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li a {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 2.5vw, 18px); 
  color: #007d9c;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #191919; 
}

/* ==========================================================================
   CONTENT LAYOUT (1024px Landscape Base)
   ========================================================================== */

.content-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 10px;
}

.page-main-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 32px); 
  color: #007d9c; 
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.page-intro-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #191919;
  line-height: 1.7;
}

.section-divider { border: none; border-top: 2px solid #00bff9; margin: 32px 0; }
.page-sub-title { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: clamp(18px, 2.5vw, 22px); color: #191919; margin-bottom: 8px; }

/* Modern Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.content-card {
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: #00bff9;
}

.card-image-placeholder {
  width: 100%;
  height: 220px;
  background-color: #e0f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  color: #007d9c;
  font-weight: 600;
  border-bottom: 1px solid #dcdcdc;
}

.card-text-zone {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.card-title {
  font-family: 'Archivo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #191919;
}

.card-excerpt {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
}

.read-more-btn {
  align-self: flex-start;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #007d9c;
  background: none;
  border: 2px solid #00bff9;
  padding: 8px 20px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.read-more-btn:hover { background-color: #007d9c; color: #ffffff; }

/* Slim Accordions */
.sleek-accordion-group { display: flex; flex-direction: column; gap: 8px; }
.sleek-accordion { border: 1px solid #dcdcdc; background-color: #ffffff; }

.sleek-accordion-trigger { 
  font-family: 'Poppins', sans-serif; 
  font-weight: 600; 
  font-size: 15px; 
  color: #191919; 
  background-color: #f5f5f5; 
  padding: 6px 14px; 
  cursor: pointer; 
  list-style: none; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  user-select: none; 
  transition: background-color 0.2s ease; 
}
.sleek-accordion-trigger:hover { background-color: #e8e8e8; }
.sleek-accordion-trigger::-webkit-details-marker { display: none; }

/* The Custom SVG Hand Icon Engine */
.accordion-hand {
  display: inline-block;
  width: 26px;  
  height: 26px; 
  background-color: #007d9c;
  -webkit-mask: url('images/hand-open .svg') no-repeat center / contain;
  mask: url('images/hand-open .svg') no-repeat center / contain;
  transform: rotate(0deg); 
  transform-origin: center; 
  transition: transform 0.3s ease, background-color 0.3s ease, -webkit-mask 0.3s ease, mask 0.3s ease;
}

.sleek-accordion[open] .accordion-hand,
.builder-note-accordion[open] .accordion-hand {
  background-color: #e10501; 
  -webkit-mask: url('images/hand-close .svg') no-repeat center / contain;
  mask: url('images/hand-close .svg') no-repeat center / contain;
  transform: rotate(0deg); 
}

.sleek-accordion-content { padding: 16px; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 14px; color: #191919; line-height: 1.5; border-top: 1px solid #dcdcdc; }
