/* THEME: ALIGNED MOVEMENT */
.theme-aligned {
  --color-primary: #5A4E3C;
  --color-bg: #F8F7F5;
  --color-text: #2E2E2E;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

.theme-aligned {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

/* NAVIGATION FIXES */
.theme-aligned .nav {
  background: rgba(248, 247, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1.2rem 0;
}

.theme-aligned .logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.theme-aligned .logo span {
  font-style: italic;
  text-transform: capitalize;
  font-weight: 400;
}

.theme-aligned .nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.theme-aligned .nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
}

.theme-aligned .nav-links a:hover {
  color: var(--color-primary);
}

/* HERO SIDE-ALIGNMENT */
.theme-aligned .hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: url('/assets/aligned/aligned:hero-bg.jpg');
  background-position: center bottom !important;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.theme-aligned .hero-layout {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.theme-aligned .hero-text-block {
  max-width: 520px;
  text-align: left;
  padding: 3rem;
  background: rgba(248, 247, 245, 0.75); 
  backdrop-filter: blur(8px);
}

.theme-aligned .hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* BUTTONS */
.theme-aligned .btn-primary {
  margin-top: 1rem;
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 1.2rem 2.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  border-radius: 2px;
}

/* PHILOSOPHY CTA SPACING */
.theme-aligned .cta-wrapper {
  margin-top: 3rem;
  text-align: center;
}

/* Reusing your existing primary button style */
.theme-aligned .btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 1.2rem 2.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  transition: opacity 0.3s ease;
}

/* --- OFFERINGS CARD STYLING --- */

/* SPECIFIC OFFSET FOR OFFERINGS SECTION */
#offerings {
  border-top: 1px solid rgba(90, 78, 60, 0.05);
  background-color: #ffffff;
  padding-bottom: 6rem;
}

.theme-aligned .section {
  padding: 4rem 0; 
  text-align: center;
  scroll-margin-top: 100px; 
}

/* SPECIFIC OFFSET FOR OFFERINGS SECTION */
#offerings {
  border-top: 1px solid rgba(90, 78, 60, 0.05);
  background-color: #ffffff;
}

#offerings .section-title {
  margin-top: 0 auto;
}

/* The Grid Container */
.theme-aligned .template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

/* The Individual Card */
.theme-aligned .template-card {
  background: #ffffff; 
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.theme-aligned .template-card:hover {
  transform: translateY(-10px); 
  box-shadow: 0 20px 40px rgba(90, 78, 60, 0.05); 
}

/* --- OFFERINGS IMAGE INTEGRATION --- */

/* Individual Session Image */
#private-img {
  background-image: url('/assets/aligned/private.jpg');
}

/* Group Session Image */
#group-img {
  background-image: url('/assets/aligned/group.jpg');
}

/* On-Demand Image */
#digital-img {
  background-image: url('/assets/aligned/digital.jpg');
}

/* General Box Styling */
.theme-aligned .img-box {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 2rem;
  display: block; 
  border: 1px solid rgba(0,0,0,0.03);
}

.theme-aligned .template-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.theme-aligned .template-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #555;
}

/* Card Button (Outline Style) */
.theme-aligned .btn-outline {
  display: inline-block;
  padding: 0.5rem 2rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
}

.theme-aligned .btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* CONTACT SECTION REFINEMENT */
#contact.section {
  background-color: #ffffff; 
  padding-top: 4rem;
  padding-bottom: 10rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Styling the input fields for more space */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(90, 78, 60, 0.2);
  background-color: #fcfaf7;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary); /* Highlights field on click */
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* MOBILE HERO ADJUSTMENT */
@media (max-width: 768px) {
  .theme-aligned .hero-section {
    background-position: right 100% !important;
    background-size: cover; 
  }

  .theme-aligned .hero-text-block {
    background: rgba(255, 255, 255, 0.85);
    margin: 0 1rem;
    padding: 2rem;
  }

  .theme-aligned #contact.section {
    padding-top: 4rem;
    padding-bottom: 6rem; /* Tighter for mobile */
  }

  .theme-aligned .contact-form {
    width: 100%;
    padding: 0 1rem; /* Adds a safety buffer so fields don't touch screen edges */
  }

  .theme-aligned .contact-form input,
  .theme-aligned .contact-form textarea {
    width: 100%;
    /* CRITICAL: includes padding in the 100% width calculation */
    box-sizing: border-box; 
    
    margin-bottom: 1rem; /* Even spacing between stacked fields */
    font-size: 16px; /* Prevents iOS from auto-zooming on focus */
  }
}