/* =========================================================
   MEN'S CIRCLES / SHAMANIC WORK THEME
   Forest • Ritual • Grounded • Premium
   Responsive & Mobile-First
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  /* ===== COLORS ===== */
  --bg-dark:        #090b09;
  --bg-soft:        #18231b;
  --bg-card:        rgba(255,255,255,0.03);

  --forest:         #2e5d46;
  --forest-light:   #3f7a5a;
  --sage:           #8fb996;

  --gold:           #d4a63c;
  --gold-light:     #e6c36a;

  --text:           #eaeaea;
  --text-soft:      #b7b7b7;
  --text-muted:     #888;

  --border:         rgba(255,255,255,0.08);

  --shadow-dark:    rgba(0,0,0,0.7);
  --glow-green:     rgba(63,122,90,0.25);
  --glow-gold:      rgba(212,166,60,0.18);

  /* ===== SPACING ===== */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  60px;
  --space-2xl: 90px;

  /* ===== RADIUS ===== */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

/* =========================================================
   RESET & BASE
========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Jost', 'Open Sans', sans-serif;

  background:
    radial-gradient(
      circle at top,
      rgba(143,185,150,0.08),
      transparent 35%
    ),
    radial-gradient(
      rgba(143,185,150,0.035) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at top,
      var(--bg-soft),
      var(--bg-dark)
    );

  background-size:
    auto,
    32px 32px,
    auto;

  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.75;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmosphere overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at top,
      rgba(143,185,150,0.03),
      transparent 40%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 60px,
      rgba(212,166,60,0.015) 61px,
      transparent 62px
    );
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

/* =========================================================
   LAYOUT
========================================================= */

.container {
  max-width: 1000px;
  margin: auto;
  padding: var(--space-lg) clamp(16px, 5vw, 40px);
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--forest-light);
}

h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  margin: 0 auto var(--space-md);
  position: relative;
  display: table;
  letter-spacing: 1px;
}

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  margin: 0 auto var(--space-md);
  position: relative;
  display: table;
  letter-spacing: 0.5px;
}

h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

/* Animated underlines */
h1::after,
h2::after,
h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, var(--sage), var(--forest-light));
  transition: width 0.35s ease;
}

h1:hover::after,
h2:hover::after,
h3:hover::after {
  width: 100%;
}

p {
  color: var(--text-soft);
  margin: 0 0 var(--space-sm) 0;
  font-size: clamp(0.95rem, 2vw, 1rem);
}

/* =========================================================
   UTILITY
========================================================= */

.highlight {
  color: var(--gold-light);
  font-weight: 600;
}

.center {
  text-align: center;
}

.justify {
  text-align: justify;
}

.narrow {
  max-width: 650px;
  margin: 20px auto;
}

.text-indent {
  margin-left: 20px;
}

.small {
  color: var(--text-muted);
  font-size: 0.88em;
}

/* =========================================================
   LINKS
========================================================= */

a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--gold-light);
}

/* =========================================================
   DIVIDERS
========================================================= */

.divider::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin-top: 12px;
  background: linear-gradient(to right, var(--gold), transparent);
  transition: width 0.35s ease, opacity 0.35s ease;
}

.center.divider::after {
  margin: 14px auto 0;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.8;
}

.logo:hover .divider::after,
.section:hover .divider::after {
  width: 180px;
  opacity: 1;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(143,185,150,0.25), transparent);
  margin: var(--space-xl) 0;
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
  margin-top: var(--space-2xl);
}

/* =========================================================
   BUTTONS
========================================================= */

