/* Custom styles for Superior Pool Covers */
/* Using Pico CSS as base, Tailwind for utilities */

:root {
  --primary-color: #0000ff;
  --secondary-color: #FF6600;
  --accent-color: #006600;
  --neutral-base: #F5F7FA;
  --water-accent: #4FC3F7;
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  
  /* Color Hierarchy */
  --text-primary: #1a1a1a;    /* Dark gray for headings */
  --text-secondary: #4a4a4a;  /* Medium gray for body */
  --text-muted: #6b7280;      /* Light gray for supporting text */
}

/* === TYPOGRAPHY HIERARCHY === */
/* Base typography */
body {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  background-image: url('/images/Background Water.png');
  background-position: top left;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Heading Hierarchy */
h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* Lead paragraph - larger, more prominent */
p.lead {
  font-size: var(--font-size-xl);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Body text */
p {
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Strong emphasis */
strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* Small text */
small, .text-sm {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* Large text */
.text-lg {
  font-size: var(--font-size-lg);
}

.text-xl {
  font-size: var(--font-size-xl);
}

/* Stat numbers - large display */
.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin: 0;
}

.stat-label {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
  
  h3 {
    font-size: var(--font-size-xl);
  }
  
  p.lead {
    font-size: var(--font-size-lg);
  }
  
  .stat-number {
    font-size: var(--font-size-4xl);
  }
}

/* List indentation */
ul, ol {
  padding-left: 2rem;
}

/* Ensure description lists also get proper indentation */
ul.description, ol.description {
  margin-top: 2rem;
  padding-left: 2rem !important;
}

/* Brand color utilities */
.text-primary { color: var(--primary-color); }
.bg-primary { background-color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.bg-accent { background-color: var(--accent-color); }
.text-muted { color: var(--text-muted); }


.logo-superior-pool-covers {height: 100px; width: auto;}

.fixed-part {position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1;}

/* Spacer to preserve layout - matches the height of fixed-part */
.fixed-part-spacer {height: 44rem;}

.cover {background: white; position: relative; z-index: 200; padding: 0;}
.cover-color {background: #b79a71; margin-bottom: 3rem;}
.cover-bar {background: #977f5e; height: 20px; width: 100%;}

/* Hero section styling */
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Section spacing */
section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}

/* First section after header should have less top padding */
main > section:first-of-type {
  padding-top: 2rem;
}

/* Section spacing for better hierarchy */
section + section {
  margin-top: 1rem;
}

/* Card styling */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
  margin-top: 0;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
}

/* Testimonial styling */
.testimonial {
  background: var(--neutral-base);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.testimonial blockquote {
  margin: 0;
  font-style: italic;
}

.testimonial cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
}

/* Service card hover effect */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.15); */
}

/* Contact form styling */
form {
  max-width: 600px;
  margin: 0 auto;
}

/* Footer styling */
footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 1rem;
  margin-top: 4rem;
}

footer a {
  color: var(--water-accent);
}

footer a:hover {
  color: var(--accent-color);
}

/* Navigation styling */
nav {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1rem;
}

nav > ul:first-of-type {
  margin-right: 0;
}

nav > ul:last-of-type {
  margin-left: 0;
  align-self: flex-start;
  margin-top: 1.5rem;
}

nav a.active {
  font-weight: bold;
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

/* Mobile navigation */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .mobile-only {
    display: block;
    margin-left: auto;
  }
  
  nav {
    position: relative;
  }
  
  nav > ul:last-of-type {
    margin-left: 0;
  }
  
  #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    flex-direction: column;
    padding: 1rem;
    margin: 0;
    width: 100%;
  }
  
  #nav-menu.active {
    display: flex;
  }
  
  #nav-menu li {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  #nav-toggle {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-left: auto;
  }
  
  #nav-toggle:hover {
    background: #f0f0f0;
  }
}

/* === GRID LAYOUTS === */
.grid-container {
  display: grid;
  gap: 20px; /* Space between grid items */
}

.grid-container.two-column {
  grid-template-columns: repeat(2, 1fr);
}

.grid-container.three-column {
  grid-template-columns: repeat(3, 1fr);
}

