/*
Theme Name: Simple Hosting Maintenance
Theme URI: https://example.com/
Author: ChatGPT
Description: A simple one-page WordPress theme for hosting, backups, updates, and malware cleanup services.
Version: 1.1.5
License: GPLv2 or later
Text Domain: simple-hosting-maintenance
*/

:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-soft: #1f2937;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #38bdf8;
  --accent-dark: #0284c7;
  --white: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  padding: 22px 0;
  background: rgba(15, 23, 42, 0.92);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.logo img,
.logo .custom-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 54px;
}
.nav,
.nav-menu {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 15px;
}
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover { color: var(--white); }

.mobile-menu-toggle {
  display: none;
}
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #082f49;
  text-decoration: none;
  font-weight: 800;
  border: none;
}
.btn:hover { background: #7dd3fc; }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
}
.hero {
  padding: 90px 0 70px;
  background: radial-gradient(circle at top right, rgba(56,189,248,0.25), transparent 34%), var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}
h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin: 14px 0 20px;
}
.hero p {
  font-size: 20px;
  color: var(--muted);
  max-width: 640px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.3);
}
.hero-card h2 { margin-top: 0; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  padding: 10px 0 10px 34px;
  position: relative;
  color: var(--muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--accent);
  font-weight: 900;
}
.section {
  padding: 70px 0;
}
.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.section-title h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 12px;
}
.section-title p { color: var(--muted); margin: 0; }
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 24px;
}
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(56,189,248,0.13);
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 18px;
}
.service-card h3 { margin: 0 0 10px; }
.service-card p { color: var(--muted); margin: 0; }
.pricing {
  background: #020617;
}
.price-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 26px;
  padding: 34px;
  text-align: center;
}
.price {
  font-size: 46px;
  font-weight: 900;
  margin: 12px 0;
}
.price small { font-size: 17px; color: var(--muted); font-weight: 600; }
.contact-box {
  background: linear-gradient(135deg, var(--accent-dark), #0f172a);
  border-radius: 28px;
  padding: 42px;
  text-align: center;
}
.contact-box h2 { margin-top: 0; font-size: 36px; }
.contact-box p { color: #e0f2fe; }

/* Contact form shortcode layout guard. Keeps third-party form plugins from overflowing or breaking the contact box. */
.contact-form-shortcode {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: left;
}
.contact-form-shortcode form,
.contact-form-shortcode .wpcf7,
.contact-form-shortcode .wpforms-container,
.contact-form-shortcode .gform_wrapper {
  max-width: 100%;
  margin: 0 auto;
}
.contact-form-shortcode input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.contact-form-shortcode textarea,
.contact-form-shortcode select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255,255,255,0.96);
  color: #0f172a;
}
.contact-form-shortcode textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-form-shortcode label,
.contact-form-shortcode .wpforms-field-label,
.contact-form-shortcode .gfield_label {
  color: #ffffff;
  font-weight: 700;
}
.contact-form-shortcode input[type=submit],
.contact-form-shortcode button[type=submit],
.contact-form-shortcode .wpforms-submit,
.contact-form-shortcode .gform_button {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
}
.contact-form-shortcode p {
  color: #ffffff;
}
.site-footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
@media (max-width: 900px) {
  .hero-grid, .services { grid-template-columns: 1fr; }
  .nav { display: none; }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 26px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-card h3 {
  margin: 4px 0 0;
  font-size: 26px;
}
.plan-card p {
  color: var(--muted);
  margin: 0;
}
.plan-card .btn {
  text-align: center;
  margin-top: auto;
}
.featured-plan {
  border-color: rgba(56,189,248,0.55);
  box-shadow: 0 22px 70px rgba(56,189,248,0.16);
  transform: translateY(-10px);
}
.extras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.extra-item {
  background: var(--panel-soft);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.extra-item span {
  color: var(--muted);
}
@media (max-width: 900px) {
  .pricing-grid, .extras-grid { grid-template-columns: 1fr; }
  .featured-plan { transform: none; }
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-logo {
  width: 110px;
  height: auto;
  background: var(--white);
  border-radius: 10px;
  padding: 5px 8px;
}
@media (max-width: 720px) {
  .logo img, .logo .custom-logo { max-width: 150px; max-height: 46px; }
}


.service-card p:last-child { margin-bottom: 0; }
.service-card a { color: var(--accent); }

/* Center three-card sections without changing the existing global card layout. */
#why-choose .services,
#testimonials .services {
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
}

@media (max-width: 900px) {
  #why-choose .services,
  #testimonials .services {
    grid-template-columns: 1fr;
  }
}

/* Mobile usability fixes: keep desktop design intact, stop the header covering anchor targets, and make menus usable on small screens. */
html {
  scroll-padding-top: 100px;
}

.section,
.hero,
#services,
#pricing,
#why-choose,
#testimonials,
#contact,
#privacy,
#terms {
  scroll-margin-top: 100px;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 165px;
  }

  .site-header {
    position: sticky;
    top: 0;
    padding: 14px 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .nav {
    display: block;
    width: 100%;
  }

  .nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    font-size: 14px;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav a {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
  }

  .hero {
    padding: 52px 0 48px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .contact-box .btn {
    text-align: center;
  }

  .section,
  .section[id] {
    scroll-margin-top: 165px;
  }

  .contact-box {
    padding: 30px 20px;
  }

  .contact-box h2 {
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .logo img,
  .logo .custom-logo {
    max-width: 138px;
    max-height: 42px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-card,
  .price-card,
  .plan-card,
  .service-card {
    border-radius: 20px;
    padding: 22px;
  }

  .hero-actions,
  .contact-box p:last-child {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}


/* Compact mobile sticky header with hamburger menu. Desktop header/menu is unchanged. */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 82px;
  }

  .site-header {
    padding: 8px 0;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: relative;
  }

  .logo {
    padding: 4px 7px;
    border-radius: 10px;
  }

  .logo img,
  .logo .custom-logo {
    max-width: 128px;
    max-height: 36px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 18px 45px rgba(0,0,0,0.3);
  }

  .site-header.menu-open .nav {
    display: block;
  }

  .nav-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 14px;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    text-align: center;
  }

  .section,
  .section[id] {
    scroll-margin-top: 82px;
  }

  .hero {
    padding-top: 44px;
  }
}

@media (max-width: 520px) {
  .logo img,
  .logo .custom-logo {
    max-width: 118px;
    max-height: 34px;
  }
}
