/* ==========================================================================
   ATTUNY — BRAND DESIGN SYSTEM & STYLES
   Based on Attuny Brand Guidelines & Ui style.svg specification
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Primary & Secondary Colors (Page 16 Brand Guidelines) */
  --color-primary-blue: #8095B4;       /* Primary Blue: R128 G149 B180 */
  --color-primary-blue-hover: #6c83a5;
  --color-primary-blue-light: #f0f4f9;

  --color-secondary-orange: #DA4E33;   /* Secondary Orange: R218 G78 B51 */
  --color-secondary-orange-hover: #c43f25;
  --color-secondary-orange-light: #faeeea;

  --color-secondary-green: #999268;    /* Secondary Green: R153 G146 B104 */

  /* Neutral Tones */
  --color-dark: #333333;
  --color-dark-heading: #1a1a1a;
  --color-muted: #666666;
  --color-light-gray: #f8f9fa;
  --color-border: #e9ecef;
  --color-white: #ffffff;

  /* Typography (Brand Guidelines: Single Font Family - Commissioner) */
  --font-primary: 'Commissioner', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-accent: 'Commissioner', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Geometry & Curves (Page 25 Brand Guidelines: 30px curves) */
  --radius-card: 30px;
  --radius-sm: 12px;
  --radius-pill: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-footer: 0 10px 40px rgba(0, 0, 0, 0.05);

  /* Layout */
  --header-height: clamp(60px, 4.5vw, 76px);
  --header-height-mobile: 56px;
  --max-width: 1440px;
  --content-padding: clamp(20px, 3.5vw, 60px);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. CSS Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-primary);
  background-color: var(--color-white);
  color: var(--color-dark);
  line-height: 1.6;
}

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

svg {
  flex-shrink: 0;
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-secondary-orange);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--content-padding), env(safe-area-inset-left, 0px));
  padding-right: max(var(--content-padding), env(safe-area-inset-right, 0px));
}

.section-padding {
  padding-top: clamp(40px, 4.8vh, 68px);
  padding-bottom: clamp(40px, 4.8vh, 68px);
}

.section-title {
  color: var(--color-primary-blue);
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: clamp(20px, 2.2vw, 32px);
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-pill);
  padding: 12px 30px;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.btn-pill-outline {
  border: 1.5px solid var(--color-primary-blue);
  color: var(--color-primary-blue);
  background-color: transparent;
}

.btn-pill-outline:hover {
  background-color: var(--color-primary-blue);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(128, 149, 180, 0.35);
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--color-secondary-orange);
  color: var(--color-white);
  border: 1.5px solid var(--color-secondary-orange);
}

.btn-primary:hover {
  background-color: var(--color-secondary-orange-hover);
  border-color: var(--color-secondary-orange-hover);
  box-shadow: 0 8px 20px rgba(218, 78, 51, 0.35);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: height;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background-color 0.35s ease;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: clamp(52px, 4vw, 60px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
}

.nav-link {
  font-size: clamp(12.5px, 0.85vw, 14px);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary-blue);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-primary-blue);
}

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

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.logo-img {
  height: clamp(24px, 2vw, 32px);
  width: auto;
  transition: transform var(--transition-normal);
}

.logo-img:hover {
  transform: scale(1.02);
}

.btn-eshowroom {
  padding: 8px 24px;
  font-size: 14px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-dark);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background-color: var(--color-primary-blue-light);
  color: var(--color-primary-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  padding: 0;
  z-index: 1010;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary-blue);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 1020;
  transition: right var(--transition-smooth);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

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

