/*
Theme Name: Cloud-based
Theme URI: https://cloud-based.nl
Author: Novo Technology B.V.
Description: Website van Cloud-based, webhosting van Novo Technology in Nibbixwoud. Domeinzoeken en hostingcheckout op de homepage.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: cloud-based
*/

:root {
  --navy: #0b2240;
  --navy-deep: #07162b;
  --navy-mid: #123056;
  --yellow: #f5c518;
  --yellow-hover: #e0b10c;
  --ink: #122033;
  --muted: #5b6b7c;
  --paper: #f5f7fa;
  --card: #ffffff;
  --line: #d7dee8;
  --danger: #b42318;
  --accent: var(--navy);
  --accent-hover: var(--navy-mid);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

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

a { color: var(--navy); }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 8px; }

.wrap,
header.site,
footer.site {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.site {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  background: transparent;
  border-bottom: 0;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: -0.02em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.logo span { color: #fff; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
}
.nav a:hover { color: #fff; }

.btn,
.nav-cta,
button[type="submit"] {
  background: var(--yellow);
  color: var(--navy) !important;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.btn-green {
  background: var(--yellow);
  color: var(--navy) !important;
}
.btn-green:hover,
.nav-cta:hover,
.btn:hover,
button[type="submit"]:hover { background: var(--yellow-hover); }
.btn-ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

.hero-band {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.hero { padding: 28px 0 48px; display: grid; gap: 24px; }
.hero-band .eyebrow { color: var(--yellow); }
.hero-band h1 { color: #fff; max-width: 16ch; }
.hero-band .lead { color: rgba(255, 255, 255, 0.78); }
.hero-band .price strong { color: var(--yellow); }
.hero-band .price span,
.hero-band small { color: rgba(255, 255, 255, 0.62); }
.hero-band .plain { color: rgba(255, 255, 255, 0.9); }
.hero-band .card {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
  font-weight: 800;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0.3rem 0 0.9rem; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); max-width: 18ch; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 40em; margin: 0; }

.price {
  margin-top: 1.3rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.price strong { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.price span, small { color: var(--muted); }

.plain {
  margin: 1.2rem 0 0;
  padding-left: 1.15rem;
}
.plain.wide { max-width: 42em; }

.card,
.order-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(11, 34, 64, 0.06);
}

.order-form {
  display: grid;
  gap: 12px;
}
.order-form label {
  display: grid;
  gap: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}
.order-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.order-form input:focus {
  outline: 2px solid var(--navy);
  border-color: var(--navy);
}
.order-form details.extra {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.order-form summary {
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.order-form .row { display: grid; gap: 12px; }
.order-form .error {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--danger);
}
.order-form .form-error {
  margin: 0;
  padding: 0.7rem;
  background: #fbeaea;
  border-radius: 8px;
}
.order-form small { color: var(--muted); }

.section { padding: 8px 0 48px; }
.muted { color: var(--muted); }

.faq details {
  background: var(--card);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 34, 64, 0.06);
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq details p { color: var(--muted); margin: 0.5rem 0 0.4rem; }

.prose { max-width: 42em; }
.page-hero { padding: 28px 0 8px; }
.page-hero h1 { max-width: 18ch; color: var(--navy); }

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 1.4rem 0 0;
}
.links-row a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

.footerbar {
  background: var(--navy-deep);
  margin-top: 24px;
}
footer.site {
  padding: 28px 0 40px;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  border-top: 0;
}
footer.site a { color: var(--yellow); }
footer.site a:hover { color: #fff; }
footer.site strong { color: #fff; }
.legal { display: grid; gap: 4px; }

.form-fallback { padding: 16px; border: 1px solid var(--line); background: var(--card); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    padding: 48px 0 72px;
    gap: 48px;
  }
  .card, .order-form { padding: 28px; }
  .order-form .row { grid-template-columns: 1fr 1fr; }
  footer.site {
    grid-template-columns: 1.2fr 1fr;
    justify-content: space-between;
  }
}

.domain-search { display: grid; gap: 12px; }
.domain-search label { font-weight: 700; color: var(--ink); display: grid; gap: 6px; }
.domain-search input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.domain-search input:focus {
  outline: 2px solid var(--navy);
  border-color: var(--navy);
}
.domain-search button[type="submit"] {
  min-height: 52px;
  padding: 12px 22px;
}
.domain-search .hint { font-family: inherit; font-size: 0.9rem; color: var(--muted); margin: 0; }
.search-result { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.search-result.is-error { color: var(--danger); }
.search-result .button {
  justify-self: start;
  background: var(--yellow);
  color: var(--navy) !important;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.search-result .button:hover { background: var(--yellow-hover); }
.cta-search { margin: 2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); }
.cta-search h2 { margin-bottom: 0.8rem; }
textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

@media (min-width: 520px) {
  .domain-search {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .domain-search label { grid-column: 1; }
  .domain-search button[type="submit"] { grid-column: 2; }
  .domain-search .hint,
  .domain-search .search-result { grid-column: 1 / -1; }
}
