/* ==========================================================================
   1. Brand Variables & Base Reset
   ========================================================================== */
:root {
  --cream: #F5F0E6;
  --charcoal: #2B2B2B;
  --emerald: #046D4D;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
}

/* ==========================================================================
   2. Header & Navigation Section (Global Image Implementation)
   ========================================================================= */
header {
  background: var(--charcoal);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between; /* Pins brand-logo left, pages center, icons right */
  align-items: center;
}

/* Rigid display mapping for Modern.jpg across all page frameworks */
.logo-image-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 55px; /* Clean baseline clearance height boundary */
}

.nav-brand-logo {
  height: 100%;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row; /* Enforces horizontal inline arrangement */
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--emerald); /* Distinct signature accent highlight */
}

.nav-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-icons a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.nav-icons a:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 2.5rem;
}

.cta {
  background: var(--emerald);
  color: var(--cream);
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(4, 109, 77, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background-color: #03523a; /* Darker tone of emerald for interactions */
  transform: translateY(-2px);
}

/* ==========================================================================
   4. E-commerce Product Categories Grid
   ========================================================================== */
.categories {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.categories h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  color: var(--charcoal);
  margin-bottom: 3rem;
}

/* Fluid responsive layout replacing flexbox width overrides */
.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 650px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(43, 43, 43, 0.06); /* Soft charcoal shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(43, 43, 43, 0.12);
}

/* Image framing logic for cropped .jpg components */
.category img {
  width: 100%;
  height: 280px; 
  object-fit: cover; /* Prevents raw distortion */
  object-position: center;
  display: block;
  background-color: var(--cream); /* Native backplate matcher */
}

.category h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 1.5rem 1rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.marketing {
  font-size: 1rem;
  color: #666666;
  margin-top: 1rem;
}

/* ==========================================================================
   5. Footer Structure
   ========================================================================== */
footer {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

footer p:first-child {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

footer p:last-child {
  font-size: 0.85rem;
  color: #b0a99f; /* Slightly muted tone of cream for hierarchy */
}

.shop-intro {
  text-align: center;
  padding: 2rem;
}

.product-grid {
  padding: 2rem;
}

.product-grid h2 {
  font-family: 'Playfair Display', serif;
  color: var(--emerald);
  margin-top: 2rem;
}

.grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.grid img {
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ==========================================================================
   6. Shop Page Specific Layouts
   ========================================================================== */
.shop-intro {
  text-align: center;
  padding: 5rem 2rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.shop-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.product-showcase {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-showcase h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--charcoal);
  border-bottom: 2px solid var(--charcoal);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  text-transform: capitalize;
}

/* Dedicated Shop Grid System */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

/* Product Card Isolation Wrapper */
.product-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(43, 43, 43, 0.04);
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

/* Luxury hover swell effect on individual items */
.product-card:hover img {
  transform: scale(1.04);
}

.product-showcase .marketing {
  font-style: italic;
  font-size: 0.95rem;
  color: #555555;
  margin-top: 1.5rem;
  text-align: left;
}

/* ==========================================================================
   7. Product Detail Page Specific Styles
   ========================================================================== */
.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Flex/Grid layout conversion depending on scale size */
.product-detail {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

@media (min-width: 768px) {
  .product-detail {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .product-gallery {
    flex: 1.1; /* Gives image dynamic spatial hierarchy */
    position: sticky;
    top: 100px; /* Aligns with sticky header frame */
  }
  
  .product-info {
    flex: 0.9;
  }
}

/* Image Presentation Frame */
.main-image {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(43, 43, 43, 0.05);
}

.main-image img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
}

/* Typography Scale Refinements */
.category-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--emerald);
  display: block;
  margin-bottom: 0.5rem;
}

.product-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-info .price {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2rem;
}

.product-info .description {
  font-size: 1rem;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Purchase Action Elements */
.purchase-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #d4cbb5;
  border-radius: 4px;
  background: var(--white);
}

.quantity-selector button {
  background: none;
  border: none;
  width: 40px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--charcoal);
}

.quantity-selector input {
  width: 40px;
  height: 48px;
  text-align: center;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cta-button {
  flex: 1;
  background: var(--emerald);
  color: var(--cream);
  text-align: center;
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  line-height: 24px;
  box-shadow: 0 4px 12px rgba(4, 109, 77, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #03523a;
  transform: translateY(-2px);
}

/* Trust Badges Framework */
.trust-badges {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #d4cbb5;
  border-bottom: 1px solid #d4cbb5;
  padding: 1.25rem 0;
  margin-bottom: 2.5rem;
}

.badge-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555555;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Spec Accordions Elements */
.spec-accordion details {
  border-bottom: 1px solid #d4cbb5;
  padding: 1rem 0;
}

.spec-accordion summary {
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--charcoal);
}

.spec-accordion summary::after {
  content: '＋';
  font-size: 0.9rem;
  color: var(--emerald);
}

.spec-accordion details[open] summary::after {
  content: '✕';
  font-size: 0.8rem;
}

.details-content {
  padding: 1rem 0 0.5rem;
  font-size: 0.95rem;
  color: #555555;
}

.details-content ul {
  padding-left: 1.25rem;
}

.details-content li {
  margin-bottom: 0.4rem;
}

.marketing-footer {
  font-style: italic;
  font-size: 0.9rem;
  color: #777777;
  margin-top: 2.5rem;
}

/* ==========================================================================
   8. Split-Screen Standout Contact Layout
   ========================================================================== */
.split-viewport {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 84px - 160px); /* Account for header/footer sizing */
  background-color: var(--white);
}

@media (min-width: 992px) {
  .split-viewport {
    flex-direction: row;
  }
  
  .brand-panel {
    flex: 1.1;
    position: sticky;
    top: 84px;
    height: calc(100vh - 84px);
  }
  
  .form-panel {
    flex: 0.9;
    overflow-y: auto;
    padding: 4rem 3rem !important;
  }
}

/* Left Brand Panel Aesthetic mapping */
.brand-panel {
  background-image: url('images/b.jpg'); /* Serves as primary hero asset plate */
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 3rem 2rem;
  display: flex;
  align-items: flex-end;
  min-height: 350px;
}

.panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(43, 43, 43, 0.2) 0%, rgba(43, 43, 43, 0.85) 100%);
  z-index: 1;
}

