/* ==========================================================================
   UnAnalog GmbH - Homepage Styles
   Page-specific styles for the homepage
   ========================================================================== */

/* ==========================================================================
   SHARED SECTION PATTERNS
   Consolidated styles used across multiple homepage sections
   ========================================================================== */

/* Responsive section padding: 56/64 -> 64/72 -> 72/80 */
.section-agitation,
.section-offerings,
.section-stats,
.section-howwork,
.section-testimonials,
.section-faq,
.section-cta {
  padding: 56px 0 64px;
}

@media (min-width: 768px) {
  .section-agitation,
  .section-offerings,
  .section-stats,
  .section-howwork,
  .section-testimonials,
  .section-faq,
  .section-cta {
    padding: 64px 0 72px;
  }
}

@media (min-width: 1024px) {
  .section-agitation,
  .section-offerings,
  .section-stats,
  .section-howwork,
  .section-testimonials,
  .section-faq,
  .section-cta {
    padding: 72px 0 80px;
  }
}

/* Gold separator line (shared across sections) */
.agitation-separator,
.offerings-separator,
.howwork-separator,
.testimonials-separator,
.faq-separator,
.cta-separator {
  width: 80px;
  height: 2px;
  background-color: var(--color-hero-accent);
  margin: 0 auto 32px;
}

/* Section heading (shared typography across sections) */
.agitation-title,
.offerings-title,
.howwork-title,
.testimonials-title,
.faq-title,
.cta-title {
  font-weight: 600;
  font-size: 28px;
  line-height: 40px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-black);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .agitation-title,
  .offerings-title,
  .howwork-title,
  .testimonials-title,
  .faq-title,
  .cta-title {
    font-size: 32px;
    line-height: 46px;
  }
}

@media (min-width: 1024px) {
  .agitation-title,
  .offerings-title,
  .howwork-title,
  .testimonials-title,
  .faq-title,
  .cta-title {
    font-size: 36px;
    line-height: 52px;
  }
}

/* Responsive body text: 16/26 -> 17/27 -> 18/28 */
.hero-subheadline,
.hero-tagline,
.agitation-content p,
.offerings-subtitle,
.howwork-description,
.cta-subtitle {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-black);
}

@media (min-width: 768px) {
  .hero-subheadline,
  .hero-tagline,
  .agitation-content p,
  .offerings-subtitle,
  .howwork-description,
  .cta-subtitle {
    font-size: 17px;
    line-height: 27px;
  }
}

@media (min-width: 1024px) {
  .hero-subheadline,
  .hero-tagline,
  .agitation-content p,
  .offerings-subtitle,
  .howwork-description,
  .cta-subtitle {
    font-size: 18px;
    line-height: 28px;
  }
}

/* ==========================================================================
   HERO SECTION - Homepage Specific (Figma Design Match)
   ========================================================================== */

/* Hero Container Override - Remove extra padding */
.hero .container {
  padding-left: 0;
  padding-right: 0;
}

/* Hero Grid Layout - Flexbox based */
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

@media (min-width: 1024px) {
  .hero-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}

/* Hero Content Block */
.hero-content {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

/* Hero Headline - H1 */
.hero-headline {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-black);
  max-width: 668px;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 48px;
    letter-spacing: 1.1px;
  }
}

@media (min-width: 1024px) {
  .hero-headline {
    font-size: 64px;
    line-height: 80px;
    letter-spacing: 1.4px;
  }
}

/* Hero Accent Underscore */
.hero-accent {
  color: var(--color-hero-accent);
}

/* Hero Subheadline */
.hero-subheadline {
  font-weight: 400;
  max-width: 587px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .hero-subheadline {
    margin-top: 20px;
  }
}

@media (min-width: 1024px) {
  .hero-subheadline {
    margin-top: 24px;
  }
}

/* Hero Tagline */
.hero-tagline {
  font-weight: 600;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .hero-tagline {
    margin-top: 42px;
  }
}

@media (min-width: 1024px) {
  .hero-tagline {
    margin-top: 54px;
  }
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
    width: auto;
    gap: 20px;
    margin-top: 52px;
  }
}

@media (min-width: 1024px) {
  .hero-cta {
    gap: 24px;
    margin-top: 64px;
  }
}

/* Hero Button Styles */
.btn-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

@media (min-width: 768px) {
  .btn-hero {
    width: 14.375rem;
    padding: 1.0625rem 0;
    font-size: 1.0625rem;
  }
}

@media (min-width: 1024px) {
  .btn-hero {
    width: 16.25rem;
    padding: 1.25rem 0;
    font-size: 1.125rem;
  }
}

.btn-hero.btn-secondary {
  background-color: transparent;
  color: var(--color-black);
  border: 2px solid var(--color-black);
}

