@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
  --charcoal: #11151B;
  --red: #C91E26;
  --white: #FFFFFF;
  --off-white: #F4F5F7;
  --slate: #68717D;
  --border: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

p {
  margin-bottom: 1rem;
  color: var(--charcoal);
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: #a3171d;
  text-decoration: underline;
}

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

/* Logo styling */
.logo-img, .footer-logo-img {
  max-width: 120px;
  width: auto;
  vertical-align: middle;
  max-height: 45px;
}

.footer-logo-img {
  max-width: 80px;
  max-height: 40px;
  margin-bottom: 0.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

section.alt {
  background-color: var(--off-white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: #a3171d;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 30, 38, 0.3);
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--white);
  color: var(--charcoal);
  text-decoration: none;
}

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

.btn-outline:hover, .btn-outline:focus {
  background-color: var(--red);
  color: var(--white);
  text-decoration: none;
}

/* Header */
.header {
  background-color: var(--charcoal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.logo:hover, .logo:focus {
  color: var(--white);
  text-decoration: none;
}

.logo-img, .logo-img img {
  min-width: 250px;
  max-height: 140px;
  width: auto;
  height: auto;
  margin-right: 0.5rem;
}

.footer-logo-img, .footer-logo-img img {
  min-width: 250px;
  max-height: 110px;
  width: auto;
  height: auto;
  margin-bottom: 0.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none;
}

.nav-link:hover, .nav-link:focus {
  color: var(--red);
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--red);
  transition: width 0.3s ease;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
}

.nav-toggle:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(17, 21, 27, 0.78), rgba(17, 21, 27, 0.78)),
              url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&h=900&fit=crop') center/cover;
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 1rem;
  color: var(--white);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 2rem;
  color: #e5e7eb;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1 {
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 700px;
  margin: 0 auto 1rem auto;
}

/* Grid Cards */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card-content p {
  color: var(--slate);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.card-link {
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}

/* Philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.philosophy-item {
  padding: 1.5rem;
}

.philosophy-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.philosophy-item h3 {
  margin-bottom: 0.75rem;
  color: var(--red);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(rgba(17, 21, 27, 0.92), rgba(17, 21, 27, 0.92)),
              url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1600&h=600&fit=crop') center/cover;
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #e5e7eb;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Two Column */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-column img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.two-column-content h2 {
  margin-bottom: 1rem;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.process-step {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: bold;
  color: var(--red);
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Article */
.article {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article h3 {
  margin-bottom: 0.5rem;
}

.article-meta {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1rem 0 1.5rem 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  background-color: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s ease;
}

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

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

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-item label {
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.9rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 0.75rem;
}

.error-message {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 0.375rem;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--red);
}

.form-group.error .error-message {
  display: block;
}

.success-message {
  background-color: #10b981;
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: none;
}

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

/* Footer */
.footer {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 3rem 0 1.5rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p {
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
}

.footer-tagline {
  color: var(--red) !important;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

.footer-nav {
  list-style: none;
}

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

.footer-nav a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover, .footer-nav a:focus {
  color: var(--red);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

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

  .process-step:not(:last-child)::after {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

  .nav-menu {
    position: absolute;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--charcoal);
    width: 100%;
    gap: 0;
    transition: left 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
    border-top: 1px solid #374151;
  }

  .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-item:last-child {
    padding: 1rem 1.5rem;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  section {
    padding: 3rem 0;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .card-content {
    padding: 1.25rem;
  }

  .philosophy-item {
    padding: 1rem;
  }
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
