/* ===========================
   PURE HOME WELLNESS STYLES
   File: assets/css/styles.css
   =========================== */

/* ---------- CSS RESET ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #002733;
  background-color: #f5f7fa;
  line-height: 1.6;
}

/* Utility for visually hidden (if needed later) */
.phw-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- COLOR SYSTEM ---------- */

:root {
  --phw-primary: #004760; /* dark teal */
  --phw-primary-dark: #002733;
  --phw-primary-light: #33b5e5;
  --phw-accent: #ff8a3c;
  --phw-bg: #f5f7fa;
  --phw-white: #ffffff;
  --phw-muted: #8291a4;
  --phw-border: #dde3ec;
  --phw-shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.08);
  --phw-radius-card: 18px;
  --phw-radius-pill: 999px;
  --phw-max-width: 1200px;
}

/* ---------- GLOBAL LAYOUT ---------- */

.phw-container {
  width: 100%;
  max-width: var(--phw-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding-top: 96px; /* header + topbar space */
}

/* ---------- TYPOGRAPHY ---------- */

h1,
h2,
h3,
h4 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--phw-primary-dark);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

p {
  font-size: 0.98rem;
  color: #253645;
}

/* ---------- BUTTONS ---------- */

.phw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--phw-radius-pill);
  border: 2px solid transparent;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
  white-space: nowrap;
}

.phw-btn-primary {
  background: linear-gradient(
    135deg,
    var(--phw-primary),
    var(--phw-primary-light)
  );
  color: var(--phw-white);
  box-shadow: var(--phw-shadow-soft);
}

.phw-btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--phw-primary-dark),
    var(--phw-primary)
  );
  transform: translateY(-1px);
}

.phw-btn-outline {
  background-color: transparent;
  color: var(--phw-primary);
  border-color: var(--phw-primary);
}

.phw-btn-outline:hover {
  background-color: rgba(0, 71, 96, 0.05);
}

.phw-btn-full {
  width: 100%;
}

/* Inline links */
.phw-link-inline {
  color: var(--phw-primary);
  font-weight: 600;
  text-decoration: none;
}

.phw-link-inline:hover {
  text-decoration: underline;
}

/* ---------- GRID SYSTEM ---------- */

.phw-grid {
  display: grid;
  gap: 1.5rem;
}

.phw-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.phw-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.phw-two-column {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}

.phw-two-column-video {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

/* ---------- SECTIONS ---------- */

.phw-section {
  padding: 4rem 0;
  background-color: var(--phw-white);
}

.phw-section-light {
  padding: 4rem 0;
  background-color: var(--phw-bg);
}

.phw-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.phw-section-header p {
  max-width: 640px;
  margin: 0.5rem auto 0;
  color: var(--phw-muted);
}

.phw-section-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--phw-muted);
}

.phw-divider-dot {
  margin: 0 0.5rem;
}

/* ---------- HEADER & NAVIGATION ---------- */

.phw-header {
  position: fixed;
  top: 32px; /* leaves space for topbar */
  left: 0;
  right: 0;
  z-index: 50;

  /* make the header a full-width bar */
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.phw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;

  /* no rounded corners or extra background here */
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Topbar (above header) */

.phw-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(
    90deg,
    var(--phw-primary-dark),
    var(--phw-primary)
  );
  color: var(--phw-white);
  font-size: 0.8rem;
}

.phw-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.25rem;
}

.phw-topbar a {
  color: var(--phw-white);
  text-decoration: none;
}

.phw-topbar a:hover {
  text-decoration: underline;
}

.phw-logo img {
  height: 40px;
  display: block;
}

/* Navigation */

.phw-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.phw-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 0.5rem;
}

.phw-nav-list a {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--phw-primary-dark);
  text-decoration: none;
  padding: 0.3rem 0.2rem;
  position: relative;
}

.phw-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--phw-primary),
    var(--phw-primary-light)
  );
  transition: width 0.18s ease;
}

.phw-nav-list a:hover::after,
.phw-nav-list a.active::after {
  width: 100%;
}

.phw-header-cta {
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
}

/* Mobile nav toggle */

.phw-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.phw-nav-toggle-line {
  width: 20px;
  height: 2px;
  background-color: var(--phw-primary-dark);
  border-radius: 4px;
}

/* ---------- HERO SECTION (FULL-BLEED IMAGE) ---------- */

.phw-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  color: var(--phw-white);
}

.phw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-home.jpg"); /* make sure this file exists */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  z-index: -2;
}

