/* ─────────────────────────────────────────────
   Nearby Studio — styles.css
   Brand colours, layout, components & animations
   ───────────────────────────────────────────── */

/* ─── VARIABLES ─── */
:root {
  --terra: #C8603A;
  --terra-light: #E07B54;
  --cream: #FAF4EE;
  --warm-white: #FDF9F5;
  --bark: #3A2E28;
  --bark-mid: #6B5148;
  --sand: #E8D5C4;
  --sand-light: #F2E8DF;
  --moss: #7A8C6E;
  --sky: #8BB4C0;
}

/* ─── RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--bark);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem;
  background: rgba(253,249,245,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,96,58,0.12);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--bark); text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo span { color: var(--terra); }
.nav-links { display: flex; gap: 2.4rem; list-style: none; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  color: var(--bark-mid); transition: color 0.2s;
}
.nav-links a:hover { color: var(--terra); }
.nav-cta {
  background: var(--terra); color: white;
  padding: 0.6rem 1.4rem; border-radius: 2rem;
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
  letter-spacing: 0.04em; transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--bark); transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 80px; position: relative; overflow: hidden;
}

.hero-bg-blob {
  position: absolute; top: -10%; right: -5%; width: 55%; height: 80%;
  background: radial-gradient(ellipse at 70% 30%, var(--sand) 0%, var(--sand-light) 50%, transparent 75%);
  border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
  opacity: 0.7; z-index: 0;
  animation: blobFloat 8s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 3rem 6rem 4rem; position: relative; z-index: 1;
}
.hero-eyebrow {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--terra);
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp 0.7s 0.2s forwards;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 1.5px; background: var(--terra);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 5rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.02em; color: var(--bark);
  margin-bottom: 1.6rem;
  opacity: 0; animation: fadeUp 0.7s 0.4s forwards;
}
.hero-title em { color: var(--terra); font-style: italic; }
.hero-sub {
  font-size: 1.05rem; line-height: 1.7; color: var(--bark-mid);
  max-width: 440px; margin-bottom: 2.8rem;
  opacity: 0; animation: fadeUp 0.7s 0.6s forwards;
}
.hero-actions {
  display: flex; gap: 1rem; align-items: center;
  opacity: 0; animation: fadeUp 0.7s 0.8s forwards;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--terra); color: white;
  padding: 0.9rem 2rem; border-radius: 2.5rem;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: all 0.25s; display: inline-flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(200,96,58,0.3);
}
.btn-primary:hover { background: var(--bark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(58,46,40,0.25); }
.btn-secondary {
  color: var(--bark-mid); text-decoration: none; font-size: 0.92rem;
  font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.btn-secondary:hover { color: var(--terra); }
.btn-arrow { font-size: 1.1rem; transition: transform 0.2s; }
.btn-primary:hover .btn-arrow, .btn-secondary:hover .btn-arrow { transform: translateX(3px); }

/* ─── HERO RIGHT / CARDS ─── */
.hero-right {
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 4rem 6rem 2rem; position: relative; z-index: 1;
}
.hero-visual {
  width: 100%; max-width: 460px; position: relative;
  opacity: 0; animation: fadeIn 1s 0.5s forwards;
}
.hero-card-main {
  background: var(--bark); border-radius: 2rem;
  padding: 2.5rem; color: white; position: relative; overflow: hidden;
}
.hero-card-main::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 200px; height: 200px; background: var(--terra);
  border-radius: 50%; opacity: 0.25;
}
.card-tag {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terra-light); margin-bottom: 1rem;
}
.card-title {
  font-family: 'Playfair Display', serif; font-size: 1.6rem;
  line-height: 1.3; margin-bottom: 1.5rem;
}
.card-stats { display: flex; gap: 2rem; }
.stat-num {
  font-family: 'Playfair Display', serif; font-size: 2rem;
  font-weight: 700; color: var(--terra-light);
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }

.hero-card-small {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--cream); border-radius: 1.2rem;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(58,46,40,0.15);
  display: flex; align-items: center; gap: 1rem;
}
.card-icon { font-size: 1.8rem; }
.card-small-text { font-size: 0.82rem; font-weight: 500; color: var(--bark); }
.card-small-sub { font-size: 0.75rem; color: var(--bark-mid); }