.btn-hero.btn-secondary:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
}

/* Focus states for accessibility */
.btn-hero:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-hero.btn-primary:focus-visible,
.btn-hero.btn-secondary:focus-visible {
  outline-color: var(--color-black);
}

/* Hero Image Wrapper */
.hero-image-wrapper {
  position: relative;
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-image-wrapper {
    max-width: 400px;
  }
}

@media (min-width: 1024px) {
  .hero-image-wrapper {
    width: 380px;
    flex-shrink: 0;
    max-width: none;
    margin: 0;
    align-self: stretch;
    display: flex;
  }
}

@media (min-width: 1280px) {
  .hero-image-wrapper {
    width: 530px;
  }
}

/* ==========================================================================
   IMAGE STYLES
   ========================================================================== */

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 60% center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

@media (min-width: 1024px) {
  .hero-image {
    height: 100%;
    aspect-ratio: unset;
  }
}

/* Hero video overlay (feature-flagged) */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hero-video-overlay.is-visible {
  opacity: 1;
}


/* ==========================================================================
   AGITATION SECTION - "Is Technology Holding You Back?" (Figma: 119:2433)
   ========================================================================== */

.section-agitation {
  background-color: var(--color-background); /* Default: logos hidden, white bg */
  text-align: center;
}

/* When logos are visible, restore original alternating pattern */
.logos-visible .section-agitation {
  background-color: var(--color-background-alt);
}

.agitation-title {
  margin-bottom: 24px;
  max-width: 700px;
}

/* Content paragraphs */
.agitation-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.agitation-content p {
  font-weight: 400;
  margin: 0;
}

.agitation-content strong {
  font-weight: 600;
}

/* ==========================================================================
   OFFERINGS SECTION - "How I Can Help" (Figma: 119:2440)
   ========================================================================== */

.section-offerings {
  background-color: var(--color-background-alt); /* Default: logos hidden, alt bg */
  --service-card-bg: var(--color-background); /* Cards white on alt bg */
  text-align: center;
}

/* When logos are visible, restore original pattern */
.logos-visible .section-offerings {
  background-color: var(--color-background);
  --service-card-bg: var(--color-background-alt);
}

.offerings-title {
  margin-bottom: 24px;
}

/* Section subtitle */
.offerings-subtitle {
  font-weight: 400;
  margin: 0 auto 32px;
  max-width: 600px;
}

@media (min-width: 1024px) {
  .offerings-subtitle {
    margin-bottom: 64px;
  }
}

/* Cards grid - 3 columns on desktop */
.offerings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
}

@media (min-width: 768px) {
  .offerings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .offerings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   STATS STRIP SECTION (Figma: 119:2452)
   ========================================================================== */

.section-stats {
  background-color: var(--color-surface-dark);
}

/* Stats grid - 4 columns on desktop */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .stats-grid {
    display: flex;
    justify-content: space-between;
  }
}

/* Individual stat */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

@media (min-width: 1280px) {
  .stat {
    text-align: left;
  }
}

/* Stat value - large number */
.stat-value {
  font-weight: 600;
  font-size: 40px;
  line-height: 1.25;
  color: var(--color-white);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 52px;
  }
}

@media (min-width: 1024px) {
  .stat-value {
    font-size: 64px;
  }
}

/* Stat label */
.stat-label {
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
}

@media (min-width: 1024px) {
  .stat-label {
    font-size: 14px;
    line-height: 20px;
  }
}

/* ==========================================================================
   HOW I WORK SECTION (Figma: 119:2457)
   ========================================================================== */

.section-howwork {
  background-color: var(--color-background);
  text-align: center;
}

.howwork-title {
  margin-bottom: 24px;
}

/* Tagline - "I don't run tech, I fix leverage" */
.howwork-tagline {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--color-text-secondary);
  margin: 0 auto 24px;
  max-width: 700px;
}

@media (min-width: 768px) {
  .howwork-tagline {
    font-size: 25px;
  }
}

@media (min-width: 1024px) {
  .howwork-tagline {
    font-size: 28px;
  }
}

/* Description paragraph */
.howwork-description {
  font-weight: 400;
  margin: 0 auto;
  max-width: 700px;
}

/* ==========================================================================
   TESTIMONIALS SECTION - "What Others Say" (Figma: 119:2464)
   ========================================================================== */

.section-testimonials {
  background-color: var(--color-background-alt);
  text-align: center;
}

.section-testimonials .container {
  padding-left: 0;
  padding-right: 0;
}

.testimonials-title {
  margin-bottom: 32px;
}

/* Testimonials grid - 2 columns on desktop */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: left;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px;
  }
}

/* ==========================================================================
   ABOUT FLORIAN SECTION (Figma: 119:2486)
   ========================================================================== */

