/*==========================================
 CSS DESIGN SYSTEM & TOKENS
 ==========================================
 This stylesheet serves as the primary visual framework for the entire site.
 It utilizes modern CSS variables, fluid responsive layouts.*/
:root {
  /* Brand Color Palette */
  --color-primary: #006b4f;       /* Main Brand Forest Green */
  --color-text-dark: #000000;     /* Deep True Black for High Contrast Light Sections */
  --color-text-light: #ffffff;    /* Pure White for Dark Sections */
  --color-highlight: #62dbcb;     /* Bright Mint Highlight/Accent for Links, Focus, Hover */
  --color-bg-light: #f8f9fa;      /* Off-White for clean alternating body sections */
  --color-bg-dark: #006b4f;       /* Fallback wrapper matching Brand Color */
  --color-muted-light: #e9ecef;   /* Light gray border/background detail */
  --color-muted-dark: rgba(255, 255, 255, 0.15); /* Semi-transparent dark overlay elements */

  /* Typography System */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Georgia", "Playfair Display", "Times New Roman", serif;

  /* Global Metrics */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;

  /* Layout Structures */
  --sidebar-width: 11vw;
  --header-max-height-mobile: 8vh;
  --header-min-height-mobile: 64px;
  --container-max-width: 1000vw;
  --container-padding-left-web: 20vw;
  --container-padding-left-cell: 10vw;

  /* Shared Micro-Interactions */
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --focus-outline: 3px solid var(--color-highlight);
}
    --margin-left-auto:auto;
/* ==========================================
   RESET & SYSTEM BASICS
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%; /* Default 16px base font size */
  overflow-x:hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  margin:0px;
}

/* Ensure images never break containment grids */
img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Accessibility: Keyboard focus highlights */
a:focus-visible,
button:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

ul {
    padding-left:0px;
}

/* ==========================================
   TYPOGRAPHY & UTILITIES
   ========================================== */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* High Contrast Serif Highlight for editorial keyword formatting */
.text-highlight-serif,
h1 em,
h2 em,
h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-highlight);
  letter-spacing: normal;
}

/* Light backgrounds need dark contrast highlights */
.bg-light .text-highlight-serif,
.bg-light h1 em,
.bg-light h2 em,
.bg-light h3 em {
  color: var(--color-primary);
}

/* Standard structural wrapping container */
.container {
  width:70vw;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Margins and Spacing */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Primary/Universal Button Component */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  background-color: var(--color-highlight);
  color: var(--color-text-dark) !important;
  border: 2px solid var(--color-highlight);
  border-radius: var(--border-radius-md);
  padding: 0.4rem 1rem;*/
  min-height: 48px; /* Mobile safe tap size target */
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: transparent;
  color: var(--color-highlight) !important;
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(98, 219, 203, 0.3);
}

/* Alternate light button style */
.btn-secondary {
  background-color: transparent;
  color: var(--color-text-light) !important;
  border: 2px solid var(--color-text-light);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-text-light);
  color: var(--color-primary) !important;
  transform: scale(1.02);
}

/* ==========================================
   SECTION 1: MOBILE NAVIGATION HEADER & SIDEBAR
   ========================================== */

/* Header Wrapper on Mobile Default */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 95vw;
  height: 8vh;
  background-color: var(--color-primary);
  border-bottom: 1px solid var(--color-muted-dark);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}
header a img {
      margin-top:1vh;
      width:10vw;
  }
  
/* Brand Name Branding */
.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-title em {
  font-family: var(--font-sans);
  color: var(--color-highlight);
  font-style: normal;
  font-weight: 300;
}

/* Touch Friendly Mobile Burger Toggle Button */
.nav-toggle-btn {
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1010;
}

.nav-toggle-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-light);
  transition: var(--transition-smooth);
}

/* Transform toggle lines to a clean close 'X' when open */
.nav-toggle-btn.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-btn.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Drawer (Slide-out menu on Mobile) */
.nav-container {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height-mobile));
  background-color: var(--color-primary);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
}

.nav-container.is-open {
  transform: translateX(0);
}

.main-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0;
  display: block;
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.is-active {
  color: var(--color-highlight);
  padding-left: 0.5rem;
}

/* ==========================================
   SECTION 2: HERO & CURRENT PROJECT HIGHLIGHT
   ========================================== */
.hero-section {
  position: relative;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-text-light);
  padding-top: calc(var(--header-height-mobile) + 3rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  min-height: 80vh;
}

/* Strong Dark Filter Layer to guard legibility over background pictures */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 107, 79, 0.95) 30%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-left:auto;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  z-index:1;
}
.hero-img {
    background-image:url(../assets/hero-bg1.png);
    background-size:auto 90%;
    background-position:100% 20%;
    background-repeat:no-repeat;
}
.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  z-index:1;
}