.grid-container.four-column {
  grid-template-columns: repeat(4, 1fr);
}

/* Large devices (desktops, <1280px) */
@media only screen and (max-width: 1279px) {
  /* Grid container styles for large devices */
}

/* Medium devices (tablets, <960px) */
@media only screen and (max-width: 959px) {
  /* Grid container styles for medium devices */
}

/* Small devices (phones and small tablets, <768px) */
@media only screen and (max-width: 767px) {
  .grid-container.two-column {
    grid-template-columns: 1fr; /* Stack to 1 column on mobile */
  }
  .grid-container.three-column {
    grid-template-columns: 1fr; /* Stack to 1 column on mobile */
  }
  .grid-container.four-column {
    grid-template-columns: 1fr; /* Stack to 1 column on mobile */
  }
}

/* Extra small devices (phones, <480px) */
@media only screen and (max-width: 479px) {
  /* Grid container styles for extra small devices */
}

/* === IMAGE LAYOUT === */
.crop-container {
  width: auto;
  height: 200px;
  overflow: hidden;
  border-radius: 25px;
}

.crop-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.crop-container.anchor-top img {
  object-position: top;
}

.crop-container.anchor-bottom img {
  object-position: bottom;
}

img.img-invert {
  filter: invert(100%);
}

/* === FLEX LAYOUTS === */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.flex-container.column {
  flex-direction: column;
}

.flex-container.row {
  flex-direction: row;
}

.flex-container.fit-content {
  width: fit-content;
}

/* === HERO LAYOUT ENHANCEMENTS === */
section.hero {
  align-items: center; /* Vertically center the content */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

section.hero.grid-container {
  grid-template-columns: 2fr 3fr;
}

section.hero .text-content {
  z-index: 2; /* Ensure text is above the image */
  align-self: center;
}

section.hero .crop-container {
  height: 300px;
  aspect-ratio: 1 / 1;
}

section.hero .image-content {
  position: relative;
  z-index: 1; /* Image stays below the text */
  align-self: start;
}

section.hero h2 {
  color: #010101;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
  width: 150%;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.8),
    2px 2px 4px rgba(0, 0, 0, 0.5);
}

section.hero p.description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.45;
}

section.hero p.buttons {
  font-size: 1.5rem;
}

section.hero p {
  font-size: 1.5rem;
}

section.hero .accolades-grid {
  margin-top: 6rem;
  width: fit-content;
  font-size: .9rem;
  grid-template-columns: 1fr 1fr 1fr;
}

section.hero .accolades-grid span {
  font-size: 1.6rem;
  font-weight: 600;
}

section.hero .accolades-grid .flex-container.column {
  gap: 0;
}

/* Hero responsive tweaks */
@media only screen and (max-width: 767px) {
  section.hero {
    padding-top: 4rem;
  }

  section.hero.grid-container {
    grid-template-columns: 1fr;
  }

  section.hero h2 {
    width: inherit;
  }

  section.hero .crop-container {
    width: 100%;
    height: auto;
  }
}

/* === SERVICES SECTION === */
section.services .services-grid {
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 8rem;
}

/* Service card styles are handled by base .service-card class */

section.services .title-content {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.3;
  margin-left: 200px;
  margin-right: 200px;
  margin-bottom: 2.5rem;
  color: #454545;
}

