/* Red Setter Interactive - Main Styles */

:root {
  /* Color Palette */
  --primary-red-lighter: #ff542f;
  --primary-red-base: #C63C22;
  --primary-red-darker: #8a2a17;

  --dark-gray-lighter: #2a2a2a;
  --dark-gray-base: #1E1E1E;
  --dark-gray-darker: #151515;

  --mid-gray-lighter: #e4e4e4;
  --mid-gray-base: #A3A3A3;
  --mid-gray-darker: #727272;

  --light-gray-lighter: #ffffff;
  --light-gray-base: #F5F5F5;
  --light-gray-darker: #ababab;

  --white-base: #FFFFFF;
  --soft-gold-base: #D9A441;
  --soft-gold-darker: #97722d;

  /* Semantic tokens */
  --bg: var(--light-gray-base);
  --surface: var(--white-base);
  --ink-primary: var(--dark-gray-base);
  --ink-secondary: var(--dark-gray-lighter);
  --border: var(--mid-gray-lighter);
  --muted: var(--mid-gray-darker);
  --accent: var(--primary-red-base);
  --accent-hover: var(--primary-red-darker);
  --accent-light: var(--primary-red-lighter);
  
  /* Layout */
  --max-width: 1080px;
  --section-padding: 80px;
  --container-padding: 28px;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-secondary);
  background: linear-gradient(180deg, #f0e6d6 0%, #e8d5c4 25%, #dcc4a8 50%, #d4b896 75%, #c9a882 100%);
  background-attachment: fixed;
  scroll-behavior: smooth;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ink-primary);
  margin-top: 0;
  line-height: 1.2;
}

.headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.subheading {
  font-size: 1.25rem;
  color: var(--ink-secondary);
  margin: 0 0 2rem;
  max-width: 600px;
}

.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0 0 2rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}

/* Layout Components */
.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.grid--two-cols {
  grid-template-columns: 1.2fr 0.8fr;
}

.grid--equal-cols {
  grid-template-columns: 1fr 1fr;
}

.grid--three-cols {
  grid-template-columns: repeat(3, 1fr);
}

/* Header */
.header {
  background: rgba(248, 240, 230, 0.95);
  border-bottom: 2px solid rgba(198, 60, 34, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(198, 60, 34, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 42px;
  height: 42px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
}

.logo-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.375rem;
  margin: 0;
  letter-spacing: 0.025em;
  font-weight: 600;
}

.nav-list {
  display: flex;
  gap: 1.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-secondary);
  border: 1px solid var(--border);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--accent-light);
  color: var(--white-base);
  border-color: var(--accent-light);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.nav-toggle:hover .hamburger-line {
  background: var(--white-base);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--accent);
  margin: 2px 0;
  transition: all 0.2s ease;
  transform-origin: center;
}

.nav-toggle--active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle--active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle--active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--secondary {
  background: var(--soft-gold-base);
  color: var(--dark-gray-base);
  border-color: var(--soft-gold-base);
}

