/* 
 * 204 Web Hosting - Main Stylesheet
 * 
 * ThemeForest Standards: W3C valid, responsive, modular.
 * Aesthetics: Modern, clean, conversion-optimized, WHC.ca inspired.
 * Accessibility: WCAG 2.1 AA compliant color contrasts.
 */

/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
  /* Colors */
  --primary-color: #0d47a1;
  /* Deep Trust Blue */
  --primary-hover: #1565c0;
  --secondary-color: #f7931e;
  /* Conversion Orange (WHC inspired) */
  --secondary-hover: #f57f17;
  --accent-color: #00b0ff;
  /* Light Accent Blue */

  --text-primary: #333333;
  --text-secondary: #555555;
  --text-light: #ffffff;

  --bg-color: #ffffff;
  --bg-alt: #f4f7f6;
  /* Very light blue-grey for alternate sections */
  --bg-dark: #1e1e1e;

  --border-color: #e0e0e0;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container-width: 1200px;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

.btn:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #1a1a1a;
  border-color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary-color);
}

.main-nav {
  display: flex;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-primary);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  position: relative;
  transition: var(--transition-speed);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  left: 0;
  transition: var(--transition-speed);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d40 100%);
  color: var(--text-light);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero p {
  color: #e0f2f1;
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
  padding: 80px 0;
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-color);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: transform var(--transition-speed) ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.feature-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  transition: all var(--transition-speed) ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.pricing-card.popular {
  border: 2px solid var(--secondary-color);
  transform: scale(1.05);
  /* slightly larger to stand out */
  box-shadow: var(--box-shadow);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.plan-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-style: italic;
}

.plan-features {
  text-align: left;
  margin-bottom: 40px;
  flex-grow: 1;
  /* Pushes the button to the bottom */
}

.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: '\2713';
  /* Checkmark */
  color: #4caf50;
  font-weight: bold;
}

/* ==========================================================================
   Special Offer Section
   ========================================================================== */
.special-offer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0;
}

.special-offer h2 {
  color: var(--text-light);
}

.special-offer-content {
  display: flex;
  align-items: center;
  gap: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.offer-details {
  flex: 2;
}

.offer-details p {
  color: #e0f2f1;
}

.offer-details ul {
  margin: 20px 0;
}

.offer-details li {
  margin-bottom: 10px;
  display: flex;
  align-items: start;
  gap: 8px;
}

.offer-details li::before {
  content: '\2713';
  color: var(--secondary-color);
  font-weight: bold;
}

.offer-price {
  flex: 1;
  text-align: center;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 40px;
  color: var(--text-primary);
}

.offer-price h3 {
  margin-bottom: 10px;
}

.offer-price .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.offer-price span {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 20px 0;
}

.site-footer h4 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-speed) ease;
    z-index: -1;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    z-index: 1000;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hamburger.active {
    background-color: transparent;
  }

  .hamburger.active::before {
    transform: rotate(45deg);
    top: 0;
  }

  .hamburger.active::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .special-offer-content {
    flex-direction: column;
    gap: 30px;
  }

  .offer-price {
    width: 100%;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }
}

/* ==========================================================================
   Legal Pages (Terms & Privacy) Specific
   ========================================================================== */
.legal-content {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 10px;
  text-align: center;
}

.legal-meta {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-style: italic;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: 25px;
}

.legal-content p {
  margin-bottom: 15px;
  color: var(--text-primary);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 10px;
}

.text-danger {
  color: #d32f2f;
  font-weight: 600;
}


/* ==========================================================================
   Forms & Contact
   ========================================================================== */
.contact-form-container {
  background-color: var(--bg-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-color);
  transition: border-color var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
/* ==========================================================================
   Modern Modal Popup (Adapted from zieglerbox.space)
   ========================================================================== */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.contact-modal.active {
  opacity: 1;
  pointer-events: all;
}

.contact-modal-content {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px; 
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.contact-modal.active .contact-modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
  z-index: 20;
}

.modal-close:hover {
  background: var(--bg-alt);
  color: var(--primary-color);
  transform: rotate(90deg);
}
