/* ========================================
   Watauga Systems - Brand-Compliant Styles
   Colors: Navy #253641, Dark Brown #181405,
   Off-White #F4F5F5, Steel Blue #336582,
   Near Black #161314
   Fonts: Merriweather (headings), Source Sans 3 (body)
   ======================================== */

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

:root {
  --navy: #253641;
  --dark-brown: #181405;
  --off-white: #F4F5F5;
  --steel-blue: #336582;
  --near-black: #161314;
  --white: #ffffff;

  --font-display: 'Merriweather', Georgia, 'Palatino', 'Times New Roman', serif;
  --font-body: 'Source Sans 3', Calibri, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

  --container-max: 1200px;
  --section-padding: 6rem 0;
  --border-radius: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--near-black);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.3;
}

h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

a {
  color: var(--steel-blue);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--steel-blue);
  color: var(--white);
  border-color: var(--steel-blue);
}
.btn-primary:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--steel-blue);
  border-color: var(--steel-blue);
}
.btn-outline:hover {
  background-color: var(--steel-blue);
  color: var(--white);
}

.btn-block { width: 100%; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(37, 54, 65, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--steel-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: var(--steel-blue) !important;
  color: var(--white) !important;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: #3d7899 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark-brown) 100%);
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(51,101,130,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(51,101,130,0.2);
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(51,101,130,0.3);
}

.hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero .btn-outline {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.trust-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* --- Sections --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-header h2 {
  margin-bottom: 0.75rem;
}
.section-header p {
  color: #555;
  font-size: 1.1rem;
}

/* --- Services --- */
.services {
  padding: var(--section-padding);
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--off-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.service-card:hover {
  border-color: rgba(51,101,130,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,54,65,0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel-blue);
  font-weight: 600;
}

/* --- Testimonials --- */
.testimonials {
  padding: var(--section-padding);
  background: var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-stars {
  color: #e8a838;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}
.testimonial-author span {
  font-size: 0.85rem;
  color: #888;
}

/* --- Plans --- */
.plans {
  padding: var(--section-padding);
  background: var(--white);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.plan-card {
  background: var(--off-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 2px solid transparent;
  position: relative;
  transition: all var(--transition);
}
.plan-card:hover {
  border-color: rgba(51,101,130,0.2);
}

.plan-featured {
  border-color: var(--steel-blue);
  background: var(--white);
  box-shadow: 0 8px 40px rgba(51,101,130,0.12);
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--steel-blue);
  color: var(--white);
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-badge-new {
  background: var(--navy);
}

.plan-header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.plan-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
}

.price-period {
  font-size: 0.95rem;
  color: #888;
}

.plan-desc {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
}
.plan-features li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.92rem;
  color: #444;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel-blue);
}

/* --- Marketplace --- */
.marketplace {
  padding: var(--section-padding);
  background: var(--navy);
}
.marketplace .section-header h2 { color: var(--white); }
.marketplace .section-header p { color: rgba(255,255,255,0.7); }

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.app-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all var(--transition);
}
.app-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.app-icon {
  width: 48px;
  height: 48px;
  background: var(--steel-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.app-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.app-card h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.app-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.app-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel-blue);
  background: rgba(51,101,130,0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-weight: 600;
}

.marketplace-note {
  text-align: center;
  margin-top: 2.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}
.marketplace-note a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- About --- */
.about {
  padding: var(--section-padding);
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: #444;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.value {
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--steel-blue);
}
.value strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.value span {
  font-size: 0.9rem;
  color: #666;
}

.about-image-placeholder {
  background: var(--navy);
  border-radius: var(--border-radius);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
}
.about-image-placeholder svg {
  width: 80px;
  height: 80px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.5rem;
}
.about-image-placeholder span {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.about-title {
  font-weight: 400 !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  color: rgba(255,255,255,0.7) !important;
  margin-top: 0.25rem;
}

/* --- Tech Tips --- */
.tips {
  padding: var(--section-padding);
  background: var(--white);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tip-card {
  padding: 2rem;
  background: var(--off-white);
  border-radius: var(--border-radius);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.tip-card:hover {
  border-color: rgba(51,101,130,0.15);
  transform: translateY(-2px);
}

.tip-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(51,101,130,0.2);
  margin-bottom: 0.75rem;
}

.tip-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.tip-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Service Area --- */
.service-area {
  padding: 4rem 0;
  background: var(--off-white);
  text-align: center;
}

.area-content h2 {
  margin-bottom: 0.75rem;
}

.area-content > p {
  color: #555;
  margin-bottom: 2rem;
}

.area-cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.area-city {
  background: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid rgba(0,0,0,0.08);
}

.area-home {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.area-note {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}

/* --- Contact --- */
.contact {
  padding: var(--section-padding);
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-method svg {
  width: 24px;
  height: 24px;
  color: var(--steel-blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-method strong {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}
.contact-method a,
.contact-method span {
  font-size: 1rem;
  color: #444;
}
.contact-method a:hover { color: var(--steel-blue); }

.contact-social {
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--off-white);
  border-radius: 50%;
  color: var(--navy);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--navy);
  color: var(--white);
}
.social-link svg {
  width: 20px;
  height: 20px;
}

/* --- Contact Form --- */
.contact-form-wrapper {
  background: var(--off-white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--near-black);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--steel-blue);
  box-shadow: 0 0 0 3px rgba(51,101,130,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-logo .logo-mark {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}
.footer-logo .logo-text {
  font-size: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-address {
  font-size: 0.85rem !important;
  color: rgba(255,255,255,0.5) !important;
}

.footer-links-group h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-links-group ul {
  list-style: none;
}
.footer-links-group li {
  margin-bottom: 0.5rem;
}
.footer-links-group a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links-group a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-featured { transform: none; }
}

@media (max-width: 768px) {
  :root { --section-padding: 4rem 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
  }
  .nav-cta { margin-left: 0 !important; margin-top: 0.5rem; text-align: center; }

  .hero { padding: 8rem 0 4rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1.05rem; }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .trust-divider {
    width: 40px;
    height: 1px;
  }

  .services-grid,
  .testimonials-grid,
  .marketplace-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h2 { font-size: 1.6rem; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* --- Form Success State --- */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--steel-blue);
  margin-bottom: 1.5rem;
}

.form-success h3 {
  margin-bottom: 0.75rem;
}

.form-success p {
  color: #666;
}
