@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ---- Global Colors ---- */
:root {
    --blue: #0c2d5c;
    --green: #007e5a;
    --bg: #f7f9fc;
    --text: #333;
    --muted: #555;
    --light-blue: #f1f5fd;
    --bar: #e2e7ef;
}

html {
    scroll-behavior: smooth;
}

/* ---- Base ---- */
body {
    font-family: "Montserrat", sans-serif;
    background: var(--bg);
    margin: 0;
    color: var(--text);
}

/* ---- Navbar ---- */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e0e6ef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    color: var(--blue);
    font-size: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--blue);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-cta {
    background: var(--green);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.nav-cta:hover {
    background: #006a4e;
}

/* ---- Saatva Section ---- */
.saatva-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 30px 20px;
}

.saatva-section h1 {
    color: var(--blue);
    margin-top: 0;
    margin-bottom: 0;
}

.saatva-card {
    display: flex;
    align-items: stretch;
    /* keeps equal height */
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    padding: 30px 40px;
}


/* ---- Left Side ---- */
.left {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 30px 40px;
    flex: 1 1 500px;
}

.image-wrap {
    position: relative;
}

.image-wrap img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

/* Rating circle overlapping bottom of image */
.rating-circle {
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rating-circle p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.rating-circle h1 {
    margin: 0;
    font-size: 44px;
    color: var(--blue);
}

/* CTA dashed banner */
.cta-banner {
    margin-top: 70px;
    border: 2px dashed #33a075;
    border-radius: 40px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fdfb;
}

.cta-btn {
    background: var(--green);
    color: #fff;
    padding: 14px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.cta-btn:hover {
    background: #006a4e;
}

.cta-banner p {
    margin: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 16px;
}

/* Info Box */
.info-box {
    background: var(--light-blue);
    border-radius: 16px;
    margin-top: 25px;
    padding: 20px 25px;
}

.info-box p {
    margin: 6px 0;
    color: var(--text);
    font-size: 16px;
}

.info-box strong {
    color: var(--blue);
}

/* ---- Right Side ---- */
.right {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right h2,
.right h3 {
    color: var(--blue);
    margin-top: 0;
}

.right p {
    color: var(--muted);
    line-height: 1.7;
}

/* Rating bars */
.ratings-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ratings-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    font-size: 16px;
}

.bar {
    width: 100%;
    height: 8px;
    background: var(--bar);
    border-radius: 5px;
    overflow: hidden;
}

.fill {
    background: var(--blue);
    height: 100%;
    border-radius: 5px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .saatva-section {
        padding: 30px 10px;
    }

    .nav-container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .saatva-card {
        flex-direction: column;
        padding: 0px;
    }

    .left {
        padding: 15px 20px;
    }

    .cta-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nav-links {
        display: none;
    }
}



/* === Pros / Cons Section === */
.pros-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Pros & Cons side boxes */
.pros-cons {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.box {
    flex: 1 1 500px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 20px 25px;
}

.box h3 {
    margin-top: 0;
    color: var(--blue);
}

.box ul {
    margin: 10px 0 0;
    padding-left: 20px;
    list-style: none;
}

.box ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 15px;
    color: var(--text);
}

.pros ul li::before,
.cons ul li::before {
    display: none;
}

/* Intro paragraph with green left border */
.intro-text {
    border-left: 4px solid var(--green);
    padding-left: 20px;
    background: transparent;
    margin-bottom: 50px;
}

.intro-text p {
    line-height: 1.8;
    color: var(--text);
    margin: 15px 0;
}

/* Firmness comparison table */
.firmness-table {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.col {
    flex: 1 1 300px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 20px 25px;
}

.col h4 {
    color: var(--blue);
    margin-top: 0;
}

.col ul {
    margin: 10px 0 0;
    padding-left: 20px;
    list-style: none;
}

.col ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text);
    font-size: 15px;
}

/* Responsive */
@media (max-width: 900px) {
    .col {
        flex: 1 1 auto;
    }

    .box {
        flex: 1 1 auto;
        height: auto;
    }

    .pros-cons {
        flex-direction: column;
    }

    .firmness-table {
        flex-direction: column;
    }
}

/* === Video Review Section === */
.video-section {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 20px;
    text-align: center;
}

.divider {
    border: none;
    border-top: 3px solid #dce5f5;
    width: 100%;
    margin-bottom: 30px;
}

.video-section h2 {
    color: var(--blue);
    margin-bottom: 10px;
}

.video-section p {
    color: var(--text);
    margin-bottom: 30px;
    font-size: 16px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-container video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
      border-radius: 20px;
  }

.video-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(12, 45, 92, 0.45);
      transition: opacity 0.3s ease;
      z-index: 2;
  }

