/* Raincom — site styles */
:root {
  --bg: #f4f8fa;
  --bg-alt: #eaf1f5;
  --ink: #16293a;
  --ink-soft: #51667a;
  --navy: #14283a;
  --navy-2: #1c374e;
  --green: #2f8a68;
  --green-soft: #d9ede5;
  --teal: #2e86ab;
  --line: #cddbe3;
  --white: #ffffff;
  --radius: 6px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --shadow: 0 10px 30px rgba(20, 40, 58, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Type */
h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--green); }
.on-dark .eyebrow { color: #6fc2a0; }
.on-dark .eyebrow::before { background: #6fc2a0; }

.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }
.on-dark .lead { color: rgba(244, 248, 250, 0.75); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-solid { background: var(--green); color: var(--white); }
.btn-solid:hover { background: #257455; transform: translateY(-2px); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.on-dark .btn-line { border-color: rgba(255,255,255,0.5); color: var(--white); }
.on-dark .btn-line:hover { background: var(--white); color: var(--navy); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 248, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.logo img { height: 44px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.main-nav { display: flex; gap: 34px; align-items: center; }

/* Services dropdown */
.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.drop-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft); font-size: 0.62rem; padding: 6px 4px;
  transition: transform 0.25s, color 0.2s; line-height: 1;
}
.nav-item:hover .drop-toggle, .nav-item.open .drop-toggle { transform: rotate(180deg); color: var(--green); }
.dropdown {
  position: absolute; top: 100%; left: -16px; z-index: 60;
  min-width: 260px; padding: 8px 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.open .dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.main-nav .dropdown a { display: block; padding: 10px 18px; border-bottom: none; }
.main-nav .dropdown a:hover { background: var(--bg); color: var(--green); border-bottom: none; }
.main-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--green); border-bottom-color: var(--green); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-phone { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.header-phone:hover { color: var(--green); }
.header-cta .btn { padding: 12px 20px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* Sections */
section { padding: 96px 0; }
.section-dark { background: var(--navy); color: var(--bg); }
.section-tint { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* Hero — full-screen with slow cinematic drift */
.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 90px 0;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.14) translate(-1.5%, 1.5%); }
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(244,248,250,0.6), transparent 40%),
    linear-gradient(to right, rgba(244,248,250,0.97) 0%, rgba(244,248,250,0.9) 45%, rgba(244,248,250,0.55) 72%, rgba(244,248,250,0.12) 100%);
}
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.hero-copy p { margin: 24px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-call { font-size: 0.9rem; color: var(--ink-soft); }
.hero-call strong { font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; display: block; }
.hero-card {
  position: absolute;
  right: 40px;
  bottom: 48px;
  z-index: 1;
  background: rgba(20, 40, 58, 0.92);
  backdrop-filter: blur(4px);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--green);
}
.hero-card .big { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.hero-card .small { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,248,250,0.65); margin-top: 6px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 1;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(20,40,58,0.45); border-radius: 14px;
}
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px; border-radius: 2px;
  background: var(--green); transform: translateX(-50%);
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0%   { opacity: 1; top: 7px; }
  70%  { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 7px; }
}

/* Entrance animations (hero load-in, framer-motion style) */
.anim { opacity: 0; animation-fill-mode: forwards; animation-duration: 0.9s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
.anim-left  { animation-name: slideInLeft; }
.anim-up    { animation-name: riseIn; }
.anim-scale { animation-name: scaleIn; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.3s; }
.d3 { animation-delay: 0.5s; } .d4 { animation-delay: 0.7s; }
.d5 { animation-delay: 0.9s; }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(46px) rotateX(10deg); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .anim { opacity: 1; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Client strip */
.clients { padding: 34px 0; background: var(--navy); }
.clients .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 38px; }
.clients span { color: rgba(244,248,250,0.55); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.clients .clients-label { color: #6fc2a0; font-weight: 700; }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
}
.service-card > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease; opacity: 0.92;
}
.service-card:hover > img { transform: scale(1.07); }
.service-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,28,40,0.95) 15%, rgba(15,28,40,0.45) 55%, rgba(15,28,40,0.05));
}
.service-card-body { position: relative; z-index: 1; padding: 28px; color: var(--bg); }
.service-card-body h3 { font-size: 1.45rem; margin-bottom: 8px; }
.service-card-body p { font-size: 0.92rem; color: rgba(244,248,250,0.82); margin-bottom: 14px; }
.service-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #6fc2a0; display: block; margin-bottom: 14px; }
.card-link { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #6fc2a0; display: inline-flex; align-items: center; gap: 8px; }
.card-link:hover { gap: 14px; }
.card-link { transition: gap 0.25s; }

/* Feature band (image + copy) */
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.band-grid img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.band-copy p { margin-bottom: 18px; color: rgba(244,248,250,0.78); }
.band-copy p strong { color: var(--bg); }
.tick-list { margin-top: 26px; display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem; }
.tick-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.section-dark .tick-list li::before { color: #6fc2a0; }

/* Numbered reasons */
.reason { border-top: 1px solid var(--line); padding: 28px 20px 0 0; }
.reason .num { font-family: var(--font-display); font-weight: 700; color: var(--green); font-size: 0.95rem; letter-spacing: 0.1em; }
.reason h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.reason p { color: var(--ink-soft); font-size: 0.95rem; }

/* Stats */
.stats { padding: 70px 0; background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat .value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--white); line-height: 1; }
.stat .value em { font-style: normal; color: #6fc2a0; }
.stat .label { margin-top: 10px; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244,248,250,0.55); }

/* Testimonials */
.quote-wrap { max-width: 780px; margin: 0 auto; text-align: center; }
.quote-mark { font-family: var(--font-display); font-size: 4rem; color: var(--green); line-height: 0.5; }
blockquote { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 500; line-height: 1.45; margin: 28px 0; }
.quote-who { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.quote-who strong { color: var(--green); display: block; letter-spacing: 0.2em; margin-bottom: 4px; }
.quote-nav { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.quote-nav button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white);
  cursor: pointer; font-size: 1rem; color: var(--navy); transition: all 0.2s;
}
.quote-nav button:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* Areas */
.area-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; transition: border-color 0.2s, transform 0.2s;
}
.area-card:hover { border-color: var(--green); transform: translateY(-3px); }
.area-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.area-card p { font-size: 0.9rem; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius);
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.info-row .t { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.info-row .v { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.info-row .v a:hover { color: var(--green); }

form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); display: grid; gap: 8px; }
input, select, textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: var(--bg); padding: 90px 0; }
.page-hero .lead { color: rgba(244,248,250,0.75); margin-top: 20px; }

