/* =============================================
   WoolScotland — Nature-Light Redesign
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Nature Palette */
  --forest:      #2D6A4F;
  --forest-dark: #1B4332;
  --forest-mid:  #40916C;
  --forest-light:#74C69D;
  --sage:        #95D5B2;
  --sage-pale:   #D8F3DC;

  --sky:         #2C7DA0;
  --sky-mid:     #468FAF;
  --sky-pale:   #DBF0FA;
  --sky-mid:    #2A9D8F;

  --stone:       #7B6B52;
  --sand:        #C9B99A;
  --parchment:   #FAF7F2;
  --cream:       #FFFEF9;

  --ink:         #1C1C1E;
  --ink-mid:     #3A3A3C;
  --ink-light:   #6E6E73;
  --ink-faint:   #AEAEB2;

  --border:      #E5E0D8;
  --border-mid:  #D0C9BF;
  --white:       #FFFFFF;

  /* Accent */
  --accent:      #2D6A4F;
  --accent-hover:#1B4332;

  /* Fonts */
  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-width: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-dark); text-decoration: underline; }
a:visited { color: var(--stone); }
a:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; }

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

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--forest); color: var(--white);
  padding: 8px 16px; font-weight: 600; z-index: 9999;
  text-decoration: none; border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

/* ---- UTILITY ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(45, 106, 79, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.site-logo:visited { color: inherit; }

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--forest);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.logo-box span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo-text .name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-text .tagline {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 1px;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--ink-mid);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
}
.header-search-btn:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--sage-pale);
}

.header-shop-btn {
  background: var(--forest);
  color: var(--white);
  border: none;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}
.header-shop-btn:hover { background: var(--forest-dark); color: var(--white); text-decoration: none; }
.header-shop-btn:visited { color: var(--white); }

.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink-mid);
  cursor: pointer;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.primary-nav {
  background: var(--forest-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-inner a {
  display: flex;
  align-items: center;
  padding: 0 11px;
  height: 42px;
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.nav-inner a:hover {
  color: var(--white);
  border-bottom-color: var(--sage);
  background: rgba(255,255,255,0.05);
}
.nav-inner a.active {
  color: var(--white);
  border-bottom-color: var(--sage);
}
.nav-inner a:visited { color: rgba(255,255,255,0.8); }

/* =============================================
   NEWS TICKER
   ============================================= */
.ticker {
  background: var(--sage-pale);
  border-top: 1px solid var(--sage);
  border-bottom: 1px solid var(--sage);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--forest);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-scroll { flex: 1; overflow: hidden; }

.ticker-track {
  display: flex;
  animation: tickerMove 45s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  display: inline-block;
  padding: 6px 36px 6px 0;
  color: var(--forest-dark);
  font-size: 0.8rem;
  font-weight: 500;
}

.ticker-track span::after {
  content: ' ·';
  opacity: 0.4;
  margin-left: 36px;
}

@keyframes tickerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
}
.breadcrumb a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--ink-faint); }

/* =============================================
   PAGE SECTIONS
   ============================================= */
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-alt { background: var(--white); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--forest);
  margin-bottom: 28px;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* =============================================
   HERO (INDEX PAGE)
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 60%, var(--forest-mid) 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  min-height: 380px;
  position: relative;
}

.hero-lead {
  padding: 40px 36px 40px 0;
  border-right: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--sage);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  background: var(--sage);
  color: var(--forest-dark);
  padding: 11px 26px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  align-self: flex-start;
}
.hero-cta:hover { background: var(--white); color: var(--forest-dark); text-decoration: none; }
.hero-cta:visited { color: var(--forest-dark); }

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
}

.hero-stat-label {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}

.hero-side {
  display: flex;
  flex-direction: column;
  padding: 20px 0 20px 28px;
  gap: 0;
}

.hero-side-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  display: block;
  transition: opacity var(--transition);
}
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item:hover { opacity: 0.85; }

.hero-side-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 5px;
}

.hero-side-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}
.hero-side-item:hover .hero-side-title { text-decoration: underline; }

