/* Ryan & Associates Cost Consulting — brand colours from the 2014 logo guide */
:root {
  --purple: #3a2061;
  --purple-dark: #2a1747;
  --purple-tint: #f3f0f8;
  --grey: #6d6e70;
  --grey-light: #a7a9ab;
  --ink: #26232c;
  --line: #e4e2e8;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--purple); }

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

h1, h2, h3 {
  font-family: "Cinzel", Georgia, serif;
  color: var(--purple);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--purple);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 46px; width: auto; }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.12); }
.nav a.active { background: rgba(255, 255, 255, 0.2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(42, 23, 71, 0.94) 0%, rgba(58, 32, 97, 0.82) 45%, rgba(58, 32, 97, 0.35) 100%),
    url("images/tunnel.jpg") center / cover no-repeat;
  padding: 110px 0 120px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 720px;
}
.hero p {
  max-width: 620px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 32px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: 999px;
  margin: 0 10px 10px 0;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--white); color: var(--purple); }
.btn-outline { border: 1.5px solid rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--purple-dark), var(--purple));
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.page-hero p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 640px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-tint { background: var(--purple-tint); }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--grey); margin: 0; }

.kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}

/* Intro split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.split p { color: #3f3c46; }
.split img {
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(42, 23, 71, 0.18);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Project type cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(42, 23, 71, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(42, 23, 71, 0.14); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.card-body p { margin: 0; color: var(--grey); font-size: 0.95rem; }

/* Service tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--purple);
  border-radius: 12px;
  padding: 28px 26px;
}
.tile h3 { font-size: 1.1rem; }
.tile p { color: var(--grey); font-size: 0.95rem; margin: 0 0 14px; }
.tile ul { margin: 0; padding: 0; list-style: none; }
.tile li {
  position: relative;
  padding: 7px 0 7px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.tile li:first-child { border-top: none; }
.tile li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grey-light);
  transform: rotate(45deg);
}

.tile-link { text-decoration: none; color: inherit; display: block; transition: transform 0.2s; }
.tile-link:hover { transform: translateY(-3px); }

/* Call to action band */
.cta {
  background: linear-gradient(120deg, var(--purple-dark), var(--purple));
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}
.cta h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { color: rgba(255, 255, 255, 0.85); margin: 0 0 28px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
}
.contact-card .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--purple-tint);
  display: grid;
  place-items: center;
}
.contact-card .icon svg { width: 24px; height: 24px; stroke: var(--purple); fill: none; stroke-width: 1.8; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--grey); }
.contact-card a { font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-dark);
  color: var(--grey-light);
  font-size: 0.88rem;
  padding: 40px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer img { height: 34px; width: auto; opacity: 0.9; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .split, .cards, .tiles, .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  section { padding: 56px 0; }
  .hero { padding: 72px 0 80px; }
}
@media (max-width: 520px) {
  .site-header .wrap { justify-content: center; }
  .logo img { height: 38px; }
  .nav a { padding: 6px 10px; font-size: 0.75rem; }
  .site-footer .wrap { justify-content: center; text-align: center; }
}