.mobile-drawer-inner {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.drawer-logo {
  height: 30px;
  width: auto;
}

.drawer-close-btn {
  font-size: 32px;
  color: var(--color-dark);
  line-height: 1;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  display: block;
  padding: 6px 0;
}

.mobile-nav-link:hover {
  color: var(--color-primary-blue);
}

.mobile-drawer-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1015;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

/* --------------------------------------------------------------------------
   6. Hero Carousel Section
   -------------------------------------------------------------------------- */
.hero-section {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.hero-carousel-container {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  overflow: hidden;
  background-color: #eef2f6;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero-slider {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  transform: translateX(100%);
  will-change: transform;
}

.hero-slide.active {
  visibility: visible;
  transform: translateX(0);
  z-index: 1;
}

.hero-image-wrap {
  width: 100%;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Carousel Controls (Glassmorphism Arrows) */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: clamp(38px, 3.2vw, 50px);
  height: clamp(38px, 3.2vw, 50px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}

.carousel-control.prev {
  left: clamp(16px, 2.5vw, 32px);
}

.carousel-control.next {
  right: clamp(16px, 2.5vw, 32px);
}

/* Carousel Progressive Progress Navigation (Bottom-Right) */
.carousel-dots {
  position: absolute;
  bottom: clamp(16px, 3vh, 32px);
  right: clamp(18px, 3.2vw, 48px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dot-btn {
  position: relative;
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width var(--transition-normal), background-color var(--transition-normal);
}

/* Progressive loading fill */
.dot-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--color-secondary-orange);
  border-radius: 3px;
}

.dot-btn.active {
  width: 40px;
  background-color: rgba(255, 255, 255, 0.2);
}

.dot-btn.active::after {
  width: 100%;
  animation: progressFill 5s linear forwards;
}

.hero-carousel-container:hover .dot-btn.active::after {
  animation-play-state: paused;
}

@keyframes progressFill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   7. About Section
   -------------------------------------------------------------------------- */
.about-section {
  background-color: var(--color-white);
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: var(--header-height);
}

.about-content {
  width: 100%;
  max-width: 60%;
}

.about-subtitle {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: clamp(16px, 1.8vw, 24px);
  letter-spacing: -0.01em;
}

.about-body p,
.about-text {
  font-size: clamp(13.5px, 1.05vw, 15px);
  color: var(--color-dark);
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
  margin-bottom: 0;
}

.about-body .highlight-statement {
  font-weight: 600;
  color: var(--color-dark-heading);
  margin-top: 24px;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   8. Our Products Section
   -------------------------------------------------------------------------- */
.products-section {
  background-color: #f5f5f5;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-link {
  display: block;
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 939 / 1174; /* 4:5 Portrait */
  border-radius: 0;
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: none;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card-link:hover .product-image-container {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

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

.product-name {
  color: var(--color-primary-blue);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 600;
  margin-top: clamp(10px, 1vw, 15px);
  transition: color var(--transition-fast);
}

.product-card-link:hover .product-name {
  color: var(--color-secondary-orange);
}

/* --------------------------------------------------------------------------
   9. Engineered for Flexibility Section
   -------------------------------------------------------------------------- */
.flexibility-section {
  background-color: var(--color-white);
}

/* Continuous 3x3 checkerboard grid with interactive 3D flip tiles */
.flexibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  max-width: 1288px;
  margin: 0 auto;
}

.flex-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 429 / 425;
  -webkit-perspective: 1200px;
  perspective: 1200px;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.34, 1.25, 0.64, 1);
  will-change: transform;
}

.flex-tile.flipped .tile-inner {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.tile-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
}

.tile-front {
  -webkit-transform: rotateY(0deg) translateZ(1px);
  transform: rotateY(0deg) translateZ(1px);
  z-index: 2;
}

.tile-back {
  -webkit-transform: rotateY(180deg) translateZ(1px);
  transform: rotateY(180deg) translateZ(1px);
  z-index: 1;
}

.tile-face-color.flex-color-blue {
  background-color: #8095b4;
}

.tile-face-color.flex-color-orange {
  background-color: #da4e33;
}

.tile-face-image {
  background-color: #f0f2f5;
}

.flex-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tile-face:hover .flex-tile-img {
  transform: scale(1.05);
}

/* Clean text title on Image Tiles ONLY on hover/tap (No button, no card) */
.tile-face-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.08) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tile-face-image:hover::after,
.tile-face-image.show-title::after {
  opacity: 1;
}

.tile-image-title {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tile-face-image:hover .tile-image-title,
.tile-face-image.show-title .tile-image-title {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   10. Call to Action (CTA) Section
   -------------------------------------------------------------------------- */
.cta-section {
  background-color: var(--color-white);
  padding-top: clamp(48px, 6vh, 90px);
  padding-bottom: clamp(48px, 6vh, 90px);
}

.cta-content {
  max-width: 800px;
}

.cta-title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  margin-bottom: clamp(12px, 1.2vw, 16px);
}

.cta-desc {
  font-size: clamp(13.5px, 1.05vw, 15px);
  color: #555555;
  line-height: 1.6;
  margin-bottom: clamp(20px, 2.2vw, 32px);
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-actions .btn-cta,
.btn.btn-cta {
  background-color: var(--color-white);
  color: var(--color-secondary-orange);
  border: 1px solid var(--color-secondary-orange);
  border-radius: 0;
  padding: 10px 24px;
}

.cta-actions .btn-cta:hover,
.btn.btn-cta:hover {
  background-color: var(--color-secondary-orange);
  color: var(--color-white);
  border-color: var(--color-secondary-orange);
  box-shadow: none;
  transform: none;
}

.cta-actions .btn-cta-outline,
.btn.btn-cta-outline {
  background-color: var(--color-white);
  color: var(--color-primary-blue);
  border: 1px solid var(--color-primary-blue);
  border-radius: 0;
  padding: 10px 24px;
}

.cta-actions .btn-cta-outline:hover,
.btn.btn-cta-outline:hover {
  background-color: var(--color-primary-blue);
  color: var(--color-white);
  box-shadow: none;
  transform: none;
}

/* --------------------------------------------------------------------------
   11. Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-white);
  padding: clamp(36px, 4.5vh, 60px) 0 0 0;
  border-top: 1px solid #e5e5e5;
  width: 100%;
  overflow: hidden;
}

.footer-content {
  width: 100%;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 2fr;
  gap: clamp(20px, 2.8vw, 40px);
  padding-bottom: clamp(16px, 2vh, 24px);
}

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

.footer-logo-img {
  height: clamp(26px, 2.2vw, 32px);
  width: auto;
  margin-bottom: clamp(10px, 1vw, 14px);
}

.footer-brand-desc {
  font-size: 13px;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 290px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f4f5f7;
  color: #333333;
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon svg {
  display: block;
  transition: transform 0.25s ease;
}

.social-icon:hover {
  background-color: var(--color-primary-blue);
  color: var(--color-white);
  border-color: var(--color-primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 149, 180, 0.35);
}

.social-icon:hover svg {
  transform: scale(1.08);
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.footer-links li {
  font-size: 13px;
  line-height: 1.4;
}

.footer-links a {
  font-size: 13px;
  line-height: 1.4;
  color: #555555;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-blue);
}

.footer-address {
  font-style: normal;
  font-size: 13px;
  color: #555555;
  line-height: 1.4;
}

.contact-company {
  font-weight: 700;
  color: #111111;
  margin-bottom: 3px;
}

.contact-meta {
  margin-top: 6px;
}

.meta-label {
  font-weight: 600;
  color: #111111;
}

.contact-link {
  color: #555555;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--color-primary-blue);
}

/* Legal Links Row */
.footer-legal-row {
  padding: 16px 0 36px 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

.footer-legal-links a {
  color: #555555;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--color-primary-blue);
}

/* Full-width Copyright Bar */
.footer-bottom-bar {
  width: 100%;
  background-color: #8095b4;
  color: var(--color-white);
  text-align: center;
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  font-size: 13px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.footer-bottom-bar p {
  margin: 0;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   12. Floating Scroll to Top
   -------------------------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  right: max(20px, calc(env(safe-area-inset-right, 0px) + 16px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background-color: var(--color-primary-blue);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--color-secondary-orange);
  box-shadow: 0 6px 20px rgba(218, 78, 51, 0.4);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries
   -------------------------------------------------------------------------- */

/* Laptop / Medium Desktop: 1024px - 1439px */
@media (max-width: 1439px) {
  :root {
    --content-padding: clamp(28px, 3vw, 44px);
    --header-height: 68px;
  }

  .hero-slider {
    height: 100%;
  }

  .footer-main-grid {
    grid-template-columns: 2fr 1fr 1fr 1.8fr;
    gap: clamp(18px, 2vw, 28px);
  }
}

/* Tablet / Small Laptop: 768px - 1023px */
@media (max-width: 1023px) {
  :root {
    --content-padding: clamp(20px, 2.8vw, 32px);
    --header-height: 62px;
  }

  .nav-menu {
    gap: clamp(10px, 1.4vw, 18px);
  }

  .nav-link {
    font-size: 12.5px;
  }

  .logo-img {
    height: 26px;
  }

  .hero-slider {
    height: 100%;
  }

  .carousel-dots {
    bottom: 20px;
    right: 24px;
  }

  .carousel-control {
    width: 38px;
    height: 38px;
  }

  .carousel-control.prev {
    left: 16px;
  }

  .carousel-control.next {
    right: 16px;
  }

  .products-grid {
    gap: 20px;
  }

  .flexibility-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .about-content {
    max-width: 80%;
  }

  .footer-main-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1.8fr;
    gap: 20px;
  }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
  :root {
    --content-padding: 18px;
    --header-height: 56px;
    --radius-card: 20px;
  }

  .section-padding {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    order: -1;
  }

  .header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
  }

  .logo-img {
    height: 24px;
  }

  .site-header.scrolled .logo-img {
    height: 20px;
  }

  .mobile-menu-toggle {
    width: 22px;
    height: 16px;
  }

  .site-header.scrolled {
    height: 48px;
  }

  .hero-carousel-container {
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
  }

  .hero-slider {
    height: 100%;
  }

  .carousel-dots {
    bottom: 16px;
    right: 16px;
  }

  .about-content {
    max-width: 100%;
  }

  .about-subtitle {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .about-body p,
  .about-text {
    font-size: 14px;
    line-height: 1.65;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }

  .product-name {
    font-size: 16px;
    margin-top: 10px;
  }

  .flexibility-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  /* 2 columns, 3 rows = 6 tiles */
  .flex-tile:nth-child(n+7) {
    display: none;
  }

  /* Explicit ordering for all 6 tiles to ensure a true alternating 2x3 checkerboard */
  .flex-tile:nth-child(1) { order: 1; }
  .flex-tile:nth-child(2) { order: 2; }
  .flex-tile:nth-child(3) { order: 4; }
  .flex-tile:nth-child(4) { order: 3; }
  .flex-tile:nth-child(5) { order: 5; }
  .flex-tile:nth-child(6) { order: 6; }

  /* Mobile: Text title is NOT always visible. Only revealed when tapped */
  .tile-face-image::after {
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  }

  .tile-face-image.show-title::after {
    opacity: 1;
  }

  .tile-image-title {
    opacity: 0;
    transform: translateY(6px);
    bottom: 12px;
    left: 12px;
    right: 12px;
    font-size: 12px;
  }

  .tile-face-image.show-title .tile-image-title {
    opacity: 1;
    transform: translateY(0);
  }

  .cta-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .cta-title {
    font-size: 22px;
  }

  .cta-actions {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .cta-actions .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
  }

  /* Mobile Footer Rework */
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }

  .footer-col-brand {
    display: contents;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4px;
  }

  .footer-brand-block .footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .footer-brand-block .footer-logo-img {
    height: 26px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
  }

  .footer-brand-block .footer-brand-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    margin-bottom: 0;
  }

  .footer-main-grid .footer-col:nth-child(2),
  .footer-main-grid .footer-col:nth-child(3) {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-main-grid .footer-col:nth-child(2) {
    order: 2;
  }

  .footer-main-grid .footer-col:nth-child(3) {
    order: 3;
  }

  .footer-main-grid .footer-col:nth-child(2) .footer-col-title,
  .footer-main-grid .footer-col:nth-child(3) .footer-col-title {
    text-align: center;
    width: 100%;
  }

  .footer-main-grid .footer-col:nth-child(2) .footer-links,
  .footer-main-grid .footer-col:nth-child(3) .footer-links {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-main-grid .footer-col:nth-child(2) .footer-links li,
  .footer-main-grid .footer-col:nth-child(3) .footer-links li {
    text-align: center;
  }

  .footer-col-contact {
    grid-column: 1 / -1;
    order: 4;
    margin-top: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col-contact .footer-col-title {
    text-align: center;
    width: 100%;
    margin-bottom: 12px;
  }

  .footer-address {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-address p {
    text-align: center;
  }

  /* Social media icons centered at the bottom, directly above legal links */
  .footer-social-links {
    grid-column: 1 / -1;
    order: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    margin-bottom: 4px;
  }

  /* Legal Links (Privacy, Warranty, Terms) centered */
  .footer-legal-row {
    padding: 14px 0 28px 0;
  }

  .footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .scroll-top-btn {
    bottom: 56px;
    right: 20px;
    width: 38px;
    height: 38px;
  }
}

/* --------------------------------------------------------------------------
   15. Design Philosophy Page Styles
   -------------------------------------------------------------------------- */
.nav-link.active {
  color: var(--color-primary-blue);
}

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

.mobile-nav-link.active {
  color: var(--color-primary-blue);
  font-weight: 700;
}

.philosophy-section {
  background-color: var(--color-white);
}

.philosophy-intro {
  max-width: 860px;
  margin-bottom: 56px;
}

.philosophy-heading {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  color: var(--color-dark-heading);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: clamp(16px, 1.8vw, 24px);
}

.philosophy-lead {
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--color-dark);
  line-height: 1.75;
}

/* Manifesto Highlight */
.philosophy-manifesto {
  max-width: 860px;
  padding: clamp(28px, 3vh, 40px) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: clamp(40px, 4.5vh, 64px);
}

.philosophy-quote {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  color: var(--color-dark-heading);
  line-height: 1.5;
  letter-spacing: -0.015em;
  margin-bottom: clamp(14px, 1.5vw, 20px);
  font-style: normal;
}

.philosophy-statement {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.8;
}

/* Principles Editorial List */
.philosophy-principles {
  display: flex;
  flex-direction: column;
  max-width: 860px;
  margin-bottom: 72px;
}

.principle-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
  gap: 24px;
}

.principle-item:first-child {
  border-top: 1px solid var(--color-border);
}

.principle-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary-blue);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.principle-content {
  display: flex;
  flex-direction: column;
}

.principle-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark-heading);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.principle-tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-secondary-orange);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.principle-body {
  font-size: 15px;
  color: var(--color-dark);
  line-height: 1.75;
}

/* Closing Statement & Action */
.philosophy-footer-cta {
  max-width: 860px;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.philosophy-cta-quote {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark-heading);
  letter-spacing: -0.015em;
}

.philosophy-cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .philosophy-heading {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .philosophy-lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .philosophy-manifesto {
    padding: 28px 0;
    margin-bottom: 44px;
  }

  .philosophy-quote {
    font-size: 20px;
    line-height: 1.45;
  }

  .principle-item {
    grid-template-columns: 44px 1fr;
    padding: 28px 0;
    gap: 14px;
  }

  .principle-number {
    font-size: 16px;
  }

  .principle-title {
    font-size: 19px;
  }

  .philosophy-principles {
    margin-bottom: 48px;
  }

  .philosophy-cta-buttons {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .philosophy-cta-buttons .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   16. Product Detail Page Styles (sync.html)
   -------------------------------------------------------------------------- */

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: clamp(16px, 2vh, 24px);
}

.breadcrumb a {
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

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

.breadcrumb-separator {
  color: #bbbbbb;
  font-size: 11px;
}

.breadcrumb-current {
  color: var(--color-dark-heading);
  font-weight: 600;
}

/* Product Hero Showcase (Editorial Intro) */
.product-hero-section {
  background-color: var(--color-white);
  padding-top: clamp(28px, 3.5vh, 52px);
  padding-bottom: clamp(40px, 5vh, 72px);
}

.product-hero-content {
  max-width: 860px;
}

.product-hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-blue);
  margin-bottom: 8px;
}

.product-hero-title {
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 700;
  color: var(--color-dark-heading);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.product-hero-tagline {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 600;
  color: var(--color-secondary-orange);
  letter-spacing: -0.01em;
  margin-bottom: clamp(16px, 1.8vw, 22px);
}

.product-hero-desc {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--color-dark);
  line-height: 1.75;
  margin-bottom: clamp(24px, 2.8vw, 36px);
  max-width: 640px;
}

.product-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Key Features Section (01 - 06) */
.product-features-section {
  background-color: #f8f9fa;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.features-header {
  margin-bottom: clamp(32px, 3.5vw, 48px);
}

.features-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary-blue);
  margin-bottom: 6px;
}

.features-main-title {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  color: var(--color-dark-heading);
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}

.feature-card {
  background-color: var(--color-white);
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius-sm);
  border: 1px solid #eaeaea;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(128, 149, 180, 0.4);
}

.feature-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.feature-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-blue);
  letter-spacing: 0.04em;
}

