/* =====================================================
   ZürichArchitectJobs – Angebotsseite (v3.0)
   ===================================================== */

/* ---------- VARIABLES & BASE STYLES ---------- */
:root {
    --primary-color: #0021A7;
    --secondary-color: #f0f3ff;
    --accent-color: #28a745; /* checkmark */
    --text-color: #333;
    --light-text-color: #555;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  
  body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  
  main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
  }
  
  section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
  }
  
  h1, h2, h3 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
  }
  
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; margin-bottom: 2rem; }
  h3 { font-size: 1.4rem; }
  
  p, li { font-size: 1rem; }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
  }
  a:hover { text-decoration: underline; }
  
  /* ---------- HEADER & SOCIAL NAV ---------- */
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
  }
  .social-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary-color);
    transition: background 0.2s ease;
  }
  .social-nav a:hover { background: #e6e9ff; }
  
  /* ---------- BUTTONS ---------- */
  .btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
  }
  .btn-primary {
    background-color: var(--primary-color);
    color: #fff;
  }
  .btn-primary:hover {
    background-color: #001a85;
    transform: translateY(-2px);
    text-decoration: none;
  }
  .btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
  .btn-secondary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    text-decoration: none;
  }
  
  /* ---------- HERO ---------- */
  .hero-section {
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), #fff);
    box-shadow: none;
    padding: 60px 40px;
  }
  .hero-section h1 { margin-bottom: 1rem; }
  .hero-section p {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto 2rem auto;
    color: var(--light-text-color);
  }
  
  /* ---------- VALUE PROPS ---------- */
  .value-props-section { background: none; box-shadow: none; padding: 0; }
  .value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
  }
  .prop-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
  }
  .prop-icon { font-size: 2.4rem; line-height: 1; margin-bottom: 1rem; }
  .prop-item h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.2rem; }
  .prop-item p { font-size: 0.95rem; color: var(--light-text-color); margin: 0; }
  
  /* ---------- CAROUSEL DEMO ---------- */
  .carousel-demo-section {
    text-align: center;
    background: none;
    box-shadow: none;
    /* Reduce excess spacing */
    padding: 15px 0;
  }
  .carousel-demo-section iframe {
    margin-top: 2rem;
    /* Remove additional frame border that stacked with inner preview */
    border: none;
  }
  
  /* ---------- PROCESS ---------- */
  .process-section { text-align: center; }
  .process-steps {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    text-align: left;
    gap: 30px;
  }
  .process-steps li { position: relative; padding-top: 50px; }
  .process-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0; top: 0;
    width: 40px; height: 40px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-weight: 700;
    display: grid; place-items: center;
    font-size: 1.1rem;
  }
  .process-steps li strong { display: block; font-size: 1.1rem; color: var(--text-color); margin-bottom: 0.5rem; }
  .process-steps li p { margin: 0; font-size: 0.95rem; color: var(--light-text-color); }
  
  /* ---------- PRICING ---------- */
  .pricing-section { text-align: center; background: transparent; box-shadow: none; padding: 40px 0; }
  .pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 560px;
    margin: 0 auto;
    align-items: stretch;
  }
  .package-card {
    background-color: var(--card-bg);
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  .package-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); }
  .package-card.popular { border-color: var(--primary-color); border-width: 2px; position: relative; }
  .badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background-color: var(--primary-color); color: #fff;
    padding: 6px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  }
  .package-card h3 { margin-top: 0; margin-bottom: 1rem; font-weight: 500; font-size: 1.5rem; color: var(--primary-color); }
  .package-card .price { font-size: 2.2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.25rem; }
  .package-card .price .sub { display: block; font-size: 0.85rem; font-weight: 400; color: var(--light-text-color); margin-top: 0.25rem; }
  .package-card ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem 0; flex-grow: 1; text-align: left; }
  .package-card li { padding-left: 35px; position: relative; margin-bottom: 15px; font-size: 0.95rem; color: var(--text-color); }
  .package-card li::before { content: '✔'; color: var(--accent-color); position: absolute; left: 0; top: 0; font-weight: bold; font-size: 1.2rem; line-height: 1; }
  .package-card .recommendation { font-size: 0.9rem; color: var(--light-text-color); text-align: center; margin-top: auto; padding-top: 1rem; margin-bottom: 1.5rem; min-height: 40px; }
  .package-card .btn { width: 100%; padding-top: 14px; padding-bottom: 14px; box-sizing: border-box; border-width: 2px; }
  .package-card .btn + .btn { margin-top: 10px; }
  .package-card .btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }
  .package-card .btn-secondary { background-color: #fff; color: var(--primary-color); border-color: var(--primary-color); }
  .package-card .btn-secondary:hover { background-color: var(--secondary-color); text-decoration: none; transform: none; }
  .package-card .btn-primary:hover { transform: none; }
  
 /* ---------- TESTIMONIALS ---------- */
.testimonial-section h2 { text-align: center; margin-bottom: 3rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0 0 0 25px;
  background: transparent;
  border-left: 3px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card p {
  margin: 0 0 1rem 0;
  font-style: italic;
  color: var(--light-text-color);
  flex-grow: 1;
  font-size: clamp(1.1rem, 0.85rem + 0.8vw, 1.5rem);
  line-height: 1.4;
  font-weight: 500;
}

.testimonial-card footer { color: var(--text-color); }
.testimonial-card footer strong { display: block; margin-bottom: 4px; }
.testimonial-card footer span { display: block; font-size: 0.9rem; color: var(--light-text-color); }
  
  /* ---------- FINAL CTA ---------- */
  .final-cta-section { text-align: center; background: var(--primary-color); color: #fff; box-shadow: none; }
  .final-cta-section h2 { color: #fff; }
  .final-cta-section p { max-width: 600px; margin: -1rem auto 2rem auto; opacity: 0.9; }
  .final-cta-section .btn { background-color: #fff; color: var(--primary-color); }
  .final-cta-section .btn:hover { background-color: var(--secondary-color); }
  .final-cta-section .contact-info { margin-top: 2.5rem; font-size: 0.95rem; opacity: 0.9; }
  .final-cta-section .contact-info a { color: #fff; font-weight: 600; border-bottom: 1px dotted #fff; }
  .final-cta-section .contact-info a:hover { text-decoration: none; border-bottom-style: solid; }
  
  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; }
  }
  @media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    main { padding: 10px; }
    section { padding: 30px 20px; }
    .process-steps { grid-template-columns: 1fr; }
    .pricing-grid { gap: 40px; }
  }
  
/* ---------- SPACING ENHANCEMENTS (Desktop) ---------- */
@media (min-width: 992px) {
  main { padding: 40px; }
  section { padding: 60px; margin-bottom: 60px; }
  .value-props-grid, .pricing-grid, .testimonials-grid { gap: 50px; }
  .pricing-grid { margin-top: 20px; }
}

/* ---------- COMPACT SECTION SPACING ---------- */
section {
  padding: 30px 25px;
  margin-bottom: 30px;
}

@media (min-width: 992px) {
  section {
    padding: 35px 30px;
    margin-bottom: 35px;
  }
}

/* ---------- HEADER ADJUSTMENTS ---------- */
header {
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
  margin: 0 auto;
}

/* ---------- REFINED SPACING (Desktop) ---------- */
@media (min-width: 992px) {
  main { padding: 30px; }
  section { padding: 50px; margin-bottom: 50px; }
  .value-props-grid, .pricing-grid, .testimonials-grid { gap: 40px; }
}

/* ---------- FOOTER OVERRIDE ---------- */
.footer {
  padding: 15px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.footer nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.footer nav ul li {
  background: none; /* Remove pill background inherited from header styles */
  padding: 0;
  border-radius: 0;
  cursor: default;
  font-size: medium;
}

.footer nav ul li:hover {
  background: transparent; /* Prevent hover background from header nav */
}

.footer nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.footer nav ul li a:hover {
  text-decoration: underline;
}
  
/* ---------- CLEANUP & CONSISTENT SPACING ---------- */
@media (min-width: 992px) {
  main { padding: 25px 40px; }
  section { padding: 45px 40px; margin-bottom: 45px; }
}

/* ---------- HEADER PADDING CONSISTENCY ---------- */
@media (min-width: 769px) {
  .header-content { padding: 0 50px; }
}
@media (max-width: 768px) {
  .header-content { padding: 0 20px; }
}
  
/* ---------- CAROUSEL PREVIEW (embedded) ---------- */
.carousel-demo-section .frame {
  width: clamp(280px, 100%, 430px);
  margin: 2rem auto 0 auto;
  border: 1px solid #dbdbdb;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.carousel-demo-section .carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* 4:5 portrait ratio like Instagram */
  overflow: hidden;
}

.carousel-demo-section .slides {
  display: flex;
  width: 100%;
  height: 100%;
  scroll-snap-type: x mandatory;
  overflow-x: scroll;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-demo-section .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
}

.carousel-demo-section .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  pointer-events: none;
}

.carousel-demo-section .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s ease;
  opacity: 0; /* hidden by default */
}

.carousel-demo-section .nav:hover { background: rgba(0,0,0,0.55); }
.carousel-demo-section .prev { left: 8px; }
.carousel-demo-section .next { right: 8px; }
.carousel-demo-section .carousel:hover .nav,
.carousel-demo-section .nav:focus { opacity: 1; }

.carousel-demo-section .dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px 0 12px;
}

.carousel-demo-section .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7c7c7;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-demo-section .dot.active {
  background: #3897f0;
  transform: scale(1.4);
}

.carousel-demo-section ::-webkit-scrollbar { display: none; }

/* --- TESTIMONIALS: enforce 1/2/3 columns by breakpoints --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile default */
  gap: 30px;
}

/* 2 per row on tablets / medium widths */
@media (min-width: 680px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3 per row when there's enough space (laptops/desktop) */
@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Make each card equal height and let the quote fill */
.testimonial-card {
  display: flex;
  flex-direction: column;
}

.testimonial-card blockquote {
  flex: 1 1 auto; /* stretch to fill card height */
  display: flex;
  flex-direction: column;
}

/* Optional: guard against overly wide content pushing columns */
.testimonial-card img,
.testimonial-card video {
  max-width: 100%;
  height: auto;
  display: block;
}