.button {
  display: block;
  text-align: center;
  margin: var(--space-lg) auto;
  padding: 15px 24px;
  max-width: 320px;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(to bottom, #162019, #101510);
  color: var(--gold);
  border: 1px solid var(--forest-light);
  font-family: 'Jost', sans-serif;
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  box-shadow: 0 4px 15px var(--shadow-dark);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.button:hover {
  transform: translateY(-3px);
  color: var(--gold-light);
  border-color: var(--sage);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.8),
    0 0 18px var(--glow-green),
    0 0 10px var(--glow-gold),
    inset 0 0 12px rgba(143,185,150,0.08);
}

.button:active {
  transform: translateY(-1px);
}

/* =========================================================
   PROFILE
========================================================= */

.profile {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.profile-img-wrap {
  flex-shrink: 0;
  width: clamp(200px, 30vw, 320px);
}

.profile-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.profile-text {
  flex: 1;
  min-width: 0;
}

.profile-text ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.profile-text li {
  margin-bottom: 8px;
  color: var(--text-soft);
}

.profile-text p {
  margin: 0 0 12px 0;
}

.quote {
  margin-top: var(--space-md);
  padding: 16px 20px;
  border-left: 2px solid var(--gold);
  color: var(--text-soft);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  line-height: 1.6;
  background: rgba(212,166,60,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* =========================================================
   PROGRAM GRID
========================================================= */

.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* =========================================================
   CARDS
========================================================= */

.card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(143,185,150,0.35);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.6),
    0 0 18px rgba(63,122,90,0.20),
    inset 0 0 12px rgba(143,185,150,0.06);
}

.card h3 {
  color: var(--forest-light);
  margin-bottom: 10px;
  line-height: 1.3;
}

.meta {
  font-size: 0.88em;
  color: #bcbcbc;
  margin-bottom: 6px;
  line-height: 1.5;
}

.price {
  margin-top: 14px;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 0.95em;
}

/* =========================================================
   PRODUCT BOX
========================================================= */

.product {
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-top: var(--space-md);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

/* =========================================================
   CONTACT FORM SECTION
========================================================= */

.form-section {
  width: 100%;
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 50px) clamp(20px, 6vw, 50px);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  text-align: center;
}

.form-wrapper h1 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}

.form-wrapper .highlight {
  display: block;
  margin-bottom: var(--space-lg);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.7;
  opacity: 0.88;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vw, 22px);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: clamp(14px, 2.5vw, 18px) clamp(16px, 3vw, 22px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: white;
  font-family: 'Jost', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1rem);
  line-height: 1.6;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  /* Prevent iOS zoom on focus */
  font-size: max(16px, 1rem);
}

.contact-form textarea {
  min-height: clamp(150px, 30vw, 220px);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(143,185,150,0.5);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 25px rgba(63,122,90,0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.submit-btn {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  padding: clamp(15px, 2.5vw, 18px);
}

.success-message,
.error-message {
  margin-bottom: 20px;
  font-size: 0.95rem;
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.success-message {
  color: #7dff9b;
  background: rgba(125,255,155,0.08);
  border: 1px solid rgba(125,255,155,0.2);
}

.error-message {
  color: #ff8b8b;
  background: rgba(255,139,139,0.08);
  border: 1px solid rgba(255,139,139,0.2);
}

/* =========================================================
   SELECTION
========================================================= */

::selection {
  background: rgba(143,185,150,0.25);
  color: white;
}

/* =========================================================
   SCROLLBAR (desktop)
========================================================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0f0c;
}

::-webkit-scrollbar-thumb {
  background: #294836;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f7a5a;
}

/* =========================================================
   RESPONSIVE — Tablet (≤ 860px)
========================================================= */

@media (max-width: 860px) {

  .programs {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile {
    gap: var(--space-md);
  }

  .profile-img-wrap {
    width: clamp(160px, 28vw, 240px);
  }

}

/* =========================================================
   RESPONSIVE — Mobile (≤ 600px)
========================================================= */

@media (max-width: 600px) {

  :root {
    --space-2xl: 60px;
    --space-xl:  40px;
    --space-lg:  28px;
    --space-md:  18px;
  }

  .container {
    padding: 28px 18px;
  }

  /* Stack profile vertically */
  .profile {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .profile-img-wrap {
    width: 100%;
    max-width: 320px;
  }

  /* Single column cards */
  .programs {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Full-width button */
  .button {
    width: 100%;
    max-width: none;
  }

  /* Section spacing */
  .section {
    margin-top: 60px;
  }

  /* Form */
  .form-wrapper {
    border-radius: 18px;
  }

  /* Make quote readable */
  .quote {
    padding: 14px 16px;
  }

}

/* =========================================================
   RESPONSIVE — Very small (≤ 380px)
========================================================= */

@media (max-width: 380px) {

  .container {
    padding: 20px 14px;
  }

}

/* =========================================================
   TOUCH DEVICES — Remove hover animations (perf)
========================================================= */

@media (hover: none) {

  .card:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
  }

  .button:hover {
    transform: none;
    box-shadow: 0 4px 15px var(--shadow-dark);
  }

  h1:hover::after,
  h2:hover::after,
  h3:hover::after {
    width: 0;
  }

}
.media-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
}
.media-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: none;
}
/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

}
