/* ==========================================================================
   Paul Brunngård UK - Scandinavian Design System
   Exact Brunngård Group Brand Language (brunngard.com)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@600;700;800;900&display=swap');

:root {
  --color-primary: #007061;
  --color-primary-dark: #005045;
  --color-primary-light: #008f7b;
  --color-mint-highlight: #dcf2e9;
  
  --color-text-main: #181818;
  --color-text-body: #3c3c3c;
  --color-text-muted: #6e6e6e;
  --color-text-light: #949494;

  --color-bg: #ffffff;
  --color-bg-subtle: #f8f8f8;
  --color-bg-warm: #f4f2ee;
  --color-border: #e5e5e5;
  --color-border-light: #f0f0f0;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 84px;
  --container-max: 1280px;
  --container-narrow: 940px;

  --transition: 0.2s ease-in-out;
}

/* Reset & Foundation */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  color: var(--color-text-body);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.65;
}

.kicker {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.85rem;
}

/* ==========================================================================
   Signature Brunngård Heading Highlight Marker
   ========================================================================== */
.heading-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.heading-highlight::before {
  content: '';
  position: absolute;
  bottom: 0px;
  left: -10px;
  width: 58%;
  height: 48%;
  background-color: var(--color-mint-highlight);
  z-index: -1;
}

/* Layout & Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: clamp(4.5rem, 7vw, 7rem) 0;
  position: relative;
}

.section-subtle {
  background-color: var(--color-bg-subtle);
}

.section-warm {
  background-color: var(--color-bg-warm);
}

/* ==========================================================================
   Header (Brand Green Hex #007061 Background)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-primary); /* #007061 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo-link {
  display: flex;
  align-items: center;
}

.brand-svg-logo {
  height: 44px;
  width: auto;
  max-width: 240px;
  display: block;
}

.footer-svg-logo {
  height: 48px;
  width: auto;
  max-width: 240px;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
  color: #dcf2e9;
}

/* Dropdown Menu on Green Header */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  padding: 0.5rem 0;
}

.nav-dropdown-trigger svg {
  width: 10px;
  height: 10px;
  fill: #ffffff;
  transition: transform var(--transition);
}

.nav-dropdown-wrapper:hover .nav-dropdown-trigger {
  color: #dcf2e9;
}

.nav-dropdown-wrapper:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
  fill: #dcf2e9;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.65rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 1010;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-item {
  display: block;
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  color: var(--color-text-main);
  font-weight: 600;
}

.nav-dropdown-item:hover {
  background: var(--color-bg-subtle);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all var(--transition);
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #ffffff;
  z-index: 1040;
  padding: 5rem 2rem 2rem;
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-main);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-dark {
  background: var(--color-text-main);
  color: #ffffff;
  border: 1px solid var(--color-text-main);
}

.btn-dark:hover {
  background: #333333;
  border-color: #333333;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-text-main);
}

.btn-outline:hover {
  background: var(--color-text-main);
  color: #ffffff;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--color-primary);
}

.btn-link {
  padding: 0;
  color: var(--color-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.btn-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ==========================================================================
   Full-Bleed Hero
   ========================================================================== */
.hero-fullbleed {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: #111111;
  color: #ffffff;
  overflow: hidden;
}

.hero-fullbleed-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.65;
}

.hero-fullbleed-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 5rem 0;
}