.btn--secondary:hover {
  background: var(--soft-gold-darker);
  border-color: var(--soft-gold-darker);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.hero {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 6rem 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(198, 60, 34, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(217, 164, 65, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(138, 42, 23, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid rgba(198, 60, 34, 0.2);
  box-shadow: 0 8px 25px rgba(198, 60, 34, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(198, 60, 34, 0.2);
}

.hero-image--clickable {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.2s ease;
}

.hero-image--clickable:hover {
  filter: brightness(1.05);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  animation: slideIn 0.3s ease;
}

.modal-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 1001;
}

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

.modal-caption {
  text-align: center;
  padding: 15px 20px;
  color: #fff;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
}

/* Modal Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  to { 
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mobile responsiveness for modal */
@media (max-width: 600px) {
  .modal-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .modal-close {
    top: -35px;
    font-size: 30px;
  }
  
  .modal-caption {
    font-size: 14px;
    padding: 10px 15px;
  }
}

/* Cards */
.card {
  background: linear-gradient(135deg, #f8f2e8 0%, #f0e6dc 100%);
  border: 2px solid rgba(198, 60, 34, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--soft-gold-base) 50%, var(--primary-red-darker) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(198, 60, 34, 0.15);
  border-color: rgba(198, 60, 34, 0.25);
}

.card-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.75rem;
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.card-description {
  margin: 0;
  color: var(--ink-secondary);
}

.card-thumbnail {
  height: 120px;
  background: linear-gradient(135deg, #ead5c2 0%, #dcc0a3 50%, #ceb08a 100%);
  border: 2px dashed rgba(198, 60, 34, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red-darker);
  font-weight: 500;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.card-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.3), transparent);
  transition: left 0.5s ease;
}

.card:hover .card-thumbnail::before {
  left: 100%;
}

/* Project Card Specific */
.project-card .card-thumbnail {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  position: relative;
  overflow: hidden;
}

.project-card.trinoxis .card-thumbnail {
  background: linear-gradient(135deg, #2d1810, #5a3a2b, #3d2419);
  color: var(--soft-gold-base);
  border-color: var(--soft-gold-darker);
}

.project-card.trinoxis {
  background: linear-gradient(135deg, #f2e8dc 0%, #e8dac8 50%, #dcc7a8 100%);
  border-color: rgba(217, 164, 65, 0.5);
}

.project-card.trinoxis::before {
  background: linear-gradient(90deg, var(--soft-gold-base) 0%, var(--accent) 50%, var(--soft-gold-darker) 100%);
}

/* Forms */
.form {
  display: grid;
  gap: 1.25rem;
}

.form--two-cols {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field-label {
  font-weight: 500;
  color: var(--ink-primary);
  font-size: 0.9rem;
}

.field-input {
  padding: 0.875rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  transition: border-color 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent);
}

.field-textarea {
  min-height: 140px;
  resize: vertical;
}

.field--full-width {
  grid-column: 1 / -1;
}

/* Mailing List Specific Styles */
.mailing-list-benefits {
  margin-top: 1.5rem;
}

.mailing-list-benefits h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.mailing-list-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mailing-list-benefits li {
  padding: 0.5rem 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.btn--full-width {
  width: 100%;
  justify-content: center;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.privacy-link {
  color: var(--accent);
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* Mailchimp Form Overrides */
#mc_embed_signup {
  background: transparent !important;
  clear: none !important;
  font: inherit !important;
  width: 100% !important;
}

#mc_embed_signup form {
  padding: 0 !important;
}

#mc_embed_signup h2 {
  display: none;
}

#mc_embed_signup .indicates-required {
  display: none;
}

#mc_embed_signup .mc-field-group {
  padding-bottom: 0 !important;
  margin: 0 !important;
}

#mc_embed_signup .asterisk {
  color: var(--accent);
}

#mc_embed_signup .response {
  margin: 1rem 0 !important;
  padding: 0.75rem !important;
  border-radius: 8px;
  font-size: 0.9rem;
}

#mce-success-response {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

#mce-error-response {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

#mc_embed_signup .clear.foot {
  display: none;
}

#mc_embed_signup .optionalParent {
  display: none;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark-gray-base) 0%, var(--dark-gray-lighter) 100%);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  color: var(--light-gray-base);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .grid--two-cols,
  .grid--equal-cols {
    grid-template-columns: 1fr;
  }
  
  .grid--three-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero {
    padding: 4.5rem 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 240, 230, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(198, 60, 34, 0.15);
    box-shadow: 0 4px 20px rgba(198, 60, 34, 0.12);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    margin: 0;
    z-index: 200;
  }
  
  .nav-list--open {
    display: flex;
  }
  
  .nav-list li {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
  }
  
  .nav-link:last-child {
    margin-bottom: 0;
  }
  
  .nav {
    position: relative;
  }
}

@media (max-width: 600px) {
  :root {
    --section-padding: 60px;
    --container-padding: 20px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 240, 230, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(198, 60, 34, 0.15);
    box-shadow: 0 4px 20px rgba(198, 60, 34, 0.12);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    margin: 0;
    z-index: 200;
  }
  
  .nav-list--open {
    display: flex;
  }
  
  .nav-list li {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
  }
  
  .nav-link:last-child {
    margin-bottom: 0;
  }
  
  .nav {
    position: relative;
  }
  
  .grid--three-cols {
    grid-template-columns: 1fr;
  }
  
  .form--two-cols {
    grid-template-columns: 1fr;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .headline {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utilities */
.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
