/* =====================================================
   RIDGELINE BUILD CO. — splash page
   37% dark teal left panel / 63% full-bleed photo right
   ===================================================== */

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

:root {
  --green:       #0F4C4C;
  --green-dark:  #0a3838;
  --green-light: #3FBFA0;
  --white:       #ffffff;
  --off-white:   #f5f5f5;
  --text-muted:  rgba(255,255,255,0.72);
  --strip-bg:    #ffffff;
  --strip-text:  #0F4C4C;
  --left-w:      37%;
  --panel-w:     460px;
  --transition:  0.28s ease;
  --radius:      6px;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  background: var(--green);
}

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

/* ============================
   OUTER WRAPPER
   ============================ */
.splash {
  display: flex;
  min-height: 100dvh;
  width: 100%;
}

/* ============================
   LEFT PANEL
   ============================ */
.left-panel {
  width: var(--left-w);
  flex-shrink: 0;
  background: var(--green);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.2rem 2.5rem 2rem;
  gap: 0;
}

/* Logo mark */
.logo-mark {
  flex-shrink: 0;
  margin-bottom: auto;   /* pushes everything below it down */
  padding-bottom: 2rem;
}

/* Brand block */
.brand-block {
  flex-shrink: 0;
  padding-bottom: 1.6rem;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.tagline {
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-light);
  line-height: 1.5;
  margin-bottom: 0.55rem;
}

.website {
  font-size: clamp(0.8rem, 1.05vw, 0.95rem);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

/* ============================
   LAUNCHING SOON STRIP (CTA)
   ============================ */
.launching-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% + 5rem);   /* bleed to edges of panel */
  margin-left: -2.5rem;
  padding: 1rem 2.5rem;
  background: var(--strip-bg);
  color: var(--strip-text);
  border: none;
  font-family: inherit;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
  margin-bottom: 1.6rem;
}

.launching-strip svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.launching-strip:hover,
.launching-strip:focus-visible {
  background: var(--green-light);
  color: var(--white);
  outline: none;
}

.launching-strip:hover svg,
.launching-strip:focus-visible svg {
  transform: translateX(4px);
}

/* ============================
   CONTACT BLOCK
   ============================ */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.contact-block p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  color: var(--text-muted);
}

.contact-block p.location {
  padding-left: 1.6rem;   /* indent to align with icon'd items */
  font-size: clamp(0.75rem, 0.95vw, 0.88rem);
  color: rgba(255,255,255,0.5);
}

.contact-block svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: var(--green-light);
}

.contact-block a:hover { color: var(--white); }

/* Footer credit */
.footer-credit {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.footer-credit a { color: rgba(255,255,255,0.45); text-decoration: underline; }
.footer-credit a:hover { color: var(--white); }

/* ============================
   RIGHT PANEL — full-bleed photo
   ============================ */
.right-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.right-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Subtle fade at the left edge of the photo */
.right-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 80px;
  background: linear-gradient(to right, var(--green), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ============================
   PANEL BACKDROP
   ============================ */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.panel-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================
   CONTACT PANEL (flyout)
   ============================ */
.contact-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(var(--panel-w), 100vw);
  background: var(--white);
  color: #111;
  z-index: 101;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -4px 0 40px rgba(0,0,0,0.2);
}

.contact-panel.is-open { transform: translateX(0); }

.panel-close {
  position: sticky;
  top: 0;
  left: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 1rem 1rem 0 auto;
  background: var(--off-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 1;
}

.panel-close:hover,
.panel-close:focus-visible { background: #ddd; outline: none; }

.panel-close svg { width: 20px; height: 20px; fill: #111; }

.panel-inner-form { padding: 0 2rem 2.5rem; }

.panel-inner-form h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--green);
}

.panel-sub {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.75rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #222;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  color: #111;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15,76,76,0.12);
}

.field-group textarea { min-height: 110px; }

.cf-turnstile { margin: 1rem 0 0.5rem; }

.form-status {
  font-size: 0.88rem;
  min-height: 1.2em;
  margin: 0.4rem 0;
}

.form-status.is-success { color: #1a7f37; font-weight: 600; }
.form-status.is-error   { color: #b91c1c; font-weight: 600; }

.submit-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.6rem;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}

.submit-btn:hover:not(:disabled) { background: var(--green-dark); }
.submit-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============================
   RESPONSIVE — mobile
   ============================ */
@media (max-width: 820px) {
  .splash {
    flex-direction: column-reverse;
  }

  .left-panel {
    width: 100%;
  }

  .panel-inner {
    padding: 2rem 1.5rem 1.8rem;
  }

  .logo-mark { margin-bottom: 1.5rem; }

  h1 { font-size: 2.2rem; }

  .launching-strip {
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
  }

  .right-panel {
    height: 55vw;
    min-height: 220px;
    max-height: 380px;
  }

  .right-panel::before { display: none; }

  .contact-panel { width: 100vw; }
}
