/* ================================================
   HOME PAGE SPECIFIC STYLES
   ================================================ */

/* --- Hero Section --- */
#home { 
    height: calc(100vh - var(--header-height)); 
    position: relative; 
    display: flex; 
    align-items: center;
    padding: 0;
}
.hero-video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-video-background video { width: 100%; height: 100%; object-fit: cover; }
.hero-video-background::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); }
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-content h1 { font-family: 'Cormorant', serif; font-size: clamp(3.5rem, 8vw, 8rem); font-weight: 400; color: var(--cream-color); line-height: 1.2; text-transform: uppercase; text-align: left; }
.learn-more-container { text-align: center; margin-top: 10rem; }
.divider { width: 100%; height: 1px; background-color: rgba(255, 250, 235, 0.6); margin: 0 auto; }
.learn-more { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; margin-top: 1rem; }
.learn-more-text { color: rgba(255, 250, 235, 0.9); font-size: 1rem; letter-spacing: 1px; transition: color 0.3s ease; }
.learn-more:hover .learn-more-text { color: #fffaeb; }
.arrow { font-size: 1.5rem; color: rgba(255, 250, 235, 0.9); margin-top: 0.5rem; }

/* --- Shared Section Styles --- */
.section-top-line { border: none; height: 1px; width: 100%; margin: 0 auto 3rem auto; }
.section-top-line.gold { background-color: rgba(255, 255, 255, 0.6); }
.section-top-line.dark { background-color: rgba(255, 255, 255, 0.4); }

/* --- Why Heima Section --- */
#WHY-HEIMA { padding: 0; }
.WHY-HEIMA-container { display: flex; background-color: var(--gold-color); }
.WHY-HEIMA-text-column { flex-basis: 50%; padding: 5rem 6%; color: var(--text-color); display: flex; flex-direction: column; justify-content: center; }
.WHY-HEIMA-text-column h2 { font-family: 'Cormorant', serif; font-size: clamp(2.5rem, 4vw, 3.5rem); color: var(--text-color); font-weight: 400; text-transform: uppercase; margin-bottom: 2rem; }
.WHY-HEIMA-text-column p { font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; max-width: 500px; }
.WHY-HEIMA-text-column p:last-child { margin-bottom: 0; }
.WHY-HEIMA-text-column strong { font-weight: 600; }
.WHY-HEIMA-image-column { flex-basis: 50%; min-height: 400px; overflow: hidden; }
.WHY-HEIMA-image-column img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.WHY-HEIMA-image-column:hover img { transform: scale(1.05); }

/* --- How We Work Section --- */
#how-we-work { background-color: var(--dark-brown); color: var(--cream-color); }
.work-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; gap: 2rem; }
.work-title { font-family: 'Cormorant', serif; font-size: clamp(2.5rem, 4vw, 3.5rem); color: var(--cream-color); font-weight: 400; text-transform: uppercase; flex-basis: 50%; line-height: 1.2; }
.work-subtitle { text-align: left; }
.work-subtitle p { margin: 0; line-height: 1.4; color: rgba(255, 250, 235, 0.8); }
.work-subtitle p strong { color: var(--cream-color); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.work-card { border: 1px solid rgba(255, 250, 235, 0.4); padding: 2rem; transition: background-color 0.3s, transform 0.3s; }
.work-card:hover { background-color: rgba(255, 255, 255, 0.05); transform: translateY(-5px); }
.work-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--cream-color); }
.work-card p { color: rgba(255, 250, 235, 0.8); font-size: 0.95rem; line-height: 1.7; }

/* --- Services Section --- */
#services { background-color: var(--gold-color); color: var(--cream-color); }
.services-title { font-family: 'Cormorant', serif; font-size: clamp(2.5rem, 4vw, 3.5rem); color: var(--cream-color); font-weight: 400; text-transform: uppercase; margin-bottom: 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.service-item { overflow: hidden; }
.service-item img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.service-item:hover img { transform: scale(1.05); }
.service-caption { text-align: center; padding-top: 1.5rem; }
.service-caption h4 { font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--cream-color); }
.caption-line { border: none; height: 1px; background-color: rgba(255, 250, 235, 0.6); width: 100%; }

/* --- Responsive Styles --- */
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 850px) { .WHY-HEIMA-container, .work-header { flex-direction: column; align-items: flex-start; } .services-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

/* ================================================
   ELEMENT ANIMATION STYLES
   ================================================ */

.animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Staggered delays for a cascading effect */
.animate-item:nth-child(1) { transition-delay: 0.1s; }
.animate-item:nth-child(2) { transition-delay: 0.2s; }
.animate-item:nth-child(3) { transition-delay: 0.3s; }
.animate-item:nth-child(4) { transition-delay: 0.4s; }
.animate-item:nth-child(5) { transition-delay: 0.5s; }
.animate-item:nth-child(6) { transition-delay: 0.6s; }

.animate-item.visible {
    opacity: 1;
    transform: translateY(0);
}