/* ==========================================================
   components.css — small reusable pieces (used on many pages)
   ----------------------------------------------------------
   1. Buttons + links
   2. Sound toggle (footer)
   3. Scroll reveal (things gently fade up as you scroll)
   4. Page header (top of each inside page)
   5. Cards + icon cards ("What you get")
   6. Steps ("How it works")
   7. Pricing
   8. FAQ (questions you can click open)
   9. Call-to-action box (Bino peeks over it)
   10. Forms (Get a quote + Contact)
   11. Contact page layout
   12. Legal pages (Privacy + Terms)
   ========================================================== */


/* ---------- 1. Buttons + links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;            /* big enough to tap with a thumb */
  padding: 12px 28px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;        /* fully rounded "pill" shape */
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

/* An outlined version of the button */
.button-outline {
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* A light version, used on the black box */
.button-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.button-small {
  min-height: 44px;
  padding: 8px 20px;
  font-size: 16px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Little arrow that slides on hover */
.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

a:hover .arrow {
  transform: translateX(4px);
}

/* A simple underlined text link */
.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}


/* ---------- 2. Sound toggle (footer) ---------- */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.sound-toggle[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
}


/* ---------- 3. Scroll reveal ----------
   Anything with  data-reveal  fades up when it scrolls into view.
   (Only when JavaScript is running, so nothing is ever hidden by mistake.) */
.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}


/* ---------- 4. Page header (top of each inside page) ---------- */
.page-header {
  padding: 80px 0 40px;
}

.page-header .label {
  margin-bottom: 16px;
}

.page-header h1 {
  max-width: 860px;
}

.page-header p {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
}

.page-header.is-centered {
  text-align: center;
}

.page-header.is-centered h1,
.page-header.is-centered p {
  margin-left: auto;
  margin-right: auto;
}

/* Less space between the intro and the form (quote page) */
.page-header.is-tight {
  padding-bottom: 8px;
}

.page-header.is-centered .button-row {
  justify-content: center;
}

/* "Home / Work / Sukkar" */
.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}


/* ---------- 5. Cards + icon cards ---------- */
.card {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3 {
  margin-bottom: 8px;
}

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

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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


/* ---------- 6. Steps ("How it works") ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.steps li {
  border-top: 1.5px solid var(--ink);
  padding-top: 24px;
}

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

.step-number {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ---------- 7. Pricing ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-name {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

.plan-for {
  min-height: 3.2em;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.price strong {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 16px;
}

/* The featured plan is black */
.plan-card-featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.plan-card-featured .plan-for,
.plan-card-featured .price span {
  color: #c9c1b4;
}

.plan-card-featured .price {
  border-color: rgba(246, 242, 234, 0.2);
}

.plan-card-featured .check-list li::before {
  filter: invert(1);
}

.plan-badge {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 3px 12px;
  border: 1px solid rgba(246, 242, 234, 0.4);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* The button sits at the bottom of every card, even if the lists are different lengths */
.plan-card .button {
  margin-top: auto;
}

/* A list with little check marks */
.check-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 17px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 9 L7 14 L18 2' stroke='%231c1a17' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* The wide "Care plan" row under the cards */
.care-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 20px;
  padding: 30px 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.care-plan h3 {
  margin: 0 0 6px;
}

.care-plan p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
}

.care-price {
  flex-shrink: 0;
  font-size: 30px;
  font-weight: 500;
}

.care-price span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}

.pricing-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

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

  .plan-for {
    min-height: 0;
  }

  .care-plan {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ---------- 8. FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  list-style: none; /* hides the default little triangle */
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* A "+" that turns into a "–" when the question is open */
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 24px;
  max-width: 680px;
  color: var(--muted);
}


/* ---------- 9. Call-to-action box (Bino peeks over the top) ---------- */
.cta {
  position: relative;
  margin-top: 110px; /* room for Bino's head above the box */
  padding: 80px 40px 72px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  text-align: center;
}

.cta h2 {
  margin-bottom: 14px;
}

.cta p {
  max-width: 520px;
  margin: 0 auto 32px;
  color: #c9c1b4;
  font-size: 20px;
}

.cta .button-row {
  justify-content: center;
}

.cta .button-outline {
  color: var(--paper);
  border-color: rgba(246, 242, 234, 0.5);
}

.cta .button-outline:hover {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 700px) {
  .cta {
    padding: 64px 22px 52px;
    margin-top: 90px;
  }
}


/* ---------- 10. Forms ---------- */
.form-section {
  padding: 24px 0 110px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

/* Each group of questions ("About you", "Your business"...) */
.form fieldset {
  margin: 0;
  padding: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form legend {
  float: left;          /* puts the title inside the box instead of on the border */
  width: 100%;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Two questions side by side (stack on phones) */
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.field-title {
  font-weight: 500;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

/* Text boxes, dropdowns and big text areas all look the same */
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(28, 26, 23, 0.3);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28, 26, 23, 0.12);
}

.form textarea {
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #8c8579;
}

/* The round/square choices become pill buttons */
.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(28, 26, 23, 0.3);
  border-radius: 999px;
  cursor: pointer;
}

.choice input {
  accent-color: var(--paper);
  width: 18px;
  height: 18px;
  margin: 0;
}

/* A choice that is picked turns black */
.choice:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.form > .button {
  align-self: flex-start;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 700px) {
  .form fieldset {
    padding: 24px 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}


/* ---------- 11. Contact page layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

/* Contact page: intro sits in the left column so the form lines up with it */
.contact-section {
  padding-top: 80px;
}

.contact-intro {
  margin-bottom: 40px;
}

.contact-intro .label {
  margin-bottom: 16px;
}

.contact-intro p {
  color: var(--muted);
  font-size: 20px;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:first-child {
  border-top: 1px solid var(--line);
}

.contact-item .label {
  display: block;
  margin-bottom: 4px;
}

.contact-item p {
  margin: 0;
  font-size: 22px;
}

.contact-item a {
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-grid .form {
  margin: 0;
  width: 100%;
  padding: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

  .contact-grid .form {
    padding: 24px 20px;
  }
}


/* ---------- 12. Legal pages (Privacy + Terms) ---------- */
.legal {
  padding-bottom: 110px;
}

.legal h2 {
  margin: 48px 0 12px;
  font-size: 26px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--ink);
  font-weight: 500;
}

.legal-updated {
  color: var(--muted);
  font-size: 16px;
}