.video-container.playing .video-overlay {
      opacity: 0;
      pointer-events: none;
  }

.video-play-btn {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.92);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

.video-play-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  }

.video-play-btn:focus-visible {
      outline: 3px solid rgba(0, 126, 90, 0.65);
      outline-offset: 4px;
  }

.video-play-icon {
      width: 0;
      height: 0;
      border-left: 20px solid var(--green);
      border-top: 12px solid transparent;
      border-bottom: 12px solid transparent;
      margin-left: 6px;
  }
/* === Sleeping Style Section === */
.sleep-section {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 20px;
}

.sleep-section h2 {
    color: var(--blue);
    margin-bottom: 20px;
}

.sleep-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.sleep-intro {
    font-size: 16px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Tables */
.sleep-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 36px;
    background: #f4f7ff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(20, 43, 99, 0.1);
}

.sleep-table thead th {
    background: #d8e2f7;
    color: #1d3f7c;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 18px;
    text-align: center;
}

.sleep-table thead th:first-child {
    text-align: left;
}

.sleep-type-heading {
    min-width: 220px;
}

.sleep-table tbody {
    background: #ffffff;
}

.sleep-table tbody tr {
    background: #f8fbff;
}

.sleep-table tbody tr+tr {
    border-top: 1px solid #e2e9f7;
}

.sleep-table tbody th,
.sleep-table tbody td {
    padding: 18px 20px;
    vertical-align: middle;
}

.sleep-table tbody td {
    text-align: center;
    min-width: 170px;
    border-left: 1px solid #e2e9f7;
}

.sleep-type-cell {
    width: 240px;
    background: #f8fbff;
}

.sleep-type {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sleep-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef3ff, #dfe7ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.sleep-icon::after {
    content: "";
    width: 28px;
    height: 28px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.sleep-icon.icon-side::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%231D3D7A%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2222%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M7%2018.5h16a2.5%202.5%200%200%201%202.5%202.5v0A2.5%202.5%200%200%201%2023%2023.5H7%22%2F%3E%3Cline%20x1%3D%228%22%20y1%3D%2223.5%22%20x2%3D%228%22%20y2%3D%2227%22%2F%3E%3Cline%20x1%3D%2225%22%20y1%3D%2218.5%22%20x2%3D%2227%22%20y2%3D%2222%22%2F%3E%3C%2Fsvg%3E");
}

.sleep-icon.icon-back::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%231D3D7A%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%229%22%20r%3D%223%22%2F%3E%3Cline%20x1%3D%2216%22%20y1%3D%2212%22%20x2%3D%2216%22%20y2%3D%2221%22%2F%3E%3Cline%20x1%3D%2212%22%20y1%3D%2216%22%20x2%3D%2220%22%20y2%3D%2216%22%2F%3E%3Cline%20x1%3D%2216%22%20y1%3D%2221%22%20x2%3D%2212%22%20y2%3D%2227%22%2F%3E%3Cline%20x1%3D%2216%22%20y1%3D%2221%22%20x2%3D%2220%22%20y2%3D%2227%22%2F%3E%3C%2Fsvg%3E");
}

.sleep-icon.icon-stomach::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%231D3D7A%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%228.5%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M10%2012l6%204%206-4%22%2F%3E%3Cline%20x1%3D%2216%22%20y1%3D%2216%22%20x2%3D%2216%22%20y2%3D%2223%22%2F%3E%3Cline%20x1%3D%2216%22%20y1%3D%2223%22%20x2%3D%2211%22%20y2%3D%2227%22%2F%3E%3Cline%20x1%3D%2216%22%20y1%3D%2223%22%20x2%3D%2221%22%20y2%3D%2227%22%2F%3E%3C%2Fsvg%3E");
}

.sleep-label {
    font-weight: 700;
    font-size: 17px;
    color: #1d3f7c;
}

.sleep-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 200px;
    margin: 0 auto;
}

.rating-score {
    font-weight: 600;
    font-size: 14px;
    color: #1d3f7c;
}

/* === Rating Bars === */
.bar-container {
    width: 100%;
    height: 14px;
    background: #e2e8f7;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: inherit;
}

