/* ==========================================================================
   STATIC PAGES STYLESHEET - HouseMaster Ghana
   Shared styling for About Us, Contact Us, Terms & Conditions, FAQs, Privacy Policy
   ========================================================================== */

/* --------------------------------------------------------------------------
   Container & Layout
   -------------------------------------------------------------------------- */
.static-page-wrapper {
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  background: var(--background);
}

.static-container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  padding-block: 2.5rem 4.5rem;
}

.static-container-narrow {
  width: min(100% - 2rem, 860px);
  margin-inline: auto;
  padding-block: 2.5rem 4.5rem;
}

/* --------------------------------------------------------------------------
   Hero Headers
   -------------------------------------------------------------------------- */
.static-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)),
              radial-gradient(ellipse at 80% 20%, rgba(222, 173, 170, 0.18), transparent 50%);
  color: #ffffff;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.static-hero-content {
  width: min(100% - 2rem, 840px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.static-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(222, 173, 170, 0.15);
  border: 1px solid rgba(222, 173, 170, 0.4);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.static-hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.static-hero-subtitle {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   Section Cards & Typography
   -------------------------------------------------------------------------- */
.static-section {
  margin-bottom: 3.5rem;
}

.static-section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.static-section-eyebrow {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.static-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text-color);
}

.static-section-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   About Page Components
   -------------------------------------------------------------------------- */
.about-narrative-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /*border: 1px solid rgba(222, 173, 170, 0.25);*/
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px -10px var(--shadow);
}

.about-narrative-lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.about-narrative-text {
  font-size: 1.025rem;
  line-height: 1.75;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--glass);
  /*border: 1px solid rgba(222, 173, 170, 0.2);*/
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  /*border-color: var(--secondary);*/
  box-shadow: 0 12px 28px -8px var(--shadow);
}

.pillar-icon-wrapper {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(222, 173, 170, 0.25), rgba(230, 183, 124, 0.15));
  display: grid;
  place-items: center;
  color: var(--secondary);
}

.pillar-icon-wrapper svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

.pillar-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: var(--glass);
  /*border: 1px solid rgba(222, 173, 170, 0.2);*/
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform 250ms ease, border-color 250ms ease;
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
}

.value-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.value-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(222, 173, 170, 0.15);
  display: grid;
  place-items: center;
  color: var(--secondary);
  flex-shrink: 0;
}

.value-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

.value-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

/* CTA Banner */
.static-cta-banner {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92));
  /*border: 1px solid rgba(222, 173, 170, 0.35);*/
  border-radius: 1.25rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.35);
}

.static-cta-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
}

.static-cta-desc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}

.static-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-primary-static {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: #111827;
  padding: 0.85rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 14px rgba(222, 173, 170, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary-static:hover {
  background: #deb5b2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222, 173, 170, 0.5);
  color: #111827;
}

.btn-outline-static {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.btn-outline-static:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Contact Page Components
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.4fr);
  gap: 2.5rem;
  align-items: start;
}

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

.contact-info-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(222, 173, 170, 0.25);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 10px 30px -10px var(--shadow);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-block-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-block-label svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.contact-block-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.5;
}

.contact-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.contact-link:hover {
  color: var(--secondary);
}

.contact-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.2rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  transition: color 200ms ease;
  vertical-align: middle;
}

.contact-copy-btn:hover {
  color: var(--secondary);
}

.contact-hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

.contact-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.25rem;
  border-bottom: 1px dashed rgba(222, 173, 170, 0.2);
}

.contact-form-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(222, 173, 170, 0.25);
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 10px 30px -10px var(--shadow);
}

.contact-form-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
}

.contact-form-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.75rem 0;
  line-height: 1.5;
}

.static-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.static-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.static-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.static-form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.static-form-label-required::after {
  content: " *";
  color: #ef4444;
}

.static-form-input,
.static-form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(222, 173, 170, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  box-sizing: border-box;
}

.static-form-input:focus,
.static-form-textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(222, 173, 170, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.static-form-input::placeholder,
.static-form-textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.static-form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.static-form-checkbox {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(222, 173, 170, 0.5);
  accent-color: var(--secondary);
  cursor: pointer;
}

.static-form-checkbox-label {
  font-size: 0.9rem;
  color: var(--text-color);
  cursor: pointer;
}

.static-form-error {
  color: #ef4444;
  font-size: 0.825rem;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   FAQ Page Components (Accessible Details / Summary Accordion)
   -------------------------------------------------------------------------- */
.faq-category {
  margin-bottom: 3.5rem;
}

.faq-category-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--text-color);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(222, 173, 170, 0.3);
}

.faq-category-title svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--secondary);
  fill: none;
  stroke-width: 2;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--glass);
  border: 1px solid rgba(222, 173, 170, 0.22);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.faq-item[open] {
  border-color: var(--secondary);
  box-shadow: 0 8px 24px -8px var(--shadow);
}

.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-color);
  user-select: none;
  transition: background 200ms ease, color 200ms ease;
}

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

.faq-summary:hover {
  background: rgba(222, 173, 170, 0.08);
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  color: var(--secondary);
  flex-shrink: 0;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  opacity: 0.9;
  border-top: 1px solid rgba(222, 173, 170, 0.12);
  padding-top: 1.25rem;
}

.faq-answer p {
  margin: 0 0 0.85rem 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  padding: 0;
}

.faq-answer li {
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   Legal Pages (Terms & Conditions, Privacy Policy)
   -------------------------------------------------------------------------- */
.legal-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(222, 173, 170, 0.25);
  padding-bottom: 0.5rem;
}

.legal-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  transition: color 200ms ease, background 200ms ease;
  border: 1px solid transparent;
}

.legal-tab-link:hover {
  color: var(--text-color);
  background: rgba(222, 173, 170, 0.1);
}

.legal-tab-link.is-active {
  color: #111827;
  background: var(--secondary);
  border-color: var(--secondary);
}

.legal-document-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /*border: 1px solid rgba(222, 173, 170, 0.25);*/
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 10px 30px -10px var(--shadow);
  line-height: 1.8;
}

.legal-doc-header {
  border-bottom: 1px solid rgba(222, 173, 170, 0.25);
  padding-bottom: 1.5rem;
  margin-bottom: 2.25rem;
}

.legal-doc-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
}

.legal-doc-meta {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.legal-callout {
  background: rgba(222, 173, 170, 0.12);
  border-left: 4px solid var(--secondary);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
  font-size: 0.975rem;
  line-height: 1.65;
}

.legal-clause {
  margin-bottom: 2.5rem;
}

.legal-clause-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 0.85rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.legal-clause-number {
  color: var(--secondary);
  font-weight: 800;
}

.legal-clause p {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  opacity: 0.92;
}

.legal-clause ol,
.legal-clause ul {
  margin: 0.75rem 0 1.25rem 1.5rem;
  padding: 0;
}

.legal-clause li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
  opacity: 0.92;
}