/* Service detail */
.detail-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 60px; align-items: start; }
.detail-copy p { margin-bottom: 20px; color: var(--ink-soft); font-size: 1.03rem; }
.detail-copy p strong { color: var(--ink); }
.sidebar { display: grid; gap: 24px; position: sticky; top: 110px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.side-card h3 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.side-card.dark { background: var(--navy); color: var(--bg); border: none; }
.side-card.dark .v a { color: var(--bg); }
.side-card .tick-list { margin-top: 0; }
.side-card .tick-list li { font-size: 0.92rem; }
.included { margin-top: 80px; }
.included-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.included-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.included-card p { font-size: 0.92rem; color: var(--ink-soft); }
.detail-photo { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 28px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* Values / timeline (about) */
.value-card { border-top: 2px solid var(--green); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); padding: 26px; box-shadow: var(--shadow); }
.value-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.value-card p { font-size: 0.93rem; color: var(--ink-soft); }
.timeline { display: grid; gap: 0; margin-top: 20px; }
.tl-row { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.tl-row .year { font-family: var(--font-display); font-weight: 700; color: #6fc2a0; }
.tl-row p { color: rgba(244,248,250,0.78); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: var(--bg); text-align: center; padding: 90px 24px; }
.cta-band h2 { max-width: 640px; margin: 0 auto 18px; }
.cta-band p { color: rgba(244,248,250,0.75); max-width: 560px; margin: 0 auto 34px; }

/* Footer */
footer { background: #0f1f2d; color: rgba(244,248,250,0.65); padding: 60px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h4 { font-family: var(--font-display); color: var(--white); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 4px 0; }
.footer-grid a:hover { color: #6fc2a0; }
.footer-logo {
  height: 40px; width: auto; max-width: 100%;
  object-fit: contain; object-position: left center;
  margin-bottom: 14px; filter: brightness(0) invert(1) opacity(0.9);
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  section { padding: 70px 0; }
  .hero-grid, .band-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  .hero-card { display: none; }
  .hero-bg::after {
    background:
      linear-gradient(to bottom, rgba(244,248,250,0.94) 0%, rgba(244,248,250,0.9) 55%, rgba(244,248,250,0.72) 100%);
  }
  .main-nav, .header-cta .header-phone { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex; position: absolute; top: 82px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    align-items: stretch;
  }
  .main-nav.open a { padding: 12px 0; border-bottom: none; }
  .main-nav.open .nav-item { flex-wrap: wrap; justify-content: space-between; width: 100%; }
  .main-nav.open .drop-toggle { font-size: 0.9rem; padding: 12px 14px; }
  .main-nav.open .dropdown {
    position: static; width: 100%; min-width: 0;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 6px 16px; transform: none;
    opacity: 1; visibility: visible; display: none;
    transition: none;
  }
  .main-nav.open .nav-item:hover .dropdown { display: none; }
  .main-nav.open .nav-item.open .dropdown { display: block; }
  .main-nav.open .dropdown a { padding: 10px 0; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .header-cta .btn { display: none; }
}
