/* Custom styles for Rogue Pool Covers */
/* Brand Colors:
   Primary: #0E4F4F (Deep Blue-Green)
   Secondary: #2FA8CC (Clear River Blue)
   Accent: #F2C75B (Riverbank Sun Gold)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');

:root {
  --primary: #0E4F4F;
  --primary-light: #166b6b;
  --primary-dark: #073535;
  --secondary: #2FA8CC;
  --accent: #F2C75B;
  --accent-light: #f7d98d;
  --accent-dark: #d4a72d;
  --text-main: #1a1a1a;
  --text-muted: #4a4a4a;
  --bg-light: #f8fafc;
  --white: #ffffff;
  
  /* Pico CSS overrides */
  --pico-font-family-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
  --pico-primary: var(--primary);
  --pico-primary-hover: var(--primary-light);
  --pico-primary-underline: var(--secondary);
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Header & Navigation */
header {
  background-color: var(--white);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

header .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-left: 0.75rem;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

header ul {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

header ul li a {
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

header ul li a:hover {
  color: var(--primary);
}

header ul li a.active {
  color: var(--primary);
}

header ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

/* Hero Sections */
.hero-main {
  position: relative;
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 8rem 0;
  overflow: hidden;
}

.hero-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/ace8616071d602afc67bc28eb91e51d0.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.hero-main .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.hero-main h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-main p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px 0 rgba(242, 199, 91, 0.39);
}

.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 199, 91, 0.45);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(14, 79, 79, 0.3);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 79, 79, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

/* Sections */
section {
  padding: 6rem 1rem;
}

.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-primary-dark h1, .bg-primary-dark h2, .bg-primary-dark h3, .bg-primary-dark h4, .bg-primary-dark h5, .bg-primary-dark h6,
.hero-main h1, .hero-main h2, .hero-main h3, .hero-main h4, .hero-main h5, .hero-main h6 {
  color: var(--white);
}

/* Allow utility classes to override section-wide heading colors */
.bg-primary .text-accent, .bg-primary-dark .text-accent, .hero-main .text-accent { color: var(--accent) !important; }
.bg-primary .text-secondary, .bg-primary-dark .text-secondary, .hero-main .text-secondary { color: var(--secondary) !important; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  color: var(--secondary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card {
  padding: 0;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-card-content {
  padding: 2rem;
}

/* Feature Grid */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* Forms */
input, textarea, select {
  border-radius: 0.5rem !important;
  border: 1px solid #e2e8f0 !important;
  padding: 0.75rem 1rem !important;
  font-family: inherit !important;
  color: var(--text-main) !important;
  background-color: var(--white) !important;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 3px rgba(47, 168, 204, 0.2) !important;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 5rem 1rem 2rem;
  margin-top: 6rem;
  line-height: 1.8;
}

footer h4 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  border-bottom: 2px solid rgba(242, 199, 91, 0.4);
  display: inline-block;
  padding-bottom: 0.5rem;
}

footer p, footer span, footer li {
  color: var(--white); /* Pure white for maximum contrast */
  font-weight: 400;
}

footer .flex.justify-between span:first-child {
  color: var(--accent-light); /* Labels in accent-light for better distinction */
  font-weight: 600;
}

footer a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 700; /* Bold links for better visibility */
}

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

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.05em;
  font-weight: 600;
}

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

/* Mobile Adjustments */
@media (max-width: 768px) {
  section {
    padding: 4rem 1rem;
  }
  
  header ul {
    display: none; /* Logic for hamburger would go here */
  }
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
}
