/* ==========================================================================
   MANIFOLD INSURANCE — Coming Soon
   Design tokens, layout, and motion for a premium, trust-forward landing page
   ========================================================================== */

:root {
  /* Brand palette — drawn from the umbrella mark */
  --green-primary: #18A10B;
  --green-dark: #0E7A08;
  --green-accent: #2CCB1D;
  --white: #FFFFFF;
  --light-gray: #F6F8FA;
  --text-dark: #111111;
  --text-secondary: #666666;

  /* Derived tones */
  --green-050: #EFFAF0;
  --green-100: #DCF3DD;
  --line: rgba(17, 17, 17, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.8);
  --shadow-soft: 0 20px 60px -20px rgba(14, 60, 10, 0.18);
  --shadow-lift: 0 30px 70px -20px rgba(14, 60, 10, 0.28);

  /* Type */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Manrope', sans-serif;

  /* Rhythm */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--light-gray);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--green-accent); color: var(--white); }

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Ambient background — layered umbrella-canopy glow
   ========================================================================== */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--green-050) 0%, transparent 60%),
    var(--light-gray);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.blob-1 {
  width: 620px; height: 620px;
  top: -220px; left: -180px;
  background: radial-gradient(circle at 30% 30%, var(--green-accent), transparent 70%);
  animation: drift-a 26s ease-in-out infinite;
}

.blob-2 {
  width: 520px; height: 520px;
  bottom: -200px; right: -160px;
  background: radial-gradient(circle at 60% 40%, var(--green-primary), transparent 70%);
  animation: drift-b 32s ease-in-out infinite;
}

.blob-3 {
  width: 380px; height: 380px;
  top: 40%; left: 50%;
  background: radial-gradient(circle at 50% 50%, var(--green-dark), transparent 72%);
  opacity: 0.25;
  animation: drift-c 40s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.05); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-46%, -54%) scale(1.15); }
}

/* Faint canopy-rib pattern, echoing the umbrella mark */
.rib-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    repeating-conic-gradient(from 0deg at 50% -20%, #0E7A08 0deg 2deg, transparent 2deg 22.5deg);
  mask-image: radial-gradient(ellipse 60% 40% at 50% 0%, black, transparent 70%);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 32px 100px;
  position: relative;
}

.hero-logo {
  width: 108px;
  height: auto;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-in-up 1s var(--ease) 0.15s forwards;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-050);
  border: 1px solid var(--green-100);
  padding: 9px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-in-up 1s var(--ease) 0.3s forwards;
}

.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-accent);
  box-shadow: 0 0 0 4px var(--green-100);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
  opacity: 0;
  animation: fade-in-up 1s var(--ease) 0.45s forwards;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--green-dark), var(--green-primary) 45%, var(--green-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin-top: 26px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 46ch;
  opacity: 0;
  animation: fade-in-up 1s var(--ease) 0.6s forwards;
}

.hero-divider {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fade-in-up 1s var(--ease) 0.75s forwards;
}

.hero-divider .line {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-primary));
}
.hero-divider .line.right {
  background: linear-gradient(90deg, var(--green-primary), transparent);
}

.hero-divider .diamond {
  width: 8px; height: 8px;
  background: var(--green-primary);
  transform: rotate(45deg);
  border-radius: 2px;
}

.tagline {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
  font-style: italic;
  color: var(--green-dark);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fade-in-up 1s var(--ease) 0.9s forwards;
}

.hero-note {
  margin-top: 56px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fade-in-up 1s var(--ease) 1.05s forwards;
}

.hero-note svg { width: 18px; height: 18px; color: var(--green-primary); flex-shrink: 0; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 20px;
  opacity: 0;
  animation: fade-in-up 1s var(--ease) 1.2s forwards;
}
.scroll-cue::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px; height: 8px;
  background: var(--green-primary);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-move {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section {
  padding: 110px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 14px;
  display: block;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.03rem;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* ==========================================================================
   Glass card base
   ========================================================================== */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   Insurance highlight cards
   ========================================================================== */

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.coverage-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: left;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.coverage-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--green-050), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.coverage-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: var(--green-100);
}
.coverage-card:hover::before { opacity: 1; }

