/* Reference Designs, Inc. — static site styles */
:root {
  --ink: #16191d;
  --ink-soft: #4a5260;
  --paper: #ffffff;
  --paper-alt: #f4f5f7;
  --line: #e2e5ea;
  --accent: #b5121b;        /* deep red, echoes the Wix logo/brand */
  --accent-dark: #8e0e15;
  --dark: #0f1216;
  --radius: 10px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Montserrat", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 108px; }
.brand img { height: 88px; width: auto; }
.brand .brand-text { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 6px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-alt); color: var(--accent); }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); padding: 6px 10px;
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-header .wrap { height: 88px; }
  .brand img { height: 68px; }
  .nav {
    display: none; position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  background: var(--accent); color: #fff !important; padding: 12px 22px; border-radius: 6px;
  border: 0; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--accent) !important; border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--dark);
  min-height: 78vh; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,15,.85) 0%, rgba(10,12,15,.35) 70%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { max-width: 15ch; }
.hero .sub { font-size: 1.2rem; color: #d8dce2; max-width: 46ch; margin-bottom: 1.8em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.alt { background: var(--paper-alt); }
.dark { background: var(--dark); color: #e8eaee; }
.dark h2 { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; background: var(--line); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* Credentials */
.creds { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.creds ul { list-style: none; padding: 0; margin: 0; }
.creds li { padding: 6px 0 6px 26px; position: relative; font-weight: 500; }
.creds li::before { content: "★"; position: absolute; left: 0; color: var(--accent); }
.badges { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.badges img { height: 96px; width: auto; }
@media (max-width: 760px) { .creds { grid-template-columns: 1fr; } }

/* Solutions grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 10px 30px rgba(15,18,22,.08); transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px; background: rgba(181,18,27,.08); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 24px; }
.partners div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.partners dt { font-weight: 600; color: #fff; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.partners dd { margin: 4px 0 0; color: #b9bfc8; }
@media (max-width: 700px) { .partners { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { display: flex; gap: 14px; padding: 10px 0; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 3px; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: .97rem; padding: 12px 14px; border: 1px solid #cfd4db; border-radius: 6px; background: #fff;
  margin-bottom: 14px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(181,18,27,.35); border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.form-status { margin-top: 12px; font-weight: 600; }

/* Services page */
.page-head { background: var(--dark); color: #fff; padding: 72px 0 56px; }
.page-head p { color: #c3c8d0; max-width: 60ch; margin: 0; }
.services { display: grid; gap: 24px; }
.service {
  display: grid; grid-template-columns: 260px 1fr auto; gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.service img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; background: var(--line); }
.service .body { padding: 24px 0; }
.service .meta { display: flex; gap: 18px; color: var(--ink-soft); font-size: .93rem; flex-wrap: wrap; }
.service .meta span { display: inline-flex; gap: 6px; align-items: center; }
.service .price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.service .cta { padding: 24px 28px 24px 0; text-align: right; }
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; }
  .service img { aspect-ratio: 16/9; min-height: 0; }
  .service .body { padding: 0 22px; }
  .service .cta { padding: 0 22px 22px; text-align: left; }
}

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--line); }
.post-card .body { padding: 22px; }
.post-card h3 { margin-bottom: .4em; color: var(--ink); }
.post-card p { color: var(--ink-soft); font-size: .95rem; }
.post-card .byline { font-size: .85rem; color: var(--ink-soft); }
.post-card:hover h3 { color: var(--accent); }

article.post { max-width: 740px; margin: 0 auto; }
article.post .byline { color: var(--ink-soft); font-size: .93rem; margin-bottom: 2em; }
article.post img { border-radius: var(--radius); margin: 2em 0; background: var(--line); }
article.post p strong { color: var(--ink); }
.tag { display: inline-block; background: var(--paper-alt); padding: 4px 12px; border-radius: 99px; font-size: .85rem; text-decoration: none; }
.back { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #9aa1ab; padding: 48px 0 32px; font-size: .93rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer a { color: #d4d8de; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: #fff; font-family: var(--display); }
.site-footer .legal { width: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 8px; font-size: .85rem; }
