/* =============================================
   Solva — Layout (v1.1 landing)
   Structural layout rules only: containers, grids,
   section spacing, header/footer layout, responsiveness.
   Pairs with root.css tokens and components.css UI styles.
   ============================================= */

.container{
  width: min(var(--container), calc(100% - 2 * var(--s-6)));
  margin-inline: auto;
}

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

.section-head{
  max-width: 860px;
  margin-bottom: var(--s-6);
}

.section-head h2{
  margin: 0 0 var(--s-3);
}

.section-head p{
  margin: 0;
  color: var(--muted);
}

/* =============================================
   Header
   ============================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;

  background: var(--brand-wash); 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
   min-height: 104px;
  display: flex;
  align-items: center;
}


.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.nav{
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.header-actions{
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

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

.hero{
  padding-top: calc(var(--s-8) - var(--s-4));
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--solva-pink) 6%, white),
    var(--bg)
  );
  border-bottom: 1px solid var(--line);
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-7);
  align-items: center;
}

.hero-copy{
  max-width: 680px;
}

.hero-actions{
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}

.hero-bullets{
  margin: var(--s-5) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s-2);
}

.hero-media{
  position: relative;
}

.hero-media img{
  display: block;
  width: 100%;
  height: 460px;

  object-fit: cover;
  object-position: 60% 40%;

  border-radius: 20px;
}

/* =============================================
   Ways We Help (Alternating Layout)
   ============================================= */
/* =============================================
   Ways We Help (Section Layout)
   ============================================= */

.ways-we-help{
  background: #fff;
}

.ways-we-help .section-head{
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.ways-we-help .section-head .script {
  font-size: 1.1em;
  margin-left: 0.15em;
}


.ways{
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.way{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}

.way--image-left{
  grid-template-areas: "media content";
}

.way--image-right{
  grid-template-areas: "content media";
}

.way-media{
  grid-area: media;
}

.way-content{
  grid-area: content;
}

/* Responsive: stack consistently (media then content) */
@media (max-width: 768px){
  .way{
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
    gap: var(--s-4);
  }
}


/* =========================================================
   Preview Section Layout
   ========================================================= */

.preview {
  overflow: hidden;
}

/* Preview section-head should center like Ways We Help */
.preview .section-head{
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}


.preview-grid {
  display: grid;
  gap: var(--s-6);
}

/* Desktop: three equal columns */
.preview-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}
/* Individual column flow */
.preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  text-align: center;
}

/* Icon + heading on one row */
.preview-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Remove the old nudge */
.preview-col h3 {
  margin: 0;
}

/* Keep text readable */
.preview-col p {
  max-width: 22rem;
  margin: 0;
}


/* Image block spacing only */
.preview-shot {
  margin-top: var(--s-3);
  width: 100%;
  display: flex;
  justify-content: center;
}

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

/* =========================================================
   Responsive Adjustments
   ========================================================= */

@media (max-width: 768px) {
  .preview-grid.three-col {
    grid-template-columns: 1fr;
  }

  .preview-col {
    align-items: flex-start;
    text-align: left;
  }

  .preview-label {
    justify-content: flex-start;
  }

  .preview-col p {
    max-width: none;
  }
}

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

.features .section-head{
  text-align: center;
  margin-inline: auto;
}

/* Keep the feature list centered and readable */
.feature-list{
  list-style: none;
  padding: 0;
  margin: 0;

  max-width: 60rem;
  margin-inline: auto;

  display: flex;
  flex-direction: column;
}

/* Each feature row (content wrapper) */
.feature-content{
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: start;
  column-gap: var(--s-5);

  /* row rhythm */
  padding-block: var(--s-4);
}