.phw-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(51, 181, 229, 0.28), transparent 55%),
    linear-gradient(135deg, rgba(0, 39, 51, 0.88), rgba(0, 71, 96, 0.80));
  z-index: -1;
}

.phw-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.phw-hero-text h1 {
  color: var(--phw-white);
}

.phw-hero-text p {
  color: #e4edf5;
  max-width: 520px;
  margin-bottom: 1.4rem;
}

.phw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.phw-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.phw-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.9rem;
  border-radius: var(--phw-radius-pill);
  background-color: rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  color: #f5f9fd;
}

/* Hero form card */

.phw-hero-card {
  background-color: rgba(255, 255, 255, 0.98);
  color: var(--phw-primary-dark);
  border-radius: 22px;
  padding: 1.75rem 1.6rem;
  box-shadow: var(--phw-shadow-soft);
  max-width: 420px;
  margin-left: auto;
}

.phw-hero-card h2 {
  margin-bottom: 0.35rem;
}

.phw-hero-card p {
  font-size: 0.9rem;
  color: var(--phw-muted);
  margin-bottom: 1.2rem;
}

/* Hero-specific tweak so outline button has enough contrast on dark background */
.phw-hero .phw-btn-outline {
  color: #f7fbff;
  border-color: rgba(255, 255, 255, 0.7);
  background-color: transparent;
}

.phw-hero .phw-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* ---------- FORMS ---------- */

.phw-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.phw-form-row {
  display: flex;
  gap: 0.75rem;
}

.phw-form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.phw-form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--phw-primary-dark);
}

.phw-form-field input,
.phw-form-field textarea,
.phw-form-field select,
.phw-footer-form input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--phw-border);
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background-color: #fdfefe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.phw-form-field input:focus,
.phw-form-field textarea:focus,
.phw-footer-form input:focus {
  border-color: var(--phw-primary-light);
  box-shadow: 0 0 0 2px rgba(51, 181, 229, 0.2);
  background-color: #ffffff;
}

.phw-form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.phw-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
}

.phw-checkbox-group input {
  margin-right: 0.25rem;
}

.phw-form-note {
  font-size: 0.75rem;
  color: var(--phw-muted);
}

/* ---------- CARDS ---------- */

.phw-card {
  background-color: var(--phw-white);
  border-radius: var(--phw-radius-card);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.phw-card-pillars img,
.phw-card-product img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.phw-card-pillars {
  padding-bottom: 0.75rem;
}

.phw-card-pillars .phw-card-icon {
  overflow: hidden;
  border-radius: var(--phw-radius-card) var(--phw-radius-card) 0 0;
}

.phw-card-pillars h3,
.phw-card-pillars p,
.phw-card-pillars .phw-card-link {
  padding: 0 1.25rem;
}

.phw-card-pillars h3 {
  margin-top: 1rem;
}

.phw-card-pillars p {
  font-size: 0.9rem;
  color: var(--phw-muted);
  margin: 0.5rem 0 0.75rem;
}

.phw-card-link {
  display: inline-block;
  padding: 0 1.25rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--phw-primary);
  text-decoration: none;
}

.phw-card-link:hover {
  text-decoration: underline;
}

/* Product cards */

.phw-card-product img {
  height: 190px;
}

.phw-card-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.phw-card-body p {
  font-size: 0.9rem;
  color: var(--phw-muted);
  margin: 0.25rem 0 0.75rem;
}

/* Testimonials */

.phw-card-testimonial {
  padding: 1.5rem 1.4rem;
  background: linear-gradient(135deg, #ffffff, #f3f7fb);
}

.phw-quote {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.phw-quote-author {
  font-size: 0.85rem;
  color: var(--phw-muted);
}

/* Blog cards */

.phw-card-blog {
  padding: 1.4rem 1.4rem 1.5rem;
}

.phw-card-blog h3 {
  margin-bottom: 0.4rem;
}

.phw-card-blog h3 a {
  color: var(--phw-primary-dark);
  text-decoration: none;
}

.phw-card-blog h3 a:hover {
  text-decoration: underline;
}

.phw-card-blog p {
  font-size: 0.9rem;
  color: var(--phw-muted);
  margin-bottom: 0.6rem;
}

.phw-blog-meta {
  font-size: 0.8rem;
  color: var(--phw-muted);
}

/* ---------- LISTS ---------- */

.phw-list-check {
  list-style: none;
  padding-left: 0;
}

.phw-list-check li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.phw-list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--phw-primary-light);
  font-weight: 700;
}

