/* Blanco Roofing — one-page landing. Fonts and colors from the existing site. */

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/urbanist-700.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-500.woff") format("woff");
}

:root {
  --font-heading: "Urbanist", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --arapawa: #140f61;
  --arapawa-light: #5a5790;
  --ink: #111111;
  --muted: #4c4c4c;
  --line: #d8d8d8;
  --white: #ffffff;
  --focus: #8b87d4;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--white);
  background: #0a0a0a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Full-bleed backsplash */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.backdrop-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.58) 45%,
      rgba(0, 0, 0, 0.78) 100%
    );
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
}

@media (min-width: 720px) {
  .page {
    padding: 1.5rem 2.5rem 2rem;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.logo-link {
  display: block;
  width: 11.5rem;
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .logo-link {
    width: 14rem;
  }
}

.logo-link img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35));
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  line-height: 1;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
}

.lang-toggle button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.15rem 0 1rem;
  text-align: center;
}

.brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.4vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.lede {
  margin: 0 0 1.15rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
  text-wrap: pretty;
}

.card {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  text-align: left;
}

@media (min-width: 540px) {
  .card {
    padding: 1.25rem 1.4rem 1.3rem;
  }
}

.card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.field {
  margin-bottom: 0.65rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #222;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  line-height: 1.3;
}

.field textarea {
  min-height: 5.25rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: #b2b2b2;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--arapawa);
  outline-offset: 1px;
  border-color: var(--arapawa);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button.send {
  appearance: none;
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 8px;
  background: var(--arapawa);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.8rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

button.send:hover {
  background: var(--arapawa-light);
}

button.send:focus-visible {
  outline: 2px solid var(--arapawa);
  outline-offset: 3px;
}

.email-fallback {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.email-fallback a {
  color: var(--white);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.email-fallback a:hover {
  color: #eee;
}

.email-fallback a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-top: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Thanks page */
.thanks-card {
  text-align: center;
  color: var(--ink);
}

.thanks-card h1 {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.thanks-card p {
  margin: 0 0 1.25rem;
  color: #333;
}

.thanks-card a:not(.back-link) {
  color: var(--arapawa);
  font-weight: 500;
}

.back-link {
  display: inline-block;
  background: var(--arapawa);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.7rem 1.3rem;
}

.back-link:hover {
  background: var(--arapawa-light);
}

.back-link:focus-visible {
  outline: 2px solid var(--arapawa);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  button.send {
    transition: none;
  }
}
