/* ---------------------------------------------------------
   ASCEND PEPTIDES — CLEAN PREMIUM THEME (STYLE B)
   Unified styles for Home, Shop, About, Contact
--------------------------------------------------------- */

:root {
  --blue-dark: #0d1a2d;
  --blue: #1d4ed8;
  --blue-light: #7da9ff;
  --bg: #f4f6fa;
  --card-bg: #ffffff;
  --text-main: #0d1a2d;
  --text-muted: #5b6275;
  --border-soft: #e1e4f0;
  --accent: #4e7cff;
  --danger: #b42318;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-soft: 0 16px 40px rgba(5, 22, 60, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid rgba(13, 26, 45, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo img {
  height: 52px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.16s ease-out;
}

.site-nav a:hover {
  color: var(--blue-dark);
}

.site-nav a:hover::after {
  width: 100%;
}

/* ---------------------------------------------------------
   HERO SECTIONS
--------------------------------------------------------- */

.page-hero {
  text-align: center;
  padding: 80px 0 60px;
  background: linear-gradient(180deg, rgba(13, 26, 45, 0.08), rgba(13, 26, 45, 0));
}

.page-hero.hero-image {
  color: #ffffff;
  min-height: 520px;
  display: flex;
  align-items: center;
  text-align: center;
  background-image: linear-gradient(180deg, rgba(13, 26, 45, 0.85) 0%, rgba(13, 26, 45, 0.25) 65%), url('images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero.hero-image h1,
.page-hero.hero-image p,
.page-hero.hero-image .eyebrow {
  color: rgba(255, 255, 255, 0.95);
}

.page-hero .eyebrow {
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue-dark);
  opacity: 0.8;
  margin-bottom: 6px;
}

.page-hero h1 {
  margin-top: 0;
  font-size: 2.2rem;
  font-weight: 700;
}

.page-hero p {
  max-width: 720px;
  margin: 10px auto 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

/* ---------------------------------------------------------
   GENERIC SECTIONS
--------------------------------------------------------- */

.section {
  padding: 60px 0;
  background: #ffffff;
}

.section.alt {
  background: #f4f6fa;
}

.section .section-heading {
  text-align: center;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: 1.6rem;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------
   PRODUCT GRIDS / SHOP PAGE
--------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.product-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border-soft);
  background: #fff;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price {
  font-weight: 600;
  margin: 6px 0 10px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 26px;
  background: linear-gradient(135deg, #0d1a2d, #1d4ed8);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(7, 16, 32, 0.3);
  border: none;
}

.primary-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid rgba(13, 26, 45, 0.4);
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
}

.catalog-link {
  text-align: center;
  margin-top: 24px;
}

/* ---------------------------------------------------------
   MODALS & CHECKOUT
--------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 12, 25, 0.55);
  transition: opacity 0.2s ease;
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 48px);
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 60px rgba(3, 12, 32, 0.25);
  position: relative;
  animation: accordion 0.35s ease;
  overflow-y: auto;
}

.modal-panel.modal-large {
  max-width: 640px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-subtext {
  margin-top: 4px;
  color: var(--text-muted);
}

.cart-items .discount-note {
  font-size: 0.8rem;
  color: #1d874f;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  color: var(--text-muted);
  gap: 6px;
}

.form-field input {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.button-link {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.order-summary {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 20px;
  background: #f9fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
}

.order-summary-item small {
  display: block;
  color: var(--text-muted);
}

.order-summary-row,
.order-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.discount-row span:last-child {
  color: #0f7b4b;
}

.order-summary-total {
  font-size: 1.1rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 8px;
}

.cart-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-actions .primary-btn,
.cart-actions .button-secondary {
  flex: 1;
  justify-content: center;
  text-align: center;
}

.full-width {
  width: 100%;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.82rem;
}

/* ---------------------------------------------------------
   ABOUT PAGE
--------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.highlight-card {
  background: white;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.info-card {
  background: white;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.timeline-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-steps li {
  margin-bottom: 22px;
}

.timeline-steps h3 {
  margin-bottom: 4px;
}

/* ---------------------------------------------------------
   CTA PANEL
--------------------------------------------------------- */

.cta-panel {
  background: linear-gradient(120deg, #0d1a2d, #1f3a68);
  color: white;
  padding: 40px 0;
}

.cta-panel .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-panel h2 {
  margin: 0 0 6px;
}

.cta-panel p {
  margin: 0;
  opacity: 0.9;
}

/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */

.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text-main);
}

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

.faq-item .faq-answer {
  padding: 0 24px 24px;
  color: var(--text-muted);
  line-height: 1.6;
  animation: accordion 0.35s ease;
}

.faq-item[open] {
  border-color: var(--blue);
  box-shadow: 0 20px 40px rgba(7, 16, 32, 0.12);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.15);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-icon::after {
  content: '+';
  font-weight: 700;
}

.faq-item[open] .faq-icon {
  transform: scale(1.05);
  background: rgba(13, 26, 45, 0.8);
  color: #ffffff;
}

.faq-item[open] .faq-icon::after {
  content: '–';
}

@keyframes accordion {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.site-footer {
  background: #07142f;
  color: #c9d0ea;
  padding: 26px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-grid img {
  height: 40px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: #d1d8f3;
  text-decoration: none;
  font-size: 0.88rem;
}

.disclaimer {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 6px;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .cta-panel .container {
    flex-direction: column;
    text-align: center;
  }
  .card-grid.three,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .card-grid.three,
  .card-grid.two,
  .products-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
