/* ================================================
   Global Stylesheet - Werner Kruse Portfolio
   Consolidated from all inline styles
   ================================================ */

/* === CSS VARIABLES === */
:root {
  --text: #f1f3f7;
  --muted: #9aa3b2;
  --border: rgba(255, 255, 255, .05);
  --cream: #E8E2D5;
  --arctic: #7BA3C8;
  --sunlit: #B8C6CE;
  --bg-hero: #06090d;
  --bg-stats: #0d1420;
  --bg-work: #0b0f15;
  --bg-services: #0a0d12;
  --bg-shop: #0f1622;
  --bg-about: #111014;
  --bg-contact: #080b10;
}

/* === RESET & BASE STYLES === */
* {
  box-sizing: border-box;
}

html, body {
  background: var(--bg-hero);
  color: var(--text);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Public Sans', sans-serif;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Sora', sans-serif;
}

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

/* Keyboard focus visible on all interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--arctic);
  outline-offset: 2px;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === TYPOGRAPHY UTILITIES === */
.eyebrow {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--sunlit);
}

.sec-title {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(32px, 5vw, 58px);
  color: var(--text);
  margin-bottom: 12px;
}

.sec-title span {
  color: var(--cream);
}

.sec-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

.stat-num {
  font-family: 'Sora', sans-serif;
  font-weight: 100;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1;
  text-align: center;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.3;
}

/* === BUTTON STYLES === */
.btn-primary {
  background: var(--arctic);
  color: #06090d;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 16px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 4px 16px rgba(123, 163, 200, 0.2);
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 8px 24px rgba(123, 163, 200, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.97);
  transition: transform 120ms ease-out;
}

.btn-shop-box {
  border: 1.5px solid var(--arctic);
  color: var(--arctic);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 12px 24px;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  text-align: center;
}

.btn-shop-box:hover {
  background: var(--arctic);
  color: #06090d;
  opacity: 0.92;
  transform: translateY(-2px);
}

.btn-shop-box:active {
  transform: scale(0.97);
  transition: transform 120ms ease-out;
}

.btn-ghost {
  border: 1px solid var(--sunlit);
  color: var(--sunlit);
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 15px 28px;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  text-align: center;
}

.btn-ghost:hover {
  border-color: var(--arctic);
  color: var(--arctic);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: scale(0.97);
  transition: transform 120ms ease-out;
}

/* === NAVBAR & NAVIGATION === */
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--sunlit);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* === MOBILE MENU ANIMATION === */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 200ms ease-out, opacity 200ms ease-out;
}

#mobile-menu.is-open {
  max-height: calc(100vh - 56px);
  opacity: 1;
  transition: max-height 200ms ease-out, opacity 200ms ease-out;
}

#mobile-menu.is-closing {
  transition: max-height 150ms ease-in, opacity 150ms ease-in;
}

/* === PANEL STYLES === */
.panel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  min-height: 320px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s ease;
}

.panel:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .panel {
    min-height: 420px;
  }
}

.panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.panel:hover .panel-img {
  transform: scale(1.04);
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 13, 0) 0%, rgba(6, 9, 13, 0.15) 35%, rgba(6, 9, 13, 0.98) 100%);
}

.panel-content {
  position: relative;
  z-index: 2;
  padding: 28px 24px;
}

@media (min-width: 768px) {
  .panel-content {
    padding: 48px 40px;
    max-width: 680px;
  }
}

/* === PRODUCT CARD STYLES === */
.product-card {
  background: #151d2b;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.product-card-body {
  padding: 24px;
}

