@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --bg: #07111a;
  --bg-deep: #04090f;
  --panel: #0f1b25;
  --panel-strong: #142431;
  --panel-soft: #e9f0f4;
  --ink: #eff6fa;
  --ink-dark: #0d2230;
  --muted: #a9bcc8;
  --muted-dark: #5a6f7c;
  --accent: #64a9d8;
  --accent-bright: #8bcaf1;
  --accent-dark: #2f719c;
  --aqua: #75b9d1;
  --line: rgba(211, 231, 243, 0.14);
  --line-dark: rgba(20, 54, 76, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
::selection { color: var(--ink-dark); background: var(--accent); }
a { color: var(--accent-bright); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.topbar {
  position: relative;
  z-index: 60;
  padding: 9px 0;
  color: #d8e4eb;
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--accent-bright); font-weight: 700; text-decoration: none; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(242, 246, 249, 0.92);
  border-bottom: 1px solid rgba(11, 36, 52, 0.1);
  box-shadow: 0 10px 40px rgba(4, 15, 24, 0.1);
  backdrop-filter: blur(18px);
}
.nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { flex: 0 0 auto; }
.logo img { width: 188px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(13px, 1.6vw, 25px); }
.nav-links a {
  position: relative;
  color: #173447;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}
.nav-links > a:not(.btn)::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--accent-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover { color: var(--accent-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 21px;
  color: #0d2230 !important;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(47, 113, 156, 0.22);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.btn:hover { background: var(--accent-bright); border-color: var(--accent-bright); box-shadow: 0 16px 34px rgba(47, 113, 156, 0.3); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible, .menu-toggle:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(100, 169, 216, 0.45); outline-offset: 3px; }
.btn-outline { color: var(--ink) !important; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.32); box-shadow: none; backdrop-filter: blur(8px); }
.btn-outline:hover { color: var(--ink-dark) !important; background: var(--ink); border-color: var(--ink); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--ink-dark);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}
.menu-toggle svg { width: 21px; height: 21px; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 670px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(4, 10, 16, 0.96) 0%, rgba(6, 17, 27, 0.82) 48%, rgba(6, 17, 27, 0.18) 100%), url('assets/accent-security-01.png') center 44% / cover;
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(520px, 46vw);
  aspect-ratio: 1;
  right: -8%;
  bottom: -46%;
  border: 1px solid rgba(100, 169, 216, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(100, 169, 216, 0.04), 0 0 0 160px rgba(100, 169, 216, 0.025);
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
}
.hero .container { padding-block: 96px 120px; }
.hero-paver { min-height: 580px; background-image: linear-gradient(90deg, rgba(4, 10, 16, 0.96) 0%, rgba(6, 17, 27, 0.78) 52%, rgba(6, 17, 27, 0.18) 100%), url('assets/paver-driveway-1.jpg'); }
.eyebrow, .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow::before, .kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; letter-spacing: -0.035em; }
h1 { max-width: 830px; margin: 0 0 22px; font-size: clamp(3rem, 6.2vw, 5.8rem); font-weight: 700; line-height: 0.98; text-wrap: balance; }
p.hero-lead { max-width: 650px; margin: 0 0 30px; color: #dbe6ed; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.7; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 42px; color: #dce8ef; font-size: 0.78rem; font-weight: 700; }
.trust-badges span { padding: 8px 13px; background: rgba(6, 18, 29, 0.56); border: 1px solid rgba(223, 237, 246, 0.16); border-radius: 999px; backdrop-filter: blur(10px); }

.section { position: relative; padding: 108px 0; }
.section-soft { color: var(--ink-dark); background: var(--panel-soft); }
.section-soft .kicker { color: #2f719c; }
.section-soft .lead, .section-soft .card p, .section-soft .checks li { color: var(--muted-dark); }
.section-soft .card { background: rgba(255, 255, 255, 0.7); border-color: rgba(16, 47, 68, 0.12); box-shadow: 0 24px 60px rgba(25, 55, 76, 0.08); }
.section-dark { background: var(--bg-deep); }
h2 { max-width: 850px; margin: 0 0 18px; font-size: clamp(2.25rem, 4.5vw, 4rem); font-weight: 700; line-height: 1.05; text-wrap: balance; }
h3 { line-height: 1.2; }
.lead { max-width: 780px; margin: 0 0 40px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 78px); align-items: center; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid-4 > * { grid-column: span 3; }
.grid-4 > :nth-child(2), .grid-4 > :nth-child(3) { transform: translateY(28px); }

.card, .feature-card, .estimator-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(22, 39, 51, 0.96), rgba(10, 23, 32, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { min-height: 100%; padding: 28px; }
.card::after, .feature-card::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  right: -70px;
  bottom: -70px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.08;
  transition: transform 350ms ease, opacity 350ms ease;
}
.card:hover::after, .feature-card:hover::after { opacity: 0.14; transform: scale(1.5); }
.card h3 { margin: 0 0 11px; font-size: 1.15rem; }
.card p { margin: 0 0 18px; color: var(--muted); }
.card-img { width: calc(100% + 56px); max-width: none; height: 220px; margin: -28px -28px 22px; object-fit: cover; border-bottom: 1px solid var(--line); }
.link-more { display: inline-flex; align-items: center; color: var(--accent-bright); font-size: 0.86rem; font-weight: 800; text-decoration: none; transition: gap 180ms ease, color 180ms ease; }
.link-more:hover { color: #d9effd; }

.feature-card { min-height: 230px; padding: 28px; transition: transform 220ms ease, border-color 220ms ease, background 220ms ease; }
.feature-card:hover { background: linear-gradient(145deg, rgba(28, 49, 65, 0.98), rgba(12, 28, 39, 0.98)); border-color: rgba(100, 169, 216, 0.45); transform: translateY(-6px); }
.feature-icon { display: inline-grid; width: 48px; height: 48px; margin-bottom: 22px; color: var(--accent-bright); background: rgba(100, 169, 216, 0.1); border: 1px solid rgba(100, 169, 216, 0.18); border-radius: 14px; font-size: 1.65rem; place-items: center; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin: 0 0 10px; color: var(--ink); font-size: 1.12rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.checks { display: grid; gap: 14px; padding: 0; margin: 28px 0 34px; list-style: none; }
.checks li { position: relative; margin: 0; padding-left: 34px; color: #cfdee7; }
.checks li::before { content: ''; position: absolute; top: 0.36em; left: 0; width: 18px; height: 18px; background: var(--accent); border-radius: 50%; box-shadow: inset 0 0 0 5px var(--bg); }
.section-soft .checks li::before { box-shadow: inset 0 0 0 5px var(--panel-soft); }

.estimator-card { padding: clamp(26px, 4vw, 44px); }
.estimator-card h3 { margin: 0 0 22px; font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; color: #dce8ef; font-size: 0.8rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  color: var(--ink);
  background: rgba(4, 13, 21, 0.7);
  border: 1px solid rgba(202, 222, 234, 0.17);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
input::placeholder, textarea::placeholder { color: #728693; }
input:hover, select:hover, textarea:hover { border-color: rgba(202, 222, 234, 0.32); }
input:focus, select:focus, textarea:focus { background: rgba(6, 17, 27, 0.9); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(100, 169, 216, 0.1); }
textarea { min-height: 122px; resize: vertical; }
.estimate-result { min-height: 118px; display: flex; flex-direction: column; justify-content: center; margin-top: 20px; padding: 21px; color: #d6e4ec; background: rgba(100, 169, 216, 0.07); border: 1px dashed rgba(100, 169, 216, 0.42); border-radius: var(--radius-sm); }
.estimate-result strong { display: block; margin: 3px 0; color: var(--accent-bright); font-family: 'Manrope', sans-serif; font-size: clamp(1.45rem, 3vw, 2.15rem); }
.fine { margin-top: 12px; color: #8fa3af; font-size: 0.79rem; }

.ba { position: relative; overflow: hidden; min-height: 430px; background: #07111a; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(20, 48, 68, 0.24); }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba .after { position: absolute; inset: 0 auto 0 0; overflow: hidden; width: 50%; }
.ba .after img { width: 100%; max-width: none; }
.ba input { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; cursor: ew-resize; opacity: 0; }
.ba .line { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); }
.ba .handle { position: absolute; z-index: 4; top: 50%; left: 50%; width: 54px; height: 54px; display: grid; color: var(--ink-dark); background: var(--accent); border: 5px solid rgba(255, 255, 255, 0.88); border-radius: 50%; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.36); font-size: 0; transform: translate(-50%, -50%); place-items: center; }
.ba .handle::after { content: '↔'; font-size: 1.15rem; font-weight: 800; }
.tag { position: absolute; z-index: 2; top: 18px; padding: 7px 11px; color: #fff; background: rgba(4, 13, 21, 0.7); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; backdrop-filter: blur(10px); }
.tag.before { left: 18px; }
.tag.aftertag { right: 18px; }

.gallery-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; grid-template-rows: repeat(2, 245px); gap: 16px; }
.tile { position: relative; overflow: hidden; min-height: 230px; border-radius: var(--radius); }
.tile:first-child { grid-row: 1 / span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(.2,.7,.2,1), filter 350ms ease; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(3, 10, 16, 0.88)); }
.tile:hover img { filter: saturate(1.1); transform: scale(1.055); }
.tile span { position: absolute; z-index: 2; right: 20px; bottom: 18px; left: 20px; color: #fff; font-family: 'Manrope', sans-serif; font-weight: 700; }

.contact-box { padding: clamp(28px, 5vw, 60px); background: radial-gradient(circle at 90% 10%, rgba(100, 169, 216, 0.1), transparent 32%), var(--panel-strong); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.section-soft .contact-box { color: var(--ink); }
.section-soft .contact-box h3 { color: var(--ink); }
.section-soft .contact-box p { color: #c7d7e1; }
.section-soft .contact-box a { color: var(--accent-bright); }
.section-soft .card label { color: var(--ink-dark); }
.section-soft .card .fine { color: var(--muted-dark); }
.form-status { display: none; margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 700; }
.form-status.is-sending, .form-status.is-success, .form-status.is-error { display: block; }
.form-status.is-sending { color: #dce8ef; background: rgba(117, 185, 209, 0.1); border: 1px solid rgba(117, 185, 209, 0.3); }
.form-status.is-success { color: #d9effd; background: rgba(100, 169, 216, 0.1); border: 1px solid rgba(100, 169, 216, 0.35); }
.form-status.is-error { color: #ffd8cf; background: rgba(210, 98, 75, 0.1); border: 1px solid rgba(210, 98, 75, 0.35); }
button:disabled { cursor: wait; opacity: 0.66; transform: none !important; }

.areas-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.areas-wrap span { padding: 9px 14px; color: #dce8ef; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.section-soft .areas-wrap span { color: #173447; background: rgba(47, 113, 156, 0.08); border-color: rgba(47, 113, 156, 0.2); }
.faq { display: grid; gap: 12px; }
.faq details { padding: 19px 22px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: background 180ms ease, border-color 180ms ease; }
.faq details[open] { background: rgba(100, 169, 216, 0.055); border-color: rgba(100, 169, 216, 0.3); }
.faq summary { cursor: pointer; font-family: 'Manrope', sans-serif; font-weight: 700; }
.faq p { margin: 12px 0 0; color: var(--muted); }

.thank-you-main { min-height: 70vh; display: grid; padding: 90px 0; background: radial-gradient(circle at 50% 10%, rgba(100, 169, 216, 0.12), transparent 38%), var(--bg); place-items: center; }
.thank-you-card { max-width: 760px; margin: 0 auto; padding: clamp(34px, 7vw, 74px); text-align: center; }
.thank-you-icon { width: 74px; height: 74px; display: grid; margin: 0 auto 24px; color: var(--ink-dark); background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 12px rgba(100, 169, 216, 0.08); place-items: center; }
.thank-you-icon svg { width: 32px; height: 32px; }
.thank-you-card .kicker { justify-content: center; }
.thank-you-card .kicker::before { display: none; }
.thank-you-card h1 { margin-inline: auto; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.thank-you-card .lead { margin: 0 auto 30px; }
.thank-you-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.footer { padding: 74px 0 26px; color: #98aab5; background: #03070b; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer h3 { margin: 0 0 16px; color: var(--ink); font-size: 1rem; }
.footer p { max-width: 420px; }
.footer a { display: block; width: fit-content; margin: 8px 0; color: #b8c7cf; font-size: 0.9rem; text-decoration: none; transition: color 180ms ease; }
.footer a:hover { color: var(--accent-bright); }
.copyright { margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #72838d; font-size: 0.76rem; }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero .eyebrow, .hero h1, .hero-lead, .hero .cta-row, .trust-badges { opacity: 0; animation: rise-in 700ms both; }
.hero h1 { animation-delay: 80ms; }
.hero-lead { animation-delay: 160ms; }
.hero .cta-row { animation-delay: 240ms; }
.trust-badges { animation-delay: 320ms; }

@media (max-width: 1020px) {
  .menu-toggle { display: grid; }
  .nav { min-height: 76px; }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 24px;
    left: 24px;
    display: none;
    align-items: stretch;
    padding: 18px;
    background: rgba(242, 246, 249, 0.98);
    border: 1px solid var(--line-dark);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 24px 50px rgba(3, 14, 22, 0.18);
  }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 8px 5px; }
  .nav-links .btn { margin-top: 6px; }
  .grid-4 > * { grid-column: span 6; }
  .grid-4 > :nth-child(2), .grid-4 > :nth-child(3) { transform: none; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 32px, 1180px); }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar .container span:first-child { display: none; }
  .logo img { width: 164px; height: 58px; }
  .hero, .hero-paver { min-height: 610px; background-position: 62% center; }
  .hero { background-image: linear-gradient(90deg, rgba(4, 10, 16, 0.97), rgba(6, 17, 27, 0.82)), url('assets/accent-security-01.png'); }
  .hero-paver { background-image: linear-gradient(90deg, rgba(4, 10, 16, 0.97), rgba(6, 17, 27, 0.82)), url('assets/paver-driveway-1.jpg'); }
  .hero .container { padding-block: 82px 96px; }
  h1 { font-size: clamp(2.75rem, 13vw, 4.5rem); }
  .section { padding: 78px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { gap: 44px; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-4 > * { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .ba { min-height: 360px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 230px 230px; }
  .tile:first-child { grid-column: 1 / -1; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 24px, 1180px); }
  .nav-links { right: 12px; left: 12px; }
  .hero { min-height: 650px; }
  .hero .container { padding-block: 72px 82px; }
  .eyebrow { max-width: 310px; }
  h1 { font-size: clamp(2.55rem, 14vw, 3.7rem); }
  h2 { font-size: clamp(2.05rem, 11vw, 3rem); }
  .cta-row, .thank-you-actions { display: grid; }
  .cta-row .btn, .thank-you-actions .btn { width: 100%; }
  .trust-badges { display: grid; }
  .section { padding: 68px 0; }
  .card, .feature-card, .estimator-card { padding: 23px; }
  .card-img { width: calc(100% + 46px); margin: -23px -23px 20px; }
  .ba { min-height: 300px; border-radius: 20px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 260px); }
  .tile:first-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid > :first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
