:root {
  --navy: #0d2238;
  --navy-soft: #183752;
  --navy-light: #244a6a;

  --blue: #3478bd;
  --blue-dark: #245f9b;
  --blue-soft: #eaf3fb;

  --slate: #667789;
  --slate-dark: #425466;

  --warm-white: #fbfaf8;
  --cream: #f4f2ee;
  --light-gray: #e5ebf0;
  --white: #ffffff;

  --shadow-small: 0 12px 30px rgba(13, 34, 56, 0.08);
  --shadow: 0 22px 60px rgba(13, 34, 56, 0.13);
  --shadow-strong: 0 30px 80px rgba(13, 34, 56, 0.17);

  --radius-small: 14px;
  --radius-medium: 20px;
  --radius-large: 30px;

  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  min-height: 100vh;
  color: var(--navy);
  background: var(--warm-white);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-muted {
  background: var(--cream);
}

.section-dark {
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(52, 120, 189, 0.22),
      transparent 32%
    ),
    linear-gradient(135deg, #0d2238 0%, #071624 100%);
}

.section-dark::after {
  position: absolute;
  right: -180px;
  bottom: -220px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: #80b7eb;
}

/* Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 250, 248, 0.9);
  border-bottom: 1px solid rgba(13, 34, 56, 0.07);
  box-shadow: 0 8px 30px rgba(13, 34, 56, 0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrapper {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.logo span {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--slate-dark);
  font-size: 0.91rem;
  font-weight: 750;
}

.site-nav a {
  position: relative;
  transition:
    color 0.22s ease,
    transform 0.22s ease;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 99px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--navy);
}

.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 12px 20px;
  color: var(--white) !important;
  background: var(--navy);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(13, 34, 56, 0.16);
}

.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--light-gray);
  border-radius: 14px;
  color: var(--navy);
  background: var(--white);
  font-size: 1.45rem;
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 125px;
  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(52, 120, 189, 0.19),
      transparent 27%
    ),
    radial-gradient(
      circle at 76% 82%,
      rgba(52, 120, 189, 0.08),
      transparent 26%
    ),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.hero::before {
  position: absolute;
  top: 80px;
  right: -140px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(52, 120, 189, 0.1);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 82px;
  align-items: center;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(3.8rem, 7vw, 7rem);
  font-weight: 850;
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
  color: var(--blue);
}

.hero-text {
  max-width: 655px;
  margin-top: 30px;
  color: var(--slate);
  font-size: 1.16rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 820;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 15px 28px rgba(52, 120, 189, 0.25);
}

.button-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 19px 34px rgba(36, 95, 155, 0.28);
}

.button-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(13, 34, 56, 0.13);
  box-shadow: 0 8px 20px rgba(13, 34, 56, 0.04);
}

.button-secondary:hover {
  color: var(--blue-dark);
  border-color: rgba(52, 120, 189, 0.38);
  background: var(--white);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  color: var(--slate-dark);
  font-size: 0.88rem;
  font-weight: 750;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
}

.hero-trust span::before {
  width: 21px;
  height: 21px;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 50%;
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 550px;
}

.visual-card {
  position: absolute;
  border: 1px solid rgba(13, 34, 56, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-main {
  inset: 52px 14px 52px 58px;
  padding: 56px;
  border-radius: var(--radius-large);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.97),
      rgba(234, 243, 251, 0.8)
    );
}

.card-main::before {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(52, 120, 189, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  content: "";
}

.card-main::after {
  position: absolute;
  top: 49px;
  right: 49px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(52, 120, 189, 0.11);
  content: "";
}

.card-label {
  margin-bottom: 105px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-main h2 {
  max-width: 385px;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.card-main p:last-child {
  max-width: 405px;
  margin-top: 22px;
  color: var(--slate);
  line-height: 1.7;
}

.card-small {
  width: 220px;
  padding: 21px 22px;
  border-radius: var(--radius-medium);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.card-small:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.card-small span {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.card-small strong {
  color: var(--navy);
  font-size: 0.96rem;
}

.card-web {
  top: 0;
  right: 0;
}

.card-tech {
  bottom: 0;
  left: 0;
}

/* Shared section headings */

.section-heading {
  max-width: 760px;
  margin-bottom: 62px;
}

.section-heading h2,
.contact-copy h2,
.about-grid h2 {
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  font-weight: 830;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.section-heading > p:last-child {
  max-width: 660px;
  margin-top: 20px;
  color: var(--slate);
  font-size: 1.06rem;
  line-height: 1.75;
}

/* Services */

.service-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 315px;
  padding: 36px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-medium);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(13, 34, 56, 0.035);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.service-card::after {
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--blue-soft);
  content: "";
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.service-card:hover {
  border-color: rgba(52, 120, 189, 0.28);
  transform: translateY(-9px);
  box-shadow: var(--shadow);
}

.service-card:hover::after {
  opacity: 0.85;
  transform: scale(1);
}

.service-number,
.process-grid span {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 64px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.service-card h3,
.process-grid h3,
.project-content h3 {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.service-card p,
.process-grid p,
.project-content p {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  color: var(--slate);
  line-height: 1.7;
}

/* Projects */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  overflow: hidden;
  border: 1px solid rgba(13, 34, 56, 0.06);
  border-radius: var(--radius-large);
  background: var(--white);
  box-shadow: var(--shadow-small);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.project-image {
  position: relative;
  min-height: 350px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
}

.project-image::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      transparent 30%,
      rgba(255, 255, 255, 0.2) 100%
    );
  content: "";
}

.project-image::after {
  position: absolute;
  left: 34px;
  bottom: 30px;
  width: 120px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 -18px 0 rgba(255, 255, 255, 0.35),
    0 -36px 0 rgba(255, 255, 255, 0.22);
  content: "";
}

.project-image span {
  position: relative;
  z-index: 2;
  padding: 9px 14px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(13, 34, 56, 0.08);
  font-size: 0.76rem;
  font-weight: 850;
}

.project-bethel {
  background:
    radial-gradient(
      circle at 78% 20%,
      rgba(255, 255, 255, 0.45),
      transparent 22%
    ),
    linear-gradient(135deg, #779ab8 0%, #b9ccda 52%, #e4ebf0 100%);
}

.project-sava {
  background:
    radial-gradient(
      circle at 75% 18%,
      rgba(255, 255, 255, 0.38),
      transparent 22%
    ),
    linear-gradient(135deg, #9f7959 0%, #c9a887 52%, #eadbcb 100%);
}

.project-content {
  padding: 38px;
}

.project-type {
  margin-bottom: 9px;
  color: var(--blue) !important;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-content a {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  color: var(--blue-dark);
  font-weight: 850;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

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

/* Process */

.process-grid article {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--light-gray);
}

.process-grid article::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 46px;
  height: 8px;
  border-radius: 99px;
  background: var(--blue);
  content: "";
}

.process-grid span {
  margin-bottom: 42px;
}

/* About */

.about-grid,
.contact-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
}

.about-grid {
  position: relative;
  z-index: 1;
  align-items: start;
}

.about-copy {
  max-width: 620px;
  font-size: 1.08rem;
}

.about-copy p {
  margin-bottom: 23px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

.about-copy p:first-child {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.17rem;
}

/* Contact */

.contact-grid {
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 120px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 22px;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.75;
}

.contact-copy > p:last-child {
  color: var(--navy-soft);
  font-weight: 750;
}

.contact-form {
  display: grid;
  gap: 19px;
  padding: 38px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-large);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 9px;
  color: var(--navy-soft);
  font-size: 0.87rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid #ccd6df;
  border-radius: var(--radius-small);
  color: var(--navy);
  background: #fbfcfd;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form textarea {
  min-height: 155px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8795a3;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #aebdca;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(52, 120, 189, 0.11);
}

.contact-form .button {
  width: 100%;
  margin-top: 4px;
}

/* Footer */

.site-footer {
  padding: 62px 0;
  color: rgba(255, 255, 255, 0.7);
  background: #06131f;
}

.footer-grid {
  align-items: end;
}

.footer-grid > div:last-child {
  text-align: right;
}

.footer-logo {
  color: var(--white);
}

.footer-logo span {
  color: #7fb5e7;
}

.footer-grid p {
  margin-top: 11px;
  font-size: 0.92rem;
}

/* Accessibility */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(52, 120, 189, 0.35);
  outline-offset: 4px;
}

/* Tablet */

@media (max-width: 1040px) {
  .hero-grid {
    gap: 52px;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-main {
    padding: 44px;
  }
}

@media (max-width: 960px) {
  .section {
    padding: 100px 0;
  }

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

  .hero-grid {
    gap: 65px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 500px;
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }

  .contact-copy {
    position: static;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 4px 2px;
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 82px 0;
  }

  .nav-wrapper {
    min-height: 74px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo span {
    font-size: 0.86rem;
  }

  .site-nav {
    top: 74px;
    right: 14px;
    left: 14px;
  }

  .hero {
    padding: 92px 0 84px;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 16vw, 5rem);
    line-height: 0.95;
  }

  .hero-text {
    margin-top: 24px;
    font-size: 1.04rem;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-trust {
    display: grid;
    gap: 12px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .card-main {
    inset: 35px 0;
    padding: 34px;
  }

  .card-label {
    max-width: 230px;
    margin-bottom: 76px;
  }

  .card-main h2 {
    max-width: 300px;
    font-size: 2.55rem;
  }

  .card-main p:last-child {
    font-size: 0.94rem;
  }

  .card-main::before,
  .card-main::after {
    display: none;
  }

  .card-small {
    width: 170px;
    padding: 17px;
  }

  .service-grid,
  .process-grid,
  .project-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .section-heading h2,
  .contact-copy h2,
  .about-grid h2 {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 46px;
  }

  .project-image {
    min-height: 255px;
  }

  .project-content {
    padding: 30px;
  }

  .about-grid,
  .contact-grid,
  .footer-grid {
    gap: 45px;
  }

  .contact-form {
    padding: 25px;
    border-radius: 22px;
  }

  .footer-grid > div:last-child {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 3.45rem;
  }

  .hero-visual {
    min-height: 455px;
  }

  .card-main {
    padding: 29px;
  }

  .card-main h2 {
    font-size: 2.3rem;
  }

  .card-small {
    width: 155px;
    font-size: 0.86rem;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}/* Real A&R logo sizing */

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand-logo img {
  width: 230px;
  height: 62px;
  filter: brightness(1.35);
}

@media (max-width: 960px) {
  .brand-logo img {
    width: 215px;
    height: 58px;
  }
}

@media (max-width: 700px) {
  .brand-logo img {
    width: 180px;
    height: 50px;
  }

  .footer-brand-logo img {
    width: 200px;
    height: 54px;
  }
}