/* Project Studios — styles (extracted from inline index.css)
   Palette and layout rules are shared across pages.
*/

/* ========================================
   CSS RESET + VARIABLES
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #006600;
  --primary-hover: #004d00;
  --accent: #a5b6a3;
  --bg: #cecac9;
  --text: #000000;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
  --content-max: 1200px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand .brand-accent {
  color: var(--accent);
  font-weight: 400;
}

/* Desktop: show text, hide logo */
.brand-text {
  display: block;
}

.brand-logo-mobile {
  display: none;
}

/* Mobile: hide text, show small logo */
@media (max-width: 768px) {
  .brand-text {
    display: none;
  }
  
  .brand-logo-mobile {
    display: block;
    height: 32px;
    width: auto;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
  display: block;
}

.nav-links > li > a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a.active-link {
  color: var(--white);
  font-weight: 700;
}

/* Dropdown indicator */
.nav-links .has-dropdown > a::after {
  content: " ▼";
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.7;
}

/* Dropdown menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 8px;
  padding: 0 0 8px 0;
  min-width: 180px;
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.nav-dropdown li {
  list-style: none;
}

.nav-dropdown a {
  padding: 10px 20px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 6px;
  display: block;
  margin: 8px 12px 0;
  transition: all 0.2s ease;
}

.nav-dropdown a:hover {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.9);
  color: var(--white);
}

/* Desktop hover with delay */
@media (min-width: 769px) {
  .has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease;
  }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.active { display: flex; }
  
  /* Mobile dropdown styling */
  .nav-dropdown {
    display: none;
    position: static;
    background: rgba(255,255,255,0.05);
    margin-top: 8px;
    margin-left: 16px;
    border-radius: 6px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  
  .nav-dropdown.active {
    display: block;
  }
  
  .has-dropdown > a {
    cursor: pointer;
  }
}

/* ========================================
   HERO — Full-width background image
   ======================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 24px 80px;
  overflow: hidden;
  /* Dark base fills the left where the image doesn't reach */
  background-color: #1a1a2e;
  /* Image sized to fill height only, anchored right — dark bg fills the gap on the left */
  background-image: url('../images/hero.jpg');
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
}

/* Gradient overlay: solid dark on the left, fading to transparent over the image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 26, 46, 1.0) 0%,
    rgba(26, 26, 46, 0.85) 30%,
    rgba(22, 33, 62, 0.4) 55%,
    rgba(15, 52, 96, 0.0) 75%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 650px;
}

.hero .subhead {
  font-size: clamp(16px, 2.5vw, 22px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.5;
}

.hero .cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ========================================
   CONTENT SECTION
   ======================================== */
.content-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-heading p {
  font-size: 18px;
  color: #444;
}

/* ========================================
   BLOG ARTICLE
   ======================================== */
.article-hero {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 100px 24px 32px;
  position: relative;
}

.article-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-block;
}

.article-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.article-subhead {
  font-size: clamp(19px, 2.5vw, 22px);
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  font-weight: 400;
  margin-bottom: 20px;
}

/* Listen button */
.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
  font-family: inherit;
}

.listen-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.listen-btn:active {
  transform: translateY(0);
}

.listen-btn.playing {
  background: #cc0000;
}

.listen-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  font-size: 19px;
  line-height: 1.75;
  color: #1a1a1a;
}

.article-content > p:first-of-type {
  font-size: 21px;
  line-height: 1.7;
  color: #000;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2 {
  margin: 48px 0 20px;
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #000;
}

.article-content h3 {
  margin: 36px 0 16px;
  font-size: clamp(21px, 2.8vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  color: #111;
}

.article-content ul {
  margin: 0 0 24px 24px;
  padding-left: 0;
}

.article-content li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-content strong {
  font-weight: 600;
  color: #000;
}

/* Mobile optimizations for articles */
@media (max-width: 768px) {
  .article-hero {
    padding: 80px 20px 24px;
  }
  
  .article-content {
    padding: 16px 20px 48px;
    font-size: 18px;
  }
  
  .article-content > p:first-of-type {
    font-size: 19px;
  }
  
  .article-content h2 {
    margin: 36px 0 16px;
  }
  
  .article-content h3 {
    margin: 28px 0 12px;
  }
}

/* ========================================
   PRODUCT GRID — 3→2→1 Responsive
   ======================================== */
.product-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

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

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

/* ========================================
   PRODUCT CARD
   ======================================== */
.product-card {
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.product-tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 8px; font-weight: 600; }
.product-title { font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.product-desc { font-size: 15px; line-height: 1.5; margin-bottom: 16px; color: #333; }
.product-features { list-style: none; margin: 0 0 20px; font-size: 14px; }
.product-features li { margin-bottom: 6px; }
.product-price { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.product-cta { display: inline-block; text-align: center; padding: 12px 20px; background: var(--primary); color: var(--white); text-decoration: none; border-radius: 6px; font-weight: 600; transition: background var(--transition); }
.product-cta:hover { background: var(--primary-hover); }

/* ========================================
   FILTER / NOT FOR EVERYONE
   ======================================== */
.filter-section { background: var(--white); padding: 48px 24px; text-align: center; border-radius: var(--radius); max-width: 800px; margin: 0 auto; }
.filter-section h2 { font-size: 24px; margin: 0 0 16px; }
.filter-section p { color: #444; margin: 0; font-size: 16px; }

/* ========================================
   CTA BAND
   ======================================== */
.cta-band { background: var(--primary); color: var(--white); text-align: center; padding: 64px 24px; }
.cta-band h2 { font-size: 28px; margin: 0 0 16px; font-weight: 600; }
.cta-band p { font-size: 18px; margin: 0 0 24px; opacity: 0.9; }
.cta-band .btn { background: var(--white); color: var(--primary); }
.cta-band .btn:hover { background: #f0f0f0; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer { padding: 32px 24px; text-align: center; font-size: 14px; color: #555; background: var(--bg); }
.site-footer a { color: var(--primary); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { margin-bottom: 12px; }
.footer-links a { margin: 0 12px; }

/* ========================================
   CONTACT MODAL
   ======================================== */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.contact-modal.open {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-content h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  color: var(--primary);
}

.modal-content > p {
  margin: 0 0 24px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 118, 216, 0.1);
}

@media (max-width: 600px) {
  .modal-content {
    padding: 24px;
  }
  
  .modal-content h2 {
    font-size: 20px;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .product-card, .btn { transition: none; }
  .product-card:hover { transform: none; }
}
