/* =========================================================
   PDRNLab.com — Stylesheet
   Design tokens live at the top. Change palette / type here.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Palette */
  --color-bg:        #F6F9F8;
  --color-bg-alt:     #EDF3F1;
  --color-warm:       #F3ECE2;
  --color-silver:     #CBD4D3;
  --color-teal:       #2F6F6B;
  --color-teal-dark:  #21504D;
  --color-aqua:       #8FBFB3;
  --color-aqua-light: #C9E4DD;
  --color-charcoal:   #222A29;
  --color-text-soft:  #4C5958;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 12px 30px rgba(34, 60, 58, 0.08);
  --shadow-card: 0 6px 18px rgba(34, 60, 58, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-charcoal);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--color-text-soft); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-teal); color: #fff; padding: 10px 16px;
  z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------------- Header ---------------- */
.site-header {
  background: rgba(246, 249, 248, 0.92);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(47,111,107,0.12);
}
.header-top {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding-top: 18px; padding-bottom: 10px;
}
.header-bottom {
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark svg { display: block; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--color-charcoal); letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.site-nav ul {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;
  flex-wrap: nowrap; overflow-x: auto; justify-content: center;
}
.site-nav a {
  display: inline-block; padding: 8px 13px; border-radius: 999px;
  color: var(--color-charcoal); font-size: 0.92rem; font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.is-active {
  background: var(--color-aqua-light); text-decoration: none; color: var(--color-teal-dark);
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-charcoal); }

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs { padding-top: 16px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 0.85rem; color: var(--color-text-soft); }
.breadcrumbs li { display: flex; gap: 6px; align-items: center; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 56px;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-aqua-light) 120%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid rgba(47,111,107,0.18);
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  color: var(--color-teal-dark); letter-spacing: 0.02em; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

.strand-divider {
  width: 100%; height: 46px; margin: 6px 0 0;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-teal); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--color-teal-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--color-teal); color: var(--color-teal-dark); }
.btn-outline:hover { background: var(--color-aqua-light); }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }

/* ---------------- Image slots ---------------- */
.img-slot {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--color-aqua-light), var(--color-silver));
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot .img-slot-fallback {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--color-teal-dark); font-size: 0.85rem; font-weight: 500; text-align: center; padding: 20px;
}
.img-slot .img-slot-fallback svg { opacity: 0.8; }

.hero-image { min-height: 340px; }
.section-image { min-height: 260px; margin-bottom: 28px; }
.card-image { min-height: 150px; margin-bottom: 14px; }

/* ---------------- Sections & Cards ---------------- */
section { padding: 56px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 700px; margin-bottom: 34px; }
.section-head p { font-size: 1.05rem; }

.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card {
  background: #fff; border-radius: var(--radius-md); padding: 24px;
  box-shadow: var(--shadow-card); border: 1px solid rgba(47,111,107,0.07);
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 10px; font-size: 0.95rem; }
.card .card-link { font-weight: 600; font-size: 0.9rem; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}

.content-page main article {
  max-width: 780px;
}
.content-wrap {
  padding: 44px 0 20px;
}
.content-wrap h2 { margin-top: 1.6em; }
.content-wrap ul, .content-wrap ol { color: var(--color-text-soft); padding-left: 22px; }
.content-wrap li { margin-bottom: 6px; }

/* Gentle note box */
.gentle-note {
  margin-top: 34px; padding: 18px 20px; background: var(--color-warm);
  border-left: 4px solid var(--color-aqua); border-radius: 10px;
  font-size: 0.92rem; color: var(--color-text-soft);
}

/* Domain acquisition block */
.domain-block {
  background: linear-gradient(120deg, #fff, var(--color-bg-alt));
  border: 1px solid rgba(47,111,107,0.14);
  border-radius: var(--radius-lg);
  padding: 32px; margin: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.domain-block h3 { margin-bottom: 6px; }
.domain-block p { margin-bottom: 0; max-width: 52ch; font-size: 0.95rem; }

/* Ad slots */
.ad-slot {
  margin: 30px 0; padding: 10px; text-align: center;
  border: 1px dashed var(--color-silver); border-radius: 10px; background: #fff;
}
.ad-slot-label {
  display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-soft); margin-bottom: 8px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(47,111,107,0.14); padding: 18px 0;
}
.faq-item summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--color-teal); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 12px; }

/* Glossary */
.glossary-list dt {
  font-family: var(--font-display); font-weight: 600; margin-top: 22px; color: var(--color-teal-dark);
}
.glossary-list dd { margin: 6px 0 0; color: var(--color-text-soft); }

/* Forms */
.form-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-soft); max-width: 640px;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--color-silver);
  border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem; background: var(--color-bg);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-aqua); outline-offset: 1px;
}
.form-note {
  background: var(--color-warm); border-radius: 10px; padding: 14px 16px;
  font-size: 0.88rem; color: var(--color-text-soft); margin-bottom: 22px;
}
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-error { color: #a3402f; font-size: 0.85rem; margin-top: 6px; }
.alert-success {
  background: #E7F3EC; border: 1px solid #8FBFB3; color: var(--color-teal-dark);
  padding: 16px 20px; border-radius: 10px; margin-bottom: 20px;
}
.alert-error {
  background: #FBEAE6; border: 1px solid #E3A190; color: #8A3A28;
  padding: 16px 20px; border-radius: 10px; margin-bottom: 20px;
}

/* Table (glossary / comparisons) */
table.compare-table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.94rem;
}
.compare-table th, .compare-table td {
  border: 1px solid rgba(47,111,107,0.15); padding: 12px 14px; text-align: left; vertical-align: top;
}
.compare-table th { background: var(--color-bg-alt); font-family: var(--font-display); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--color-charcoal); color: #D8E2E0; padding: 50px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 34px; }
.footer-brand .brand-name { color: #fff; }
.footer-tagline { color: #A9BAB7; font-size: 0.9rem; margin-top: 8px; }
.footer-disclaimer { font-size: 0.82rem; color: #93A6A3; margin-top: 14px; max-width: 42ch; }
.footer-col h3 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #C3D2CF; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-domain-note { margin-top: 14px; font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; font-size: 0.8rem; color: #7F928F;
}

/* 404 */
.error-page { text-align: center; padding: 90px 0; }
.error-page h1 { font-size: 5rem; margin-bottom: 0; color: var(--color-aqua); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-bottom .site-nav {
    display: none;
  }
  .header-bottom .site-nav.is-open {
    display: block;
  }
  .site-nav ul { flex-direction: column; overflow-x: visible; }
  .nav-toggle { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .domain-block { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
