/* Riverwalk Technology — coastal San Diego MSP palette */
:root {
  --navy: #0B2C3D;
  --navy-deep: #071E2A;
  --teal: #1A6B7A;
  --teal-mid: #2A8A9A;
  --teal-soft: #3A9AAA;
  --sand: #E8DFD0;
  --sand-light: #F7F3EB;
  --cream: #FBF8F3;
  --white: #FFFFFF;
  --text: #1A2B33;
  --text-muted: #4A5C66;
  --border: rgba(11, 44, 61, 0.12);
  --shadow: 0 12px 40px rgba(7, 30, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 30, 42, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal-soft);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--teal);
}

.logo-mark {
  color: var(--navy);
  flex-shrink: 0;
}

.logo:hover .logo-mark {
  color: var(--teal);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
}

.nav-list a:hover {
  color: var(--teal);
  background: rgba(26, 107, 122, 0.08);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: var(--navy);
  color: var(--sand-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-phone:hover {
  background: var(--teal);
  color: var(--white);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 45%, #13485A 100%);
  color: var(--sand-light);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(58, 154, 170, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(200, 184, 154, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23FBF8F3' d='M0,64 C240,110 480,20 720,50 C960,80 1200,110 1440,40 L1440,120 L0,120 Z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

.eyebrow-light {
  color: rgba(232, 223, 208, 0.85);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(247, 243, 235, 0.88);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--sand);
  color: var(--navy-deep);
  border-color: var(--sand);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--sand-light);
  border-color: rgba(247, 243, 235, 0.45);
}

.btn-secondary:hover {
  background: rgba(247, 243, 235, 0.1);
  border-color: var(--sand-light);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* —— Trust strip —— */
.trust-strip {
  padding: 2.75rem 0 3.25rem;
  background: var(--cream);
  margin-top: -1px;
}

.trust-lead {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-props li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.trust-props strong {
  color: var(--navy);
  font-weight: 600;
}

.trust-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(26, 107, 122, 0.1);
  color: var(--teal);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.section-header h2,
.about-content h2,
.contact-info h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* —— Services —— */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.service-card {
  padding: 1.75rem 1.6rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.service-card:hover {
  border-color: rgba(26, 107, 122, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy), var(--teal));
  color: var(--sand-light);
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* —— About —— */
.about {
  background: var(--sand-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.about-content p {
  color: var(--text-muted);
  margin: 0 0 1.1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-card {
  padding: 2rem 1.75rem;
  background: var(--navy);
  color: var(--sand-light);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
}

.about-card-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.about-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.about-meta div {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(247, 243, 235, 0.15);
}

.about-meta div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.about-meta dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 0.25rem;
}

.about-meta dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sand-light);
}

.about-meta a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
}

.about-meta a:hover {
  color: var(--white);
}

/* —— Why us —— */
.why-us {
  background: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.why-card {
  position: relative;
  padding: 1.85rem 1.75rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--navy));
}

.why-num {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.06em;
}

.why-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* —— Contact —— */
.contact {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 50%, #165566 100%);
  color: var(--sand-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.contact-info h2 {
  color: var(--white);
}

.contact-lead {
  margin: 0 0 2rem;
  color: rgba(247, 243, 235, 0.85);
  font-size: 1.08rem;
  max-width: 32em;
}

.contact-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-phone {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.35rem 1.5rem;
  background: rgba(247, 243, 235, 0.08);
  border: 1px solid rgba(247, 243, 235, 0.18);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-phone:hover {
  background: rgba(247, 243, 235, 0.14);
  border-color: rgba(247, 243, 235, 0.35);
  color: inherit;
}

.contact-phone-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

.contact-phone-number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.contact-owner {
  margin: 0;
  color: rgba(247, 243, 235, 0.8);
  line-height: 1.55;
}

.contact-owner strong {
  color: var(--white);
}

.contact-mailto {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(247, 243, 235, 0.75);
}

.contact-mailto a {
  color: var(--sand);
  font-weight: 600;
}

.contact-mailto a:hover {
  color: var(--white);
}

.contact-form-wrap {
  background: var(--white);
  color: var(--text);
  padding: 2rem 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
}

.form-note {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  background: var(--sand-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
}

.form-note a {
  font-weight: 600;
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #8A9AA3;
}

.form-row input:hover,
.form-row textarea:hover {
  border-color: rgba(26, 107, 122, 0.4);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(42, 138, 154, 0.2);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  background: var(--navy);
  color: var(--sand-light);
  border-color: var(--navy);
  margin-top: 0.35rem;
}

.contact-form .btn-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.form-status {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  background: rgba(26, 107, 122, 0.1);
  color: var(--navy);
  border: 1px solid rgba(26, 107, 122, 0.25);
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 243, 235, 0.7);
  padding: 2.25rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sand-light);
}

.footer-brand p {
  margin: 0 0 0.2rem;
}

.footer-brand a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
}

.footer-brand a:hover {
  color: var(--white);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem 1.25rem 1.35rem;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.15rem;
  }

  .nav-list a {
    padding: 0.75rem 1rem;
  }

  .nav-phone {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .trust-props {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-bg::after {
    height: 28%;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 1.75rem);
  }

  .logo-sub {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .contact-form-wrap {
    padding: 1.5rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
