/*
Theme Name: Cloud Source
Theme URI: https://www.cloudsource.com.mx/
Author: Cloud Source
Author URI: https://www.cloudsource.com.mx/
Description: A responsive WordPress theme for Cloud Source enterprise infrastructure, private cloud, networking and data center services.
Version: 1.0.0
Text Domain: cloud-source
*/

:root {
  --ink: #0d141a;
  --muted: #59636b;
  --line: #dfe4e7;
  --paper: #ffffff;
  --soft: #f5f8f8;
  --green: #31a050;
  --green-dark: #19713b;
  --blue: #0c6570;
  --cream: #f2f1e6;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(13, 20, 26, 0.10);
  --content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--green-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.container {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: var(--green);
  content: "";
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Rubik", Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.9rem, 6vw, 5.7rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 10px 22px rgba(25, 113, 59, 0.2);
  transform: translateY(-2px);
}

.button--outline {
  border-color: rgba(13, 20, 26, 0.22);
  background: transparent;
  color: var(--ink);
}

.button--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.button--light {
  background: #fff;
  color: var(--ink);
}

.button--light:hover {
  background: var(--cream);
  color: var(--ink);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(13, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-brand img {
  width: 178px;
  height: auto;
}

.site-brand .custom-logo {
  width: 178px;
  height: auto;
}

.site-brand--text {
  font-family: "Rubik", sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-navigation ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navigation a {
  color: #3f494f;
  font-size: 0.93rem;
  font-weight: 700;
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a {
  color: var(--green-dark);
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
}

.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
}

.mobile-menu-toggle span::before {
  transform: translateY(-6px);
}

.mobile-menu-toggle span::after {
  transform: translateY(4px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 110px 0 96px;
  background:
    linear-gradient(105deg, rgba(13, 20, 26, 0.92) 0%, rgba(13, 20, 26, 0.78) 48%, rgba(13, 20, 26, 0.32) 100%),
    url("assets/cloud-source-office.jpeg") center / cover;
}

.hero::after {
  position: absolute;
  right: -8%;
  bottom: -20%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.04), 0 0 0 140px rgba(255, 255, 255, 0.03);
  content: "";
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero .lead {
  color: #fff;
}

.hero .lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
}

.hero .eyebrow {
  color: #a8e0b4;
}

.hero .button--outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .button--outline:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 54px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-note span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ed28d;
  content: "";
}

.brand-strip {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.brand-strip-inner {
  display: flex;
  min-height: 82px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  color: var(--ink);
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.section {
  padding: 110px 0;
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.section--dark h2,
.section--dark h3,
.section--dark .eyebrow {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}

.split--reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  min-height: 440px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.media-tag {
  position: absolute;
  right: -18px;
  bottom: 28px;
  max-width: 230px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 15px 30px rgba(25, 113, 59, 0.25);
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(49, 160, 80, 0.14);
  content: "";
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 48px;
}

.section-heading .lead {
  max-width: 470px;
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
  border-color: rgba(49, 160, 80, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.service-card p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border-radius: 14px;
  background: #e5f4e8;
  color: var(--green-dark);
  font-family: "Rubik", sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
}

.service-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.stat {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
}

.stat strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green-dark);
  font-family: "Rubik", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.quote {
  max-width: 890px;
  margin-inline: auto;
  text-align: center;
}

.quote-mark {
  display: block;
  margin-bottom: 18px;
  color: #8bd49a;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.8;
}

.quote p {
  margin-bottom: 25px;
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: clamp(1.7rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.quote small {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.page-hero {
  padding: 90px 0 84px;
  background: var(--cream);
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.page-hero .lead {
  margin-top: 24px;
}

.service-list {
  display: grid;
  gap: 20px;
}

.service-panel {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-panel-number {
  color: var(--green);
  font-family: "Rubik", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
}

.service-panel h2 {
  margin-bottom: 15px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.service-panel p {
  max-width: 780px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 38px;
}

.faq-list details {
  padding: 21px 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.faq-list details p {
  margin: 18px 0 0;
  color: var(--muted);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 50px;
}

.pillar {
  padding: 25px;
  border-radius: 18px;
  background: var(--soft);
}

.pillar h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 80px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.contact-detail {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.contact-detail span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-detail strong {
  font-size: 1.05rem;
}

.contact-form {
  padding: clamp(25px, 4vw, 42px);
  border-radius: var(--radius);
  background: var(--soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(49, 160, 80, 0.13);
}

.form-notice {
  margin-bottom: 20px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #e5f4e8;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  margin: 44px 0 15px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 22px;
}

.cta-band {
  padding: 80px 0;
  background: var(--green);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band p {
  max-width: 650px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  padding: 72px 0 25px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 45px;
  padding-bottom: 54px;
}

.footer-brand img {
  width: 190px;
  margin-bottom: 20px;
  filter: invert(1);
}

.footer-brand p {
  max-width: 350px;
}

.site-footer h3 {
  margin-bottom: 17px;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.footer-menu,
.footer-social {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a,
.footer-social a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.footer-menu a:hover,
.footer-social a:hover {
  color: #fff;
}

.footer-subscribe {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.footer-subscribe input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  padding: 11px 12px;
  color: #fff;
}

.footer-subscribe .button {
  min-height: 44px;
  padding-inline: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.83rem;
}

@media (max-width: 900px) {
  .site-navigation {
    gap: 16px;
  }

  .site-navigation ul {
    gap: 14px;
  }

  .site-navigation .button {
    display: none;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-media {
    order: initial;
  }

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

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 34px), var(--content));
  }

  .header-inner {
    min-height: 74px;
  }

  .site-brand img {
    width: 150px;
  }

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

  .site-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 17px;
    left: 17px;
    display: none;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-navigation.is-open {
    display: block;
  }

  .site-navigation ul {
    display: grid;
    gap: 0;
  }

  .site-navigation li {
    border-bottom: 1px solid var(--line);
  }

  .site-navigation li:last-child {
    border-bottom: 0;
  }

  .site-navigation a {
    display: block;
    padding: 12px 5px;
  }

  .hero {
    min-height: 620px;
    padding: 80px 0 70px;
  }

  .hero::after {
    right: -35%;
    width: 300px;
    height: 300px;
  }

  .brand-strip-inner,
  .section-heading,
  .cta-band-inner,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 75px 0;
  }

  .split-media img {
    min-height: 300px;
  }

  .media-tag {
    right: 10px;
  }

  .card-grid,
  .stat-grid,
  .pillar-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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