/* ============================================
   LAYOUTS.CSS - Common Layout Patterns
   Raidho Coaching Website
   ============================================ */

/* Hero Section Layout */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  text-align: center;
  padding: var(--space-lg);
}

.hero h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-md);
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: var(--font-size-xl);
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

/* Dual Photo Hero */
.hero-dual {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4vh;
  padding-bottom: 4vh;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-secondary) 100%);
}

.hero-dual-background {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  object-fit: cover;
  z-index: 1;
}

.hero-dual-portrait {
  position: relative;
  z-index: 2;
  max-width: 500px;
  width: 90%;
  animation: fadeInUp 2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.hero-dual-portrait img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

/* NOTE: .section styles moved to components.css to avoid conflicts */

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.two-column.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

.two-column-image {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, box-shadow;
}

html body .two-column-image:hover {
  -webkit-transform: scale(1.03);
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

/* NOTE: .grid-2, .grid-3, .grid-4 styles moved to main.css to avoid conflicts */

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  justify-content: space-between;
  align-items: center;
}

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

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

/* NOTE: .container styles moved to main.css to avoid conflicts */

/* NOTE: .accordion styles moved to components.css to avoid conflicts */

/* Letter/Message Block */
.letter-block {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: var(--space-xl);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  font-family: var(--font-serif);
  position: relative;
  box-shadow: var(--shadow-md);
}

.letter-seal {
  position: absolute;
  top: -20px;
  left: var(--space-lg);
}

.letter-header {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-lg);
  font-weight: var(--font-weight-semibold);
}

.letter-body {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
}

.letter-body p {
  margin-bottom: var(--space-lg);
}

.letter-signature {
  margin-top: var(--space-xl);
  font-style: italic;
}