section.services .service-card h3 {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

section.services .service-card h3 img.scalable-svg {
  display: inline-block;
}

/* Dark mode: invert SVG colors */
@media (prefers-color-scheme: dark) {
  img.scalable-svg {
    filter: invert(100%);
  }
  
  /* Remove invert filter for Coverstar logo in dark mode */
  img.logo-coverstar.img-invert {
    filter: none;
  }
}

/* Dark mode via data-theme attribute (Pico CSS) */
[data-theme="dark"] img.scalable-svg {
  filter: invert(100%);
}

[data-theme="dark"] img.logo-coverstar.img-invert {
  filter: none;
}

/* === BUTTON STYLES === */
/* Phone button styles - matching format for hero and CTA */
a.btn-phone,
a.btn-phone-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.2rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 9999px; /* Pill-shaped */
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a.btn-phone:hover,
a.btn-phone-cta:hover {
  background-color: #0000cc;
  color: white;
}

/* Dark mode: reverse colors for hero button only */
@media (prefers-color-scheme: dark) {
  a.btn-phone {
    background-color: white;
    color: #000000;
  }
  
  a.btn-phone:hover {
    background-color: #f0f0f0;
    color: #000000;
  }
  
  /* CTA button stays the same in dark mode */
  a.btn-phone-cta {
    background-color: var(--primary-color);
    color: white;
  }
  
  a.btn-phone-cta:hover {
    background-color: #0000cc;
    color: white;
  }
}

/* Dark mode via data-theme attribute (Pico CSS) */
[data-theme="dark"] a.btn-phone {
  background-color: white;
  color: #000000;
}

[data-theme="dark"] a.btn-phone:hover {
  background-color: #f0f0f0;
  color: #000000;
}

[data-theme="dark"] a.btn-phone-cta {
  background-color: var(--primary-color);
  color: white;
}

[data-theme="dark"] a.btn-phone-cta:hover {
  background-color: #0000cc;
  color: white;
}

/* Medium devices (tablets, <960px) */
@media only screen and (max-width: 959px) {
  section.services .services-grid {
    padding: inherit;
  }

  section.services .title-content {
    margin: inherit;
  }
}

/* === SOLUTION SECTION === */
section.solution-grid {
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

section.solution .title-content {
  position: relative;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 2rem;
  z-index: 1;
  text-align: center;
}

section.solution .text-content {
  z-index: 2;
  position: relative;
  top: 15px;
  align-self: start;
}

section.solution .text-content h2 {
  text-align: left;
  font-weight: 900;
}

section.solution .image-content {
  position: relative;
  z-index: 1;
  align-self: start;
  aspect-ratio: 1 / 1;
}

section.solution .image-content .crop-container {
  position: relative;
  left: 140px;
  height: 100%;
  width: 100%;
}

section.solution .image-content img {
  display: block;
  border-radius: 25px;
}

/* Medium devices (tablets, <960px) */
@media only screen and (max-width: 959px) {
  section.solution .text-content {
    padding: inherit;
  }

  section.solution .image-content .crop-container {
    left: 0;
  }
}

/* === FEATURES SECTION === */
section.features-grid {
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

section.features .title-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

section.features .text-content {
  z-index: 2;
  position: relative;
  top: 15px;
  align-self: center;
}

section.features .text-content h3.title {
  font-size: 1.5rem;
}

section.features .image-content {
  position: relative;
  z-index: 1;
  align-self: start;
  aspect-ratio: 1 / 1;
}

section.features .image-content .crop-container {
  position: relative;
  left: -140px;
  height: 100%;
  width: 100%;
}

section.features .image-content img {
  width: 100%;
  display: block;
  border-radius: 25px;
}

img.logo-coverstar {
  width: 100%;
  max-width: 420px;
}

/* Medium devices (tablets, <960px) */
@media only screen and (max-width: 959px) {
  section.features .text-content {
    padding: inherit;
  }

  section.features .image-content .crop-container {
    left: 0;
  }
}

/* === TESTIMONIALS SECTION === */
section.testimonials .testimonial-grid {
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  align-items: start;
}

section.testimonials .testimonial-card .quote {
  font-size: 1.25rem;
  font-style: italic;
}

section.testimonials .testimonial-card .attributed {
  font-size: 1.15rem;
  margin-top: 3rem;
}

section.testimonials .testimonial-card .attributed h4 {
  font-weight: 600;
}

section.testimonials .title-content {
  text-align: center;
}

section.testimonials .attributed img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background: gray;
}

section.testimonials .rating {
  gap: 0;
}

section.testimonials .rating span {
  margin-left: 8px;
  font-size: 0.9em;
}

section.testimonials .platform {
  display: flex;
  flex-direction: column;
  width: fit-content;
  gap: 0;
  text-align: center;
  justify-self: center;
  align-items: center;
  margin-bottom: 4rem;
}

section.testimonials .platform-logo {
  height: 80px;
  width: auto;
}

/* === CTA SECTION === */
section.cta {
  max-width: inherit;
  padding: 8rem 200px;
  text-align: center;
  background-image: url('/images/pool-water-1.jpg');
  background-size: cover;
  color: #010101;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8),
    2px 2px 4px rgba(0, 0, 0, 0.5);
}

section.cta .inner-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

section.cta h2 {
  font-size: 3rem;
  max-width: 800px;  
  margin: 0 auto 2rem auto;
  font-weight: 800;
  color: #000000 !important; /* Always black */
}

section.cta p {
  margin-bottom: 2rem;
}

section.cta p.call {
  font-size: 2.5rem;
  line-height: 1.45;
}

/* Medium devices (tablets, <960px) */
@media only screen and (max-width: 959px) {
  section.cta {
    padding: 8rem 1rem;
  }
}

/* === FAQ SECTION === */
section.faq .faqs-grid {
  padding: 0 200px;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

section.faq .faq-card {
  margin-bottom: 4rem;
}

section.faq .faq-card .question {
  font-weight: 600;
  font-size: 1.5rem;
}

/* FAQ answer styles use default paragraph styling */

section.faq .title-content {
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 3rem;
}

/* Medium devices (tablets, <960px) */
@media only screen and (max-width: 959px) {
  section.faq .faqs-grid {
    padding: inherit;
  }
}



.swatches {
}

.card-body {
    display: block;
    background-size: 300px auto;
}

.card-body {
    height: 300px;
    background-size: cover;
    display: flex;
    flex-direction: column;
  justify-content: center;
    align-items: center;
}

.card-body.swatch-black {
    background-image: url("/images/swatches/front/Black.jpg");
}

.card-body.swatch-charcoal {
    background-image: url("/images/swatches/front/Charcoal.jpg");
}

.card-body.swatch-gray {
    background-image: url("/images/swatches/front/Gray.jpg");
}

.card-body.swatch-mocha {
    background-image: url("/images/swatches/front/Mocha.jpg");
}

.card-body.swatch-tan {
    background-image: url("/images/swatches/front/Tan.jpg");
}

.card-body.swatch-green {
    background-image: url("/images/swatches/front/Green.jpg");
}

.card-body.swatch-aqua {
    background-image: url("/images/swatches/front/Aqua.jpg");
}

.card-body.swatch-light-blue {
    background-image: url("/images/swatches/front/LightBlue.jpg");
}

.card-body.swatch-royal-blue {
    background-image: url("/images/swatches/front/RoyalBlue.jpg");
}

.card-body.swatch-navy-blue {
    background-image: url("/images/swatches/front/NavyBlue.jpg");
}

.card-body.swatch-black:hover {
    background-image: url("/images/swatches/back/Black.jpg");
}

.card-body.swatch-charcoal:hover {
    background-image: url("/images/swatches/back/Charcoal.jpg");
}

.card-body.swatch-gray:hover {
    background-image: url("/images/swatches/back/Gray.jpg");
}

.card-body.swatch-mocha:hover {
    background-image: url("/images/swatches/back/Mocha.jpg");
}

.card-body.swatch-tan:hover {
    background-image: url("/images/swatches/back/Tan.jpg");
}

.card-body.swatch-green:hover {
    background-image: url("/images/swatches/back/Green.jpg");
}

.card-body.swatch-aqua:hover {
    background-image: url("/images/swatches/back/Aqua.jpg");
}

.card-body.swatch-light-blue:hover {
    background-image: url("/images/swatches/back/LightBlue.jpg");
}

.card-body.swatch-royal-blue:hover {
    background-image: url("/images/swatches/back/RoyalBlue.jpg");
}

.card-body.swatch-navy-blue:hover {
    background-image: url("/images/swatches/back/NavyBlue.jpg");
}

.swatches .title {
    border: 2px solid white;
    color: white;
    font-size: 2.5rem;
    padding: 0.5rem;
    border-radius: 0.25em;
    cursor: pointer;
}

/* .swatches .title:hover {
    margin: 0 auto;
    text-decoration: none;
    color: #036703;
    background-color: white;
    box-shadow: 4px 4px 4px black;
    border: 3px solid #036703;
} */

@media screen and (max-width: 600px) {
    .swatches .caption {
        font-size: 1.5em;
    }
}