/* ===========================
   EnrichBuild — Emily Keyward Style
   Warm, elegant, editorial aesthetic
   =========================== */

:root {
  --cream:    #FAF7F2;
  --sand:     #EDE8DF;
  --warm:     #D4C5B0;
  --taupe:    #B8A898;
  --charcoal: #2C2C2C;
  --espresso: #3D3228;
  --accent:   #B8860B;
  --accent-soft: #D4A94220;
  --white:    #FFFFFF;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Montserrat', 'Helvetica Neue', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--espresso);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }

em {
  font-style: italic;
  color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
}

.section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-label.center {
  text-align: center;
}

/* ===========================
   Navigation
   =========================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 10px 24px;
  border: 1px solid var(--espresso);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--espresso);
  color: var(--cream) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--espresso);
  transition: 0.3s;
}

/* ===========================
   Hero
   =========================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--cream) 0%, #F5EDE0 40%, #EDE2D0 100%);
}

/* Animated background orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, #D4A94240, transparent 70%);
  animation-duration: 8s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -5%;
  left: -5%;
  background: radial-gradient(circle, #C9A87C30, transparent 70%);
  animation-duration: 10s;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #B8860B15, transparent 70%);
  animation-duration: 12s;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Subtle grid lines */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 134, 11, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 134, 11, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(184, 134, 11, 0.08);
  border: 1px solid rgba(184, 134, 11, 0.15);
  border-radius: 40px;
  padding: 10px 24px;
  margin-bottom: 32px;
  animation: fadeDown 0.8s ease both;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

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

/* Title */
.hero-title {
  margin-bottom: 28px;
}

.hero-line {
  display: block;
}

.hero-line-1 {
  animation: slideUp 0.7s ease both;
  animation-delay: 0.2s;
}

.hero-line-2 {
  animation: slideUp 0.7s ease both;
  animation-delay: 0.4s;
}

.hero-title em {
  position: relative;
  font-style: italic;
  color: var(--accent);
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(184, 134, 11, 0.15);
  border-radius: 4px;
  z-index: -1;
  animation: expandWidth 0.6s ease both;
  animation-delay: 1s;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 100%; }
}

.hero-sub {
  font-size: 1.1rem;
  color: #6B6259;
  max-width: 560px;
  margin: 0 auto 40px;
  animation: slideUp 0.7s ease both;
  animation-delay: 0.6s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.7s ease both;
  animation-delay: 0.8s;
}

/* Social proof strip */
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
  animation: slideUp 0.7s ease both;
  animation-delay: 1s;
}

.hero-avatars {
  display: flex;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  border: 2px solid var(--cream);
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

.hero-proof p {
  font-size: 0.82rem;
  color: var(--taupe);
}

.hero-proof strong {
  color: var(--espresso);
  font-weight: 600;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeDown 1s ease both;
  animation-delay: 1.4s;
  z-index: 2;
}

.hero-scroll-hint span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--taupe);
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: var(--warm);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--espresso);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--espresso);
  border: 1px solid var(--espresso);
}

.btn-outline:hover {
  background: var(--espresso);
  color: var(--cream);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 0.88rem;
}

/* ===========================
   About
   =========================== */

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--sand), var(--warm));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder span {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--white);
  opacity: 0.6;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  color: #5C5549;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--sand);
}

.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--taupe);
  text-transform: uppercase;
}

/* ===========================
   Services
   =========================== */

.services {
  background: var(--cream);
}

.services h2 {
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 4px;
  border: 1px solid var(--sand);
  transition: all 0.4s ease;
}

.service-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.service-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: #6B6259;
  font-size: 0.95rem;
}

/* ===========================
   Process
   =========================== */

.process {
  background: var(--white);
}

.process h2 {
  margin-bottom: 56px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.process-step {
  text-align: center;
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--warm);
  margin-bottom: 12px;
}

.process-step h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.process-step p {
  font-size: 0.9rem;
  color: #6B6259;
}

/* ===========================
   Testimonials
   =========================== */

.testimonials {
  background: var(--espresso);
  color: var(--cream);
}

.testimonials .section-label {
  color: var(--warm);
}

.testimonials h2 {
  color: var(--cream);
  margin-bottom: 56px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 36px;
}

.testimonial-card p {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--sand);
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card strong {
  font-weight: 500;
  font-size: 0.9rem;
}

.testimonial-card span {
  font-size: 0.78rem;
  color: var(--taupe);
}

/* ===========================
   CTA Section
   =========================== */

.cta-section {
  background: linear-gradient(135deg, var(--sand), var(--cream));
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.05rem;
  color: #6B6259;
  margin-bottom: 36px;
}

/* ===========================
   Contact
   =========================== */

.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-text h2 {
  margin-bottom: 16px;
}

.contact-text p {
  color: #6B6259;
  margin-bottom: 12px;
}

.contact-details {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}

.contact-details p {
  font-weight: 400;
  color: var(--espresso);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--espresso);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--sand);
  border-radius: 2px;
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
}

/* ===========================
   Footer
   =========================== */

.footer {
  background: var(--espresso);
  color: var(--taupe);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--cream);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 0.78rem;
  text-align: center;
}

/* ===========================
   Animations (scroll reveal)
   =========================== */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 960px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(250, 247, 242, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--sand);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 72px 0;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
