/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

:root {
  --primary-black: #1a1a1a;
  --primary-red: #dc2626;
  --soft-white: #fefefe;
  --cream-white: #faf9f7;
  --text-gray: #4a4a4a;
  --light-gray: #e5e5e5;
  --hover-red: #b91c1c;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-gray);
  background-color: var(--soft-white);
}

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

/* Header and Navigation */
.site-header {
  background: var(--soft-white);
  box-shadow: 0 1px 3px rgba(26,26,26,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-black);
}

.nav-actions {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-red);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 20px;
  min-height: 70vh;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary-black);
}

.highlight {
  color: var(--primary-red);
  position: relative;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

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

.cta-button.primary:hover {
  background: var(--hover-red);
  transform: translateY(-1px);
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary-black);
  border: 2px solid var(--primary-black);
}

.cta-button.secondary:hover {
  background: var(--primary-black);
  color: white;
}

.cta-button.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--cream-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.1);
}

.hero-logo {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Transparency Message */
.transparency-message {
  background: var(--cream-white);
  padding: 5rem 0;
}

.transparency-message h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-black);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

.feature p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* Authentication Forms */
.auth-form {
  max-width: 400px;
  margin: 4rem auto;
  padding: 3rem;
  background: var(--soft-white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(26,26,26,0.1);
}

.auth-form__header {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-black);
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form__field {
  margin-bottom: 1.5rem;
}

.auth-form__label {
  display: block;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.auth-form__input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.auth-form__input:focus {
  outline: none;
  border-color: var(--primary-red);
}

.auth-form__actions {
  margin-top: 2rem;
}

.auth-form__submit {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-form__submit:hover {
  background: var(--hover-red);
}

.auth-form__links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-form__links a {
  color: var(--primary-red);
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-form__links a:hover {
  text-decoration: underline;
}

.auth-form__google-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.auth-form__google-btn:hover {
  background: #f8f9fa;
  border-color: #c1c7cd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-form__google-btn:before {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3csvg width='18' height='18' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cpath d='M17.64 9.205c0-.639-.057-1.252-.164-1.841H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615Z' fill='%234285F4'/%3e%3cpath d='M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18Z' fill='%2334A853'/%3e%3cpath d='M3.964 10.71A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 0 0 0 9c0 1.452.348 2.827.957 4.042l3.007-2.332Z' fill='%23FBBC05'/%3e%3cpath d='M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58Z' fill='%23EA4335'/%3e%3c/g%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Dual Audience Section */
.dual-audience {
  padding: 5rem 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.audience-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-black);
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.benefit-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-gray);
  position: relative;
  padding-left: 2rem;
}

.benefit-list li::before {
  content: '✓';
  color: var(--primary-red);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Final CTA */
.cta-final {
  background: var(--primary-black);
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.cta-final h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-final p {
  font-size: 1.25rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

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

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.5rem;
}

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

.footer-brand p {
  opacity: 0.7;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

/* Flash Messages */
.flash {
  padding: 1rem 1.5rem;
  margin: 1rem auto;
  border-radius: 8px;
  font-weight: 500;
  max-width: 600px;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.flash__close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.flash__close:hover {
  opacity: 1;
}

.flash--notice {
  background: #d1edff;
  color: #0c4a6e;
  border: 1px solid #7dd3fc;
}

.flash--alert {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.flash--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Primary Navbar */
.primary-navbar {
  background: var(--soft-white);
  box-shadow: 0 1px 3px rgba(26,26,26,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  gap: 2rem;
}

.navbar-brand {
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar-link {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  white-space: nowrap;
}

.navbar-link:hover {
  color: var(--primary-red);
}

.navbar-link--mobile-hidden {
  display: none;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.auth-link {
  font-size: 15px;
}

.cta-button.small {
  padding: 0.5rem 1.25rem;
  font-size: 14px;
}

/* Hamburger Menu */
.hamburger-wrapper {
  position: relative;
  display: none;
}

.hamburger-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--primary-black);
  transition: all 0.3s;
}

.hamburger-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--soft-white);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 0.5rem;
  z-index: 1000;
}

.hamburger-menu--open {
  display: block;
}

.hamburger-menu__item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  border-radius: 6px;
}

.hamburger-menu__item:hover {
  background: var(--cream-white);
  color: var(--primary-red);
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
}

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: none;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-black);
}

.user-menu__trigger:hover {
  border-color: var(--primary-red);
  background: var(--cream-white);
}

.user-menu__name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__icon {
  flex-shrink: 0;
}

.user-menu__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--soft-white);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 0.5rem;
  z-index: 1000;
}

.user-menu__dropdown--open {
  display: block;
}

.user-menu__item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  border-radius: 6px;
}

.user-menu__item:hover {
  background: var(--cream-white);
  color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-container {
    position: relative;
  }

  .navbar-links {
    display: none;
  }

  .navbar-actions .auth-buttons {
    gap: 1rem;
  }

  .hamburger-wrapper {
    display: block;
  }

  .hamburger-toggle {
    display: flex;
  }

  .auth-link {
    display: none;
  }

  .cta-button.small {
    padding: 0.4rem 1rem;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

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

  .nav-actions {
    display: none;
  }

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

  .cta-final h2 {
    font-size: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .navbar-link--mobile-hidden {
    display: flex;
  }
}
