/* ==========================================================================
   WSC Interactive Tools — Shared CSS
   Wedding Serenity Club | weddingserenity.com
   Mobile-first, 375px minimum viewport
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  --color-blush:      #F5E6E8;   /* page/card backgrounds */
  --color-dusty-rose: #D4A5A5;   /* buttons, headers, accents */
  --color-sage:       #A8B5B2;   /* labels, secondary text, borders */
  --color-charcoal:   #3C2F2F;   /* all body text */
  --color-cream:      #FDF6F8;   /* tool container background */
  --color-white:      #FFFFFF;   /* input fields, result cards */
  --color-green:      #27AE60;   /* positive results */
  --color-yellow:     #F5CBA7;   /* mid-range / caution */
  --color-red:        #E74C3C;   /* warnings, over-budget */

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', Arial, sans-serif;

  --tool-max-width:    680px;
  --border-radius:     12px;
  --border-radius-sm:  8px;
  --btn-border-radius: 50px;     /* pill buttons always */
}

/* --------------------------------------------------------------------------
   Tool page wrapper
   -------------------------------------------------------------------------- */

.wsc-tool-page {
  background-color: var(--color-cream);
  min-height: 100vh;
  padding-bottom: 120px;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */

.wsc-breadcrumb {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-sage);
  padding: 16px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.wsc-breadcrumb a {
  color: var(--color-dusty-rose);
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Page title area
   -------------------------------------------------------------------------- */

.wsc-tool-header {
  text-align: center;
  padding: 32px 24px 24px;
  max-width: var(--tool-max-width);
  margin: 0 auto;
}

.wsc-tool-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 5vw, 38px);
  color: var(--color-charcoal);
  margin: 0 0 12px;
  line-height: 1.2;
}

.wsc-tool-header .subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-sage);
  margin: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Tool container (wraps the React root div)
   -------------------------------------------------------------------------- */

.wsc-tool-container {
  max-width: var(--tool-max-width);
  margin: 0 auto 40px;
  padding: 0 16px;
}
.wsc-tool-share-nudge {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #A8B5B2;
  text-align: center;
  font-style: italic;
  line-height: 1.7;
  margin: 8px auto 28px;
  max-width: 520px;
  padding: 0 16px;
}

/* --------------------------------------------------------------------------
   Tool card (the white rounded box React tools render inside)
   -------------------------------------------------------------------------- */

.wsc-tool-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(60, 47, 47, 0.06);
}

@media (min-width: 480px) {
  .wsc-tool-card {
    padding: 32px 28px;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.wsc-btn-primary {
  display: inline-block;
  background: var(--color-dusty-rose);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--btn-border-radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.2s ease;
}

.wsc-btn-primary:hover,
.wsc-btn-primary:focus {
  background: #C49494;
  outline: 2px solid var(--color-dusty-rose);
  outline-offset: 2px;
}

.wsc-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-dusty-rose);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--btn-border-radius);
  border: 2px solid var(--color-dusty-rose);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.wsc-btn-secondary:hover,
.wsc-btn-secondary:focus {
  background: var(--color-dusty-rose);
  color: var(--color-white);
  outline: 2px solid var(--color-dusty-rose);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Form elements (inputs, selects, labels)
   -------------------------------------------------------------------------- */

.wsc-label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

.wsc-input,
.wsc-select {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;   /* 16px minimum prevents iOS auto-zoom */
  color: var(--color-charcoal);
  background: var(--color-white);
  border: 1.5px solid var(--color-sage);
  border-radius: var(--border-radius-sm);
  padding: 12px 14px;
  min-height: 44px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.wsc-input:focus,
.wsc-select:focus {
  border-color: var(--color-dusty-rose);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.2);
}

.wsc-input::placeholder {
  color: var(--color-sage);
  opacity: 1;
}

.wsc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23A8B5B2' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.wsc-field {
  margin-bottom: 20px;
}

.wsc-field-hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-sage);
  margin-top: 4px;
}

/* Two-column field row on wider screens */
.wsc-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .wsc-field-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Result panel base styles
   -------------------------------------------------------------------------- */

.wsc-result {
  margin-top: 28px;
  padding: 24px 20px;
  border-radius: var(--border-radius);
  border: 1.5px solid var(--color-sage);
  background: var(--color-cream);
}

.wsc-result-title {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-charcoal);
  margin: 0 0 8px;
}

.wsc-result-value {
  font-family: var(--font-heading);
  font-size: clamp(28px, 6vw, 40px);
  color: var(--color-dusty-rose);
  margin: 0 0 16px;
  line-height: 1.1;
}

.wsc-result-body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-charcoal);
  line-height: 1.6;
  margin: 0 0 16px;
}

/* Semantic result colour modifiers */
.wsc-result--positive {
  border-color: var(--color-green);
  background: #F0FAF4;
}