.hero-pill {
  position: absolute; top: 2rem; right: 1rem;
  background: var(--moss); color: white;
  border-radius: 2rem; padding: 0.5rem 1rem;
  font-size: 0.78rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.4rem;
}
.pulse { width: 6px; height: 6px; background: #A8F0A8; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

/* ─── TICKER ─── */
.ticker { background: var(--terra); padding: 0.8rem 0; overflow: hidden; }
.ticker-inner { display: flex; gap: 3rem; animation: ticker 25s linear infinite; white-space: nowrap; }
.ticker-item { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: white; display: flex; align-items: center; gap: 1rem; }
.ticker-dot { width: 4px; height: 4px; background: rgba(255,255,255,0.5); border-radius: 50%; }
@keyframes ticker { from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* ─── SHARED SECTION STYLES ─── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; display: block; width: 28px; height: 1.5px; background: var(--terra);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--bark); line-height: 1.2;
}
.section-title em { color: var(--terra); font-style: italic; }

/* ─── SERVICES ─── */
.services { padding: 7rem 4rem; background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }

.service-card {
  background: var(--warm-white); border-radius: 1.5rem;
  padding: 2.4rem; transition: all 0.3s; cursor: default;
  border: 1.5px solid transparent; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--terra-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.service-card:hover { border-color: var(--sand); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(58,46,40,0.1); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon { font-size: 2.2rem; margin-bottom: 1.2rem; }
.service-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--bark); margin-bottom: 0.8rem; }
.service-desc { font-size: 0.9rem; line-height: 1.7; color: var(--bark-mid); margin-bottom: 1.4rem; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.service-list li { font-size: 0.82rem; color: var(--bark-mid); display: flex; align-items: center; gap: 0.5rem; }
.service-list li::before { content: '→'; color: var(--terra); font-size: 0.75rem; }

/* ─── ABOUT ─── */
.about {
  padding: 7rem 4rem; display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; max-width: 1200px; margin: 0 auto;
}
.about-visual { position: relative; }
.about-main-box {
  background: var(--bark); border-radius: 2rem;
  padding: 3rem; color: white; position: relative; overflow: hidden;
}
.about-main-box::after {
  content: '"'; position: absolute; bottom: -1rem; right: 1.5rem;
  font-family: 'Playfair Display', serif; font-size: 12rem; line-height: 1;
  color: rgba(200,96,58,0.2); pointer-events: none;
}
.about-quote {
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-style: italic;
  line-height: 1.6; position: relative; z-index: 1; margin-bottom: 1.5rem;
}
.about-author { font-size: 0.82rem; color: var(--terra-light); letter-spacing: 0.1em; text-transform: uppercase; }
.about-badge {
  position: absolute; top: -1rem; right: 2rem;
  background: var(--terra); color: white;
  border-radius: 1rem; padding: 0.7rem 1.2rem;
  font-size: 0.78rem; font-weight: 500; text-align: center;
}
.about-values {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem;
}
.value-chip {
  background: var(--cream); border-radius: 0.8rem; padding: 0.8rem 1rem;
  font-size: 0.82rem; color: var(--bark); font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem;
}

.about-content h2 {
  font-family: 'Playfair Display', serif; font-size: 2.5rem;
  font-weight: 700; line-height: 1.2; color: var(--bark); margin-bottom: 1.4rem;
}
.about-content h2 em { color: var(--terra); font-style: italic; }
.about-content p { font-size: 0.96rem; line-height: 1.8; color: var(--bark-mid); margin-bottom: 1.2rem; }
.about-content p strong { color: var(--bark); font-weight: 500; }

.about-points { list-style: none; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.about-points li { font-size: 0.92rem; color: var(--bark-mid); display: flex; align-items: flex-start; gap: 0.8rem; line-height: 1.5; }
.point-dot { width: 6px; height: 6px; background: var(--terra); border-radius: 50%; margin-top: 0.5rem; flex-shrink: 0; }

/* ─── WORK ─── */
.work { padding: 7rem 4rem; background: var(--sand-light); }
.work-inner { max-width: 1200px; margin: 0 auto; }
.work-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 1.2rem; margin-top: 3.5rem; }

.work-card {
  border-radius: 1.5rem; overflow: hidden; position: relative;
  min-height: 260px; display: flex; align-items: flex-end;
  cursor: pointer; transition: transform 0.3s;
}
.work-card:hover { transform: scale(1.01); }
.work-card:hover .work-overlay { opacity: 1; }

.work-card-1 { background: linear-gradient(135deg, #C8603A 0%, #8B3A2A 100%); }
.work-card-2 { background: linear-gradient(135deg, #3A2E28 0%, #6B5148 100%); }
.work-card-3 { background: linear-gradient(135deg, #7A8C6E 0%, #4A5C3E 100%); }
.work-card-4 { background: linear-gradient(135deg, #8BB4C0 0%, #4A7A8A 100%); grid-column: 1 / 3; }

.work-pattern {
  position: absolute; inset: 0; opacity: 0.08;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 20px 20px;
}
.work-info { padding: 1.6rem; color: white; position: relative; z-index: 1; width: 100%; }
.work-cat { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.3rem; }
.work-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; }

.work-overlay {
  position: absolute; inset: 0; background: rgba(58,46,40,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.work-overlay-text { color: white; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.work-cta { text-align: center; margin-top: 2.5rem; }

/* ─── PROCESS ─── */
.process { padding: 7rem 4rem; background: var(--warm-white); }
.process-inner { max-width: 900px; margin: 0 auto; }
.process-steps { display: flex; flex-direction: column; gap: 0; margin-top: 3.5rem; }

.process-step {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 2rem; padding: 2rem 0; position: relative;
}
.process-step:not(:last-child)::after {
  content: ''; position: absolute; left: 38px; top: 80px; bottom: -40px;
  width: 2px; background: linear-gradient(to bottom, var(--sand), transparent);
}
.step-num {
  width: 56px; height: 56px; background: var(--terra); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
  flex-shrink: 0;
}
.step-content h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--bark); margin-bottom: 0.5rem; }
.step-content p { font-size: 0.9rem; line-height: 1.7; color: var(--bark-mid); }

/* ─── TESTIMONIALS ─── */
.testimonials { padding: 7rem 4rem; background: var(--bark); }
.testimonials .section-eyebrow { color: var(--terra-light); }
.testimonials .section-eyebrow::before, .testimonials .section-eyebrow::after { background: var(--terra-light); }
.testimonials .section-title { color: white; }

.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 3.5rem auto 0; }
.testi-card {
  background: rgba(255,255,255,0.06); border-radius: 1.5rem;
  padding: 2rem; border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
}
.testi-card:hover { background: rgba(255,255,255,0.1); }
.testi-stars { color: var(--terra-light); font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.testi-text { font-family: 'Playfair Display', serif; font-size: 1rem; font-style: italic; line-height: 1.7; color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.testi-author { display: flex; align-items: center; gap: 0.8rem; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: white;
}
.av1 { background: var(--terra); }
.av2 { background: var(--moss); }
.av3 { background: var(--sky); }
.testi-name { font-size: 0.85rem; font-weight: 500; color: white; }
.testi-biz { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ─── CTA ─── */
.cta-section {
  padding: 8rem 4rem; text-align: center; position: relative; overflow: hidden;
  background: var(--cream);
}
.cta-blob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(200,96,58,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700; color: var(--bark); line-height: 1.2; margin-bottom: 1.2rem; position: relative;
}
.cta-section h2 em { color: var(--terra); font-style: italic; }
.cta-section p { font-size: 1rem; color: var(--bark-mid); max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.7; position: relative; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; position: relative; }
.cta-note { font-size: 0.8rem; color: var(--bark-mid); margin-top: 1rem; position: relative; }

/* ─── FOOTER ─── */
footer {
  background: var(--bark); color: rgba(255,255,255,0.6);
  padding: 3rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: white; font-weight: 700; }
.footer-logo span { color: var(--terra-light); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--terra-light); }
.footer-copy { font-size: 0.78rem; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 100px 1.5rem 3rem; }
  .hero-right { display: none; }
  .hero-left { padding: 0; }
  .services, .work, .process, .testimonials, .cta-section { padding: 4rem 1.5rem; }
  .about { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 2rem; }
  .about-visual { display: none; }
  .services-grid, .testi-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card-4 { grid-column: auto; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem 1.5rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
