/* 
  Pipenberg Outdoors - Global Stylesheet
  Theme: Cottage Ultralight Hiking and Thru-Hiking Equipment
  Design Philosophy: Warm minimalism, technical blueprints, spec sheets
*/

/* --- Design Tokens --- */
:root {
  --bg-color: #fcfbf7;
  --bg-card: #ffffff;
  --text-primary: #232322;
  --text-secondary: #5c5a57;
  --accent-color: #5a6e58;
  --accent-hover: #455543;
  --border-color: #e6e4de;
  --border-dark: #b8b5ad;
  --max-width: 1100px;
  
  /* Typography */
  --font-body: 'Courier New', Courier, monospace;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  
  /* Transitions */
  --transition-smooth: all 0.25s ease-in-out;
}

/* --- Resets & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

button, input, textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Typography Helper Classes --- */
.text-serif {
  font-family: var(--font-heading);
}

.text-mono {
  font-family: var(--font-body);
}

.weight-label {
  display: inline-block;
  background-color: #eef2ed;
  color: var(--accent-color);
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  border: 1px solid var(--border-color);
}

/* --- Layout Components --- */

/* Navigation Header */
header {
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(253, 252, 247, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-placeholder {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--font-heading);
  background-color: #ffffff;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.logo-subtext {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  display: block;
}

/* Main Menu Links */
.main-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

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

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

.nav-link.active {
  color: var(--accent-color);
}

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

/* Index page overlay header */
body.home-page header {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: none;
}
body.home-page header .header-container {
  padding-top: 2rem;
}
body.home-page header .logo-text,
body.home-page header .nav-link,
body.home-page header .mobile-menu-btn {
  color: #ffffff;
}
body.home-page header .logo-subtext {
  color: #d1cfc9;
}
body.home-page header .logo-placeholder {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
body.home-page header .nav-link::after {
  background-color: #ffffff;
}
body.home-page header .nav-link:hover {
  color: #ffffff;
  opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
}

/* --- Hero Banner (Index Only) --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 450px;
  overflow: hidden;
  background-color: #232322;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  background: linear-gradient(135deg, #3a4b3d 0%, #232322 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-placeholder svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
  color: var(--border-color);
  font-family: var(--font-body);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.hero-description {
  font-size: 16px;
  margin-bottom: 2rem;
  color: #ecebe6;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 2px;
  font-weight: bold;
  letter-spacing: 1px;
  border: 1px solid var(--accent-color);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: 2px;
  font-weight: bold;
  letter-spacing: 0.5px;
  border: 1px solid var(--text-primary);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--text-primary);
  color: #ffffff;
}

/* --- Container Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* --- Section Title --- */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 1px;
  background-color: var(--border-dark);
}

/* --- Features Section --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.philosophy-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.philosophy-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-dark);
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.philosophy-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.philosophy-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.philosophy-desc {
  color: var(--text-secondary);
  font-size: 13px;
}

/* --- Product Cards Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.product-card:hover {
  border-color: var(--border-dark);
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  background-color: #f2efe9;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f3ef;
  color: var(--text-secondary);
}

.product-image-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.35;
}

.product-card:hover .product-image-placeholder svg {
  transform: scale(1.1);
  transition: var(--transition-smooth);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  z-index: 10;
}

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

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.product-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.product-name {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.product-desc-short {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.product-price {
  font-size: 1.2rem;
  font-weight: bold;
}

/* --- Info Page Specifics --- */
.info-section-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.info-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.info-nav-list {
  list-style: none;
  border-left: 2px solid var(--border-color);
  padding-left: 0;
}

.info-nav-item a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: bold;
}

.info-nav-item.active {
  border-left: 2px solid var(--accent-color);
  margin-left: -2px;
}

.info-nav-item.active a {
  color: var(--accent-color);
}

.info-nav-item a:hover {
  color: var(--accent-color);
}

.info-content-block {
  margin-bottom: 5rem;
}

.info-content-block h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.info-content-block h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.info-content-block p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.info-content-block ul {
  list-style-type: square;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.info-content-block li {
  margin-bottom: 0.5rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.spec-table th, .spec-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.spec-table th {
  font-weight: bold;
  background-color: #f5f4ee;
  font-size: 12px;
}

.spec-table td {
  font-size: 13px;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  background-color: var(--bg-card);
  border-radius: 2px;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

/* --- About Us Page --- */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-text blockquote {
  border-left: 3px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.about-image-placeholder {
  width: 100%;
  height: 500px;
  background-color: #f2efe9;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.about-image-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-panel h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.contact-info-panel p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 2px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-dark);
  background-color: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 2px;
  border: 1px solid var(--accent-color);
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.form-success-message {
  display: none;
  background-color: #eef5ee;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: bold;
}

/* --- Footer --- */
footer {
  background-color: #1e1e1d;
  color: #b8b5ad;
  border-top: 1px solid #1e1e1d;
  padding: 4rem 1.5rem 2rem 1.5rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 12px;
  line-height: 1.7;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 13px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid #2d2d2b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

/* --- Product Detail Quick-View Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(35, 35, 34, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-color);
  max-width: 800px;
  width: 100%;
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  z-index: 10;
  color: var(--text-primary);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(253, 252, 247, 0.8);
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.modal-image-panel {
  background-color: #f2efe9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-color);
  height: 450px;
}

.modal-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-placeholder svg {
  width: 100px;
  height: 100px;
  opacity: 0.3;
}

.modal-info-panel {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 450px;
}

.modal-product-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.modal-product-name {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.modal-product-weight {
  margin-bottom: 1rem;
}

.modal-product-price {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.modal-product-description {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-specs-title {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.modal-specs-list {
  list-style: none;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.modal-specs-list li {
  margin-bottom: 0.25rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .info-section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .info-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  
  .info-nav-list {
    display: flex;
    flex-wrap: wrap;
    border-left: none;
    border-bottom: 2px solid var(--border-color);
    padding-left: 0;
  }
  
  .info-nav-item {
    border-left: none;
  }
  
  .info-nav-item.active {
    border-left: none;
    border-bottom: 2px solid var(--accent-color);
    margin-left: 0;
    margin-bottom: -2px;
  }
  
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .about-image-placeholder {
    height: 350px;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .modal-card {
    grid-template-columns: 1fr;
  }
  
  .modal-image-panel {
    height: 250px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .modal-info-panel {
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem 1.5rem;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .nav-link {
    padding: 1rem 2rem;
    display: block;
    width: 100%;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
    padding: 5px;
  }
  
  .hero-section {
    height: 50vh;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 14px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