.wsc-result--positive .wsc-result-value {
  color: var(--color-green);
}

.wsc-result--caution {
  border-color: var(--color-yellow);
  background: #FEFAF5;
}

.wsc-result--caution .wsc-result-value {
  color: #C0803A;
}

.wsc-result--warning {
  border-color: var(--color-red);
  background: #FDF3F2;
}

.wsc-result--warning .wsc-result-value {
  color: var(--color-red);
}

/* Result breakdown list */
.wsc-result-breakdown {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.wsc-result-breakdown li {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-charcoal);
  padding: 8px 0;
  border-bottom: 1px solid rgba(168, 181, 178, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wsc-result-breakdown li:last-child {
  border-bottom: none;
}

.wsc-result-breakdown li strong {
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Lead capture block
   -------------------------------------------------------------------------- */

.wsc-lead-capture {
  margin-top: 32px;
  padding: 24px 20px;
  border-radius: var(--border-radius);
  border: 1px dashed var(--color-dusty-rose);
  background: var(--color-blush);
  text-align: center;
}

.wsc-lead-capture-heading {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-charcoal);
  margin: 0 0 6px;
}

.wsc-lead-capture-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-sage);
  margin: 0 0 18px;
}

.wsc-lead-capture-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 480px) {
  .wsc-lead-capture-form {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .wsc-lead-capture-form .wsc-input {
    flex: 1 1 160px;
  }

  .wsc-lead-capture-form .wsc-btn-primary {
    flex-shrink: 0;
  }
}

.wsc-lead-capture-legal {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-sage);
  margin: 10px 0 0;
  line-height: 1.5;
}

.wsc-lead-capture-confirmation {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-green);
  padding: 16px 0 8px;
}

/* --------------------------------------------------------------------------
   Pinterest share button
   -------------------------------------------------------------------------- */

.wsc-share-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wsc-share-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-sage);
}

.wsc-btn-pinterest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E60023;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--btn-border-radius);
  border: none;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.wsc-btn-pinterest:hover {
  background: #C0001D;
}

/* --------------------------------------------------------------------------
   WSC soft CTA block (page-level, below the tool)
   -------------------------------------------------------------------------- */

.wsc-tool-cta {
  background: var(--color-cream);
  border-top: 2px solid var(--color-dusty-rose);
  border-bottom: 2px solid var(--color-dusty-rose);
  padding: 36px 24px;
  text-align: center;
  margin: 0 0 120px;
}

.wsc-tool-cta p:first-of-type {
  font-family: var(--font-heading);
  font-size: clamp(18px, 3.5vw, 22px);
  color: var(--color-charcoal);
  margin: 0 0 8px;
}

.wsc-tool-cta p:last-of-type {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-sage);
  margin: 0 0 20px;
}

/* --------------------------------------------------------------------------
   SEO content area (How-to, FAQ, Related tools)
   -------------------------------------------------------------------------- */

.wsc-tool-content {
  max-width: var(--tool-max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
  font-family: var(--font-body);
  color: var(--color-charcoal);
}

.wsc-tool-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3.5vw, 24px);
  color: var(--color-charcoal);
  margin: 48px 0 16px;
  line-height: 1.3;
}

.wsc-tool-content h2:first-child {
  margin-top: 0;
}

.wsc-tool-content p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.wsc-tool-content strong {
  font-weight: 700;
}

/* FAQ pairs */
.wsc-tool-content details {
  border-bottom: 1px solid rgba(168, 181, 178, 0.4);
  padding: 16px 0;
}

.wsc-tool-content summary {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-charcoal);
  cursor: pointer;
  list-style: none;
  padding-right: 24px;
  position: relative;
}

.wsc-tool-content summary::-webkit-details-marker {
  display: none;
}

.wsc-tool-content summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--color-dusty-rose);
  font-size: 18px;
  line-height: 1;
}

.wsc-tool-content details[open] summary::after {
  content: '−';
}

.wsc-tool-content details p {
  margin: 12px 0 0;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Related tools grid
   -------------------------------------------------------------------------- */

.wsc-related-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 600px) {
  .wsc-related-tools {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.wsc-related-tool-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-dusty-rose);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  transition: box-shadow 0.15s ease;
}

.wsc-related-tool-card:hover {
  box-shadow: 0 4px 14px rgba(212, 165, 165, 0.25);
}

.wsc-related-tool-card span {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--color-charcoal);
  margin-bottom: 4px;
  line-height: 1.3;
}

.wsc-related-tool-card small {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-sage);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Utility helpers
   -------------------------------------------------------------------------- */

/* Visually hidden (accessible) */
.wsc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Divider */
.wsc-divider {
  border: none;
  border-top: 1px solid rgba(168, 181, 178, 0.4);
  margin: 24px 0;
}

/* Inline icon + text row */
.wsc-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-sage);
  margin-bottom: 12px;
}