/* Ordered step lists */

.phw-list-steps {
  counter-reset: phw-step-counter;
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.phw-list-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--phw-primary-dark);
  position: relative;
  padding-left: 0.35rem;
}

.phw-list-steps li::before {
  counter-increment: phw-step-counter;
  content: counter(phw-step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--phw-white);
  background: linear-gradient(
    135deg,
    var(--phw-primary),
    var(--phw-primary-light)
  );
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ---------- VIDEO WRAPPER ---------- */

.phw-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--phw-radius-card);
  overflow: hidden;
  box-shadow: var(--phw-shadow-soft);
}

.phw-video-wrapper iframe,
.phw-video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- FAQ PREVIEW ---------- */

.phw-faq-preview {
  max-width: 720px;
  margin: 0 auto;
}

.phw-faq-preview details {
  background-color: var(--phw-white);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--phw-border);
}

.phw-faq-preview summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.phw-faq-preview summary::-webkit-details-marker {
  display: none;
}

.phw-faq-preview summary::before {
  content: "+";
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: 700;
  color: var(--phw-primary);
}

.phw-faq-preview details[open] summary::before {
  content: "–";
}

.phw-faq-preview details p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--phw-muted);
}

/* ---------- CTA STRIP ---------- */

.phw-section-cta {
  background: radial-gradient(
      circle at top left,
      rgba(51, 181, 229, 0.3),
      transparent
    ),
    linear-gradient(135deg, var(--phw-primary-dark), var(--phw-primary));
  color: var(--phw-white);
  padding: 3rem 0;
}

.phw-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.phw-cta-text h2 {
  color: var(--phw-white);
  margin-bottom: 0.4rem;
}

.phw-cta-text p {
  color: #e4edf5;
  font-size: 0.95rem;
}

/* ---------- FOOTER ---------- */

.phw-footer {
  background-color: #0d1823;
  color: #cbd3df;
  padding-top: 3rem;
}

.phw-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(203, 211, 223, 0.25);
}

.phw-footer-logo img {
  height: 40px;
  margin-bottom: 0.75rem;
}

.phw-footer p {
  font-size: 0.9rem;
  color: #cbd3df;
}

.phw-footer-column h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.phw-footer-links {
  list-style: none;
}

.phw-footer-links li {
  margin-bottom: 0.3rem;
}

.phw-footer-links a {
  font-size: 0.88rem;
  color: #cbd3df;
  text-decoration: none;
}

.phw-footer-links a:hover {
  text-decoration: underline;
}

/* Footer newsletter */

.phw-footer-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.phw-footer-form input {
  flex: 1;
  font-size: 0.85rem;
}

.phw-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.phw-footer-social a {
  color: #cbd3df;
  text-decoration: none;
}

.phw-footer-social a:hover {
  text-decoration: underline;
}

.phw-footer-bottom {
  padding: 0.8rem 0 1.4rem;
  text-align: center;
  font-size: 0.8rem;
  color: #9ba7b8;
}

/* ---------- RESPONSIVE STYLES ---------- */

@media (max-width: 1024px) {
  .phw-header-inner {
    border-radius: 0;
  }

  .phw-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phw-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  main {
    padding-top: 84px;
  }

  .phw-header {
    top: 28px;
  }

  .phw-header-inner {
    padding-inline: 1rem;
  }

  .phw-logo img {
    height: 34px;
  }

  /* Nav becomes mobile menu */

  .phw-nav-toggle {
    display: flex;
  }

  .phw-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background-color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    padding: 0.75rem 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  body.phw-nav-open .phw-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .phw-nav-list {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 0;
    width: 100%;
  }

  .phw-header-cta {
    width: 100%;
    justify-content: center;
  }

  .phw-hero {
    padding-top: 5rem;
    padding-bottom: 3.25rem;
    min-height: 0;
  }

  .phw-hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .phw-hero-card {
    margin: 1.5rem auto 0;
    max-width: 100%;
  }

  .phw-two-column,
  .phw-two-column-video {
    grid-template-columns: minmax(0, 1fr);
  }

  .phw-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .phw-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .phw-hero-text h1 {
    font-size: 2rem;
  }

  .phw-hero-text p {
    font-size: 0.9rem;
  }

  .phw-form-row {
    flex-direction: column;
  }

  .phw-section {
    padding: 3.25rem 0;
  }

  .phw-section-light {
    padding: 3.25rem 0;
  }

  .phw-cta-inner {
    align-items: flex-start;
  }
}
