/* ============================================================================
   Ambition Roast - Public Website Styles
   ============================================================================ */

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

/* ============================================================================
   CSS Variables (Design System)
   ============================================================================ */

:root {
  /* Primary */
  --cool-water-blue: #0485CE;
  --rain: #6F8BB2;
  --statue-grey: #7D8496;

  /* Secondary */
  --terracotta: #C96543;
  --deep-clay: #983A1E;
  --rattan: #A0745B;
  --dried-clay: #DB8B49;

  /* Accents */
  --vibrant-coral: #FC578A;
  --vibrant-coral-hover: #E04A77;
  --coffee-cherry-red: #CA1F03;

  /* Neutrals */
  --sand: #E3D5A8;
  --white-sand: #EFE9CF;
  --golden-sand: #F2DDB0;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --border-light: #E5E7EB;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;

  /* Spacing (8px base) */
  --spacing-1: 8px;
  --spacing-2: 16px;
  --spacing-3: 24px;
  --spacing-4: 32px;
  --spacing-5: 40px;
  --spacing-6: 48px;
  --spacing-8: 64px;
  --spacing-10: 80px;
  --spacing-12: 96px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ============================================================================
   Reset & Base
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--statue-grey);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--black);
  font-weight: 700;
  line-height: 1.2;
}

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

a:hover {
  color: var(--rain);
}

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

ul, ol {
  list-style: none;
}

/* ============================================================================
   Layout
   ============================================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-3);
}

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

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

.section {
  padding: var(--spacing-10) 0;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.5;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: var(--vibrant-coral-hover);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(252, 87, 138, 0.3);
}

.btn--secondary {
  background: var(--cool-water-blue);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--rain);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--cool-water-blue);
  color: var(--cool-water-blue);
  padding: 10px 30px;
}

.btn--outline:hover {
  background: var(--cool-water-blue);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--cool-water-blue);
}

.btn--white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--rain);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn--lg {
  padding: 16px 40px;
  font-size: var(--text-lg);
}

/* ============================================================================
   Navigation
   ============================================================================ */

.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: var(--spacing-2) 0;
  z-index: 1000;
}

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

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.nav__link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--statue-grey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--cool-water-blue);
}

.nav__cta {
  margin-left: var(--spacing-1);
}

/* Mobile menu button */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-1);
  color: var(--black);
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile menu overlay */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav__mobile.is-open {
  opacity: 1;
}

.nav__mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--white);
  padding: var(--spacing-6) var(--spacing-3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.nav__mobile.is-open .nav__mobile-panel {
  transform: translateX(0);
}

.nav__mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-1);
  color: var(--black);
}

.nav__mobile-close svg {
  width: 24px;
  height: 24px;
}

.nav__mobile-link {
  display: block;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--black);
  padding: var(--spacing-1) 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
}

.nav__mobile-link:hover {
  color: var(--cool-water-blue);
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  background: var(--terracotta);
  color: var(--white);
  padding: var(--spacing-8) 0 var(--spacing-4);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-6);
  margin-bottom: var(--spacing-6);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--spacing-2);
  max-width: 300px;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer__brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: var(--spacing-2);
}

.footer__link {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--white);
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: var(--spacing-3);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__feedback {
  color: var(--golden-sand);
  font-weight: 600;
  text-decoration: none;
}

.footer__feedback:hover {
  color: var(--white);
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
  background: linear-gradient(135deg, var(--cool-water-blue) 0%, #6baed6 40%, var(--golden-sand) 100%);
  padding: var(--spacing-10) 0 var(--spacing-12);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-8);
  align-items: center;
}

.hero__headline {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--spacing-3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero__subheadline {
  font-size: var(--text-xl);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-5);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: var(--spacing-2);
  flex-wrap: wrap;
}

.hero__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero__image {
  width: 65%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: rotate(2deg);
  max-height: 600px;
  object-fit: cover;
  object-position: top;
}

/* ============================================================================
   Features Section
   ============================================================================ */

.features {
  background: var(--white);
}

.features__header {
  text-align: center;
  margin-bottom: var(--spacing-8);
}

.features__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--spacing-2);
}

.features__subtitle {
  font-size: var(--text-lg);
  color: var(--statue-grey);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4);
}

/* ============================================================================
   Cards
   ============================================================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(4, 133, 206, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--spacing-3);
}

.card__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-2);
}

.card__text {
  color: var(--statue-grey);
  margin-bottom: var(--spacing-4);
  line-height: 1.7;
}

.card__image {
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: top;
}

/* ============================================================================
   How It Works Section
   ============================================================================ */

.how-it-works {
  background: var(--white-sand);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: var(--spacing-8);
}

.how-it-works__title {
  font-size: var(--text-4xl);
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-4);
}

.step {
  text-align: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--cool-water-blue);
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-3);
}

.step__icon {
  font-size: 28px;
  margin-bottom: var(--spacing-1);
}

.step__image {
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  aspect-ratio: 896 / 1400;
  object-fit: cover;
  object-position: top;
  margin-bottom: var(--spacing-3);
}

.step__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-1);
}

.step__text {
  font-size: var(--text-sm);
  color: var(--statue-grey);
  line-height: 1.6;
}

