/* Tito's Jewelry — palette and type come from the shop's own awning:
   red serif caps on white, blue awning band, blue diamond outlines.
   Gold is the accent because gold is what fills the cases. */

:root {
  --ink: #16213a;
  --muted: #555e72;
  --paper: #fbf8f2;
  --card: #ffffff;
  --line: #e4dccd;
  --blue: #1c5ba3;        /* awning blue, 6.6:1 on white */
  --blue-deep: #10345f;
  --red: #b11f2a;         /* sign red, 6.5:1 on white */
  --gold: #b8892b;        /* rules and ornaments only, not body text */
  --gold-soft: #f4ead2;
  --radius: 10px;
  --wrap: 1120px;
  --display: "Cinzel", "Times New Roman", serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.12rem; font-weight: 600; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 .9em;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }

.es { font-style: italic; color: var(--muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  background: var(--blue); color: #fff;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 2px solid var(--blue);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0; }

/* ---------- top bar + header ---------- */

.topbar {
  background: var(--blue-deep); color: #e8eef7;
  font-size: .9rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 76px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--red);
  margin-right: auto;
}
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--display); font-weight: 700;
  font-size: 1.5rem; letter-spacing: .04em;
}
.logo-sub {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 5px; white-space: nowrap;
}

.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.header-call { min-height: 44px; padding: 0 18px; }

/* ---------- hero ---------- */

.hero { padding: 56px 0 64px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.hero-media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -22px rgba(22, 33, 58, .45);
  aspect-ratio: 4 / 3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-hours { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }

.page-hero { padding: 52px 0 36px; border-bottom: 1px solid var(--line); background: #fff; }
.page-hero h1 { max-width: 18em; }

/* ---------- sections ---------- */

.section { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 32px; }

.rule {
  width: 64px; height: 3px; background: var(--gold); border: 0; margin: 0 0 22px;
}

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column;
}
.card h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more::after { content: " \2192"; }
.card-icon { width: 30px; height: 30px; color: var(--blue); margin-bottom: 14px; }

/* chip list of common repairs */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 28px; }
.chips li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .95rem;
}

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }

/* gold band */
.band {
  background: var(--blue-deep); color: #fff; padding: 56px 0;
  background-image: linear-gradient(135deg, rgba(184, 137, 43, .22), transparent 55%);
}
.band h2 { color: #fff; }
.band .es { color: #e9d7a8; font-size: 1.15rem; }
.band p { color: #dfe6f1; max-width: 38em; }
.band .btn { background: #fff; color: var(--blue-deep); border-color: #fff; }
.band .btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.band .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* service groups on the repair page */
.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.group {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 10px;
}
.group h2 { font-size: 1.35rem; margin-bottom: .8em; }
.svc { list-style: none; margin: 0; padding: 0; }
.svc li { padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.svc li:last-child { border-bottom: 0; }
.svc strong { display: block; font-weight: 600; }
.svc span { color: var(--muted); font-size: .96rem; }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; padding-top: 4px; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--ink);
  font-family: var(--display); font-weight: 700; margin-bottom: 12px;
}
.steps p { color: var(--muted); }

/* photo gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery figcaption { padding: 12px 16px; font-size: .95rem; color: var(--muted); }

/* karat table */
.table-wrap { overflow-x: auto; }
table.karat {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: .98rem;
}
.karat th, .karat td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.karat th { background: var(--gold-soft); font-weight: 600; }
.karat tr:last-child td { border-bottom: 0; }

.note {
  border-left: 3px solid var(--gold); background: #fff;
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted);
}

/* ---------- visit block ---------- */

.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: stretch; }
.visit-info {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.visit-info address { font-style: normal; font-size: 1.1rem; margin-bottom: 6px; }
.visit-info .cross { color: var(--muted); margin-bottom: 18px; }
.visit-info .phone { font-size: 1.35rem; font-weight: 600; text-decoration: none; }

.hours { width: 100%; border-collapse: collapse; margin: 18px 0 6px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.map-frame {
  width: 100%; height: 100%; min-height: 360px; border: 0;
  border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line);
}

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #c9cfdb; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-name { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.3rem; letter-spacing: .04em; margin-bottom: 4px; }
.site-footer h2 { font-family: var(--body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #e9d7a8; font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer address { font-style: normal; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: .85rem; color: #9aa3b5;
}
.footer-base a { color: #c9cfdb; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .header-call .long { display: none; }
}

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 16px; }
}

@media (max-width: 820px) {
  .hero { padding: 32px 0 44px; }
  .hero-grid, .split, .visit { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { order: -1; aspect-ratio: 16 / 9; }
  .groups, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .header-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 12px; }
  .nav {
    order: 3; width: 100%;
    overflow-x: auto; gap: 20px; padding: 8px 0 6px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .section { padding: 48px 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .cards { grid-template-columns: 1fr; }
  .logo { gap: 8px; }
  .logo-name { font-size: 1.18rem; }
  .logo-sub { font-size: .56rem; letter-spacing: .08em; }
  .logo svg { width: 26px; height: 26px; }
  .nav { justify-content: space-between; gap: 10px; }
  .nav a { font-size: .92rem; }
  .header-call { padding: 0 14px; font-size: .92rem; }
  .header-call .long { display: none; }
  .topbar .hide-sm { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .map-frame { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- additions ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.band .eyebrow { color: #e9d7a8; }

/* The shop's awning, redrawn: blue band, red serif name between two
   diamonds, the repair promise underneath, phone on the valance. */
.awning {
  background: #fff; border-radius: var(--radius); overflow: hidden; text-align: center;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(22, 33, 58, .5);
}
.awning-top {
  height: 44px;
  background: linear-gradient(180deg, #2c74c6 0%, var(--blue) 100%);
  border-radius: 0 0 50% 50% / 0 0 22px 22px;
}
.awning-body { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 26px 16px 18px; }
.awning-body svg { width: 38px; height: 38px; color: var(--blue); flex: none; }
.awning-name {
  font-family: var(--display); font-weight: 700; color: var(--red);
  font-size: clamp(1.5rem, 4vw, 2.3rem); letter-spacing: .03em; line-height: 1;
}
.awning-line {
  font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); padding: 0 16px 18px;
}
.awning-base {
  background: var(--blue); color: #fff; padding: 9px 12px;
  font-family: var(--display); font-weight: 700; letter-spacing: .12em; font-size: .9rem;
}
.awning-base a { color: #fff; text-decoration: none; }

@media (max-width: 520px) {
  .awning-body { gap: 10px; padding: 22px 12px 14px; }
  .awning-body svg { width: 24px; height: 24px; }
  .awning-name { font-size: 1.3rem; }
  .awning-line { font-size: .74rem; }
}
