/*
Theme Name: RegenSys
Theme URI: https://regensys.net/
Author: RegenSys
Author URI: https://regensys.net/
Description: Luxury direct-to-consumer theme for RegenSys. High-converting thermal contrast therapy suites, saunas, cold plunge systems, and specialty modalities. Compatible with WooCommerce and native WordPress block editing.
Version: 1.2.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: regensys
*/

:root {
  --color-bg-linen: #FAF9F5;
  --color-bg-sand: #F4F2EB;
  --color-bg-white: #FFFFFF;
  --color-bg-dark: #121211;
  --color-text-main: #121211;
  --color-text-muted: #5C5850;
  --color-text-light: #A8A5A1;
  --color-border: #EAE7E0;
  --color-border-dark: #262524;
  --font-serif: Georgia, 'Times New Roman', Cambria, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container-max-width: 1320px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg-linen);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0;
  color: var(--color-text-main);
}

/* Container */
.regensys-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Announcement Banner */
.regensys-top-banner {
  background: var(--color-bg-dark);
  color: #E8E6E3;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.regensys-top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.regensys-top-banner a:hover {
  text-decoration: underline;
}

/* Header */
.regensys-header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.regensys-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.regensys-logo-link {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

.custom-logo-link img {
  max-height: 48px;
  width: auto;
}

.regensys-header-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.regensys-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.regensys-nav li a {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.regensys-nav li a:hover,
.regensys-nav li.current-menu-item > a {
  color: var(--color-text-main);
}

/* Mobile Hamburger Toggle Button */
.regensys-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.regensys-mobile-toggle:hover {
  background-color: var(--color-bg-sand);
}

.regensys-hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.regensys-mobile-toggle.is-active .regensys-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.regensys-mobile-toggle.is-active .regensys-hamburger-line:nth-child(2) {
  opacity: 0;
}

.regensys-mobile-toggle.is-active .regensys-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.regensys-btn-primary,
.wp-block-button.regensys-btn-primary a.wp-block-button__link {
  display: inline-block;
  background: var(--color-bg-dark) !important;
  color: #FFFFFF !important;
  padding: 0.75rem 1.6rem !important;
  border-radius: 9999px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-align: center;
  transition: opacity 0.2s ease;
  border: 1px solid transparent;
}

.regensys-btn-primary:hover,
.wp-block-button.regensys-btn-primary a.wp-block-button__link:hover {
  opacity: 0.88;
}

/* Hero Section */
.regensys-hero {
  background: var(--color-bg-dark);
  color: #FFFFFF;
}

.regensys-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
  color: #D1CEC7;
}

.regensys-hero-subtitle {
  color: #D1CEC7;
  max-width: 680px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.regensys-hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 3rem !important;
  text-align: left;
}

.regensys-hero-card {
  flex: 1 1 260px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.regensys-hero-card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #94A3B8;
  display: block;
  margin-bottom: 0.4rem;
}

.regensys-hero-card h4 {
  color: #FFFFFF !important;
  font-size: 1.2rem;
  margin: 0.25rem 0 0.5rem;
}

.regensys-hero-card p {
  font-size: 0.85rem;
  color: #A8A5A1;
  margin: 0;
  line-height: 1.6;
}

/* Content Sections */
.regensys-section {
  padding: 5.5rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.regensys-section-light {
  background: var(--color-bg-white);
}

.regensys-section-sand {
  background: var(--color-bg-sand);
}

.regensys-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem !important;
}

.regensys-section-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.regensys-section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  margin-bottom: 1rem;
}

.regensys-section-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Two-Column Showcase Grid */
.regensys-showcase-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
  align-items: center;
}

.regensys-showcase-grid > .wp-block-column {
  flex: 1 1 340px;
}

.regensys-card-box {
  background: var(--color-bg-linen);
  border: 1px solid var(--color-border);
  border-radius: 1.75rem;
  padding: 2.5rem;
  text-align: center;
}

.regensys-feature-pill-grid {
  display: flex;
  gap: 1rem;
  margin: 1.75rem 0;
}

.regensys-feature-pill {
  flex: 1 1 140px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  padding: 1rem;
}

.regensys-feature-pill p {
  margin: 0;
}

/* Modalities 3-column Grid */
.regensys-modalities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.regensys-modality-card {
  flex: 1 1 280px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 2rem;
}

.regensys-modality-card h4 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.regensys-modality-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* FAQ Accordion Section */
.regensys-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto !important;
}

.regensys-faq-item {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.regensys-faq-item h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.regensys-faq-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Footer */
.regensys-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--color-border-dark);
}

.regensys-trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--color-border-dark);
  margin-bottom: 3.5rem;
}

.regensys-trust-item h4 {
  color: #FFFFFF;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.regensys-trust-item p {
  font-size: 0.82rem;
  color: #8A867C;
  margin: 0;
  line-height: 1.55;
}

.regensys-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.regensys-footer-col h5 {
  color: #FFFFFF;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}

.regensys-footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.regensys-footer-nav-list li {
  margin-bottom: 0.65rem;
  font-size: 0.84rem;
}

.regensys-footer-nav-list li a {
  color: #8A867C;
  transition: color 0.2s ease;
}

.regensys-footer-nav-list li a:hover {
  color: #FFFFFF;
}

.regensys-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #66635C;
  padding-top: 2rem;
  border-top: 1px solid #1E1E1C;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Responsive Navigation */
@media (max-width: 900px) {
  .regensys-mobile-toggle {
    display: flex;
  }

  .regensys-header-nav-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }

  .regensys-header-nav-wrapper.is-open {
    display: flex;
  }

  .regensys-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
  }

  .regensys-header-actions {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
  }

  .regensys-header-actions .regensys-btn-primary {
    display: block;
    width: 100%;
    text-align: center;
  }

  .regensys-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .regensys-footer-grid {
    grid-template-columns: 1fr;
  }
}
