:root {
  --bg0: #0c1218;
  --bg1: #141c26;
  --ink: #e8eef4;
  --muted: #9aabba;
  --line: rgba(232, 238, 244, 0.12);
  --accent: #f0a202;
  --accent-ink: #1a1200;
  --ok: #3dcf8e;
  --danger: #ff6b6b;
  --max: 44rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
  line-height: 1.65;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(240, 162, 2, 0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(61, 207, 142, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #0a0f14);
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #ffc04a;
}

.wrap {
  width: min(100% - 1.5rem, 68rem);
  margin-inline: auto;
}

.site-header {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 18, 24, 0.94);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-width: 0;
  flex: 1 1 14rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: clamp(2.4rem, 7vw, 3.5rem);
  width: auto;
  max-width: min(52vw, 18rem);
  object-fit: contain;
  object-position: left center;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #0a0a0a;
  padding: 2px;
  box-sizing: content-box;
}

.brand-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.78rem, 0.7rem + 0.55vw, 1.05rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 14ch;
  letter-spacing: 0.01em;
}

.hero-logo {
  display: block;
  width: min(100%, 28rem);
  height: auto;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #0a0a0a;
  padding: 3px;
  box-sizing: content-box;
  flex: 0 1 28rem;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 1.75rem);
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}

.hero-experience {
  margin: 0;
  flex: 1 1 12rem;
  max-width: 18rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 1.1vw, 1.55rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  font-size: clamp(0.88rem, 0.84rem + 0.25vw, 0.98rem);
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  line-height: 1.2;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.28rem 0.6rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.header-contact:hover {
  border-color: rgba(37, 211, 102, 0.55);
  background: rgba(37, 211, 102, 0.1);
  color: var(--ink);
}

.owner-photo {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  max-width: none;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(12, 18, 24, 0.9);
  background: #1a222c;
}

.wa-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: #25d366;
}

.header-phone {
  font-size: clamp(0.78rem, 0.74rem + 0.2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  padding-right: 0.15rem;
}

.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.wa-link:hover {
  color: #ffc04a;
}

.wa-link .wa-icon {
  width: 1rem;
  height: 1rem;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
}

.footer-contact:hover {
  color: var(--accent);
}

.footer-contact .owner-photo {
  width: 1.85rem;
  height: 1.85rem;
  border-width: 1.5px;
}

.footer-contact .wa-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.footer-contact .header-phone {
  font-size: 0.85rem;
  color: inherit;
}

.hero {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.75rem, 3vw, 2.5rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  max-width: 16ch;
}

.hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  min-height: 2.75rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #ffc04a;
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin: 0.5rem 0 2.5rem;
}

.tile {
  display: block;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tile:hover {
  border-color: rgba(240, 162, 2, 0.55);
  transform: translateY(-2px);
}

.tile h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  margin: 0 0 0.35rem;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tile .tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.section {
  padding: 0.5rem 0 clamp(2rem, 4vw, 2.75rem);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem);
  margin: 0 0 0.75rem;
}

.section p,
.section li {
  color: var(--muted);
}

.section ul {
  padding-left: 1.2rem;
}

.section code,
.legal code,
.checklist code {
  font-size: 0.88em;
  color: var(--accent);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding: 0.65rem 0.75rem 0.65rem 2.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--ok);
}

.legal {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(3rem, 5vw, 4rem);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.legal .meta {
  color: var(--muted);
  font-size: clamp(0.88rem, 0.85rem + 0.2vw, 0.95rem);
  margin-bottom: 1.75rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  margin: 1.85rem 0 0.55rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal strong {
  color: var(--ink);
}

.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(240, 162, 2, 0.08);
  border-radius: 0 10px 10px 0;
}

.callout.danger {
  border-left-color: var(--danger);
  background: rgba(255, 107, 107, 0.08);
}

.form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font: inherit;
}

.form textarea {
  min-height: 7rem;
  resize: vertical;
}

.form button {
  justify-self: start;
  cursor: pointer;
  appearance: none;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Tablets */
@media (max-width: 900px) {
  .site-header .wrap {
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
    order: 3;
  }

  .header-contact {
    margin-left: auto;
  }

  .brand-tagline {
    max-width: 18ch;
  }

  .hero-logo {
    width: min(100%, 22rem);
    flex-basis: min(100%, 22rem);
  }

  .hero-experience {
    max-width: 16rem;
  }
}

/* Phones */
@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.25rem, 68rem);
  }

  .site-header {
    padding: 0.65rem 0;
  }

  .header-brand {
    width: 100%;
    gap: 0.65rem;
  }

  .brand-logo {
    height: 2.35rem;
    max-width: 42vw;
  }

  .brand-tagline {
    max-width: none;
    flex: 1;
    font-size: 0.82rem;
  }

  .header-contact {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    order: 2;
  }

  .owner-photo {
    width: 2.15rem;
    height: 2.15rem;
  }

  .nav {
    width: 100%;
    gap: 0.2rem;
  }

  .nav a {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.55rem 0.45rem;
    font-size: 0.84rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .hero-logo {
    width: min(100%, 22rem);
    flex: none;
  }

  .hero-experience {
    max-width: 22rem;
    font-size: clamp(1rem, 0.95rem + 1.2vw, 1.25rem);
  }

  .checklist li {
    padding-left: 1.85rem;
  }

  .form button,
  .btn {
    width: 100%;
    justify-self: stretch;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .brand-tagline {
    font-size: 0.74rem;
  }

  .nav a {
    font-size: 0.78rem;
    padding: 0.5rem 0.3rem;
  }
}
