/* Custom styles for Rogue Pool Covers - RUGGED PROFESSIONAL EDITION */
/* Brand Colors: Rugged Industrial Theme
   Primary: #2D4A3E (Forest Green - rugged, outdoor)
   Secondary: #C45C26 (Rust Orange - industrial strength)
   Accent: #B8860B (Dark Goldenrod/Copper - premium finish)
   Background: #F5F2EB (Stone/Warm Gray)
*/

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto+Condensed:wght@400;700&family=Roboto+Slab:wght@400;700&display=swap');

:root {
  /* Rugged Industrial Palette */
  --primary: #2D4A3E;
  --primary-light: #3D6352;
  --primary-dark: #1E332A;
  --secondary: #C45C26;
  --secondary-light: #D9713F;
  --secondary-dark: #9E4A1D;
  --accent: #B8860B;
  --accent-light: #D4A72D;
  --accent-dark: #8B6508;
  
  /* Neutral tones - warm grays and stone */
  --text-main: #2C2C2C;
  --text-muted: #5A5A5A;
  --bg-light: #F5F2EB;
  --bg-stone: #E8E4DB;
  --bg-slate: #3D3D3D;
  --white: #FAFAF8;
  
  /* Border colors - stronger, more industrial */
  --border-color: #C4C0B6;
  --border-dark: #8A8680;
  
  /* Pico CSS overrides */
  --pico-font-family-sans-serif: 'Roboto Condensed', 'Oswald', 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: 'Roboto Condensed', 'Oswald', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Roboto Slab', sans-serif;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Header & Navigation - Rugged Industrial Style */
header {
  background-color: var(--primary-dark);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid var(--secondary);
}

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: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-left: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

header ul li a {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

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

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

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

/* Diagonal stripe pattern overlay for rugged feel; image set via --hero-bg-image in template (root-relative URL) */
.hero-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}

/* Industrial texture overlay */
.hero-main::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.03) 10px,
    rgba(0, 0, 0, 0.03) 20px
  );
  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.2rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-main p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Buttons - Rugged Industrial Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  border: none;
  /* More angular, less rounded - rugged look */
  border-radius: 3px;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(196, 92, 38, 0.4);
  border-bottom: 3px solid var(--secondary-dark);
}

.btn-primary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196, 92, 38, 0.5);
}

.btn-secondary {
  background-color: var(--primary-light);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(45, 74, 62, 0.4);
  border-bottom: 3px solid var(--primary-dark);
}

.btn-secondary:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 74, 62, 0.5);
}

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

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

/* Sections - Rugged Industrial */
section {
  padding: 5rem 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 3.5rem;
}

.section-tag {
  color: var(--secondary);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Cards - Rugged Industrial Design */
.card {
  background: var(--white);
  /* Less rounded, more angular */
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--secondary);
}

.service-card {
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid var(--secondary);
}

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

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

/* Forms - Rugged Industrial */
input, textarea, select {
  border-radius: 3px !important;
  border: 2px solid var(--border-color) !important;
  padding: 0.75rem 1rem !important;
  font-family: inherit !important;
  color: var(--text-main) !important;
  background-color: var(--white) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.2) !important;
  outline: none;
}

/* Form Status Messages */
.status {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  font-size: 0.875rem;
  display: none;
  font-weight: 500;
}

.status.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  display: block;
}

.status.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
  display: block;
}

.status.loading {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
  display: block;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Footer - Rugged Industrial */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 4rem 1rem 2rem;
  margin-top: 5rem;
  line-height: 1.8;
  border-top: 4px solid var(--secondary);
}

footer h4 {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  border-bottom: 2px solid rgba(184, 134, 11, 0.4);
  display: inline-block;
  padding-bottom: 0.5rem;
}

footer p, footer span, footer li {
  color: var(--white);
  font-weight: 400;
}

footer .flex.justify-between span:first-child {
  color: var(--accent-light);
  font-weight: 600;
}

footer a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 600;
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* 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); }

/* Rugged Section Backgrounds - replace soft grays with stone/warm tones */
.bg-slate-50 {
  background-color: var(--bg-stone) !important;
}

.bg-white {
  background-color: var(--white) !important;
}

/* Industrial badge/ribbon styles */
.industrial-badge {
  display: inline-block;
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  border-left: 4px solid var(--secondary);
}

/* Rugged divider */
.rugged-divider {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0px,
    var(--primary) 10px,
    var(--secondary) 10px,
    var(--secondary) 20px
  );
}

/* Feature icon boxes - industrial style */
.feature-icon-box {
  background: var(--primary-dark);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 2px solid var(--secondary);
  margin: 0 auto 1.5rem;
}

.feature-icon-box svg {
  color: var(--accent);
}

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

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

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

/* Rugged service area cards */
.area-card {
  background: var(--primary-dark);
  border-radius: 4px;
  padding: 1.5rem;
  border-left: 4px solid var(--secondary);
}

.area-card h4 {
  color: var(--accent) !important;
  border: none !important;
  margin-bottom: 1rem !important;
}

.area-card ul li {
  color: var(--white);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

/* Override Pico's default link colors for rugged theme */
a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--secondary);
}