.section-about {
  position: relative;
  overflow: hidden;
  background-color: var(--color-gray-300); /* Fallback if image doesn't load */
}

@media (min-width: 1024px) {
  .section-about {
    height: 512px; /* Fixed height matching backwall on desktop */
  }
}

/* Backwall - concrete background image
   Behavior: stays centered at natural size until viewport is wider,
   then stretches horizontally while maintaining aspect ratio at bottom */
.about-backwall {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  overflow: hidden;
}

.about-backwall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

@media (min-width: 1024px) {
  .about-backwall img {
    width: 2048px; /* Natural image width */
    height: 512px; /* Natural image height */
    object-fit: none; /* Show at natural size, no scaling */
  }
}

/* Only stretch when viewport is wider than image natural width (2048px) */
@media (min-width: 2048px) {
  .about-backwall img {
    width: 100%;
    object-fit: fill; /* Stretch horizontally only */
  }
}

/* Content wrapper - aligned to section content edges */
.about-content {
  position: relative;
  display: flex;
  flex-direction: column-reverse; /* Portrait at bottom, card on top */
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: var(--max-width-site);
  margin: 0 auto;
  padding: 24px 24px 0;
  gap: 24px;
  min-height: 100%;
}

@media (min-width: 768px) {
  .about-content {
    padding: 32px var(--space-8) 0;
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .about-content {
    flex-direction: row;
    justify-content: space-between; /* Portrait left-aligned, card right-aligned */
    align-items: flex-end; /* Portrait bottom aligns with backwall bottom */
    padding: 0; /* No padding - items align to content edges */
    gap: 72px;
    height: 512px;
    min-height: unset;
  }
}

/* Portrait wrapper - maintains position relative to card */
.about-portrait-wrapper {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0;
  margin-top: auto; /* Push to bottom of flex container */
}

@media (min-width: 1024px) {
  .about-portrait-wrapper {
    width: auto;
    max-width: none;
    align-self: flex-end; /* Portrait always at bottom */
    justify-content: flex-start; /* Align portrait to left edge */
    margin-top: 0;
  }
}

/* Portrait image - transparent cutout */
.about-portrait {
  width: 100%;
  height: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
}

@media (min-width: 1024px) {
  .about-portrait {
    max-width: none;
    width: auto;
    height: auto;
    max-height: 440px;
  }
}

/* Card - text content box */
.about-card {
  background-color: var(--color-background-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 587px;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.25);
  margin: 0;
}

@media (min-width: 768px) {
  .about-card {
    padding: 28px;
  }
}

@media (min-width: 1024px) {
  .about-card {
    align-self: center; /* Card vertically centered while portrait at bottom */
    flex-shrink: 0;
    width: 587px; /* Fixed width on desktop */
  }
}

/* Card inner content wrapper */
.about-card-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Card text block */
.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card title */
.about-card-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  color: var(--color-black);
  margin: 0;
}

@media (min-width: 768px) {
  .about-card-title {
    font-size: 28px;
  }
}

/* Card body paragraphs */
.about-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-card-body p {
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-black);
  margin: 0;
}

.about-card-body strong {
  font-weight: 600;
}

/* LinkedIn button */
.about-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--color-black);
  background-color: transparent;
  border: 2px solid var(--color-black);
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .about-btn {
    display: inline-flex;
    align-self: flex-start;
    padding: 14px 28px;
    font-size: 16px;
  }
}

.about-btn:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
}

.about-btn:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* ==========================================================================
   FAQ SECTION (Figma: 119:2504)
   ========================================================================== */

.section-faq {
  background-color: var(--color-background);
  text-align: center;
}

/* Remove container padding for alignment */
.section-faq .container {
  padding-left: 0;
  padding-right: 0;
}

.faq-title {
  margin-bottom: 32px;
}

/* FAQ accordion wrapper */
.faq-accordion-wrapper {
  max-width: 689px;
  margin: 0 auto;
  text-align: left;
}

/* ==========================================================================
   CTA SECTION - "The Next Step" (Figma: 119:2516)
   ========================================================================== */

.section-cta {
  background-color: var(--color-background-alt);
  text-align: center;
}

.cta-title {
  margin-bottom: 24px;
}

/* Subtitle */
.cta-subtitle {
  font-weight: 400;
  margin: 0 auto 32px;
  max-width: 600px;
}

@media (min-width: 1024px) {
  .cta-subtitle {
    margin-bottom: 48px;
  }
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--color-black);
  background-color: var(--color-accent);
  border: none;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 160px;
}

@media (min-width: 768px) {
  .cta-btn {
    padding: 20px 68px;
    font-size: 18px;
  }
}

.cta-btn:hover {
  background-color: var(--color-accent-hover);
  text-decoration: none;
}

.cta-btn:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}