/* ============================================================================
   CTA Section
   ============================================================================ */

.cta-section {
  background: linear-gradient(135deg, var(--cool-water-blue) 0%, #6baed6 40%, var(--golden-sand) 100%);
  text-align: center;
  padding: var(--spacing-10) 0;
}

.cta-section__title {
  font-size: var(--text-4xl);
  color: var(--white);
  margin-bottom: var(--spacing-2);
}

.cta-section__text {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-5);
}

/* ============================================================================
   FAQ Page
   ============================================================================ */

.page-header {
  text-align: center;
  padding: var(--spacing-8) 0 var(--spacing-6);
}

.page-header__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--spacing-2);
}

.page-header__subtitle {
  font-size: var(--text-lg);
  color: var(--statue-grey);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  padding-bottom: var(--spacing-10);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--spacing-3);
  font-family: var(--font-family);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2);
  transition: color 0.2s ease;
}

.faq-item__question:hover {
  color: var(--cool-water-blue);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(4, 133, 206, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--cool-water-blue);
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--cool-water-blue);
  color: var(--white);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer-inner {
  padding: 0 var(--spacing-3) var(--spacing-3);
  color: var(--statue-grey);
  line-height: 1.7;
}

/* ============================================================================
   About Page
   ============================================================================ */

.about-story {
  padding-bottom: var(--spacing-8);
}

.about-story p {
  margin-bottom: var(--spacing-3);
  line-height: 1.8;
  font-size: var(--text-lg);
}

.about-story a {
  font-weight: 600;
}

.about-pullquote {
  border-left: 4px solid var(--terracotta);
  padding-left: var(--spacing-3);
  margin: var(--spacing-5) 0;
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--deep-clay);
  line-height: 1.6;
}

.about-connect {
  background: var(--white-sand);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  margin-bottom: var(--spacing-5);
}

.about-connect__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-3);
}

.about-connect__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.about-connect__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-1);
  font-size: var(--text-lg);
  font-weight: 500;
}

.about-feedback {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: var(--spacing-5);
  text-align: center;
  margin-bottom: var(--spacing-10);
}

.about-feedback p {
  font-size: var(--text-lg);
  color: var(--black);
  margin-bottom: var(--spacing-3);
}

/* ============================================================================
   Feedback Modal
   ============================================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3);
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--spacing-3);
}

.modal__title {
  font-size: var(--text-2xl);
}

.modal__subtitle {
  color: var(--statue-grey);
  margin-bottom: var(--spacing-4);
}

.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-1);
  color: var(--statue-grey);
  font-size: 20px;
  line-height: 1;
}

.modal__close:hover {
  color: var(--black);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--spacing-3);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--spacing-1);
  font-size: var(--text-sm);
}

.form-label--optional::after {
  content: ' (optional)';
  font-weight: 400;
  color: var(--statue-grey);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cool-water-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(4, 133, 206, 0.1);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237D8496' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-actions {
  display: flex;
  gap: var(--spacing-2);
  margin-top: var(--spacing-4);
}

.form-actions .btn {
  flex: 1;
}

.form-success {
  text-align: center;
  padding: var(--spacing-5) 0;
}

.form-success__icon {
  font-size: 48px;
  margin-bottom: var(--spacing-2);
}

.form-success__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--spacing-1);
}

.form-success__text {
  color: var(--statue-grey);
}

/* ============================================================================
   404 Page
   ============================================================================ */

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-10) var(--spacing-3);
}

.error-page__code {
  font-size: 120px;
  font-weight: 800;
  color: var(--sand);
  line-height: 1;
  margin-bottom: var(--spacing-2);
}

.error-page__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--spacing-2);
}

.error-page__text {
  font-size: var(--text-lg);
  color: var(--statue-grey);
  margin-bottom: var(--spacing-5);
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-5);
    text-align: center;
  }

  .hero__headline {
    font-size: var(--text-4xl);
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image-wrapper {
    justify-content: center;
  }

  .hero__image {
    max-width: 280px;
    max-height: 500px;
    transform: rotate(0deg);
  }

  .features__grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .how-it-works__steps {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: var(--spacing-6);
  }

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

/* Mobile (<768px) */
@media (max-width: 767px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__mobile {
    display: block;
    pointer-events: none;
  }

  .nav__mobile.is-open {
    pointer-events: auto;
  }

  .hero {
    padding: var(--spacing-6) 0 var(--spacing-8);
  }

  .hero__headline {
    font-size: var(--text-3xl);
  }

  .hero__subheadline {
    font-size: var(--text-lg);
  }

  .section {
    padding: var(--spacing-8) 0;
  }

  .features__title,
  .how-it-works__title,
  .cta-section__title,
  .page-header__title {
    font-size: var(--text-3xl);
  }

  .cta-section__text {
    font-size: var(--text-lg);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-2);
    text-align: center;
  }

  .card {
    padding: var(--spacing-4);
  }

  .about-story p {
    font-size: var(--text-base);
  }

  .about-pullquote {
    font-size: var(--text-lg);
  }

  .error-page__code {
    font-size: 80px;
  }
}
