/* =========================================================
   CloudSize Technologies — UHNW Premium Theme
   ========================================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Design Tokens ---- */
:root {
  --navy:       #0b1628;
  --navy-mid:   #132240;
  --navy-light: #1e3260;
  --gold:       #b8975a;
  --gold-light: #d4b47a;
  --cream:      #f8f5ef;
  --cream-dark: #ede8de;
  --white:      #ffffff;
  --text-muted: #8a8a9a;
  --text-body:  #3a3a4a;
  --shadow-lg:  0 24px 64px rgba(11,22,40,.18);
  --shadow-md:  0 8px 32px rgba(11,22,40,.12);
  --radius:     4px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p { line-height: 1.75; }

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

/* ---- Utility ---- */
.text-gold     { color: var(--gold); }
.text-navy     { color: var(--navy); }
.bg-navy       { background: var(--navy); }
.bg-cream      { background: var(--cream); }
.divider-gold  { width: 56px; height: 2px; background: var(--gold); margin: 0 auto 1.5rem; }
.divider-gold.left { margin-left: 0; }

/* =========================================================
   NAVBAR
   ========================================================= */
.cst-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 76px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.cst-nav.scrolled {
  background: rgba(11,22,40,.97);
  box-shadow: 0 2px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
}

.cst-nav .nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cst-nav .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.cst-nav .brand span { color: var(--gold); }

.cst-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0; padding: 0;
}

.cst-nav .nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}

.cst-nav .nav-links a:hover { color: var(--gold); }

.cst-nav .nav-cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy) !important;
  background: var(--gold);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.cst-nav .nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.cst-nav .nav-phone {
  color: rgba(255,255,255,.6);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Mobile hamburger */
.cst-nav .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.cst-nav .hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* =========================================================
   HERO
   ========================================================= */
.cst-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.cst-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url(../img/bg/bg1.jpg);
  background-size: cover;
  background-position: center;
  filter: brightness(0.22);
}

.cst-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,22,40,.85) 0%, rgba(19,34,64,.6) 100%);
}

/* Gold accent lines */
.cst-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, transparent 100%);
  opacity: 0.7;
}

.cst-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.cst-hero .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cst-hero .eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.cst-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--white);
  max-width: 720px;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.cst-hero h1 em { color: var(--gold); font-style: italic; }

.cst-hero .hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.cst-hero .hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-gold {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 1rem 2.2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid var(--gold);
}

.btn-primary-gold:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,151,90,.35);
}

.btn-outline-light {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  padding: 1rem 2.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.35);
  transition: all var(--transition);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
  color: var(--white);
  transform: translateY(-2px);
}

.cst-hero .hero-stats {
  margin-top: 5rem;
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-stat .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat .stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* =========================================================
   SECTION SCAFFOLD
   ========================================================= */
.cst-section {
  padding: 7rem 0;
}

.cst-section .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cst-section .section-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.cst-section .section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.cst-section .section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
}

/* =========================================================
   ABOUT / PHILOSOPHY
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text .section-lead { max-width: 100%; }

.about-text blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.7;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  margin-top: 2px;
}

.pillar-icon .fa { font-size: 1rem; color: var(--gold); }

.pillar-body h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}

.pillar-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-bg {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.services-bg::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,151,90,.06) 0%, transparent 70%);
  pointer-events: none;
}

.services-bg .section-title { color: var(--white); }
.services-bg .section-lead  { color: rgba(255,255,255,.55); }

.services-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  overflow: hidden;
}

.service-card {
  background: var(--navy-mid);
  padding: 2.5rem 2.25rem;
  transition: background var(--transition);
  position: relative;
}

.service-card:hover { background: var(--navy-light); }

.service-card .svc-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px);
  margin-bottom: 1.75rem;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.service-card:hover .svc-img { opacity: 0.9; }

.service-card .svc-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(184,151,90,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.service-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
  font-family: 'Inter', sans-serif;
}

.service-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.52);
  line-height: 1.75;
  margin: 0;
}

.service-card .svc-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

/* =========================================================
   SECURITY DEEP DIVE
   ========================================================= */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.security-sidebar {
  position: sticky;
  top: 100px;
}

.security-sidebar .section-title { font-size: 2rem; }

.security-items {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.security-item {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--cream-dark);
}

.security-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.security-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.security-item h4::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.security-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* =========================================================
   EXPERTISE / WHY US
   ========================================================= */
.expertise-bg { background: var(--cream); }

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

.expertise-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.expertise-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.expertise-card .exp-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  border: 1px solid var(--cream-dark);
}

.expertise-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.expertise-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* =========================================================
   CLIENTELE BAND
   ========================================================= */
.clientele-band {
  background: var(--navy-mid);
  padding: 3.5rem 0;
}

.clientele-band .band-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.clientele-band .band-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
}

.clientele-band .band-items {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.clientele-band .band-item {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section {
  background: var(--navy);
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, transparent 100%);
  opacity: 0.5;
}

.contact-section .section-title { color: var(--white); }
.contact-section .section-lead  { color: rgba(255,255,255,.55); }

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

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form .form-group { margin-bottom: 1rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,.3);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.08);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form .btn-submit {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.contact-form .btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184,151,90,.3);
}

.contact-form .alert-success {
  background: rgba(184,151,90,.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  display: none;
}

.contact-info {
  padding-top: 0.5rem;
}

.contact-info .info-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
  display: block;
}

.contact-info .info-value {
  font-size: 0.95rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-info .info-value a {
  color: rgba(255,255,255,.8);
}

.contact-info .info-value a:hover { color: var(--gold); }

.contact-info .disc-note {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
}

.contact-info .disc-note p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

/* =========================================================
   FOOTER
   ========================================================= */
.cst-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 2.5rem 2rem;
}

.cst-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cst-footer .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  font-weight: 400;
}

.cst-footer .brand span { color: var(--gold); }

.cst-footer .copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,.3);
  letter-spacing: 0.04em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .cst-nav .nav-links,
  .cst-nav .nav-phone { display: none; }

  .cst-nav .hamburger { display: flex; }

  .about-grid,
  .security-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .security-sidebar { position: static; }

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

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

  .cst-hero .hero-stats { gap: 2rem; }
}

@media (max-width: 640px) {
  .cst-section { padding: 5rem 0; }

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

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

  .cst-hero h1 { font-size: 2rem; }
}

/* =========================================================
   OVERRIDE framework defaults that conflict
   ========================================================= */
.main-content { margin-top: 0; padding-top: 0; }

/* Ensure our nav supersedes .navbar */
.cst-nav ~ * { /* no conflict */ }
