:root {
  --bg: #faf9f6;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #c45c3e;
  --accent-hover: #a84d32;
  --accent-soft: #e8d5cf;
  --border: #e5e2dc;
  --card: #fff;
  --shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  left: 0;
}

#site-header-root {
  min-height: 3.25rem;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav-main a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding: 0.25rem 0;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

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

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.trust-strip strong {
  color: var(--text);
  font-weight: 600;
}

section.block {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border);
}

section.block:last-of-type {
  border-bottom: none;
}

h2.section-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 400;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 60ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.portfolio-card .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--accent-soft), var(--border));
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
}

.capability-panel {
  padding: 1.5rem 1.5rem 1.25rem;
}

.capability-groups {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 720px) {
  .capability-groups {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
  }
}

.capability-group h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.capability-group .tag-row {
  margin-top: 0;
}

.cta-band {
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  margin-top: 1rem;
}

.cta-band h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
  max-width: 50ch;
}

.cta-band .btn-primary {
  background: var(--accent);
}

.cta-band .btn-primary:hover {
  background: #d66b4c;
  color: #fff;
}

.site-footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer-legal {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer-legal a {
  color: var(--muted);
}

.site-footer-legal a:hover {
  color: var(--accent);
}

.footer-cookie-btn {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.footer-cookie-btn:hover {
  color: var(--accent);
}

.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--card);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

  .nav-main.is-open {
    display: block;
  }

  .nav-main ul {
    flex-direction: column;
    align-items: flex-start;
  }
}


.portfolio-slider {
  margin-bottom: 1rem;
}

.portfolio-slide-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--accent-soft), var(--border));
}

.portfolio-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.slider-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}

.slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}

.slider-dot.is-active {
  background: var(--accent);
}

.portfolio-tech {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
}

.link-disabled {
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: none;
}

/* Shop */
.shop-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 899px) {
  .shop-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .shop-cart-aside {
    order: -1;
  }

  .shop-grid {
    order: 1;
  }

  /* Room for fixed basket bar */
  [data-nav-page="shop"] .wrap {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0));
  }
}

@media (min-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr minmax(260px, 320px);
  }

  .shop-cart-aside {
    position: sticky;
    top: 5.5rem;
  }
}

.shop-cart-aside {
  padding: 0;
  overflow: hidden;
}

.shop-cart-inner {
  padding: 1.25rem 1.5rem 1.5rem;
}

.shop-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--accent-soft), var(--border));
}

.shop-card .shop-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.shop-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.shop-card-actions .btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
  text-align: center;
}

.shop-cart-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.shop-cart-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shop-cart-line {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.shop-cart-line:last-of-type {
  border-bottom: none;
}

.shop-cart-line-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.shop-cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.shop-cart-line-info strong {
  font-size: 0.95rem;
}

.shop-cart-line-unit {
  font-size: 0.8rem;
  color: var(--muted);
}

.shop-cart-line-total {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.shop-cart-line-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shop-cart-qty {
  min-width: 1.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.shop-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.shop-cart-subtotal strong {
  font-size: 1.1rem;
}

.shop-cart-foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.shop-cart-note {
  margin-bottom: 1rem;
}

.shop-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop-cart-actions .btn {
  flex: 1 1 auto;
  min-width: 8rem;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1fb855;
  color: #fff;
}

/* Shop mobile basket bar (injected by shop-render.js) */
.shop-cart-dock {
  display: none;
}

@media (max-width: 899px) {
  .shop-cart-dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0));
    background: rgba(250, 249, 246, 0.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 28px rgba(26, 26, 26, 0.1);
    backdrop-filter: blur(8px);
  }

  .shop-cart-dock-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .shop-cart-dock-text {
    min-width: 0;
    flex: 1;
  }

  .shop-cart-dock-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }

  .shop-cart-dock-meta {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
  }

  .shop-cart-dock-open {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    min-height: 2.5rem;
  }

  .shop-cart-dock-toast {
    max-width: 1100px;
    margin: 0.35rem auto 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    min-height: 1.25rem;
    transition: opacity 0.2s ease;
  }

  .shop-cart-dock-toast:empty {
    display: none;
  }

  .shop-cart-dock--has-items .shop-cart-dock-open {
    border-color: var(--accent);
    color: var(--accent);
  }

  .shop-cart-dock--flash {
    animation: shopDockFlash 0.55s ease;
  }

  @keyframes shopDockFlash {
    0% {
      background: var(--accent-soft);
    }
    100% {
      background: rgba(250, 249, 246, 0.96);
    }
  }

  .shop-card .shop-add--done {
    border-color: var(--accent);
    color: var(--accent);
  }
}

/* Cookie consent (UK / EU) */
body.cc-banner-open {
  padding-bottom: min(42vh, 22rem);
}

@media (min-width: 720px) {
  body.cc-banner-open {
    padding-bottom: 13rem;
  }
}

.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0));
  background: linear-gradient(to top, rgba(250, 249, 246, 0.97) 60%, rgba(250, 249, 246, 0));
  pointer-events: none;
}

.cc-banner-inner {
  pointer-events: auto;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: 0 -8px 40px rgba(26, 26, 26, 0.12);
}

.cc-banner-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.cc-banner-text {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.55;
}

.cc-banner-status {
  margin: -0.35rem 0 0.85rem;
}

.cc-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cc-btn-equal {
  flex: 1 1 10rem;
  min-height: 2.75rem;
}

.cc-banner-cancel {
  display: block;
  margin: 0.85rem auto 0;
  padding: 0.35rem 0.75rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.cc-banner-cancel:hover {
  color: var(--accent);
}
