/* ============================================
   Savard Northern Press - Premium Edition Styling
   ============================================ */

/* CSS Variables for consistent theming */
:root {
  --color-bg-primary: #0a0a0f;
  --color-bg-secondary: #0f0f16;
  --color-bg-card: #151521;
  --color-bg-elevated: #1a1a28;
  --color-gold: #c9a962;
  --color-gold-light: #dfc07f;
  --color-gold-dark: #a68a4a;
  --color-gold-muted: rgba(201, 169, 98, 0.15);
  --color-cream: #f5f0e8;
  --color-cream-muted: #9a958d;
  --color-white: #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-cream);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--color-white);
  font-weight: 300;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--color-white);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--color-gold-light);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 900px;
}

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--color-gold);
}

.text-muted {
  color: var(--color-cream-muted);
}

/* Decorative Elements */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--color-gold-dark), transparent);
}

.ornament-icon {
  color: var(--color-gold);
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Elegant divider line */
.divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 2rem auto;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 2rem 0;
  transition: var(--transition-smooth);
}

.nav.scrolled {
  background-color: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  /* Gold colorization filter for black PNG logo */
  filter: invert(68%) sepia(29%) saturate(682%) hue-rotate(10deg) brightness(92%) contrast(87%);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-logo-text span {
  color: var(--color-gold);
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-cream-muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

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

.nav-links a:hover::before {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem;
}

/* Video Background */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Dark overlay on video for text readability */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.4) 0%,
    rgba(10, 10, 15, 0.6) 50%,
    rgba(10, 10, 15, 0.85) 100%
  );
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 850px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  opacity: 0;
  animation: logoReveal 1.2s ease-out 0.2s forwards;
  /* Gold colorization filter for black PNG logo */
  filter: invert(68%) sepia(29%) saturate(682%) hue-rotate(10deg) brightness(92%) contrast(87%);
}

@keyframes logoReveal {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  font-style: italic;
  font-weight: 300;
}

.hero h1 {
  margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-cream) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--color-cream-muted);
  max-width: 580px;
  margin: 0 auto 3.5rem;
  line-height: 1.9;
  font-weight: 300;
}

/* Email Form - Refined */
.email-form-wrapper {
  background: linear-gradient(160deg, var(--color-bg-card) 0%, var(--color-bg-elevated) 100%);
  border: 1px solid rgba(201, 169, 98, 0.15);
  padding: 3rem 2.5rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Corner accents */
.email-form-wrapper::before,
.email-form-wrapper::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 169, 98, 0.3);
}

.email-form-wrapper::before {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
}

.email-form-wrapper::after {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--color-cream-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: rgba(10, 10, 15, 0.5);
  border: 1px solid rgba(201, 169, 98, 0.2);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  transition: var(--transition-smooth);
  letter-spacing: 0.02em;
}

.form-input::placeholder {
  color: var(--color-cream-muted);
  font-weight: 300;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  background-color: rgba(10, 10, 15, 0.7);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

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

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(201, 169, 98, 0.25);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-secondary:hover {
  background-color: var(--color-gold);
  color: var(--color-bg-primary);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--color-gold);
}

.form-success h3 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.form-success p {
  color: var(--color-cream-muted);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Features Section - Reimagined */
.features {
  padding: 10rem 0;
  background: var(--color-bg-secondary);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-muted), transparent);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 6rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.section-header p {
  color: var(--color-cream-muted);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

/* Bento-style grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(201, 169, 98, 0.08);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: rgba(201, 169, 98, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--color-gold);
  opacity: 0.9;
}

.feature-card h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.feature-card p {
  color: var(--color-cream-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.7;
  font-weight: 300;
}

/* About Page Styles */
.page-header {
  padding: 12rem 0 6rem;
  text-align: center;
  position: relative;
  background: var(--color-bg-secondary);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--color-bg-primary));
  pointer-events: none;
}

.page-header h1 {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.page-header .lead {
  font-size: 1.15rem;
  color: var(--color-cream-muted);
  max-width: 550px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.about-content {
  padding: 6rem 0;
}

.about-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 8rem;
}

.about-section:nth-child(even) {
  grid-template-columns: 1fr 1.2fr;
}

.about-section:nth-child(even) .about-text {
  order: 2;
}

.about-section:nth-child(even) .about-image {
  order: 1;
}

.about-text h2 {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 50px;
  height: 1px;
  background: var(--color-gold);
}

.about-text p {
  color: var(--color-cream-muted);
  font-weight: 300;
  line-height: 1.9;
}

.about-image {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-elevated) 100%);
  border: 1px solid rgba(201, 169, 98, 0.1);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(201, 169, 98, 0.15);
  pointer-events: none;
}

.about-image-icon {
  width: 80px;
  height: 80px;
  color: var(--color-gold);
  opacity: 0.4;
}

.values-section {
  padding: 8rem 0;
  background: var(--color-bg-secondary);
  position: relative;
}

.values-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-muted), transparent);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.value-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}

.value-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 98, 0.2), transparent);
}

.value-item:last-child::after {
  display: none;
}

.value-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1.5rem;
  color: var(--color-gold);
}

.value-item h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.value-item p {
  color: var(--color-cream-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.7;
  font-weight: 300;
}

/* Contact Page Styles */
.contact-content {
  padding: 6rem 0 8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--color-gold);
  margin-top: 1rem;
}

.contact-info p {
  color: var(--color-cream-muted);
  font-weight: 300;
  line-height: 1.9;
}

.contact-details {
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-cream-muted);
  font-size: 0.95rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-form-wrapper {
  background: var(--color-bg-card);
  border: 1px solid rgba(201, 169, 98, 0.1);
  padding: 3rem;
  position: relative;
}

.contact-form-wrapper::before,
.contact-form-wrapper::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201, 169, 98, 0.25);
}

.contact-form-wrapper::before {
  top: 15px;
  left: 15px;
  border-right: none;
  border-bottom: none;
}

.contact-form-wrapper::after {
  bottom: 15px;
  right: 15px;
  border-left: none;
  border-top: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cream-muted);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(201, 169, 98, 0.1);
  background: var(--color-bg-primary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  /* Gold colorization filter for black PNG logo */
  filter: invert(68%) sepia(29%) saturate(682%) hue-rotate(10deg) brightness(92%) contrast(87%);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-white);
  letter-spacing: 0.1em;
}

.footer-logo-text span {
  color: var(--color-gold);
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-cream-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(201, 169, 98, 0.08);
}

.footer-bottom p {
  color: var(--color-cream-muted);
  font-size: 0.75rem;
  margin-bottom: 0;
  letter-spacing: 0.05em;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes drawLine {
  from { width: 0; }
  to { width: 50px; }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 1.2s ease-out forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* Scroll reveal animations (controlled by JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .value-item:nth-child(2)::after {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 8rem 1.5rem 5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .email-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .features {
    padding: 6rem 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-section:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .about-section:nth-child(even) .about-text,
  .about-section:nth-child(even) .about-image {
    order: unset;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-item::after {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

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

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .email-form-wrapper {
    padding: 1.5rem 1rem;
  }

  .email-form-wrapper::before,
  .email-form-wrapper::after {
    width: 25px;
    height: 25px;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* Print Styles */
@media print {
  .nav,
  .email-form-wrapper,
  .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
