/*
  CloudPally — Brand Direction 01: Quicksand
  Palette: Indigo #0B1F4D | Ocean #1656C9 | Aqua #1ED8DD | Mist #D7F4F6 | White #FFFFFF
  Fonts: Quicksand (Google Fonts) + Inter
*/

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Inter:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* =============================================
   TOKENS
   ============================================= */
:root {
  --indigo:  #0B1F4D;
  --ocean:   #1656C9;
  --aqua:    #1ED8DD;
  --mist:    #D7F4F6;
  --white:   #FFFFFF;
  --grey-50: #F8FAFC;
  --grey-100:#EFF3F9;
  --grey-400:#94A3B8;
  --grey-600:#475569;
  --grey-800:#1E293B;

  --font-display: 'Quicksand', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(11,31,77,.07);
  --shadow-md: 0 6px 24px rgba(11,31,77,.11);
  --shadow-lg: 0 20px 60px rgba(11,31,77,.15);
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--indigo);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { color: var(--ocean); text-decoration: none; transition: color .2s; }
a:hover { color: var(--aqua); }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--indigo);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.625rem); letter-spacing: -.01em; }
h4 { font-size: 1.125rem; }
p  { font-family: var(--font-body); line-height: 1.8; color: var(--grey-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--aqua);
  flex-shrink: 0;
}
.eyebrow.dark { color: var(--ocean); }
.eyebrow.dark::before { background: var(--ocean); }

/* =============================================
   LAYOUT
   ============================================= */
.container      { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1380px; margin: 0 auto; padding: 0 2rem; }

.section        { padding: 6rem 0; }
.section-sm     { padding: 4rem 0; }
.section-lg     { padding: 8rem 0; }

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

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: .75rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }

/* Section headers */
.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { font-size: 1.0625rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--aqua);
  color: var(--indigo);
  border-color: var(--aqua);
}
.btn-primary:hover {
  background: #17c6cb;
  border-color: #17c6cb;
  color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,216,221,.35);
}
.btn-secondary {
  background: var(--white);
  color: var(--indigo);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--mist);
  border-color: var(--mist);
  color: var(--indigo);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn-outline-dark:hover {
  background: var(--indigo);
  color: var(--white);
}
.btn-lg { padding: 1.125rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: .625rem 1.25rem; font-size: .875rem; }
.btn svg { width: 18px; height: 18px; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 1.375rem 0;
  transition: all .35s ease;
}
.nav.scrolled {
  background: rgba(11,31,77,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 0;
  box-shadow: 0 4px 32px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--white);
  letter-spacing: -.01em;
}
.nav-logo-text .cp-accent { color: var(--mist); }
.nav-logo svg { width: 36px; height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  color: rgba(255,255,255,.8);
  transition: color .2s;
  letter-spacing: .01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--aqua); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all .3s;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 99;
  background: var(--indigo);
  padding: 6rem 2rem 3rem;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateY(0); display: block; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 1.5rem;
}
.mobile-menu-links a:last-child { border-bottom: none; }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: var(--indigo);
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22,86,201,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,86,201,.1) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.page-hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.page-hero p  { color: rgba(255,255,255,.7); font-size: 1.125rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--indigo);
  color: rgba(255,255,255,.75);
  padding: 5rem 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1.25rem; }
.footer-brand p {
  color: rgba(255,255,255,.6);
  font-size: .9375rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer-socials { display: flex; gap: .75rem; }
.footer-social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all .2s;
}
.footer-social-link:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}
.footer-col h5 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .75rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.6);
  font-size: .9375rem;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--aqua); }

.footer-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-location {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1 1 240px;
}
.footer-location-tag {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--aqua);
}
.footer-location-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}
.footer-location-address {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
  font-style: normal;
}
.footer-location-phone {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-location-phone:hover { color: var(--aqua); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .875rem; color: rgba(255,255,255,.4); }
.footer-badge {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
}
.footer-badge svg { opacity: .7; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  transition: all .28s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--mist);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 26px; height: 26px; color: var(--ocean); }
.card h3 { font-size: 1.1875rem; margin-bottom: .625rem; }
.card p   { font-size: .9375rem; }

