/* ==========================================================================
   Costello Jewellers — styles
   Palette: warm near-black ink, cream, antique gold accent.
   Fonts: Cormorant Garamond (display) + Jost (UI/body) via Google Fonts.
   ========================================================================== */
:root {
  --ink: #18140f;
  --ink-soft: #3a322a;
  --muted: #6c6258;
  --line: #e7e0d4;
  --bg: #ffffff;
  --cream: #f7f2e9;
  --cream-deep: #efe7d7;
  --gold: #b8923f;
  --gold-deep: #957123;
  --gold-soft: #d8b86a;
  --shadow: 0 12px 40px rgba(24, 20, 15, .12);
  --shadow-sm: 0 4px 18px rgba(24, 20, 15, .08);
  --radius: 4px;
  --maxw: 1200px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: #efe9df; }
.section--ink h2, .section--ink h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold-deep); font-weight: 500; margin: 0 0 .8rem;
}
.section--ink .eyebrow { color: var(--gold-soft); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.rule { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 1.2rem 0; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; padding: .95em 1.8em; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--gold); background: var(--gold); color: #fff; transition: .18s ease;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1em 2.2em; font-size: .9rem; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.brand:hover { text-decoration: none; }
.brand .brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .06em; color: var(--ink); text-transform: uppercase; }
.brand .brand-sub { font-family: var(--sans); font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-deep); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--gold-deep); text-decoration: none; }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ----- Hero ----- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,12,8,.63) 0%, rgba(15,12,8,.43) 45%, rgba(15,12,8,.86) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--gold-soft); }
.hero p { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 48ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ----- Featured strip / value props ----- */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prop { text-align: center; padding: 8px; }
.prop .ic { font-size: 1.6rem; color: var(--gold-deep); }
.prop h3 { font-size: 1.15rem; margin: .4rem 0 .3rem; }
.prop p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ----- Product grid ----- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s ease; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); text-decoration: none; }
.product-card a.card-link { display: block; color: inherit; }
.product-card a.card-link:hover { text-decoration: none; }
.product-card .ph { aspect-ratio: 1/1; background: var(--cream); overflow: hidden; }
.product-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .ph img { transform: scale(1.04); }
.product-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.product-card h3 { font-size: 1.2rem; margin: 0 0 4px; }
.product-card .meta { font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price .was { font-family: var(--sans); font-size: .85rem; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.price .enquire { font-size: 1rem; color: var(--gold-deep); }
.tag-save { display: inline-block; background: var(--cream-deep); color: var(--gold-deep); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; margin-left: 6px; }

/* ----- Category filter ----- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: .6em 1.2em; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: 100px; cursor: pointer; transition: .15s; }
.filter-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-heading { margin: 56px 0 22px; display: flex; align-items: center; gap: 16px; }
.cat-heading:first-of-type { margin-top: 0; }
.cat-heading h2 { margin: 0; }
.cat-heading .count { font-family: var(--sans); font-size: .8rem; color: var(--muted); letter-spacing: .1em; }
.cat-heading .ln { flex: 1; height: 1px; background: var(--line); }

/* ----- Item (single product) page ----- */
.item-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.item-gallery { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream); position: sticky; top: 90px; }
.item-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.item-detail .cat { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.item-detail h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 14px; }
.item-detail .price { font-size: 2rem; margin: 0 0 18px; }
.item-specs { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--line); }
.item-specs li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.item-specs li span:first-child { color: var(--muted); letter-spacing: .04em; }
.item-specs li span:last-child { font-weight: 500; }
.item-actions { display: flex; flex-direction: column; gap: 12px; margin: 26px 0; }
.item-actions .row { display: flex; gap: 12px; }
.item-actions .row .btn { flex: 1; }
.reassure { background: var(--cream); border-radius: var(--radius); padding: 18px 20px; font-size: .9rem; color: var(--ink-soft); }
.reassure strong { color: var(--ink); }
.breadcrumb { font-size: .8rem; letter-spacing: .06em; color: var(--muted); margin: 0 0 26px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-deep); }

/* ----- About / split ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.gallery-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-3 img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow-sm); }

/* ----- Map / visit ----- */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.visit__info { padding: 44px; }
.visit__map { min-height: 420px; }
.visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.hours { list-style: none; padding: 0; margin: 16px 0 0; }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hours li.closed { color: var(--muted); }
.hours li.today { font-weight: 600; color: var(--gold-deep); }
.contact-line { display: flex; gap: 10px; align-items: baseline; margin: 6px 0; }
.contact-line .lbl { color: var(--muted); min-width: 70px; font-size: .85rem; letter-spacing: .06em; }

/* ----- Modal (enquiry form) ----- */
.modal-overlay { position: fixed; inset: 0; background: rgba(18,14,9,.62); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.modal-overlay.open { display: flex; opacity: 1; }
.modal { background: #fff; border-radius: var(--radius); max-width: 480px; width: 100%; box-shadow: var(--shadow); max-height: 92vh; overflow: auto; }
.modal__head { padding: 26px 28px 0; position: relative; }
.modal__head .eyebrow { margin-bottom: 4px; }
.modal__head h3 { font-size: 1.7rem; margin: 0 0 4px; }
.modal__head p { color: var(--muted); font-size: .92rem; margin: 0; }
.modal__close { position: absolute; top: 16px; right: 18px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.modal__close:hover { color: var(--ink); }
.modal form { padding: 22px 28px 28px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: .8em .9em; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); font-size: .98rem; color: var(--ink); background: #fdfbf7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field textarea { resize: vertical; min-height: 72px; }
.modal .note { font-size: .8rem; color: var(--muted); margin: 6px 0 16px; }
.modal .or-call { text-align: center; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.form-status { font-size: .92rem; padding: 10px 12px; border-radius: var(--radius); margin-bottom: 12px; display: none; }
.form-status.ok { display: block; background: #eef6ec; color: #2f6b2a; }
.form-status.err { display: block; background: #faecec; color: #9b2c2c; }

/* ----- Footer ----- */
.site-footer { background: var(--ink); color: #cabfb0; padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #cabfb0; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .brand-name { font-family: var(--serif); font-size: 1.6rem; color: #fff; letter-spacing: .05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: #8d8474; }

/* ----- Utility ----- */
.muted { color: var(--muted); }
.hide { display: none !important; }
.mt-0 { margin-top: 0; }

/* ----- Responsive ----- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .item-wrap { grid-template-columns: 1fr; gap: 32px; }
  .item-gallery { position: static; max-width: 520px; }
  .visit { grid-template-columns: 1fr; }
  .visit__map { min-height: 340px; order: 2; }
}
@media (max-width: 760px) {
  .section { padding: 52px 0; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: #fff; flex-direction: column; align-items: flex-start; padding: 90px 32px 32px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .nav.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 60; }
  .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .props { grid-template-columns: 1fr; gap: 22px; }
  .split, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-3 { grid-template-columns: 1fr 1fr; }
  .product-card h3 { font-size: 1.05rem; }
  .hero { min-height: 70vh; }
}
@media (max-width: 440px) {
  .grid, .grid--3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .header-inner { padding: 12px 18px; }
  .brand .brand-name { font-size: 1.25rem; }
  .item-actions .row { flex-direction: column; }
}