/* ==========================================
   SECTION 3: ETSY SHOP PREVIEW GRID
   ========================================== */
.shop-section {
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--color-text-dark);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.75;
}

/* Products Dynamic Card Grid Layout - Responsive mobile columns */
.products-grid {
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile view */
  gap: 2rem;
  margin-bottom: 4rem;
}
.products-grid a {
pointer-events: auto;
text-decoration:none;    
}


/* Single Card Structure */
.product-card {
pointer-events: auto;
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.product-image-container {
  width: 100%;
  height: 250px;
  background-color: var(--color-muted-light);
  overflow: hidden;
  position: relative;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

.product-price {
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
  font-size: 1.1rem;
}

.shop-cta-container {
  text-align: center;
}

/* ==========================================
   SECTION 4: FOOTER & ABOUT LAYOUT
   ========================================== */
.main-footer {
  background-color: #011d15; /* Dark forest green variant */
  color: var(--color-text-light);
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 4px solid var(--color-highlight);
}

/* Top Block dividing columns */
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Left side about columns */
.footer-col-about {
  flex: 2;
}

.footer-col-about .about-text {
  opacity: 0.8;
  margin-top: 1rem;
}

/* Navigation column */
.footer-col-links {
  flex: 1;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-highlight);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  color: var(--color-text-light);
  text-decoration: none;
  opacity: 0.75;
  transition: var(--transition-smooth);
}

.footer-link:hover,
.footer-link:focus {
  opacity: 1;
  color: var(--color-highlight);
  padding-left: 0.25rem;
}

/* Contact Column */
.footer-col-contact {
  flex: 1.5;
}

.contact-email {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-decoration: none;
  margin-bottom: 1.5rem;
  border-bottom: 2px dashed var(--color-highlight);
  padding-bottom: 2px;
  transition: var(--transition-smooth);
}

.contact-email:hover,
.contact-email:focus {
  color: var(--color-highlight);
  border-bottom-style: solid;
}

.social-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

/* Target elements for touch friendly action paths */
.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--color-muted-dark);
  border-radius: 50%;
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon-btn:hover,
.social-icon-btn:focus {
  background-color: var(--color-highlight);
  color: var(--color-text-dark);
  transform: translateY(-2px);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Bottom Copyright Section */
.footer-copyright {
  text-align: center;
  border-top: 1px solid var(--color-muted-dark);
  padding-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* ==========================================
   INTERIOR PAGES COMPONENT PLACEHOLDERS
   ========================================== */
.page-title-banner {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.85;
}

/* General Layout for Inner Page Listings (e.g. workshops/blogs) */
.inner-listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.inner-listing-card {
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.listing-meta {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ==========================================
   RESPONSIVE LAYOUT SYSTEM - TABLETS (768px +)
   ========================================== */
@media (min-width: 768px) {
  /* Fluid Typography Scaling */
  html {
    font-size: 105%;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  /* Shop Grid structure expands to 2 column layout */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer Layout expands into 2 parallel columns */
  .footer-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-col-about {
    flex-basis: 100%;
  }

  .footer-col-links,
  .footer-col-contact {
    flex: 1;
  }

  .inner-listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   RESPONSIVE LAYOUT SYSTEM - DESKTOP (1024px +)
   ========================================== */
@media (min-width: 1024px) {
  /* Dynamic Transformation: Layout splits into fixed Sidebar + Scrolling Viewport */
  body {
    padding-left: var(--sidebar-width);
  }

  /* Hide mobile-specific triggers */
  .nav-toggle-btn {
    display: none;
  }

  /* Transform Mobile Top Header into Fixed Left Sidebar */
  .main-header {
    width: var(--sidebar-width);
    height: 100vh;
    left: 0;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 3rem 2rem;
    border-right: 1px solid var(--color-muted-dark);
    border-bottom: none;
  }

  .brand-title {
    margin-bottom: 4rem;
    font-size: 1.85rem;
  }

  /* Set navigation link container to always be visible, standard layout flow */
  .nav-container {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    background-color: transparent;
    padding: 0;
  }

  .main-nav-list {
    gap: 1.25rem;
    padding:0px;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  /* Sections adjustments now that sidebar takes space */
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    min-height: 90vh;
  }
  .hero-content {
      margin-left:auto;
      margin-right:auto;
      
  }

  /* Grid splits fully into balanced 3 items columns */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /*Container for top section index */
    .container { 
    margin-left: 10vw;
  }
  header a img {
      margin-top:0vh;
      width:10vw;
  }
  /* Wide screen Footer balancing columns */
  .footer-row {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4rem;
  }

  .footer-col-about {
    flex: 2;
  }
}