.coverage-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 24px -8px rgba(24, 161, 11, 0.5);
}
.coverage-icon svg { width: 26px; height: 26px; color: var(--white); }

.coverage-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}

.coverage-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  position: relative; z-index: 1;
}

/* ==========================================================================
   Subscribe section
   ========================================================================== */

.subscribe-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px;
  text-align: center;
}

.subscribe-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.subscribe-card p {
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 auto 32px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.input-wrap {
  flex: 1;
  position: relative;
}

.subscribe-form input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-dark);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.subscribe-form input::placeholder { color: #A6ACB3; }

.subscribe-form input:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px var(--green-100);
  outline: none;
}

.subscribe-form input.error {
  border-color: #E24C4C;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  background: linear-gradient(120deg, var(--green-primary), var(--green-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(14, 122, 8, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(14, 122, 8, 0.65);
  filter: brightness(1.06);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-primary:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(3.2); opacity: 0; }
}

.form-message {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 22px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.form-message.show { opacity: 1; transform: translateY(0); }
.form-message.success { color: var(--green-dark); }
.form-message.error { color: #C93B3B; }

/* ==========================================================================
   Contact quick-info card (below hero)
   ========================================================================== */

.quickcontact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 8px;
}

.quickcontact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-md);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.quickcontact-item:hover {
  background: var(--green-050);
  transform: translateY(-3px);
}

.quickcontact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quickcontact-icon svg { width: 20px; height: 20px; color: var(--green-primary); }

.quickcontact-item .label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.quickcontact-item .value {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-dark);
}

/* ==========================================================================
   Get in touch (full contact section)
   ========================================================================== */

.contact-section-inner {
  padding: 56px;
}

.contact-top {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
}
.contact-top h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-bottom: 16px;
}
.contact-top p { color: var(--text-secondary); }

.general-contact-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.general-contact-row .gc-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.general-contact-row svg { width: 20px; height: 20px; color: var(--green-primary); flex-shrink: 0; }
.general-contact-row .gc-item strong { display: block; font-size: 0.95rem; }
.general-contact-row .gc-item span { font-size: 0.82rem; color: var(--text-secondary); }

.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.dept-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--green-100);
}
.dept-card .dept-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--green-050);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.dept-card .dept-icon svg { width: 20px; height: 20px; color: var(--green-dark); }
.dept-card h4 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.dept-card a.dept-email {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 8px;
  transition: color 0.25s var(--ease);
}
.dept-card a.dept-email:hover { color: var(--green-dark); text-decoration: underline; }
.dept-card p { font-size: 0.88rem; color: var(--text-secondary); }

/* Contact form */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

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

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.field input,
.field select,
.field textarea {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px var(--green-100);
  outline: none;
}

.field input.error,
.field select.error,
.field textarea.error { border-color: #E24C4C; }

.field-error {
  font-size: 0.78rem;
  color: #C93B3B;
  min-height: 14px;
}

.contact-form .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 16px 30px;
}

.contact-form-message {
  margin-top: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.contact-form-message.show { opacity: 1; transform: translateY(0); }
.contact-form-message.success { color: var(--green-dark); }
.contact-form-message.error { color: #C93B3B; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  padding: 56px 0 40px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-logo {
  width: 46px;
  margin: 0 auto 16px;
}

footer .foot-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

footer .foot-tagline {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--green-dark);
  margin-top: 6px;
}

footer .foot-copy {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(14, 122, 8, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  z-index: 40;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top svg { width: 20px; height: 20px; color: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .quickcontact-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero { padding: 120px 24px 80px; }
  .section { padding: 80px 0; }
  .subscribe-card { padding: 40px 26px; }
  .subscribe-form { flex-direction: column; }
  .contact-section-inner { padding: 36px 22px; }
  .general-contact-row { flex-direction: column; gap: 20px; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr; }
  .quickcontact-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero-logo { width: 84px; }
  .back-to-top { right: 18px; bottom: 18px; width: 44px; height: 44px; }
}
