/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #05070b;
  --bg-soft: #0b0f16;
  --bg-soft-alt: #101520;
  --accent: #d8b46b;
  --accent-soft: rgba(216, 180, 107, 0.18);
  --accent-strong: #f1cf82;
  --text: #f7f7f9;
  --text-soft: #a8afc3;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #181d2a 0, #05070b 45%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Links (normalize, prevent purple visited, hover behavior) ---------- */

a {
  color: inherit;
  text-decoration: none;
}

/* Prevent purple visited links */
a:visited {
  color: inherit;
}

/* Animated hover underline & color ONLY for normal text links
   (not buttons, nav CTA, or brand/logo link) */
a:not(.btn):not(.btn-primary):not(.nav-cta):not(.brand) {
  position: relative;
  transition: color 0.2s ease;
}

a:not(.btn):not(.btn-primary):not(.nav-cta):not(.brand)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--accent-strong);
  transition: width 0.25s ease;
}

a:not(.btn):not(.btn-primary):not(.nav-cta):not(.brand):hover {
  color: var(--accent-strong);
}

a:not(.btn):not(.btn-primary):not(.nav-cta):not(.brand):hover::after {
  width: 100%;
}

/* Explicitly disable underline/after for buttons, nav CTA, and brand/logo */
.btn,
.btn:visited,
.btn:hover,
.nav-cta,
.nav-cta:visited,
.nav-cta:hover,
.brand,
.brand:visited,
.brand:hover {
  text-decoration: none;
}

.btn::after,
.nav-cta::after,
.brand::after {
  content: none;
}

/* ---------- Layout ---------- */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 3.8rem 0;
}

.section-muted {
  background: radial-gradient(circle at top left, #151925 0, #05070b 45%);
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.split {
  display: grid;
  gap: 2.2rem;
}

.hero-narrow {
  max-width: 42rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.8fr);
    align-items: flex-start;
  }
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 2.9rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.45rem, 1.8vw + 1rem, 2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.7rem;
}

.lead {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 42rem;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.small {
  font-size: 0.9rem;
}

.tiny {
  font-size: 0.78rem;
  opacity: 0.75;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.15rem 0;
  background: rgba(1, 4, 10, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
}

/* 50% larger header logo */
.brand-logo {
  height: 96px;
  width: auto;
  flex-shrink: 0;
}

/* scaled brand text */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  align-items: center;
  gap: 1.7rem;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--accent-strong);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 180, 107, 0.5);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #05070b !important;
  font-size: 0.85rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(216, 180, 107, 0.35);
  text-decoration: none;
}

/* Remove animated underline for nav CTA specifically */
.nav-links a.nav-cta::after {
  content: none;
}

.nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 1rem;
}

@media (min-width: 900px) {
  .brand-logo {
    height: 108px;
  }

  .brand-title {
    font-size: 1.55rem;
  }

  .brand-subtitle {
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }
}

/* mobile nav open */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 1.25rem;
  top: 5.4rem;
  padding: 1rem 1.2rem;
  background: #05070b;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Hero ---------- */

.hero {
  padding: 3.4rem 0 3.2rem;
}

.hero-layout {
  display: grid;
  gap: 2.3rem;
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
    align-items: flex-start;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
  margin-bottom: 1.7rem;
}

.hero-metas {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  font-size: 0.85rem;
}

