/*
Theme Name: Haberdach Hub Limited
Theme URI: https://www.haberdashhub.co.uk/
Author: Haberdach Hub Limited
Author URI: https://www.haberdashhub.co.uk/
Description: A premium WordPress theme for a UK textile manufacturer and trade supplier.
Version: 1.0.2
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haberdach-hub
*/

:root {
  --ink: #071d3c;
  --ink-2: #102d53;
  --teal: #0f7b78;
  --teal-bright: #18b4a9;
  --gold: #b8892f;
  --sand: #f4efe5;
  --mist: #eff6f5;
  --paper: #ffffff;
  --slate: #5a6577;
  --line: rgba(7, 29, 60, .12);
  --shadow: 0 22px 70px rgba(7, 29, 60, .13);
  --shadow-soft: 0 14px 40px rgba(7, 29, 60, .08);
  --radius-xl: 34px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 42%, #f7faf9 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { color: var(--slate); margin: 0 0 1.2rem; }
h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.06; letter-spacing: -.03em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(3rem, 6vw, 6.8rem); }
h2 { font-size: clamp(2.15rem, 4vw, 4.7rem); }
h3 { font-size: clamp(1.18rem, 2.2vw, 1.75rem); }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: clamp(70px, 8vw, 118px) 0; }
.section-tight { padding: clamp(46px, 6vw, 78px) 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--teal);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); border-radius: 99px; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.34rem); color: #48556b; max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(7,29,60,.08);
}
.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 0; overflow: visible; }
.brand img { width: min(430px, 43vw); max-width: none; max-height: 86px; display: block; object-fit: contain; object-position: left center; }
.primary-navigation { display: flex; align-items: center; gap: 12px; }
.primary-navigation ul { display: flex; align-items: center; gap: 4px; }
.primary-navigation a {
  display: inline-flex;
  padding: 10px 11px;
  border-radius: 999px;
  color: #233b5b;
  font-size: .94rem;
  font-weight: 700;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a { background: var(--mist); color: var(--teal); transform: translateY(-1px); }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(7,29,60,.16);
}
.nav-toggle { display: none; border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 13px; font-weight: 800; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 15px 21px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(7,29,60,.15); }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-bright)); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: rgba(255,255,255,.46); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(7,29,60,.18); }
.btn-gold { background: var(--gold); color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(24,180,169,.28) 0, transparent 30%),
    radial-gradient(circle at 18% 92%, rgba(184,137,47,.18) 0, transparent 30%),
    linear-gradient(135deg, #071d3c 0%, #0a2548 46%, #092b42 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 83%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -190px;
  bottom: -230px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 82px solid rgba(24,180,169,.14);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr); gap: clamp(34px, 6vw, 82px); align-items: center; padding: clamp(82px, 9vw, 132px) 0; }
