/* ---------------------------------------------
   UpMore.today — brand palette & base styles
   --------------------------------------------- */

:root {
  --blue: #01579B;
  --navy: #173447;
  --gold: #FBC300;
  --sky: #36A0D7;
  --teal: #00C095;
  --ink: #1A1A1A;
  --gray: #333333;
  --gray-mid: #9D9D9D;
  --gray-light: #EDEDED;
  --white: #FFFFFF;

  --font: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(23, 52, 71, 0.10);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--gray);
  line-height: 1.65;
  background: var(--white);
}

h1, h2, h3 {
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.container.narrow {
  width: min(760px, 92%);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-icon {
  height: 40px;
  width: 40px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.brand-dot {
  color: var(--sky);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav .nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

.site-nav .nav-cta:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(251, 195, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(251, 195, 0, 0.45);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-lg {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  /* Deep space base with aurora-style glows pushed toward the edges,
     leaving a calm dark center for the text. */
  background-color: #0B1E2D;
  background-image:
    radial-gradient(ellipse 55% 45% at 8% 8%, rgba(54, 160, 215, 0.55), transparent 65%),
    radial-gradient(ellipse 50% 55% at 95% 12%, rgba(1, 87, 155, 0.75), transparent 68%),
    radial-gradient(ellipse 45% 50% at 88% 92%, rgba(0, 192, 149, 0.38), transparent 62%),
    radial-gradient(ellipse 60% 45% at 5% 95%, rgba(0, 140, 192, 0.45), transparent 66%),
    radial-gradient(ellipse 35% 30% at 50% 110%, rgba(51, 23, 51, 0.55), transparent 70%),
    linear-gradient(160deg, #0E2A40 0%, #0B1E2D 45%, #122B3C 100%);
}

/* Faint holographic grid for an augmented, engineered feel */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(54, 160, 215, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 160, 215, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 30%, transparent 78%);
  pointer-events: none;
}

/* Slow-drifting ambient glow layer */
.hero::after {
  content: '';
  position: absolute;
  inset: -25%;
  background-image:
    radial-gradient(ellipse 30% 35% at 30% 30%, rgba(0, 192, 149, 0.18), transparent 70%),
    radial-gradient(ellipse 35% 30% at 72% 65%, rgba(54, 160, 215, 0.20), transparent 70%);
  animation: hero-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hero-drift {
  from { transform: translate3d(-2%, -3%, 0) scale(1); }
  to   { transform: translate3d(3%, 4%, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after {
    animation: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0 5.5rem;
  /* Soft vignette behind the copy so text never fights the gradient */
  background: radial-gradient(ellipse 55% 65% at 50% 45%, rgba(11, 30, 45, 0.55), transparent 75%);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(4, 16, 26, 0.55);
}

.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto 2.25rem;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--gray-light);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--gray-mid);
  font-weight: 600;
  margin-bottom: 2rem;
}

.section-lead.light {
  color: var(--sky);
}

.section p + p {
  margin-top: 1rem;
}

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

.section-dark h2 {
  color: var(--white);
}

/* ---------- Contact form ---------- */

.section-contact {
  background: var(--white);
}

#contact-form {
  margin-top: 1.5rem;
}

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

.form-field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  background: #FAFAFA;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--white);
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #D64545;
}

.web-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
  min-height: 1.5em;
}

.form-status.success { color: var(--teal); }
.form-status.error { color: #D64545; }

/* ---------- Consulting cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(23, 52, 71, 0.16);
}

.card-visual {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--gray-light);
  margin-bottom: 1.1rem;
  background: var(--white);
}

.card-icon {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--gray);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--gray-mid);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-logo {
  height: 36px;
  width: 36px;
  opacity: 0.8;
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-inner {
    padding: 6.5rem 0 7rem;
  }
}