/* Color gradients */
.bar-fill.green {
    background: linear-gradient(90deg, #0dccaa, #2fe3c0);
}

.bar-fill.yellow {
    background: linear-gradient(90deg, #ffd75e, #ffc53a);
}

.bar-fill.red {
    background: linear-gradient(90deg, #ff7a7a, #ff5f6d);
}

@media (max-width: 768px) {
    .sleep-table {
        display: block;
        background: transparent;
        box-shadow: none;
        margin-bottom: 28px;
    }

    .sleep-table+.sleep-table {
        margin-top: 24px;
    }

    .sleep-table thead {
        display: none;
    }

    .sleep-table tbody {
        display: block;
    }

    .sleep-table tbody tr {
        display: block;
        background: #f1f5ff;
        border-radius: 20px;
        padding: 18px 20px;
        box-shadow: 0 12px 28px rgba(19, 44, 99, 0.12);
        margin-bottom: 20px;
        border-top: none;
    }

    .sleep-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .sleep-table tbody th,
    .sleep-table tbody td {
        display: block;
        border: 0;
        padding: 0;
        background: transparent;
    }

    .sleep-type-cell {
        width: auto;
        margin-bottom: 12px;
    }

    .sleep-table tbody td {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #dfe4f5;
    }

    .sleep-table tbody td:first-of-type {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .sleep-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #6379a8;
        margin-bottom: 8px;
    }

    .sleep-rating {
        align-items: flex-start;
        max-width: none;
        width: 100%;
    }

    .bar-container {
        height: 12px;
    }

    .rating-score {
        font-size: 13px;
    }
}

/* Sleeper Type Descriptions */
.sleeper-block {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.sleeper-text {
    flex: 2;
}

.lab-notes {
    flex: 1;
    background: #e8f0fb;
    border-radius: 10px;
    padding: 20px;
}

.lab-notes h4 {
    color: var(--blue);
    margin-top: 0;
}

.lab-notes p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.sleeper-text h3 {
    color: var(--blue);
    margin-top: 0;
}

.sleeper-text p {
    color: var(--text);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 900px) {
    .sleeper-block {
        flex-direction: column;
    }
}


/* === Mattress Breakdown Section === */
.breakdown-section {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 20px;
}

.breakdown-section h2 {
    color: var(--blue);
    margin-bottom: 20px;
}

.breakdown-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.breakdown-section p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.breakdown-section a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.breakdown-section a:hover {
    text-decoration: underline;
}

/* Yellow info box */
.info-box-yellow {
    background: #fff8d8;
    border-left: 5px solid #ffb800;
    border-radius: 10px;
    padding: 20px 25px;
    margin: 30px 0;
}

.info-box-yellow p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

/* Table */
.details-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--light-blue);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
    font-size: 15px;
}

.details-table th,
.details-table td {
    padding: 15px 20px;
    text-align: left;
    vertical-align: top;
}

.details-table th {
    width: 25%;
    background: #dbe5f3;
    color: var(--blue);
    font-weight: 700;
}

.details-table td {
    background: #f9fbff;
    color: var(--text);
    line-height: 1.7;
}

.details-table strong {
    color: var(--blue);
}

.details-table em {
    color: var(--muted);
}

/* === FAQ Section === */
.faq-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.faq-section h2 {
    color: var(--blue);
    margin-bottom: 30px;
    text-align: center;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* FAQ Item */
.faq-item {
    background: #fff;
    border: 1px solid #e0e6ef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Question Button */
.faq-question {
    background: #f9fbff;
    color: var(--blue);
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    outline: none;
    position: relative;
    transition: background 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    color: var(--green);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '–';
    transform: rotate(180deg);
}

/* Hover & Active */
.faq-question:hover {
    background: #eef4ff;
}

/* Answer Content */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.4s ease;
    padding: 0 22px;
}

.faq-answer p {
    margin: 15px 0;
    color: var(--text);
    line-height: 1.8;
    font-size: 15px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

/* === Footer === */
.site-footer {
    background: #fff;
    border-top: 1px solid #e0e6ef;
    margin-top: 60px;
    padding: 40px 20px;
    color: var(--muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-copy {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-disclosure {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

/* === Policy Pages === */
.policy-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 28px 60px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.policy-home-link {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.policy-home-link:hover {
    color: #006a4e;
}

.policy-wrapper h1 {
    margin-top: 0;
    color: var(--blue);
    text-align: left;
}

.policy-updated {
    margin-bottom: 35px;
    color: var(--muted);
    font-size: 14px;
}

.policy-section {
    margin-bottom: 28px;
}

.policy-section h2 {
    color: var(--blue);
    margin-bottom: 12px;
}

.policy-section p {
    color: var(--text);
    line-height: 1.7;
}

.policy-section ul {
    padding-left: 18px;
    color: var(--text);
    line-height: 1.7;
}

.policy-section a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.policy-section a:hover {
    color: #006a4e;
}