.hero h1 { color: #fff; max-width: 790px; }
.hero .lead { color: rgba(255,255,255,.76); }
.hero-kicker { display: inline-flex; align-items: center; gap: 11px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.07); color: #d9fffb; font-weight: 800; font-size: .83rem; margin-bottom: 24px; }
.hero-kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero-panel {
  position: relative;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.34);
}
.hero-panel::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(15,123,120,.16); border-radius: 24px; pointer-events: none; }
.thread-mark { width: 100%; aspect-ratio: 1.2; display: grid; place-items: center; border-radius: 28px; background: linear-gradient(145deg, #f4f9f8, #fff); margin-bottom: 24px; overflow: hidden; }
.thread-mark svg { width: 82%; }
.panel-list { display: grid; gap: 14px; }
.panel-list li { display: flex; gap: 12px; color: #45546d; font-weight: 700; }
.panel-list li::before { content: ""; width: 9px; height: 9px; flex: 0 0 9px; margin-top: 10px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 5px rgba(24,180,169,.12); }
.stats-strip { margin-top: 42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.15); border-radius: 24px; overflow: hidden; max-width: 790px; }
.stat { padding: 20px; background: rgba(255,255,255,.065); }
.stat strong { display: block; color: #fff; font-size: clamp(1.1rem, 2vw, 1.7rem); }
.stat span { color: rgba(255,255,255,.68); font-size: .9rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--gold)); opacity: .9; }
.card h3 { color: var(--ink); }
.card p { margin-bottom: 0; }
.icon-dot { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--mist); color: var(--teal); margin-bottom: 18px; }
.icon-dot svg { width: 25px; height: 25px; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.image-frame { position: relative; border-radius: var(--radius-xl); padding: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.abstract-fabric { min-height: 440px; border-radius: 24px; background:
  radial-gradient(circle at 20% 25%, rgba(24,180,169,.22), transparent 24%),
  radial-gradient(circle at 80% 76%, rgba(184,137,47,.2), transparent 24%),
  repeating-linear-gradient(45deg, rgba(7,29,60,.08) 0 2px, transparent 2px 16px),
  linear-gradient(135deg, #eef7f6, #ffffff);
  display: grid; place-items: center; overflow: hidden; }
.abstract-fabric svg { width: 74%; opacity: .96; }
.protected-image-wrap { position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.protected-image-wrap img { pointer-events: none; -webkit-user-drag: none; user-select: none; }
.image-shield { position: absolute; inset: 0; z-index: 2; background: rgba(255,255,255,.001); }

.band { background: var(--sand); border-top: 1px solid rgba(184,137,47,.16); border-bottom: 1px solid rgba(184,137,47,.16); }
.dark-band { color: #fff; background: linear-gradient(135deg, #071d3c 0%, #0b2d52 100%); position: relative; overflow: hidden; }
.dark-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 88% 24%, rgba(24,180,169,.22), transparent 30%); }
.dark-band .container { position: relative; z-index: 1; }
.dark-band p, .dark-band .lead { color: rgba(255,255,255,.74); }
.dark-band .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.13); box-shadow: none; }
.dark-band .card h3 { color: #fff; }
.dark-band .card p { color: rgba(255,255,255,.72); }

.process { counter-reset: step; }
.process .card { padding-top: 72px; }
.process .card::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 24px; left: 28px; font-weight: 900; color: rgba(15,123,120,.18); font-size: 2.6rem; line-height: 1; }

.page-hero { padding: clamp(70px, 9vw, 120px) 0 clamp(44px, 6vw, 70px); background:
  radial-gradient(circle at 80% 20%, rgba(24,180,169,.14), transparent 28%),
  linear-gradient(180deg, #f8fbfb, #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { color: var(--ink); max-width: 920px; }
.breadcrumbish { color: var(--teal); font-weight: 850; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; margin-bottom: 15px; }

.filter-panel { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 16px; align-items: center; margin: 36px 0 26px; }
.search-input, .form-control {
  width: 100%;
  border: 1px solid rgba(7,29,60,.16);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: box-shadow .2s ease, border .2s ease;
}
.search-input:focus, .form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 5px rgba(15,123,120,.1); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip { border: 1px solid rgba(7,29,60,.15); background: #fff; border-radius: 999px; padding: 11px 14px; font-weight: 800; cursor: pointer; }
.filter-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.product-card .tag { display: inline-flex; margin-bottom: 18px; border-radius: 999px; padding: 6px 10px; background: var(--mist); color: var(--teal); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.product-card .btn { margin-top: 20px; padding: 12px 16px; }
.availability-note { margin-top: 20px; color: #6d5b37; font-weight: 750; font-size: .94rem; }

.contact-wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 5vw, 58px); align-items: start; }
.contact-card { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); }
.contact-card p, .contact-card a { color: rgba(255,255,255,.78); }
.contact-detail { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-detail strong { display: block; color: #fff; margin-bottom: 2px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
textarea.form-control { min-height: 150px; resize: vertical; }
label { display: block; color: var(--ink); font-size: .88rem; font-weight: 850; margin-bottom: 7px; }
.form-message { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 800; }
.form-message.success { background: #e8f8f6; color: #08756f; }
.form-message.error { background: #fff0ed; color: #9b2d1e; }
.map-box { overflow: hidden; border-radius: 22px; border: 1px solid rgba(255,255,255,.12); margin-top: 24px; background: rgba(255,255,255,.08); }
.map-box iframe { width: 100%; height: 290px; border: 0; display: block; filter: saturate(.86) contrast(1.02); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.legal-content { max-width: 930px; }
.legal-content h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin-top: 2.4rem; }
.legal-content h3 { margin-top: 1.8rem; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1.2rem; color: var(--slate); }
.legal-content li { margin-bottom: .45rem; }

.cta-panel { padding: clamp(32px, 5vw, 58px); border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff; position: relative; overflow: hidden; }
.cta-panel::after { content: ""; position: absolute; right: -90px; top: -90px; width: 240px; height: 240px; border-radius: 50%; border: 48px solid rgba(24,180,169,.15); }
.cta-panel p { color: rgba(255,255,255,.74); max-width: 760px; }
.cta-panel .btn-row { position: relative; z-index: 1; }

.site-footer { background: #06152c; color: #fff; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .75fr .75fr .85fr; gap: 34px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { width: min(430px, 100%); max-width: 100%; max-height: 94px; object-fit: contain; object-position: left center; margin-bottom: 18px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.7); }
.site-footer h3 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .92rem; text-transform: uppercase; letter-spacing: .13em; color: #fff; }
.footer-links { display: grid; gap: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; color: rgba(255,255,255,.58); font-size: .9rem; }
.footer-bottom a { color: rgba(255,255,255,.75); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1020px) {
  .hero-inner, .split, .contact-wrap { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-navigation {
    position: fixed;
    inset: 82px 0 auto 0;
    display: none;
    padding: 18px 20px 24px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(7,29,60,.14);
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: grid; gap: 6px; }
  .primary-navigation a { width: 100%; }
  .header-cta { margin-top: 10px; width: 100%; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .filter-panel { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 84px; }
  .brand img { width: min(330px, 74vw); max-height: 74px; }
  .primary-navigation { inset-top: 84px; }
  .hero-inner { padding: 62px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; display: grid; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

@media print {
  .site-header, .site-footer, .btn-row, .contact-form { display: none !important; }
  body { background: #fff; color: #000; }
  p { color: #000; }
}
