/* =========================================================
   CloudManagePro Website Styles
   This file controls layout, spacing, colors, buttons, cards,
   footer, responsive design, and the contact popup modal.
   ========================================================= */


/* =========================================================
   1. Design tokens / global colors
   ========================================================= */
:root {
  --bg: #f6f9ff;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --text: #142033;
  --muted: #5d6b82;
  --line: #dde8f7;
  --primary: #0f6bff;
  --primary-dark: #084bc1;
  --accent: #00a7a7;
  --shadow: 0 24px 70px rgba(15, 45, 90, 0.12);
  --radius: 24px;
}


/* =========================================================
   2. Base reset / default page behavior
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 107, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(0, 167, 167, 0.14), transparent 24rem),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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


/* =========================================================
   3. Shared layout helper
   ========================================================= */
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}


/* =========================================================
   4. Header / navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 232, 247, 0.8);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 650;
}

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

.nav-cta {
  color: #fff !important;
  background: var(--primary);
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(15, 107, 255, 0.22);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 99px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}


/* =========================================================
   5. Typography
   ========================================================= */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  max-width: 650px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}


/* =========================================================
   6. Buttons
   ========================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 40px rgba(15, 107, 255, 0.28);
}

.button.secondary {
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
}


/* =========================================================
   7. Hero section
   ========================================================= */
.hero {
  padding: 40px 0 25px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 30px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-card,
.image-panel,
.contact-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(221, 232, 247, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 18px;
}

.hero-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

/* Moves the hero image slightly higher on desktop */
@media (min-width: 901px) {
  .hero-grid .hero-card {
    margin-top: -80px;
  }
}


/* =========================================================
   8. Shared section spacing
   ========================================================= */
.section {
  padding: 78px 0;
}

.intro {
  padding-top: 20px;
  padding-bottom: 30px;
}

#services {
  padding-top: 25px;
}

section#services.section {
  padding-bottom: 35px;
  margin-bottom: 0;
}

section#healthcare.section {
  padding-top: 30px;
  padding-bottom: 25px;
  margin-top: 0;
}

section#process.section {
  padding-top: 25px;
  padding-bottom: 10px;
  margin-top: 0;
}

section#contact.section {
  padding-top: 20px;
}

.intro-grid,
.healthcare-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: center;
}

.intro p,
.healthcare p,
.card p,
.step p,
.contact p,
.footer p {
  color: var(--muted);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}


/* =========================================================
   9. Services cards
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 40px rgba(25, 55, 100, 0.06);
}

.card img {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
}


/* =========================================================
   10. Healthcare IT section
   ========================================================= */
.healthcare {
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.75), rgba(246, 249, 255, 0));
}

.image-panel {
  padding: 24px;
}

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
  font-weight: 650;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
}


/* =========================================================
   11. Process section
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #fff;
  background: var(--primary);
  font-weight: 850;
  margin-bottom: 20px;
}


/* =========================================================
   12. Contact call-to-action card
   ========================================================= */
.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.1), rgba(0, 167, 167, 0.1)),
    #fff;
}

/* Contact section action rows with footer-style icons */
.contact-actions-stacked {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.contact-link-button {
  justify-content: flex-start;
  gap: 12px;
  min-width: 320px;
}

.contact-action-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(15, 107, 255, 0.35);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-link-button.primary .contact-action-icon {
  background: rgba(255, 255, 255, 0.24);
}

.contact-link-button.secondary .contact-action-icon {
  background: rgba(15, 107, 255, 0.35);
}


/* =========================================================
   13. Footer section
   ========================================================= */
.footer {
  padding: 56px 0 26px;
  background: #0d1728;
  color: #dce8f8;
}

.footer .container {
  width: min(1320px, calc(100% - 80px));
}

.footer-grid {
  display: grid;
  grid-template-columns: 330px 1fr 300px;
  gap: 40px;
  align-items: start;
}

.footer strong {
  display: block;
  color: #fff;
  margin-bottom: 12px;
}

.footer a {
  color: #b9c8dc;
}

.footer a:hover {
  color: #fff;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  flex: 0 0 46px;
}

.footer-brand span {
  display: inline-block;
  white-space: nowrap;
}

.footer-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 18px 28px;
}

.footer-service-grid a {
  white-space: nowrap;
  line-height: 1.25;
  margin: 0;
  font-size: 0.95rem;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  margin: 12px 0;
}

.footer-contact-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: rgba(15, 107, 255, 0.35);
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #aab8cc;
  font-size: 0.92rem;
}


/* Footer social icon buttons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #9aa8bd;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  fill: currentColor;
  display: block;
}

.footer-social a:hover {
  background: #0f6bff;
  border-color: #0f6bff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 107, 255, 0.35);
}


/* =========================================================
   14. Contact popup modal
   ========================================================= */
#contactModal.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#contactModal.contact-modal.open {
  display: flex;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 23, 40, 0.65);
  backdrop-filter: blur(8px);
}

.contact-modal-card {
  position: relative;
  width: min(560px, 100%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(13, 23, 40, 0.28);
  padding: 34px;
  z-index: 1;
}

.contact-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef3fb;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-close:hover {
  background: #dfe9f8;
}

.contact-modal-text {
  color: var(--muted);
  margin-bottom: 22px;
}

.contact-modal form {
  display: grid;
  gap: 14px;
}

.contact-modal label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 750;
}

.contact-modal input,
.contact-modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #f8fbff;
  outline: none;
}

.contact-modal input:focus,
.contact-modal textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 107, 255, 0.12);
}

.contact-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  margin-top: 8px;
}

body.modal-open {
  overflow: hidden;
}


/* =========================================================
   15. Tablet layout
   ========================================================= */
@media (max-width: 900px) {
  .nav-menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .intro-grid,
  .healthcare-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid .hero-card {
    margin-top: 0;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer .container {
    width: min(1120px, calc(100% - 40px));
  }

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

  .footer-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-service-grid a {
    white-space: normal;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}


/* =========================================================
   16. Mobile layout
   ========================================================= */
@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 54px;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer-service-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .contact-link-button {
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .contact-modal-card {
    padding: 26px;
  }
}
/* Final clean contact section layout */
.contact-card {
  display: grid !important;
  grid-template-columns: 1fr 0.72fr !important;
  gap: 48px !important;
  align-items: center !important;
  padding: clamp(34px, 5vw, 56px) !important;
}

.contact-copy h2 {
  font-size: clamp(2.2rem, 4.5vw, 4rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
  margin-bottom: 18px !important;
}

.contact-copy p {
  color: var(--muted) !important;
  font-size: 1.05rem !important;
}

.contact-action-list {
  display: grid !important;
  gap: 16px !important;
  min-width: 360px !important;
}

.contact-row-button {
  width: 100% !important;
  min-height: 62px !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  border-radius: 999px !important;
  padding: 14px 22px !important;
  font-weight: 850 !important;
}

.contact-row-button .footer-contact-icon {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
}

.contact-arrow {
  margin-left: auto !important;
  font-size: 1.8rem !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}

@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr !important;
  }

  .contact-action-list {
    min-width: 0 !important;
    width: 100% !important;
  }
}
