/* Theme colors and shared dimensions */
:root {
  color-scheme: light;
  --ink: #121317;
  --navy: #171d3a;
  --alt: #f8f9fb;
  --muted: #535a70;
  --line: #e2e5ee;
  --accent: #c7341f;
  --head: #171d3a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 29, 58, 0.08);
}

/* Base layout and typography */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--head);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

section {
  padding: 88px 0;
}

.alt {
  background: var(--alt);
}

.dark,
.contact,
.hero {
  --head: #fff;
  --muted: #c3c8d8;
  --line: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.dark,
.contact {
  background: var(--navy);
}

/* Section labels */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--navy);
  font: 700 0.78rem/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  background: var(--accent);
  content: "";
}

.dark .eyebrow,
.contact .eyebrow,
.hero .eyebrow {
  color: #fff;
}

/* Fixed navigation and brand mark */
header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

header.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

nav {
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
}

nav img {
  height: 38px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--navy);
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font: 700 1.25rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.logo img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.flogo {
  justify-content: center;
  margin-bottom: 12px;
}

/* Buttons and mobile menu control */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 0;
  border-radius: 99px;
  background: var(--accent);
  color: #fff !important;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn.ghost {
  border: 1.5px solid var(--navy);
  background: none;
  color: var(--navy) !important;
}

#menu {
  display: none;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 1.6rem;
}

/* Full-height hero and image overlay */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding: 0;
  background: #222 url("../images/yellow-flowers-custom-digital-wallcovering.jpg") center/cover;
}

.page-hero {
  padding: 144px 0 100px;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.32), transparent 40%);
  content: "";
}

.hero .wrap {
  position: relative;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
}

.hero .btn.ghost {
  border-color: #fff;
  background: transparent;
  color: #fff !important;
}

.hero .btn.ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--navy) !important;
}

.hero .row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Company highlight numbers */
.stats {
  padding: 38px 0;
  background: var(--navy);
  color: #fff;
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stats b {
  display: block;
  font: 2.1rem Georgia, serif;
}

.stats span {
  color: #c3c8d8;
  font-size: 0.85rem;
}

/* Service and benefit cards */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
}

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(23, 29, 58, 0.14);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.grid3 .card,
.four .card {
  border-top: 3px solid var(--accent);
}

.four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 38px;
}

.four p {
  font-size: 0.95rem;
}

/* Two-column content and photography */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(23, 29, 58, 0.18);
}

/* Project process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 38px;
  counter-reset: step;
}

.steps div {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--alt);
}

.steps div::before {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  content: "0" counter(step);
  counter-increment: step;
  font: 700 2.2rem/1 Georgia, serif;
}

.steps h3 {
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Technology feature list */
.ticks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
}

.ticks li::before {
  position: absolute;
  left: 0;
  color: #fff;
  content: "✓";
  font-weight: 700;
}

/* FAQ accordion */
details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 0.6em 0 0;
  color: var(--muted);
}

/* Contact information and quote form */
.contact a {
  color: inherit;
  text-decoration: underline;
}

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

form {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfd3e0;
  border-radius: 10px;
  background: var(--alt);
  color: var(--ink);
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* White footer matches the navigation */
footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 0.9rem;
  text-align: center;
}

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

/* Scroll-in content animation */
.rv {
  transform: translateY(22px);
  opacity: 0;
  transition: 0.7s;
}

.rv.in {
  transform: none;
  opacity: 1;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .rv {
    transform: none;
    opacity: 1;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Stack layouts and expose the mobile menu on smaller screens */
@media (max-width: 860px) {
  section {
    padding: 60px 0;
  }

  .page-hero {
    padding: 112px 0 64px;
  }

  .grid3,
  .split,
  .four {
    grid-template-columns: 1fr;
  }

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

  .stats .wrap {
    grid-template-columns: 1fr 1fr;
  }

  #menu {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  nav ul a {
    color: var(--navy);
  }

  nav ul.open {
    display: flex;
  }
}
