/* =========================================================
   Topman511 Repairs Limited — stylesheet
   Vintage 70s/80s hi-fi repair & restoration
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Work+Sans:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* brand palette — #0C3C60 is the actual blue used on topman511.com
     (sampled from their site icon fill, not the photographed logo JPEG,
     which reproduces slightly muted). Gold/cream still sampled from the
     logo artwork. */
  --navy: #0c3c60;
  --navy-deep: #082b45;
  --navy-soft: #1c5580;
  --cream: #f6f1e6;
  --cream-alt: #ece2cd;
  --card: #fffdf9;
  --gold: #9c8556;
  --gold-deep: #7a6742;
  --gold-light: #c7b077;
  --ink: #142230;
  --ink-soft: #55666d;
  --line: rgba(12, 60, 96, 0.14);
  --line-on-dark: rgba(246, 241, 230, 0.16);

  --font-head: 'Archivo', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 18px 40px rgba(20, 40, 50, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 { font-weight: 900; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline-light {
  border-color: var(--cream);
  color: var(--cream);
  background: transparent;
}
.btn-outline-light:hover { background: var(--cream); color: var(--navy-deep); }

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--cream); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  height: 52px;
  width: auto;
  border-radius: 6px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 17px;
  color: var(--cream);
  letter-spacing: 0.3px;
}
.brand-text span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.6px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(246, 241, 230, 0.82);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--cream);
  border-color: var(--gold);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--cream);
}
.header-phone svg { color: var(--gold); flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  display: block;
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 65%, #051a2b 100%);
  padding: 84px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(156, 133, 86, 0.22);
}
.hero::before { width: 460px; height: 460px; top: -160px; right: -140px; }
.hero::after { width: 300px; height: 300px; top: -40px; right: -20px; border-color: rgba(156,133,86,0.3); }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
  padding-bottom: 56px;
}
.hero-copy { flex: 1; max-width: 600px; }
.hero-copy h1 {
  font-size: 52px;
  color: var(--cream);
  margin-bottom: 22px;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-copy p {
  color: rgba(246, 241, 230, 0.78);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badge {
  flex-shrink: 0;
  width: 340px;
}
.hero-badge img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(156, 133, 86, 0.35);
}

.brand-strip {
  border-top: 1px solid var(--line-on-dark);
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand-strip span.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(246, 241, 230, 0.5);
  flex-shrink: 0;
}
.brand-strip .names {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.brand-strip .names span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: rgba(246, 241, 230, 0.72);
}

/* ---------- section basics ---------- */
section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-alt { background: var(--cream-alt); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy .eyebrow-label { color: var(--cream); }
.section-navy p { color: rgba(246,241,230,0.75); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 36px; }

/* ---------- workshop photo band ---------- */
.workshop-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.workshop-photo img { width: 100%; }
.photo-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-top: 14px;
  text-align: center;
}

/* ---------- specialism / service cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(156, 133, 86, 0.14);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.service-block h3 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.service-block h3 .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  background: rgba(156,133,86,0.16);
  color: var(--gold-deep);
  padding: 4px 9px;
  border-radius: 5px;
}
.service-block ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.service-block ul li { margin-bottom: 8px; font-size: 14.5px; }

/* ---------- stats ---------- */
.stats {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 36px;
  color: var(--gold-deep);
}
.stat .label { font-size: 13px; color: var(--ink-soft); max-width: 140px; }

/* ---------- checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink); }
.checklist svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }

/* ---------- eBay / for-sale ---------- */
.ebay-panel {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ebay-panel .copy { max-width: 500px; }
.ebay-panel h3 { color: var(--cream); font-size: 24px; }
.ebay-panel p { color: rgba(246,241,230,0.75); margin-bottom: 0; }
.ebay-panel .ebay-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cream);
  padding: 14px 22px;
  border-radius: 10px;
}
.ebay-panel .ebay-cta img { height: 22px; width: auto; }
.ebay-panel .ebay-cta .txt { display: flex; flex-direction: column; line-height: 1.2; }
.ebay-panel .ebay-cta .txt strong { font-family: var(--font-head); font-size: 15px; color: var(--navy); }
.ebay-panel .ebay-cta .txt span { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-soft); }

.notice-box {
  border: 1px dashed var(--gold);
  background: rgba(156,133,86,0.08);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notice-box svg { flex-shrink: 0; color: var(--gold-deep); margin-top: 2px; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: var(--navy);
}
.gallery-item img { width: 100%; height: 260px; object-fit: cover; display: block; }
.gallery-item .cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  background: rgba(8, 43, 69, 0.88);
  color: var(--cream);
  padding: 5px 10px;
  border-radius: 5px;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall img { height: 100%; }

/* ---------- testimonial / quote ---------- */
.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.quote-card .stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.quote-card p { font-style: italic; color: var(--ink); font-size: 15px; }
.quote-card .who { font-size: 13px; font-weight: 700; color: var(--ink-soft); font-style: normal; }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 64px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--cream); font-size: 30px; max-width: 480px; margin-bottom: 10px; }
.cta-band p { color: rgba(246,241,230,0.72); margin-bottom: 0; }
.cta-band .cta-right { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cta-band .cta-contact { display: flex; flex-direction: column; gap: 3px; }
.cta-band .cta-contact strong { font-family: var(--font-head); font-size: 21px; color: var(--cream); }
.cta-band .cta-contact span { font-family: var(--font-mono); font-size: 12px; color: var(--gold-light); }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-row { display: flex; align-items: center; gap: 14px; }
.contact-row .ic {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(156,133,86,0.14);
  color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row a, .contact-row span.txt { font-size: 15px; font-weight: 600; color: var(--navy); }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-field input, .form-field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--cream);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 40px; border-radius: 5px; }
.footer-brand strong { font-family: var(--font-head); font-weight: 900; font-size: 16px; color: var(--cream); }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.footer-col a, .footer-col span { display: block; font-size: 13.5px; color: rgba(246,241,230,0.68); margin-bottom: 10px; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom span { font-size: 12px; color: rgba(246,241,230,0.5); }

/* ---------- page header (interior pages) ---------- */
.page-header {
  background: var(--navy);
  padding: 56px 0 44px;
  border-bottom: 3px solid var(--gold);
}
.page-header .eyebrow { color: var(--gold-light); }
.page-header h1 { color: var(--cream); font-size: 40px; margin-bottom: 8px; }
.page-header p { color: rgba(246,241,230,0.72); max-width: 560px; margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-item.wide { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { flex-direction: column; }
  .hero-badge { width: 260px; }
  .hero-copy { max-width: 100%; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 20px 28px 28px;
    gap: 16px;
    border-bottom: 3px solid var(--gold);
  }
  .hero-copy h1 { font-size: 38px; }
  section { padding: 60px 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 20px; }
  .ebay-panel, .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
}