.panel-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: 500px;
}

.panel-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cream);
  opacity: 0.8;
  display: block;
  margin-bottom: 0.5rem;
}

.panel-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.panel-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.mini-portfolio-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(245, 240, 230, 0.2);
  padding-top: 1rem;
}

.mini-portfolio-preview .dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
}

.mini-portfolio-preview p {
  font-size: 0.85rem;
  margin: 0;
  font-style: italic;
}

/* Right Form Block Panel formatting rules */
.form-panel {
  padding: 3rem 1.5rem;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 480px;
}

.form-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.form-header p {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Form Fields & Typography controls */
.premium-form .form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.premium-form label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.premium-form input,
.premium-form select,
.premium-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  background-color: var(--cream);
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--charcoal);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--emerald);
}

.premium-form textarea {
  resize: vertical;
}

/* Premium submission cta block */
.submit-cta {
  width: 100%;
  background: var(--emerald);
  color: var(--cream);
  border: none;
  padding: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(4, 109, 77, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-cta:hover {
  background-color: #03523a;
  transform: translateY(-2px);
}

/* ==========================================================================
   9. About Page Specific Layout Styles (Fully Refined)
   ========================================================================== */
.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  position: relative;
  z-index: 2; /* Ensures content stays above full-page ambient background slides */
}

.sub-pill {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--emerald);
  display: inline-block;
  margin-bottom: 1rem;
}

.about-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.about-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.about-hero p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #4a4a4a;
}

/* Interleaved Editorial Block Structure */
.narrative-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid #d4cbb5;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .narrative-section {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.narrative-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.narrative-block p {
  font-size: 1rem;
  line-height: 1.75;
  color: #555555;
}

/* Capabilities Cards System Header Fix */
.expertise-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
  padding: 2.5rem;
  background: color-mix(in srgb, var(--white) 85%, transparent); /* Premium translucent container tint */
  backdrop-filter: blur(10px); /* Frosted premium glass effect overlay */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(43, 43, 43, 0.04);
}

.expertise-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--charcoal) !important; /* Explicitly forces matching clean text */
  margin-bottom: 1rem;
}

/* Fixes paragraph dark background bug explicitly inside HTML file output rendering */
.expertise-header p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal) !important; /* Overrides any native text dark styles completely */
  margin: 0;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.capability-card {
  background: color-mix(in srgb, var(--white) 92%, transparent); /* Enhanced contrast over changing images */
  backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 15px rgba(43, 43, 43, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid transparent;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(43, 43, 43, 0.08);
  border-top-color: var(--emerald);
}

.cap-icon {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  display: block;
}

.capability-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.capability-card p {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.6;
}

.about-cta-footer {
  text-align: center;
  padding-top: 2rem;
}

.about-cta-footer .marketing {
  font-size: 1.05rem;
  font-style: italic;
  color: #4a4a4a;
  margin-bottom: 2rem;
}

/* ==========================================================================
   10. About Page - Full Page Ambient Slideshow & Global Stacking Control
   ========================================================================== */

/* Pinned Backdrop Window Frame */
.page-ambient-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2; /* Forces background directly behind body elements */
  overflow: hidden;
  background-color: var(--charcoal);
}

.ambient-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02); /* Slight increase to prevent image border flicker */
  animation: dynamicPageCrossfade 20s infinite ease-in-out;
}

/* 20-Second Cyclic Stacking Calculation Rules (5s Per Step) */
.ambient-layer:nth-child(1) { animation-delay: 0s; }
.ambient-layer:nth-child(2) { animation-delay: 5s; }
.ambient-layer:nth-child(3) { animation-delay: 10s; }
.ambient-layer:nth-child(4) { animation-delay: 15s; }

@keyframes dynamicPageCrossfade {
  0% { opacity: 0; }
  5% { opacity: 0.15; }  /* Keeps ambient visibility soft behind text */
  25% { opacity: 0.15; } /* Retains baseline tone without crushing copy text */
  30% { opacity: 0; }
  100% { opacity: 0; }
}

/* Dynamic Tint Sheet covering the changing images for readability */
.ambient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--cream) 88%, transparent); /* Blends cream skin over assets */
  z-index: -1;
}

/* Page Structural Alignment Layer Override */
.about-container {
  position: relative;
  z-index: 2; /* Forces interaction layer above background slideshow window */
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Centerpiece Brand Logo Structural Container */
.about-brand-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.logo-display-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.brand-logo-plate {
  width: 100%;
  max-width: 240px; /* Refined logo constraint bounds */
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(43, 43, 43, 0.15); /* Sleek micro drop-shadow */
}

/* Cards system opacity boost for contrast against changing assets */
.capability-card {
  background: color-mix(in srgb, var(--white) 95%, transparent) !important;
  backdrop-filter: blur(10px); /* Premium editorial frosted card look */
}
