/* AquaCare WordPress Theme - Main Styles */

/* ── Color Variables ───────────────────────────────────────────────────────── */
:root {
  --primary-color: #0066cc;
  --secondary-color: #00a8e8;
  --accent-color: #00d4ff;
  --dark-color: #003d7a;
  --light-color: #f0f9ff;
  --white-color: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --box-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --box-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --transition-base: all 0.3s ease-in-out;
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white-color);
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h1 { font-size: clamp(28px, 8vw, 48px); }
h2 { font-size: clamp(24px, 6vw, 40px); }
h3 { font-size: clamp(20px, 5vw, 32px); }

p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}
a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { padding-left: 2rem; }
ul li, ol li { margin-bottom: 1rem; }

/* ── Container ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-outline, .btn {
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
}
.btn-primary:hover {
  background-color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
  text-decoration: none;
  color: var(--white-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
  color: var(--white-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.6rem 1.4rem;
}
.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  text-decoration: none;
}

.btn-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
}
.btn-link:hover { color: var(--secondary-color); }

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  background-color: var(--white-color);
  box-shadow: var(--box-shadow-sm);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}
.navbar-brand:hover { color: var(--secondary-color); text-decoration: none; }

/* WordPress custom-logo inside brand */
.navbar-brand .custom-logo { width: 40px; height: 40px; display: inline-block; }

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar-menu a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: 0.15s ease-in-out;
  text-decoration: none;
}
.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--primary-color);
  text-decoration: none;
}
.navbar-menu a:hover::after,
.navbar-menu a.active::after { width: 100%; }

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

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

  .navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white-color);
    padding: 1.5rem;
    box-shadow: var(--box-shadow-md);
    gap: 1.5rem;
  }
  .navbar-menu.active { display: flex; }
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white-color);
  padding: 4rem 1.5rem;
  text-align: center;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (max-width: 768px) {
  .hero { min-height: 400px; padding: 3rem 1.5rem; }
}
.hero h1 { color: var(--white-color); margin-bottom: 1.5rem; font-weight: 800; }
.hero h2 { color: var(--white-color); }
.hero p  { color: rgba(255, 255, 255, 0.95); font-size: 18px; margin-bottom: 2rem; max-width: 600px; }

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-outline { width: 100%; max-width: 300px; }
}

/* ── Section Utilities ─────────────────────────────────────────────────────── */
.section-padding { padding: 4rem 0; }
@media (max-width: 768px) { .section-padding { padding: 3rem 0; } }

.bg-light { background-color: var(--light-color); }
.bg-dark  { background-color: var(--dark-color); color: var(--white-color); }
.bg-dark h2 { color: var(--white-color); }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: #999 !important; }

.mt   { margin-top: 2rem; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb   { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem !important; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ── Cards Grid ────────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
@media (max-width: 768px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: var(--box-shadow-sm);
  padding: 2rem;
  transition: var(--transition-base);
  text-align: center;
}
.card:hover { box-shadow: var(--box-shadow-md); transform: translateY(-4px); }

.card-body { padding: 1.5rem; }
.card-img-top { width: 100%; border-radius: 12px 12px 0 0; }

.card-icon {
  font-size: 48px;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}
.card h3 { margin-bottom: 1rem; }
.card p  { margin-bottom: 1.5rem; }

/* ── Feature Section ───────────────────────────────────────────────────────── */
.feature-section {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 168, 232, 0.05) 100%);
  padding: 4rem 1.5rem;
  border-radius: 12px;
  margin: 4rem 0;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.feature-item     { display: flex; gap: 1.5rem; }
.feature-icon     { font-size: 28px; color: var(--primary-color); flex-shrink: 0; }
.feature-content h4 { margin-bottom: 0.5rem; color: var(--text-dark); font-size: 16px; }
.feature-content p  { margin: 0; font-size: 14px; }

/* ── Services Grid ─────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: var(--box-shadow-sm);
  padding: 2rem;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition-base);
}
.service-card:hover { box-shadow: var(--box-shadow-md); transform: translateY(-4px); }
.service-card h3 { color: var(--primary-color); }

/* ── Products Grid ─────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: var(--box-shadow-sm);
  overflow: hidden;
  transition: var(--transition-base);
}
.product-card:hover { box-shadow: var(--box-shadow-md); transform: translateY(-4px); }

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--light-color) 0%, var(--primary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }

/* Inner body area for product cards */
.product-card-body {
  padding: 1.5rem;
}
.product-card-body h3  { margin-bottom: 1rem; color: var(--primary-color); }
.product-card-body p   { margin-bottom: 1rem; }
.product-card-body .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* ── Contact Form ──────────────────────────────────────────────────────────── */
.contact-form { max-width: 600px; margin: 4rem auto; }

.form-group { margin-bottom: 2rem; }
.form-group label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition-base);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.submit-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  font-size: 16px;
  padding: 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}
.submit-btn:hover {
  background-color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

/* ── Testimonials ──────────────────────────────────────────────────────────── */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}
@media (max-width: 768px) { .testimonials-container { grid-template-columns: 1fr; } }

.testimonial {
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: var(--box-shadow-sm);
  padding: 2rem;
  border-top: 3px solid var(--primary-color);
  transition: var(--transition-base);
}
.testimonial:hover { box-shadow: var(--box-shadow-md); transform: translateY(-4px); }
.testimonial-text   { font-style: italic; margin-bottom: 1.5rem; color: var(--text-light); }
.testimonial-author { font-weight: 600; color: var(--text-dark); }

/* ── About Section ─────────────────────────────────────────────────────────── */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) { .about-section { grid-template-columns: 1fr; } }
.about-section img { border-radius: 12px; box-shadow: var(--box-shadow-lg); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (max-width: 768px) { .footer-content { grid-template-columns: 1fr; } }

.footer-section h3    { color: var(--accent-color); margin-bottom: 1.5rem; font-size: 18px; }
.footer-section ul    { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 1rem; }
.footer-section ul li a { color: #ccc; transition: var(--transition-base); }
.footer-section ul li a:hover { color: var(--accent-color); text-decoration: none; }
.footer-section p     { color: #ccc; font-size: 14px; margin-bottom: 1rem; }

.social-links { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white-color);
  transition: var(--transition-base);
  text-decoration: none;
}
.social-links a:hover { background-color: var(--primary-color); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}
.footer-bottom p { color: #aaa; margin-bottom: 0; }

/* ── Accordion ─────────────────────────────────────────────────────────────── */
.accordion-item { border: 1px solid #ddd; margin-bottom: 1rem; border-radius: 8px; }
.accordion-button {
  padding: 1.5rem;
  background-color: var(--white-color);
  color: var(--text-dark);
  border: none;
  font-weight: 500;
  text-decoration: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.accordion-button:hover { background-color: var(--light-color); }
.accordion-button.collapsed::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230066cc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
.accordion-body { padding: 1.5rem; color: var(--text-light); }

/* ── Table ─────────────────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table td { padding: 1rem; border-bottom: 1px solid #eee; }
.table tr:last-child td { border-bottom: none; }
.table-borderless td { border: none; }

/* ── WordPress Pagination ──────────────────────────────────────────────────── */
.nav-links { display: flex; gap: 1rem; justify-content: center; }
.nav-links a,
.nav-links span {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: var(--primary-color);
  transition: var(--transition-base);
}
.nav-links a:hover { background: var(--primary-color); color: white; text-decoration: none; }
.nav-links .current { background: var(--primary-color); color: white; }

/* ── Screen Reader ─────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ── Print ─────────────────────────────────────────────────────────────────── */
@media print {
  .navbar, footer, .cta-buttons { display: none; }
}