/* Hero eyebrow (article pages) */
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: var(--sage);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* =============================================
   ARTICLE CARDS
   ============================================= */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.article-card {
  background: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.article-card:hover {
  border-color: var(--forest-light);
  box-shadow: 0 4px 20px rgba(45, 106, 79, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.article-card:visited { color: inherit; }

.card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-mid);
  display: block;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
  flex: 1;
}
.article-card:hover .card-title { color: var(--forest); }

.card-desc {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.55;
  margin-bottom: 12px;
  font-weight: 400;
}

.card-meta {
  font-size: 0.7rem;
  color: var(--ink-faint);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  font-weight: 400;
}

/* Card with top colour bar */
.card-bar-green  { border-top: 3px solid var(--forest); }
.card-bar-blue   { border-top: 3px solid var(--sky); }
.card-bar-red    { border-top: 3px solid #B85042; }
.card-bar-brown  { border-top: 3px solid var(--stone); }
.card-bar-purple { border-top: 3px solid #7B5EA7; }
.card-bar-teal   { border-top: 3px solid #2A9D8F; }

/* =============================================
   STATS BAND
   ============================================= */
.stats-band {
  background: var(--forest-dark);
  padding: 36px 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-block {
  padding: 16px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.stat-block:last-child { border-right: none; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.stat-source {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  margin-top: 5px;
  font-style: italic;
}

/* Stats Grid (marine page etc.) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.big-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sage);
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}

/* =============================================
   LAYOUT (article pages)
   ============================================= */
.layout-main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.layout-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* =============================================
   ARTICLE BODY
   ============================================= */
.article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-mid);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sage-pale);
  letter-spacing: -0.01em;
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
}

.article-body p { margin-bottom: 18px; }

.article-body ul, .article-body ol {
  margin: 12px 0 18px 20px;
}
.article-body li { margin-bottom: 7px; line-height: 1.65; }

.article-body blockquote {
  border-left: 4px solid var(--forest-light);
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--sage-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--forest-dark);
  font-size: 1.02rem;
  line-height: 1.7;
}

.article-body strong { font-weight: 700; color: var(--ink); }
.article-body em { font-style: italic; }

/* =============================================
   DATA TABLE
   ============================================= */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.data-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--white);
}

.data-table th {
  background: var(--forest-dark);
  color: var(--white);
  padding: 11px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink-mid);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--parchment); }
.data-table tr:hover td { background: var(--sage-pale); }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 70px;
}

.newsletter-box {
  background: var(--forest-dark);
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--white);
}

.newsletter-box h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.newsletter-box p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-form input {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { outline: none; border-color: var(--sage); background: rgba(255,255,255,0.15); }

.newsletter-form button {
  background: var(--sage);
  color: var(--forest-dark);
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--white); }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.widget-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--parchment);
}

.widget-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.widget-body { padding: 6px 0; }

.widget-list { list-style: none; }

.widget-list li {
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
}
.widget-list li:last-child { border-bottom: none; }

.widget-item-title {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  font-size: 0.82rem;
}
.widget-item-title a { color: var(--forest); font-weight: 600; }
.widget-item-title a:hover { text-decoration: underline; }

.widget-item-meta {
  font-size: 0.75rem;
  color: var(--ink-light);
  margin-top: 2px;
  line-height: 1.35;
}

/* Tag cloud */
.tag-cloud {
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--sage-pale);
  color: var(--forest-dark);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid var(--sage);
  transition: all var(--transition);
}
.tag:hover { background: var(--forest); color: var(--white); border-color: var(--forest); text-decoration: none; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--forest);
  color: var(--white);
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--forest-dark); color: var(--white); text-decoration: none; }
.btn-primary:visited { color: var(--white); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--forest);
  padding: 9px 22px;
  border: 1.5px solid var(--forest);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--forest); color: var(--white); text-decoration: none; }

/* =============================================
   SHOP PAGE
   ============================================= */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.product-card:hover {
  box-shadow: 0 6px 24px rgba(45, 106, 79, 0.12);
  border-color: var(--forest-light);
  transform: translateY(-2px);
}