.feature-divider {
  color: #cccccc;
  font-weight: 300;
}

.feature-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-dark-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--color-dark);
  line-height: 1.65;
  flex-grow: 1;
}

.feature-spec-note {
  display: inline-block;
  font-size: 11.5px;
  font-style: italic;
  color: var(--color-muted);
  margin-top: 10px;
  padding: 4px 8px;
  background-color: #f4f6f9;
  border-radius: 4px;
}

/* Bento / Pinterest Grid Gallery Section */
.bento-gallery-section {
  background-color: var(--color-white);
}

.bento-gallery-header {
  margin-bottom: clamp(28px, 3vw, 44px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bento-gallery-title {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  color: var(--color-dark-heading);
  letter-spacing: -0.02em;
}

.bento-gallery-subtitle {
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 4px;
}

/* Pinterest Masonry Gallery (Desktop: 3 Columns, Mobile: 2 Columns) */
.bento-gallery {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* Base Multi-Column Fallback before JS layout */
.bento-gallery:not(.masonry-active) {
  column-count: 3;
  column-gap: 20px;
}

.bento-gallery:not(.masonry-active) .bento-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* Authentic Pinterest Card Styling */
.bento-item {
  position: relative;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.bento-img-wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.bento-item:hover .bento-img-wrap {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bento-gallery.masonry-active .bento-img-wrap {
  height: 100%;
}

.bento-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-gallery.masonry-active .bento-img {
  height: 100%;
  object-fit: cover;
}

.bento-item:hover .bento-img {
  transform: scale(1.035);
}


/* Responsive Overrides for Product Detail Page */
@media (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-gallery:not(.masonry-active) {
    column-count: 2;
    column-gap: 16px;
  }
}

@media (max-width: 767px) {
  .product-hero-actions {
    width: 100%;
  }

  .product-hero-actions .btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Mobile Pinterest Masonry: 2 Columns */
  .bento-gallery:not(.masonry-active) {
    column-count: 2;
    column-gap: 12px;
  }

  .bento-gallery:not(.masonry-active) .bento-item {
    margin-bottom: 12px;
  }

  .bento-item,
  .bento-img-wrap,
  .bento-img {
    border-radius: 14px;
  }
}