.meta-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.meta-value {
  font-weight: 500;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #05070b;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

/* Hover animation for primary buttons */
.btn-primary {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(216, 180, 107, 0.35);
}

/* Ensure primary button text stays black in all states */
.btn-primary,
.btn-primary:visited,
.btn-primary:hover {
  color: #05070b;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent-strong);
}

/* Small variant button for inline CTAs like the estimator */
.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

/* Estimator CTA block */
.estimator-cta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.estimator-cta .btn-sm {
  align-self: flex-start; /* or center if you prefer */
}

/* Secondary / estimator CTA button */
.btn-outline-accent {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid rgba(216, 180, 107, 0.5);
  box-shadow: none;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              color 0.2s ease;
}

.btn-outline-accent:hover {
  background: rgba(216, 180, 107, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(216, 180, 107, 0.25);
  color: #ffffff;
}




/* ---------- Cards & grids ---------- */

.card {
  background: radial-gradient(circle at top left, #141827 0, #080b12 50%, #05070b 100%);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.card-grid {
  display: grid;
  gap: 1.7rem;
}

@media (min-width: 820px) {
  .card-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Form containers ---------- */

.hero-panel,
.contact-card,
.pricing-card {
  background: radial-gradient(circle at top left, #151a27 0, #05070b 55%);
  padding: 1.6rem 1.6rem 1.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

/* ---------- Forms ---------- */

form {
  display: grid;
  gap: 1rem;
}

form.two-column .field-row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 720px) {
  form.two-column .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

input,
select,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 9, 15, 0.9);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
}

input::placeholder,
textarea::placeholder {
  color: rgba(168, 175, 195, 0.65);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

fieldset {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 1rem 1rem;
}

legend {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

fieldset label {
  font-size: 0.82rem;
  grid-template-columns: auto 1fr;
  align-items: center;
}

fieldset input[type="checkbox"] {
  width: auto;
}

/* ---------- Checklists ---------- */

.checklist {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.35rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--accent-strong);
}

/* ---------- Pull quote ---------- */

.pull-quote {
  background: radial-gradient(circle at top left, #15192b 0, #070a12 55%);
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
}

.pull-quote p {
  color: var(--text);
}

.quote-attrib {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ---------- Final CTA ---------- */

.final-cta {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .final-cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cta-actions {
    align-items: flex-end;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 1.7rem;
  background: #05070b;
}

.footer-inner {
  display: grid;
  gap: 2.3rem;
}

/* 50% larger footer logo */
.footer-logo {
  height: 78px;
  width: auto;
  flex-shrink: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.footer-brand h4 {
  margin: 0 0 0.25rem;
}

.footer-columns {
  display: grid;
  gap: 1.6rem;
}

.footer-col h5 {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.footer-col li + li {
  margin-top: 0.3rem;
}

.footer-col a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  opacity: 0.75;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr);
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  gap: 1.6rem;
}

/* 2-wide layout on tablet/desktop */
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery-item {
  background: #070a11;
  border-radius: 16px;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.gallery-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: radial-gradient(circle at top left, #202437, #05070b);
  margin-bottom: 0.6rem;
}

.gallery-caption {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ---------- Team section ---------- */

.team-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.3rem;
}

@media (min-width: 800px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.team-card {
  background: radial-gradient(circle at top left, #161b2a 0, #05070b 55%);
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.team-photo {
  width: 190px;
  height: 190px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  overflow: hidden;
}

.team-name,
.team-role {
  text-align: center;
}

.team-bio {
  text-align: left;
  max-width: 42ch;
  margin: 0.6rem auto 0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
}

.team-role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
}

.team-bio {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.meta-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.25rem 0 0;
}

.meta-list li {
  margin-bottom: 0.25rem;
}

/* ---------- Utilities ---------- */

.center {
  text-align: center;
}

.spacious-list li {
  margin-bottom: 0.45rem;
}

.meta-lines {
  display: block;
  line-height: 1.5;
}

.meta-lines {
  display: block;
  line-height: 1.5;
}

/* Ensure hero stays two-column on desktop */
.hero-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.hero-copy {
  flex: 1 1 0;
  min-width: 0;
}

.hero-panel {
  flex: 0 0 420px;
  max-width: 420px;
}

/* Stack on mobile */
@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column;
  }

  .hero-panel {
    max-width: 100%;
  }
}

.footer-certification {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem 0.5rem;
  opacity: 0.9;
}

.footer-certification img {
  height: 46px;
  width: auto;
  display: block;
}

.footer-certification span {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Mobile: keep it tidy */
@media (max-width: 600px) {
  .footer-certification {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-cert-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.75;
}

.footer-cert-inline img {
  height: 54px;
  width: auto;
  display: block;
}

.footer-cert-inline span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Mobile: stack neatly */
@media (max-width: 600px) {
  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

}