.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--sage-pale), var(--parchment));
}

.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.product-badge {
  display: inline-block;
  background: var(--sage-pale);
  color: var(--forest);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--sage);
  margin-bottom: 10px;
  align-self: flex-start;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.spec-tag {
  background: var(--parchment);
  color: var(--ink-mid);
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--forest);
}

.product-price small {
  font-size: 0.72rem;
  color: var(--ink-light);
  font-family: var(--font-body);
  font-weight: 400;
  display: block;
  margin-top: 1px;
}

.btn-cart {
  background: var(--forest);
  color: var(--white);
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-cart:hover { background: var(--forest-dark); }

.btn-enquire {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition);
}
.btn-enquire:hover { background: var(--forest); color: var(--white); }

/* Machine card */
.machine-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  margin-bottom: 20px;
  transition: all var(--transition);
}
.machine-card:hover { box-shadow: 0 4px 20px rgba(45, 106, 79, 0.1); border-color: var(--forest-light); }

.machine-img {
  background: linear-gradient(135deg, var(--sage-pale), var(--parchment));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  padding: 24px;
}

.machine-body { padding: 24px; }

.machine-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.machine-desc {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.machine-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.machine-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 12px;
}

/* =============================================
   CONTACT / FORMS
   ============================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--forest);
  padding: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact-box h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-box p {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.6;
}

.contact-box .email {
  font-weight: 600;
  color: var(--forest);
  margin-top: 8px;
  display: block;
  font-size: 0.85rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.7);
  border-top: 3px solid var(--forest);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  display: block;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-col a:visited { color: rgba(255,255,255,0.55); }

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.74rem; opacity: 0.4; }

.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.footer-legal a:hover { color: rgba(255,255,255,0.75); }

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--forest-dark);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 2px solid var(--forest);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-nav-list { list-style: none; }
.mobile-nav-list a {
  display: block;
  padding: 14px 20px;
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.mobile-nav-list a:hover { color: var(--white); background: rgba(255,255,255,0.06); padding-left: 28px; }
.mobile-nav-list a:visited { color: rgba(255,255,255,0.82); }

/* =============================================
   SEARCH OVERLAY
   ============================================= */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(27, 67, 50, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.search-overlay.open { opacity: 1; visibility: visible; }

.search-box {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.search-input-wrap {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.search-input-wrap input {
  flex: 1;
  padding: 18px 22px;
  border: none;
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: none;
}
.search-input-wrap input:focus { outline: none; }

.search-input-wrap button {
  background: var(--forest);
  color: var(--white);
  border: none;
  cursor: pointer;
  padding: 0 28px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  transition: background var(--transition);
}
.search-input-wrap button:hover { background: var(--forest-dark); }

.search-close {
  display: block;
  text-align: right;
  margin-top: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.search-close:hover { color: var(--white); }

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: var(--forest);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.3);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover { background: var(--forest-dark); }

/* =============================================
   WHOLESALE BANNER
   ============================================= */
.wholesale-banner {
  background: var(--sage-pale);
  border: 1px solid var(--sage);
  border-left: 4px solid var(--forest);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.wholesale-banner h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 4px;
}

.wholesale-banner p {
  font-size: 0.85rem;
  color: var(--ink-light);
  max-width: 480px;
  line-height: 1.5;
}

/* Animate-in (marine page) */
.animate-in { opacity: 1; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .card-grid-4, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .stats-row, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2), .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .layout-main, .layout-two-col { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .machine-card { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 640px) {
  .header-shop-btn, .header-search-btn { display: none; }
  .hamburger-btn { display: flex; }
  .primary-nav { display: none; }
  .mobile-nav { display: block; }
  .card-grid-4, .product-grid { grid-template-columns: 1fr; }
  .stats-row, .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 28px 0; }
}

@media print {
  .site-header, .primary-nav, .ticker, .sidebar, .site-footer, .scroll-top { display: none; }
  .layout-main, .layout-two-col { grid-template-columns: 1fr; }
}
