/* ===================================
   Joint Seas Network - Main Stylesheet
   =================================== */

/* CSS Variables for Color Scheme */
:root {
  /* Primary Colors */
  --deep-navy: #0A1628;
  --off-white: #F5F5F0;
  --charcoal: #2C2C2C;
  --energy-blue: #0066CC;
  --accent-color: #20B2AA;
  
  /* Semantic Colors */
  --header-bg: var(--deep-navy);
  --header-text: #FFFFFF;
  --body-bg: var(--off-white);
  --body-text: var(--charcoal);
  --button-bg: var(--energy-blue);
  --button-text: #FFFFFF;
  --accent: var(--accent-color);
  --card-bg: #FFFFFF;
  --border-gray: #D1D1D1;
  
  /* Typography */
  --font-display: 'Libre Baskerville', serif;
  --font-body: 'Archivo', sans-serif;
  
  /* Spacing */
  --section-padding: 40px 20px;
  --container-max: 1200px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--body-bg);
  color: var(--body-text);
  line-height: 1.7;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--energy-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--header-text);
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--header-text);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #1a2d4d 100%);
  color: var(--header-text);
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-highlight {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(32, 178, 170, 0.15);
  border-left: 3px solid var(--accent-color);
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.btn:hover {
  background-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--header-text);
  color: var(--header-text);
}

.btn-outline:hover {
  background-color: var(--header-text);
  color: var(--deep-navy);
  transform: translateY(-2px);
}

/* Section Styles */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 1rem auto 0;
}

.section-subtitle {
  color: #666;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Trust Indicators / Stats */
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.indicator {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.indicator-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.indicator h3 {
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.indicator p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Product Grid */
.product-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-gray);
}

.product-nav a {
  padding: 0.5rem 1.25rem;
  background: var(--off-white);
  border-radius: 4px;
  color: var(--charcoal);
  font-weight: 500;
  transition: all 0.3s ease;
}

.product-nav a:hover {
  background: var(--energy-blue);
  color: white;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.product-card h3 {
  color: var(--deep-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-color);
}

.product-specs {
  background: var(--off-white);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.product-specs h4 {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.product-specs ul {
  list-style: none;
  padding-left: 0;
}

.product-specs li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.product-specs li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Services List */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-item {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
  color: var(--deep-navy);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}

/* Forms */
.forms-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 2.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--energy-blue);
}

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

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: #666;
  font-size: 0.875rem;
}

/* About Section Styles */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
}

.value-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--deep-navy);
  color: var(--header-text);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.5rem; }
  
  .hero {
    padding: 80px 20px 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.15rem;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  nav ul.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .trust-indicators,
  .services-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .forms-container {
    grid-template-columns: 1fr;
  }
  
  .product-nav {
    flex-direction: column;
  }
  
  .form-card {
    padding: 1.5rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--energy-blue);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
