/* =========================================
   COFFEESOFT — Main Stylesheet (Boilerplate)
   ========================================= */

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

html {
  font-size: 16px;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  min-height: 100%;
}

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

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

ul { list-style: none; }

/* --- Scroll Snap --- */
section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section > .container { width: 100%; }

.section--alt { background: #f8f9fa; }

.section__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.section__lead {
  text-align: center;
  color: #555;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* --- Grid --- */
.grid { display: grid; gap: 2rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* --- Card --- */
.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 2rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

/* --- Base button (shared) --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn--primary {
  background: #4f46e5;
  color: #fff;
}

/* =========================================
   HERO NAV BUTTON — Ghost style (Syne)
   ========================================= */
.nv-ghost {
  position: relative;
  width: 164px;
  height: 52px;
  border: 2.5px solid #0d0d0d;
  border-radius: 5px;
  background: transparent;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #0d0d0d;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.45s ease, color 0.45s ease;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  /* Keep it flush with the page bg so ::before/::after masking works */
}

.nv-ghost::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 3%;
  width: 94%;
  height: 38%;
  background: #ffffff;
  transition: transform 0.45s ease;
  transform-origin: center;
}

.nv-ghost::before {
  content: "";
  position: absolute;
  top: 80%;
  left: 3%;
  width: 94%;
  height: 38%;
  background: #ffffff;
  transition: transform 0.45s ease;
  transform-origin: center;
}

.nv-ghost:hover::before,
.nv-ghost:hover::after { transform: scale(0); }

.nv-ghost:hover {
  background: #0d0d0d;
  color: #ffffff;
  opacity: 1;
}

/* =========================================
   CONTACT OFFER BUTTON — Drawer corners
   ========================================= */
.dc {
  --corner-dist: 22px;
  --corner-mul: 1.5;
  --dur: 260ms;
  --ease: cubic-bezier(0, 0, 0, 2.5);
  --corner-col: rgba(0, 0, 0, 0.18);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dc .btn {
  position: relative;
  min-width: 158px;
  min-height: calc(var(--corner-dist) * 2);
  border-radius: 13px;
  border: 2px solid #0d0d0d;
  padding: 0.3em 1.3em;
  background: #ffffff;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) ease,
    box-shadow var(--dur) ease;
}

.dc .drawer {
  position: absolute;
  display: flex;
  justify-content: center;
  min-height: 28px;
  border-radius: 12px;
  padding: 0.2em 1em;
  font-size: 0.68em;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  background: #E4A64A;
  color: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  filter: blur(3px);
  transition:
    transform calc(0.5 * var(--dur)) ease,
    opacity calc(0.5 * var(--dur)) ease,
    filter var(--dur) var(--ease);
}

.dc .drawer-top { top: 0; left: 0; border-radius: 10px 10px 0 0; align-items: start; }
.dc .drawer-bot { bottom: 0; right: 0; border-radius: 0 0 10px 10px; align-items: end; }

.dc .btn-text {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 1.05em;
  font-weight: 700;
  background-image: linear-gradient(#111, #333);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform var(--dur) var(--ease);
}

.dc .corner {
  position: absolute;
  width: 26px;
  fill: none;
  stroke: var(--corner-col);
  stroke-width: 2;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.dc .corner:nth-of-type(1) { top: 0;    left: 0;   transform: translate(calc(-1*var(--corner-dist)), calc(-1*var(--corner-dist))) rotate(90deg); }
.dc .corner:nth-of-type(2) { top: 0;    right: 0;  transform: translate(var(--corner-dist), calc(-1*var(--corner-dist))) rotate(180deg); }
.dc .corner:nth-of-type(3) { bottom: 0; right: 0;  transform: translate(var(--corner-dist), var(--corner-dist)) rotate(-90deg); }
.dc .corner:nth-of-type(4) { bottom: 0; left: 0;   transform: translate(calc(-1*var(--corner-dist)), var(--corner-dist)) rotate(0deg); }

.dc:has(.btn:hover) .btn {
  transform: scale(1.05);
  border-color: #E4A64A;
  box-shadow: 0 6px 20px rgba(228, 166, 74, 0.25);
}
.dc:has(.btn:hover) .drawer-top { transform: translateY(-22px) rotateZ(3deg); filter: blur(0); opacity: 1; }
.dc:has(.btn:hover) .drawer-bot { transform: translateY(22px)  rotateZ(3deg); filter: blur(0); opacity: 1; }
.dc:has(.btn:hover) .btn-text { transform: scale(1.05); }
.dc:has(.btn:hover) .corner { stroke: #E4A64A; }
.dc:has(.btn:hover) .corner:nth-of-type(1) { transform: translate(calc(-1*var(--corner-mul)*var(--corner-dist)), calc(-1*var(--corner-mul)*var(--corner-dist))) rotate(90deg); }
.dc:has(.btn:hover) .corner:nth-of-type(2) { transform: translate(calc(   var(--corner-mul)*var(--corner-dist)), calc(-1*var(--corner-mul)*var(--corner-dist))) rotate(180deg); }
.dc:has(.btn:hover) .corner:nth-of-type(3) { transform: translate(calc(   var(--corner-mul)*var(--corner-dist)), calc(   var(--corner-mul)*var(--corner-dist))) rotate(-90deg); }
.dc:has(.btn:hover) .corner:nth-of-type(4) { transform: translate(calc(-1*var(--corner-mul)*var(--corner-dist)), calc(   var(--corner-mul)*var(--corner-dist))) rotate(0deg); }

.dc:has(.btn:active) .btn { transform: scale(0.96); }
.dc:has(.btn:active) .drawer-top,
.dc:has(.btn:active) .drawer-bot { transform: scale(0.5); opacity: 0.5; }

/* Wrapper to centre the offer button in the contact section */
.contact-offer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* =========================================
   HERO SECTION
   ========================================= */

/* Hero uses absolute topbar + bottom so the gif/nav sits at true 50vh */
.hero {
  height: 100vh;
  min-height: 500px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Top bar: absolutely placed so it doesn't push the center off-axis */
.hero__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  z-index: 10;
}

.hero__logo-link { display: inline-flex; }

.hero__logo {
  height: clamp(32px, 7vw, 120px);
  width: auto;
  display: block;
}

/* Center: the only element in the flex flow — lands at 50vh / 50vw */
.hero__center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero__media {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* typers.gif — padding-top removed; centering is now layout-driven */
.hero_gif {
  padding-top: 2rem;
  display: block;
  width: clamp(240px, 45vw, 960px);
  height: auto;
}

/* Circular nav sits centered over the gif */
.hero__nav-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
}

/* ---- Circular Nav SVG — +25% from original 250px max ---- */
svg.cn {
  width: clamp(213px, 42.5vw, 312px);
  height: clamp(213px, 42.5vw, 312px);
  overflow: visible;
}

.quad { cursor: pointer; outline: none; }

.nav-txt {
  fill: #999;
  pointer-events: none;
  transition: fill 0.18s ease;
  font-size: 10px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* Bottom taglines: absolutely placed at the floor */
.hero__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 2.5rem 2rem;
  z-index: 10;
  gap: 1rem;
}

.hero__tagline h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__tagline--right h1 {
  align-items: flex-end;
  text-align: right;
}

.tagline__static { display: block; }

/* Ticker: single-line clip, JS drives the translateY animation */
.tagline__ticker-wrap {
  display: block;
  overflow: hidden;
  height: 1.1em;
  position: relative;
}

.tagline__ticker {
  display: block;
  color: #4f46e5;
  white-space: nowrap;
  will-change: transform, opacity;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services { background: #f9f8f6; }

.services-content {
  font-family: 'DM Sans', sans-serif;
  width: 100%;
}

.services-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  font-weight: 500;
  margin-bottom: 18px;
}

.services-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: #0d0d0d;
  max-width: 560px;
  margin-bottom: 20px;
}

.services-sub {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 36px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0abf8a;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.cta-btn:hover { background: #089e74; transform: translateY(-1px); }

.timeline-section { margin-top: 72px; }

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.chip {
  display: inline-block;
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #444;
  padding: 5px 13px;
  font-family: 'DM Sans', sans-serif;
}

.chip-row {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.step-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: #666;
  padding-right: 24px;
}

/* =========================================
   OTHER SECTIONS
   ========================================= */
.site-header { display: none; }

/* --- Testimonials --- */
.testimonial {
  background: #fff;
  border-left: 4px solid #4f46e5;
  border-radius: 8px;
  padding: 1.5rem;
}

.testimonial p { margin-bottom: 1rem; font-style: italic; }
.testimonial footer { font-size: 0.875rem; color: #666; }

/* --- Contact Form --- */
.contact__inner { max-width: 640px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; }

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: #4f46e5; }

/* --- Footer --- */
.site-footer { background: #1a1a2e; color: #aaa; padding: 2rem 0; }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: #aaa; transition: color 0.2s; }
.footer__links a:hover { color: #fff; }

/* =========================================
   UTILITIES
   ========================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* =========================================
   WHY US — Redesigned
   ========================================= */
.why-us.section {
  padding: 0;
  position: relative;
  overflow: hidden;
  align-items: stretch;
  background: #fff;
}

#why-us-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.why-us-inner {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: center;
}

.why-us-stats-side {
  flex: 0 0 45%;
  padding: 2rem 1.5rem 2rem 5%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-us-image-side {
  flex: 0 0 55%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.bman-img {
  height: 90vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* Metric stat cards */
.ms {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mc-wrap {
  position: relative;
  overflow: visible;
}

.mc {
  border-radius: 12px;
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  background: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border: 0.5px solid rgba(0,0,0,0.1);
}
.mc-wrap:nth-child(2) .mc { transition-delay: 0.08s; }
.mc-wrap:nth-child(3) .mc { transition-delay: 0.16s; }
.mc.visible { opacity: 1; transform: none; }

.mc::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.mc-1::after { background: #EEEDFE; }
.mc-2::after { background: #FAECE7; }
.mc-3::after { background: #E1F5EE; }

.mc-wrap:hover .mc::after { opacity: 1; }
.mc-wrap:hover .mc-1 { border-color: #AFA9EC; border-right-color: transparent; }
.mc-wrap:hover .mc-2 { border-color: #F0997B; border-right-color: transparent; }
.mc-wrap:hover .mc-3 { border-color: #5DCAA5; border-right-color: transparent; }

.mc-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.45rem; }

.mn {
  font-family: 'Syne', sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mn sup { font-size: 20px; font-weight: 400; letter-spacing: 0; opacity: 0.55; vertical-align: super; }

.ml {
  font-size: 14px;
  font-weight: 400;
  color: #6b6b6b;
  line-height: 1.4;
  transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mc-wrap:hover .mc-1 .mn { color: #3C3489; }
.mc-wrap:hover .mc-2 .mn { color: #712B13; }
.mc-wrap:hover .mc-3 .mn { color: #085041; }
.mc-wrap:hover .mc-1 .ml { color: #534AB7; }
.mc-wrap:hover .mc-2 .ml { color: #993C1D; }
.mc-wrap:hover .mc-3 .ml { color: #0F6E56; }

.card-icon {
  position: absolute;
  right: -66px;
  top: 50%;
  transform: translateY(-50%) scale(0.3);
  opacity: 0;
  z-index: 10;
  font-size: 132px;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  line-height: 1;
}
.mc-wrap:hover .card-icon { opacity: 1; transform: translateY(-50%) scale(1); }
.mc-1-icon { color: #7F77DD; }
.mc-2-icon { color: #D85A30; }
.mc-3-icon { color: #1D9E75; }

/* =========================================
   CONTACT — Redesigned
   ========================================= */
.contact.section {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 0 !important;
  min-height: 100vh;
  overflow: hidden;
  background: #f5f0e8;
}

/* Top 50vh: image + strips */
.contact-hero-wrap {
  position: relative;
  height: 50vh;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contact-strips {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}

.contact-strip {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  pointer-events: all;
  overflow: hidden;
}

.contact-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 2.5rem 1.75rem;
  z-index: 5;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.contact-team-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
}

/* Bottom half: form | CTA */
.contact-body {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.contact-form-col {
  flex: 1;
  padding: 1.5rem 2.5rem;
  border-right: 1px solid rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1714;
  margin-bottom: 0.85rem;
}

/* Two-column name+email row */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Compact contact form (overrides .contact-form gap) */
.contact-form-col .contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Right CTA column */
.contact-cta-col {
  flex: 0 0 260px;
  padding: 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
}

.save-money-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  color: #1a1714;
}

.curved-arrow-svg {
  width: 72px;
  height: 56px;
  display: block;
  margin-left: 0.25rem;
}

/* Footer bar (replaces site-footer) */
.contact-footer-bar {
  flex-shrink: 0;
  background: #1a1a2e;
  color: #aaa;
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
}

.contact-footer-bar a { color: #aaa; transition: color 0.2s; }
.contact-footer-bar a:hover { color: #fff; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 640px) {
  .timeline-grid { grid-template-columns: 1fr; gap: 2rem; }
  .step-body { padding-right: 0; }
}

@media (max-width: 600px) {
  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1.5rem;
    gap: 0.5rem;
  }

  .hero__tagline--right h1 {
    align-items: flex-start;
    text-align: left;
  }

  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .hero__topbar { padding: 14px 16px; }

  svg.cn {
    width: clamp(175px, 78vw, 250px);
    height: clamp(175px, 78vw, 250px);
  }

  .hero_gif {
    width: clamp(200px, 92vw, 320px);
  }
}