/* Keep text block nicely readable */
.feature-text{
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.feature-text h3{
  margin: 0;
}

.feature-text p{
  margin: 0;
  max-width: 56ch;
}

/* Responsive: stack icon above text on small screens */
@media (max-width: 768px){
  .features .section-head{
    text-align: left;
  }

  .feature-content{
    grid-template-columns: 1fr;
    row-gap: var(--s-3);
    padding-block: var(--s-3);
  }

  .feature-text p{
    max-width: none;
  }
}


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

/* Make THIS section wider than the global container */
.how .container{
  width: min(90rem, calc(100% - 2 * var(--s-6)));
  margin-inline: auto;
}

/* 5-column rhythm: step | divider | step | divider | step */
.how-grid{
  /* remove the max-width bottleneck */
  width: 100%;
  margin-inline: 0;

  display: grid;
  align-items: start;

  /* give dividers more runway */
  grid-template-columns: 1fr 96px 1fr 96px 1fr;
  gap: var(--s-5);
}

/* =========================================================
   How — Step internal layout
   ========================================================= */

.how-step{
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: var(--s-3);
  align-items: center; /* KEY: centers icon vertically vs whole block */
}
/* Put icon in column 1 and text stack in column 2 */
.how-icon{
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
}

.how-step h3{
  grid-column: 2;
  margin: 0;
  line-height: 1.1;
  font-family: var(--font-playfair);
}

.how-step p{
  grid-column: 2;
  margin: var(--s-1) 0 0;
  line-height: 1.55;
}


/* Divider column layout (visual handled in components) */
.how-divider{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive: stack steps, hide dividers */
@media (max-width: 900px){
  .how .section-head{
    text-align: left;
  }

  .how-grid{
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .how-step{
    align-items: flex-start;
  }

  .how-divider{
    display: none;
  }

  .how-step p{
    max-width: none;
  }
}
/* =============================================
   Trust Section Layout
   ============================================= */

.trust {
  background: var(--panel);
  padding-block-end: 0;
  padding-inline: 0;
  text-align: center;
}

.trust .container {
  width: 100%;
  max-width: none;
}


.trust .section-head {
  max-width: 700px;
  margin: 0 auto var(--s-7);
}

.trust .section-head h2 {
  font-family: var(--font-playfair);
  font-size: var(--h2);
  color: var(--text-lg);
  margin-bottom: var(--s-3);
}

.trust .section-head p {
  font-size: var(--text-md);
  color: var(--muted);
  text-align: left;
  margin-top: var(--s-4);
}

/* Card Grid Layout */
.trust .cards-3 {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: var(--s-6);
}

.trust .card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  text-align: left;
}

.trust .card h3 {
  font-family: var(--font-cormorant);
  font-size: var(--text-lg);
  margin-bottom: var(--s-2);
  color: var(--solva-wine);
}

.trust .card p {
  font-size: var(--text-md);
  color: var(--text);
}

/* =============================================
   Access Section Layout
   ============================================= */

.access {
  padding: var(--s-8) var(--s-5);
  background: white;
}

.access .section-head {
  max-width: 700px;
  margin: 0 auto var(--s-7);
  text-align: center;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}

.access-note {
  font-size: var(--text-sm);
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}



@media (max-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}


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

/* FAQ container layout */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
  max-width: 720px;
  margin-inline: auto;
}

/* Individual FAQ items */
.faq-item {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--solva-rose) 70%, white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: background 0.2s ease;
}

/* FAQ Summary line */
.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--solva-pink);
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
}

/* Optional: Add a subtle + / - indicator */
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 400;
  color: var(--solva-wine);
  transition: transform 0.3s ease;
}

/* Change icon when open */
.faq-item[open] summary::after {
  content: '–';
}

/* FAQ Answer text */
.faq-item p {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}


section.cta {
  background-color: #ffffff; /* or 'white' */
}

/* CTA Section Layout */
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-7);
  text-align: center;
}
@media (min-width: 768px) {
  .cta-inner {
    display: flex;
    flex-direction: row;
    align-items: center; /* Center content vertically */
    justify-content: space-between;
    gap: var(--space-xl);
  }

  .cta-copy {
    flex: 1;
    max-width: 540px;
  }

  .cta-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .cta-visual img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
  }
}


  .cta-visual img {
  width: 100%;
  max-width: 460px;
  height: 520px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50px;

  -webkit-mask-image:
    linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 12%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 12%),
    linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 12%),
    linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 12%);
  
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}