.hero-fullbleed-content h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-fullbleed-content p {
  color: #f0f0f0;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-fullbleed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Continuous Seamless Press & Recognition Marquee Slider
   ========================================================================== */
.stockists-strip {
  padding: 3.5rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.stockists-header {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.stockists-slider-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.stockists-slider-track {
  display: flex;
  width: max-content;
  gap: 5rem;
  animation: marquee-scroll 26s linear infinite;
}

.stockists-slider-track:hover {
  animation-play-state: paused;
}

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

.stockist-slide-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c8c8c;
  white-space: nowrap;
  transition: color var(--transition);
  user-select: none;
}

.stockist-slide-item:hover {
  color: var(--color-text-main);
}

/* ==========================================================================
   Full-Width Landscape Image Breaks
   ========================================================================== */
.landscape-image-break {
  width: 100%;
  height: clamp(340px, 50vw, 560px);
  position: relative;
  overflow: hidden;
  background: #111111;
}

.landscape-image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landscape-image-caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(24, 24, 24, 0.85);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   Two-Column Feature Sections
   ========================================================================== */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

.story-block.reverse {
  direction: rtl;
}

.story-block.reverse > * {
  direction: ltr;
}

.story-block-media {
  background: var(--color-bg-subtle);
  overflow: hidden;
}

.story-block-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.story-block-content {
  max-width: 520px;
}

.story-block-content h2 {
  margin-bottom: 1.25rem;
}

.story-block-content p {
  margin-bottom: 1.25rem;
}

.story-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.fact-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.fact-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Flat Clean Product Grid (8 Products)
   ========================================================================== */
.products-section {
  padding: 6rem 0;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
}

.products-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.products-flat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem 2rem;
}

.product-flat-item {
  display: flex;
  flex-direction: column;
}

.product-flat-thumb {
  background: var(--color-bg-subtle);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border-light);
}

.product-flat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-flat-item:hover .product-flat-thumb img {
  transform: scale(1.03);
}

.product-flat-cat {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.product-flat-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.product-flat-summary {
  font-size: 0.92rem;
  color: var(--color-text-body);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-flat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-light);
}

.product-flat-price-tag {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ==========================================================================
   Product Detail Template
   ========================================================================== */
.product-page-hero {
  padding-top: 4rem;
  padding-bottom: 5rem;
  background: #ffffff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.product-detail-gallery {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-main-view {
  background: var(--color-bg-subtle);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.product-main-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.15s ease;
}

.product-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.product-thumb-btn {
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
  padding: 0;
}

.product-thumb-btn.active,
.product-thumb-btn:hover {
  border-color: var(--color-text-main);
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.breadcrumb-nav {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.product-page-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
}

.product-spec-table {
  width: 100%;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 1.25rem 0;
}

.product-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
}

.product-spec-row:last-child {
  border-bottom: none;
}

.product-spec-key {
  color: var(--color-text-muted);
}

.product-spec-val {
  font-weight: 600;
  color: var(--color-text-main);
}

.purchase-actions-box {
  background: var(--color-bg-subtle);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.purchase-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-display {
  font-size: 1.65rem;
  font-weight: 800;
}

/* Swatches */
.swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.swatch-btn.active,
.swatch-btn:hover {
  border-color: var(--color-text-main);
  background: #ffffff;
}

.swatch-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}

/* Application Steps List */
.instruction-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.instruction-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
}

.step-body h4 {
  margin-bottom: 0.25rem;
}

.step-body p {
  font-size: 0.95rem;
  color: var(--color-text-body);
}

/* Product Switcher Bar */
.product-switcher-bar {
  padding: 2.5rem 0;
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.product-switcher-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.switch-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.switch-nav-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.switch-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-muted);
}

.switch-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ==========================================================================
   Minimal Structured Footer (Brunngård Style)
   ========================================================================== */
.site-footer {
  background: #ffffff;
  color: var(--color-text-main);
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--color-border);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 360px;
}

.footer-col-head {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-list a {
  font-size: 0.9rem;
  color: var(--color-text-body);
}

.footer-nav-list a:hover {
  color: var(--color-primary);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-bottom-row a {
  color: var(--color-text-muted);
}

.footer-bottom-row a:hover {
  color: var(--color-text-main);
}

/* Responsive */
@media (max-width: 1024px) {
  .story-block,
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .story-block.reverse {
    direction: ltr;
  }
  .product-detail-gallery {
    position: relative;
    top: 0;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }
  
  .site-header .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .brand-svg-logo {
    height: 38px;
    width: auto;
    max-width: 180px;
  }

  .footer-svg-logo {
    height: 44px;
    width: auto;
    max-width: 210px;
  }

  .nav-desktop {
    display: none;
  }

  /* Strictly hide the button on mobile header bar so only logo and hamburger show */
  .site-header .header-actions .btn,
  .site-header .btn-outline-white,
  .site-header .btn {
    display: none !important;
  }

  .header-actions {
    gap: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-fullbleed {
    min-height: 70vh;
  }

  .story-block-img {
    height: 320px;
  }

  .story-facts-grid {
    grid-template-columns: 1fr;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
