/*
 * 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.
 */

/* Font files missing - commented out to avoid 404 errors
@font-face {
  font-family: "Host Grotesk";
  src: url("/assets/HostGrotesk-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("/assets/HostGrotesk-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}
*/

:root {
  --landing-accent: #cb6246;
  --landing-dark: #6c312e;
  --landing-soft: #e2b5d2;
  --landing-green: #5fa67d;
}

* {
  box-sizing: border-box;
}

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

/* Landing: side logos use large % widths — prevent grid from expanding past the viewport */
body:has(.landing) {
  overflow-x: hidden;
}

body {
  font-family: "Host Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  background: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.landing {
  max-width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.landing-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(18px, 2.2vw, 36px) clamp(20px, 2.5vw, 40px);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.landing-top a,
.landing-top .landing-brand-link {
  pointer-events: auto;
}

.landing-brand-link {
  display: block;
  line-height: 0;
  margin-top: clamp(-150px, -22vw, -300px);
  margin-left: clamp(-35px, -15vw, -75px);
}

/* White PNG — needs shadow to read on white side columns */
.landing-brand {
  display: block;
  height: clamp(200px, 50vw, 320px);
  width: auto;
  max-width: min(80vw, 720px);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.4)) drop-shadow(0 0 1px rgb(0 0 0 / 0.25));
}

.landing-nav {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
}

.landing-nav a {
  color: #fff;
  text-decoration: none;
  text-transform: lowercase;
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: 500;
}

.landing-nav-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--landing-green);
  margin-left: 4px;
}

.landing-nav-profile svg {
  display: block;
}

.landing-hero {
  height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.landing-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.landing-panel-side {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-panel-center {
  background: #fff;
}

/* Side logos */
.landing-triptych-image-left {
  display: block;
  width: 450%;
  height: 450%;
  transform: translateX(27%) translateY(3%);
}

.landing-triptych-image-right {
  display: block;
  width: 450%;
  height: 450%;
  transform: translateX(-27%) translateY(1%);

}

.landing-triptych-image--center {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.08) translateY(-3.5%);
  transform-origin: center center;
}

.landing-footer {
  background: var(--landing-accent);
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  letter-spacing: 0.03em;
}

.landing-footer a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 500;
}

/* Main navbar for all pages except landing */
.main-navbar {
  background-color: var(--landing-accent);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 80px;
}

.main-navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: none;
  margin: 0;
  min-height: 80px;
  width: 100%;
}

.main-navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  gap: 12px;
}

.main-navbar-logo {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.main-navbar-subtitle {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.main-navbar-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.main-navbar-link {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  text-transform: capitalize;
  transition: opacity 0.2s ease;
  padding: 8px 0;
}

.main-navbar-link:hover {
  opacity: 0.8;
}

.main-navbar-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-left: 0;
  transition: opacity 0.2s ease;
  padding: 8px;
}

.main-navbar-profile:hover {
  opacity: 0.8;
}

.main-navbar-profile svg {
  display: block;
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .main-navbar {
    min-height: 64px;
  }
  
  .main-navbar-container {
    padding: 16px 24px;
    min-height: 64px;
  }
  
  .main-navbar-links {
    gap: 24px;
  }
  
  .main-navbar-link {
    font-size: 16px;
  }
  
  .main-navbar-logo {
    font-size: 24px;
  }
  
  .main-navbar-subtitle {
    font-size: 20px;
  }
  
  .main-navbar-brand {
    gap: 8px;
  }
  
  .main-navbar-profile svg {
    width: 24px;
    height: 24px;
  }
}

/* Pricing page styles */
.pricing {
  min-height: 100vh;
}

.pricing-grid {
  background-color: #E2B5D2;
  padding: 40px 20px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 0px;
  row-gap: 40px;
  max-width: none;
  margin: 0;
  height: 700px;
  width: 100vw;
}

.pricing-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: center;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: none;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  user-select: none;
}

.pricing-card:hover {
  transform: scale(1.02);
}

.pricing-card.active {
  border: none;
}

.pricing-card-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  position: absolute;
  top: 15px;
  left: 70px;
  transform: none;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 4px;
  text-align: left;
  white-space: nowrap;
}

.pricing-card.active .pricing-card-title {
  color: #6c312e;
}

.pricing-card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pricing-card-logo {
  width: 120%;
  height: 120%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: -10%;
  left: -10%;
  transform: scale(1.1);
  transition: filter 0.3s ease;
}

.pricing-card.active .pricing-card-logo {
  filter: brightness(0) invert(1);
}

.pricing-plans {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-plans-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 32px;
  text-align: center;
  color: var(--landing-dark);
}

.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.pricing-plan {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pricing-plan-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--landing-dark);
}

.pricing-plan-details {
  margin-bottom: 32px;
}

.pricing-plan-feature {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
}

.pricing-plan-price {
  font-weight: 600;
  color: var(--landing-accent);
  margin-top: 20px;
}

.pricing-plan-button {
  background-color: var(--landing-accent);
  color: #fff;
  padding: 12px 32px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.pricing-plan-button:hover {
  background-color: var(--landing-dark);
}

.pricing-footer {
  background: var(--landing-accent);
  margin-top: 60px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  max-width: 1200px;
  margin: 60px auto 0;
}

.pricing-footer a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.pricing-footer a:hover {
  opacity: 0.8;
}

.pricing-details {
  background-color: var(--landing-dark);
  padding: 40px 20px;
  margin-top: 0;
}

.pricing-details-content {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-details-title {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 32px;
  text-align: center;
}

.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.pricing-plan {
  background: var(--landing-accent);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
}

.pricing-plan-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px;
  color: #fff;
}

.pricing-plan-features {
  margin-bottom: 32px;
}

.pricing-plan-feature {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}

.pricing-plan-button {
  background-color: #fff;
  color: var(--landing-dark);
  padding: 12px 32px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.pricing-plan-button:hover {
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .landing {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .landing-top {
    position: absolute;
    padding: 16px 20px;
  }

  .landing-nav a,
  .landing-nav-profile {
    color: #fff;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    height: auto;
    flex: 1;
  }

  .landing-panel {
    min-height: 28vh;
  }

  .landing-footer {
    min-height: 68px;
    padding: 0 20px;
  }

  .landing-footer a {
    font-size: 14px;
  }
}

/* Shared Footer */
.shared-footer {
  background: var(--landing-accent);
  margin-top: auto;
  padding: 40px 24px 24px;
}

.shared-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.shared-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.shared-footer-logo-link {
  display: block;
  margin-bottom: 16px;
}

.shared-footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.shared-footer-copyright {
  color: #fff;
  font-size: 14px;
  margin: 0;
  opacity: 0.8;
}

.shared-footer-links {
  display: flex;
  gap: 80px;
}

.shared-footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shared-footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.shared-footer-link:hover {
  opacity: 0.8;
}

/* Responsive footer */
@media (max-width: 768px) {
  .shared-footer {
    padding: 32px 20px 20px;
  }
  
  .shared-footer-content {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
  }
  
  .shared-footer-brand {
    align-items: center;
  }
  
  .shared-footer-links {
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .shared-footer-column {
    align-items: center;
  }
}