.product-label {
  font-size: 10px;
  color: var(--arctic);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-title {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 8px;
}

.product-price {
  font-size: 14px;
  color: var(--sunlit);
  margin-bottom: 16px;
}

.product-price-amount {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.product-select-group {
  margin-bottom: 14px;
}

.product-select-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7B8392;
  margin-bottom: 6px;
  display: block;
}

.product-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.product-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-quantity {
  width: 60px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 10px 8px;
  border-radius: 4px;
  text-align: center;
  outline: none;
}

.add-to-cart {
  flex: 1;
  background: var(--arctic);
  color: #06090d;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 11px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

/* === SECTION UTILITIES === */
.section-padding {
  padding: 80px 6vw;
}

.section-hero-padding {
  padding: 200px 6vw 140px;
}

.section-stats-padding {
  padding: 60px 6vw;
}

.section-contact-padding {
  padding: 80px 6vw;
  text-align: center;
}

.footer-padding {
  padding: 32px 6vw 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

/* === SECTION BACKGROUNDS === */
.bg-hero {
  background: var(--bg-hero);
}

.bg-stats {
  background: var(--bg-stats);
}

.bg-work {
  background: var(--bg-work);
}

.bg-services {
  background: var(--bg-services);
}

.bg-shop {
  background: var(--bg-shop);
}

.bg-about {
  background: var(--bg-about);
}

.bg-contact {
  background: var(--bg-contact);
}

/* === GRID UTILITIES === */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.grid-shop {
  display: grid;
  gap: 6px;
}

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

.space-y-4 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .section-hero-padding {
    padding: 48px 6vw 40px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .grid-3,
  .grid-shop {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-ghost,
  .btn-shop-box {
    width: 100%;
    justify-content: center;
  }

  .space-y-4 {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    gap: 24px;
  }
}

/* === CART PANEL === */
#cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 380px;
  max-width: 100%;
  background: #0f1622;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

#cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 32px 24px;
}

.cart-title {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  color: var(--cream);
}

#close-cart {
  background: none;
  border: none;
  color: var(--sunlit);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

#cart-items {
  padding: 0 24px;
}

.cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
}

#cart-footer {
  margin-top: 32px;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cart-total-label {
  color: var(--sunlit);
}

#cart-total {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  color: var(--text);
}

.cart-checkout-btn {
  width: 100%;
  background: var(--arctic);
  color: #06090d;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

/* === CONTACT SECTION === */
.contact-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  color: #E8E2D5;
  margin-bottom: 16px;
}

.contact-subtext {
  color: #7B8392;
  font-size: 16px;
  max-width: 650px;
  margin: 0 auto 40px;
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 28px 20px;
}

.contact-card-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9AA3B2;
  margin-bottom: 12px;
}

.contact-card-value {
  font-size: 18px;
  color: #f1f3f7;
}

/* === FOOTER === */
footer {
  padding: 32px 6vw 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-text {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7B8392;
}

/* === ABOUT PAGE === */
.about-image {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 16px 0;
}

/* === GALLERY PAGES === */
.breadcrumb-nav {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breadcrumb-link {
  color: var(--arctic);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
  letter-spacing: 0.01em;
}

.breadcrumb-link:hover {
  color: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.045);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* === PERFORMANCE === */
.panel {
  aspect-ratio: 16/9;
}

/* Prevent Cumulative Layout Shift */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === LOGO BOX === */
.logo-box {
  width: 34px;
  height: 34px;
  border: 1px solid var(--sunlit);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sunlit);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
}

.logo-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* === HR SEPARATOR === */
hr.mobile-menu-separator {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin: 8px 0;
}

/* === MARGIN & PADDING UTILITIES === */
.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-48 {
  margin-bottom: 48px;
}

.mb-60 {
  margin-bottom: 60px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-60 {
  margin-top: 60px;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* === TEXT ALIGNMENT === */
.text-center {
  text-align: center;
}

/* === REFINED ABOUT PAGE STYLES === */
.about-section-divider {
  border-top: 1px solid rgba(232, 226, 213, 0.08);
  margin-top: 100px;
  padding-top: 80px;
}

.about-section-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--cream);
  margin: 0 0 20px;
  font-weight: 300;
  letter-spacing: -0.4px;
}

.about-section-text {
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.9;
  letter-spacing: -0.3px;
  max-width: 660px;
}

.bio-image-container {
  margin-bottom: 80px;
  position: relative;
}

.bio-image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(123, 163, 200, 0.06), rgba(232, 226, 213, 0.03));
  border: 1px solid rgba(232, 226, 213, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.cta-container {
  background: linear-gradient(135deg, rgba(123, 163, 200, 0.04), rgba(232, 226, 213, 0.02));
  border: 1px solid rgba(232, 226, 213, 0.12);
  border-radius: 16px;
  padding: 80px 60px;
  text-align: center;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(123, 163, 200, 0.03), transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .cta-container {
    padding: 60px 40px;
  }

  .about-section-divider {
    margin-top: 60px;
    padding-top: 60px;
  }

  .partners-section {
    margin-top: 60px;
    padding: 80px 6vw;
  }
}