/* Service cards */
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  transition: all .28s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--aqua);
}
.service-card .card-icon { background: var(--mist); }
.service-card h3 { font-size: 1.125rem; margin-bottom: .625rem; }
.service-card p  { font-size: .9375rem; flex: 1; }
.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ocean);
  margin-top: 1.25rem;
  transition: gap .2s;
}
.service-card:hover .learn-more { gap: .625rem; }

/* =============================================
   BADGE / PILL
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .875rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  background: var(--mist);
  color: var(--ocean);
}
.badge-dark { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }

/* =============================================
   DIVIDER
   ============================================= */
.divider {
  width: 64px;
  height: 3px;
  background: var(--aqua);
  border-radius: 2px;
  margin: 1.25rem 0;
}
.divider.center { margin: 1.25rem auto; }

/* =============================================
   FORMS
   ============================================= */
.form-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.form-label {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--indigo);
}
.form-input,
.form-textarea,
.form-select {
  padding: .875rem 1rem;
  border: 1.5px solid var(--grey-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--indigo);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(22,86,201,.1);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--grey-400); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* =============================================
   PARTNERS BAR
   ============================================= */
.partners-bar {
  background: var(--grey-50);
  padding: 2.25rem 0;
  border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
}
.partners-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.partner-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  opacity: .55;
  transition: opacity .2s;
}
.partner-item:hover { opacity: .85; }
.partner-label {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  color: var(--grey-800);
  letter-spacing: .03em;
}

/* =============================================
   STAT BLOCKS
   ============================================= */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; }
.stat-block {
  padding: 2.5rem 2rem;
  text-align: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-number .unit { color: var(--aqua); }
.stat-label {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* =============================================
   ANIMATION UTILITIES
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .7; transform: scale(1.05); }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes dot-pulse {
  0%, 100% { r: 5; opacity: 1; }
  50%       { r: 7; opacity: .7; }
}

.animate-fade-up { animation: fadeInUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* =============================================
   BACKGROUND HELPERS
   ============================================= */
.bg-indigo  { background: var(--indigo); }
.bg-ocean   { background: var(--ocean); }
.bg-mist    { background: var(--mist); }
.bg-white   { background: var(--white); }
.bg-grey    { background: var(--grey-50); }

/* =============================================
   LOCATION CARDS
   ============================================= */
.location-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--aqua);
}
.location-flag {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.location-card .hq-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ocean);
  background: var(--mist);
  padding: .25rem .75rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.location-card h3 { font-size: 1.375rem; margin-bottom: .5rem; }
.location-card address {
  font-style: normal;
  font-size: .9375rem;
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.location-contact a {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  color: var(--ocean);
  margin-bottom: .375rem;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: var(--ocean);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,216,221,.15) 0%, transparent 70%);
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
}
.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-text h2 { color: var(--white); margin-bottom: .875rem; }
.cta-text p  { color: rgba(255,255,255,.75); font-size: 1.0625rem; max-width: 540px; }
.cta-actions { display: flex; gap: 1rem; flex-shrink: 0; }
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-title { color: var(--white); margin-bottom: .875rem; }
.cta-sub {
  color: rgba(255,255,255,.85);
  font-size: 1.0625rem;
  max-width: 540px;
  text-align: center;
  margin-top: .75rem;
}

/* =============================================
   ACCORDION (Services sub-items)
   ============================================= */
.accordion-item {
  border-bottom: 1px solid var(--grey-100);
}
.accordion-btn {
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--indigo);
  text-align: left;
}
.accordion-btn .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.accordion-btn.open .icon {
  background: var(--aqua);
  border-color: var(--aqua);
  transform: rotate(45deg);
}
.accordion-body {
  display: none;
  padding: 0 0 1.25rem;
  font-size: .9375rem;
  color: var(--grey-600);
  line-height: 1.8;
}
.accordion-body.open { display: block; }

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .grid-4  { grid-template-columns: repeat(2,1fr); }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-content, .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-actions .btn { display: none; }
  .hamburger  { display: flex; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

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

  .section    { padding: 4rem 0; }
  .section-lg { padding: 5rem 0; }

  .cta-content, .cta-inner { flex-direction: column; text-align: center; }

  .partners-inner { gap: 2rem; }

  .page-hero { padding: 8rem 0 4rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.625rem; }
}