@media (max-width: 900px){
  .cta-visual img {
    height: 360px;

    -webkit-mask-image: radial-gradient(
      ellipse at center,
      rgba(0,0,0,1) 80%,
      rgba(0,0,0,0.9) 90%,
      rgba(0,0,0,0) 100%
    );
  }
}

/* Footer Section Layout */
.site-footer {
  background: var(--panel);
  padding: var(--space-xl) 0 var(--space-l);
  font-size: var(--text-s);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.footer-left {
  max-width: 460px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: 20px;
}

@media (min-width: 768px) {
  .footer-links {
    align-items: flex-end;
    text-align: right;
  }
}

.footer-base {
  text-align: center;
  margin-top: var(--space-l);
  font-size: var(--text-xs);
  color: var(--muted);
}

.footer-base-note a {
  color: var(--solva-wine);
  font-weight: 500;
  text-decoration: none;
}

.footer-base-note a:hover {
  text-decoration: underline;
}

/* =============================================
   Back to top placement
   ============================================= */

.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
}

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

@media (max-width: 980px){
  .hero-grid{
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .cards-3,
  .preview-grid,
  .feature-grid,
  .pricing-grid{
    grid-template-columns: 1fr;
  }

  .footer-inner{
    grid-template-columns: 1fr;
  }

  .footer-links{
    justify-content: flex-start;
  }
}

@media (max-width: 720px){
  .container{
    width: min(var(--container), calc(100% - 2 * var(--s-5)));
  }

  .section{
    padding: var(--s-7) 0;

  }

  .header-inner{
    gap: var(--s-3);
    padding: var(--s-3) 0;
  }

  .nav{
    display: none;
  }

  .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .step{
    grid-template-columns: 36px 1fr;
  }
}

/* =============================================
   Mobile-First Responsive Pass (Landing)
   ============================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

section,
.section,
.container,
.hero-grid,
.preview-grid,
.how-grid,
.access-grid,
.trust-block,
.footer-inner {
  min-width: 0;
}

@media (max-width: 768px) {
  .container-header-inner,
  .container.header-inner {
    padding-top: 0;
    padding-bottom: 0;
  }

  .container {
    width: min(var(--container), calc(100% - 2 * var(--s-4)));
  }

  .section {
    padding: clamp(56px, 9vw, 72px) 0;
  }

  .section-head {
    margin-bottom: var(--s-5);
  }

  .site-header {
    min-height: auto;
    position: sticky;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-2) 0 var(--s-3);
  }

  .brand {
    flex: 1 1 auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 70;
  }

  .header-actions {
    margin-left: auto;
    gap: var(--s-2);
  }

  .header-actions .btn-link {
    display: none;
  }

  .header-actions .btn-primary {
    min-height: 44px;
    padding-inline: 14px;
  }

  .hero {
    padding-top: var(--s-6);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
    align-items: start;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-media {
    order: 2;
  }

  .hero-media img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    aspect-ratio: 4 / 5;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
  }

  .how .container {
    width: min(var(--container), calc(100% - 2 * var(--s-4)));
  }

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

  .trust {
    padding-inline: 0;
  }

  .trust .section-head p {
    text-align: left;
  }

  .access {
    padding-inline: 0;
  }

  .cta-inner {
    gap: var(--s-5);
  }

  .footer-inner {
    align-items: flex-start;
    text-align: left;
    gap: var(--s-4);
  }

  .footer-links {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--container), calc(100% - 2 * var(--s-3)));
  }

  .section {
    padding: 52px 0;
  }

  .way,
  .feature-content,
  .how-step {
    gap: var(--s-3);
  }

  .faq-list {
    gap: var(--s-3);
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 20px);
  }

  .section {
    padding: 46px 0;
  }
}
