/* ===========================================================
   EVAS DESIGNS — Design-Build Studio
   Palette: warm plaster / charcoal / raw umber / slate-sage
   Type: Fraunces (display) + Inter (body/UI)
=========================================================== */

:root {
  --plaster: #EDE9E2;
  --surface: #FAF8F5;
  --charcoal: #1C1B19;
  --charcoal-soft: #3A3733;
  --umber: #8A6D4F;
  --umber-deep: #6B5138;
  --slate-sage: #4A5A4E;
  --line: #D9D3C7;
  --line-strong: #1C1B19;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --gutter: 32px;

  --speed: 220ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--charcoal);
}

p { margin: 0; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--umber);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 233, 226, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}

.brand span {
  color: var(--umber);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  font-size: 0.94rem;
  color: var(--charcoal-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) ease, color var(--speed) ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--charcoal);
  border-bottom-color: var(--umber);
}

.nav-cta {
  background: var(--charcoal);
  color: var(--surface) !important;
  padding: 11px 22px;
  font-size: 0.9rem;
  border: 1px solid var(--charcoal);
  transition: background var(--speed) ease, color var(--speed) ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform var(--speed) ease, opacity var(--speed) ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

.nav-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 0.95rem;
  border: 1px solid var(--charcoal);
  transition: background var(--speed) ease, color var(--speed) ease, transform var(--speed) ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--surface);
}
.btn-primary:hover { background: var(--umber-deep); border-color: var(--umber-deep); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--surface); }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: end;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--umber-deep);
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  max-width: 15ch;
}

.hero-sub {
  margin-top: 28px;
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stat {
  border-left: 1px solid var(--line-strong);
  padding-left: 24px;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 1;
  color: var(--charcoal);
  display: block;
}

.hero-stat .label {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  max-width: 24ch;
}

/* ---------- Section scaffolding ---------- */

section { padding: 88px 0; }

.section-tight { padding: 64px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  max-width: 18ch;
}

.section-head .desc {
  max-width: 38ch;
  color: var(--charcoal-soft);
  font-size: 1.02rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.bg-surface { background: var(--surface); }
.bg-charcoal { background: var(--charcoal); color: var(--plaster); }
.bg-charcoal h2, .bg-charcoal h3 { color: var(--surface); }
.bg-charcoal .desc { color: #B9B4A9; }

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--surface);
  padding: 40px 36px;
  transition: background var(--speed) ease;
}

.service-card:hover { background: var(--plaster); }

.service-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--umber);
  margin-bottom: 22px;
  display: block;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--charcoal-soft);
  font-size: 0.96rem;
}

/* ---------- Process (timeline — genuinely sequential) ---------- */

.process-list {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.process-step:last-child { border-bottom: 1px solid var(--line); }

.process-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--umber);
}

.process-step h3 { font-size: 1.2rem; }

.process-step p { color: var(--charcoal-soft); font-size: 0.96rem; }

/* ---------- Portfolio ---------- */

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--charcoal-soft);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(to top, rgba(28,27,25,0.85), transparent);
  color: var(--surface);
}

.portfolio-caption .cat { font-size: 0.82rem; opacity: 0.8; }
.portfolio-caption h3 { font-size: 1.1rem; color: var(--surface); margin-top: 4px; }

/* ---------- Testimonials ---------- */

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

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  display: block;
}

/* ---------- Stats strip ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-block {
  padding: 40px 32px;
  border-left: 1px solid var(--line);
}
.stat-block:first-child { border-left: none; }

.stat-block .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
}

.stat-block .label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 80px 0;
}

.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  max-width: 16ch;
}

/* ---------- Forms ---------- */

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

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.86rem;
  color: var(--charcoal-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 13px 16px;
  color: var(--charcoal);
  transition: border-color var(--speed) ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--umber);
}

.form-field textarea { resize: vertical; min-height: 120px; }

/* ---------- Contact page specifics ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.contact-detail {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.contact-detail:last-child { border-bottom: 1px solid var(--line); }

.contact-detail .icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--umber);
}

.contact-detail h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-detail p, .contact-detail a { color: var(--charcoal-soft); font-size: 0.95rem; }
.contact-detail a:hover { color: var(--umber-deep); }

.map-embed {
  border: 1px solid var(--line);
  margin-top: 32px;
  filter: grayscale(45%) contrast(1.02);
}
.map-embed iframe { width: 100%; height: 280px; border: none; display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--plaster);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(237,233,226,0.15);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--surface);
}

.footer-brand-desc {
  margin-top: 16px;
  color: #B9B4A9;
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 0.85rem;
  color: var(--surface);
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-col a, .footer-col p {
  display: block;
  color: #B9B4A9;
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color var(--speed) ease;
}

.footer-col a:hover { color: var(--surface); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.85rem;
  color: #8B8781;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- WhatsApp floating button ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform var(--speed) ease;
}

.whatsapp-float:hover { transform: scale(1.08); }

.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

.page-hero .crumb {
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin-bottom: 18px;
}

.page-hero .crumb a:hover { color: var(--umber-deep); }

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  max-width: 20ch;
}

.page-hero .desc {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--charcoal-soft);
  max-width: 55ch;
}

/* ---------- Service detail rows (Services page) ---------- */

.service-detail {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: 1px solid var(--line); }

.service-detail .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--umber);
}

.service-detail h3 { font-size: 1.6rem; margin-bottom: 16px; }
.service-detail p { color: var(--charcoal-soft); margin-bottom: 20px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
  font-size: 0.84rem;
  padding: 7px 14px;
  border: 1px solid var(--line);
  color: var(--charcoal-soft);
}

/* ---------- Team / about ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.value-card {
  background: var(--surface);
  padding: 40px;
}

.value-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.value-card p { color: var(--charcoal-soft); font-size: 0.96rem; }

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

.about-story img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-story .copy p + p { margin-top: 18px; }
.about-story .copy p { color: var(--charcoal-soft); }

/* ---------- FAQ (accordion) ---------- */

.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--charcoal);
  cursor: pointer;
}

.faq-q .plus {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--umber);
  transition: transform var(--speed) ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q .plus { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
}

.faq-a p {
  padding-bottom: 26px;
  color: var(--charcoal-soft);
  max-width: 62ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-stat { border-left: none; border-top: 1px solid var(--line-strong); padding-left: 0; padding-top: 20px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(3) { border-left: none; }
  .stat-block { border-bottom: 1px solid var(--line); }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .service-detail { grid-template-columns: 1fr; gap: 20px; }
  .about-story { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; width: 100%; background: var(--plaster); flex-direction: column; align-items: flex-start; padding: 40px var(--gutter); gap: 28px; transform: translateX(100%); transition: transform var(--speed) ease; overflow-y: auto; visibility: hidden; }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { font-size: 1.2rem; }
  .nav-toggle { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-block { border-left: none !important; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .process-step { grid-template-columns: 1fr; gap: 8px; }
  .service-detail { padding: 40px 0; }
}
