/* Narla Local — draft homepage
   Visual style inspired by the look and feel of profresults.com
   (cream ground, Inter headlines, tight tracking, black pill buttons,
   italic serif accents). Copy, mark and images are original. */

:root {
  --brand: "Narla Local"; /* display name is set in index.html; this is a reminder only */
  --bg: #efebe5;
  --bg-warm: #f7f2ea;
  --bg-soft: #f3ece1;
  --card: #f6f1ea;
  --white: #ffffff;
  --text: #111111;
  --muted: rgba(0, 0, 0, 0.48);
  --muted-strong: rgba(0, 0, 0, 0.62);
  --line: #111111;
  --accent: #0099ff;
  --button: #111111;
  --button-text: #ffffff;
  --highlight: #ffe27a;
  --highlight-line: #e0b83a;
  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-panel: 28px;
  --radius-media: 16px;
  --radius-input: 12px;
  --max: 1120px;
  --narrow: 720px;
  --pad: 24px;
  --header-h: 84px;
  --font: "Inter", "Inter Placeholder", system-ui, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ---------- placeholders still to fill ---------- */
.ph {
  display: inline;
  background: var(--highlight);
  color: var(--text);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--highlight-line);
  font-weight: 500;
  white-space: nowrap;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ph-block {
  display: block;
  background: var(--highlight);
  box-shadow: inset 0 0 0 1px var(--highlight-line);
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 500;
  color: var(--text);
}

/* ---------- layout helpers ---------- */
.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(var(--narrow), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  background: #000;
  color: #fff;
}

.logo-word {
  font-family: var(--font);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.06em;
  line-height: 1.1;
  white-space: nowrap;
}

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

.nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 8px 12px;
  white-space: nowrap;
  text-decoration: none;
}

.nav a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #111;
  position: relative;
  border-radius: 1px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.header-rule {
  height: 1px;
  background: var(--line);
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--button);
  color: var(--button-text);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  background: #000;
  filter: brightness(1.15);
}

.btn:focus-visible,
.logo:focus-visible,
.nav a:focus-visible,
.service-card:focus-visible,
.faq-item summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 64px);
  letter-spacing: -0.06em;
  line-height: 1.02;
  color: var(--text);
}

.hero .lede {
  margin: 0 0 18px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--muted);
  max-width: 34ch;
}

.hero .follow {
  margin: 0 0 32px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: var(--text);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.hero-note {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* stylised local-search panel — original graphic, not a screenshot */
.hero-visual {
  background: var(--bg-warm);
  border-radius: var(--radius-media);
  padding: 28px 24px 24px;
  min-height: 320px;
  box-shadow: var(--shadow-soft);
}

.search-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.search-chrome svg {
  flex: 0 0 16px;
  color: #111;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 14px;
}

.result.is-you {
  box-shadow: inset 0 0 0 1.5px #111;
}

.result .pin {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.result.is-you .pin {
  background: #111;
}

.result .who {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.result .meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.result .rank {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.visual-caption {
  margin: 16px 4px 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* ---------- section shared ---------- */
section {
  padding: 88px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  background: #efe8de;
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 18px;
}

.section-head {
  text-align: center;
  margin: 0 0 48px;
}

.section-head h2,
h2 {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.06em;
  line-height: 1.1;
}

h3 {
  margin: 0 0 8px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* ---------- services ---------- */
.services {
  padding-top: 64px;
}

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

.service-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  text-decoration: none;
  background: #f3ebe1;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.service-card p {
  margin: 0 0 20px;
  color: var(--muted-strong);
  font-size: 15px;
  letter-spacing: -0.015em;
  line-height: 1.5;
  flex: 1;
}

.more {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: auto;
}

/* ---------- how it works ---------- */
.how {
  padding-top: 40px;
}

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

.step {
  padding: 8px 0 0;
}

.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.step h3 {
  font-size: 24px;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}

.step p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

/* ---------- who ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
  gap: 28px 40px;
}

.person {
  min-width: 0;
}

.photo {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: var(--bg-warm);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  margin-bottom: 16px;
}

.photo .ph-block {
  max-width: 220px;
}

.person h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.person .role {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- why ---------- */
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  width: min(var(--narrow) + 80px, calc(100% - 48px));
  margin-inline: auto;
}

.why-item h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.why-item p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.015em;
}

/* ---------- faq ---------- */
.faq-list {
  width: min(720px, calc(100% - 48px));
  margin-inline: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.03em;
  line-height: 1.3;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item p {
  margin: 0;
  padding: 0 16px 20px 0;
  font-size: 15px;
  line-height: 1.55;
  color: #323232;
}

/* ---------- cta panel ---------- */
.cta {
  padding: 40px 0 20px;
}

.cta-panel-wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  padding-top: 28px;
}

.cta-mark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  z-index: 1;
}

.cta-panel {
  background: var(--bg-warm);
  border-radius: var(--radius-panel);
  padding: 64px 32px 56px;
  text-align: center;
}

.cta-panel .eyebrow {
  background: #efe8de;
}

.cta-panel h2 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.06em;
  line-height: 1.08;
  margin: 8px 0 18px;
}

.cta-panel .cta-copy {
  margin: 0 auto 12px;
  max-width: 42ch;
  color: var(--muted-strong);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.cta-panel .cta-copy + .cta-copy {
  margin-bottom: 28px;
}

.contact-row {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.form {
  width: min(480px, 100%);
  margin: 8px auto 0;
  text-align: left;
}

.form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.form .field {
  margin-bottom: 12px;
}

.form input,
.form textarea {
  width: 100%;
  background: var(--white);
  border: 0;
  border-radius: var(--radius-input);
  padding: 14px 16px;
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

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

.form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------- footer ---------- */
.footer {
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 40px 48px;
  padding-bottom: 56px;
}

.footer .logo {
  margin-bottom: 18px;
}

.footer-tagline {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.1;
  max-width: 12ch;
}

.footer-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.footer h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 6px 0 14px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--muted-strong);
}

.footer address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.015em;
}

.legal {
  border-top: 0;
  padding-top: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgb(239, 236, 230);
    padding: 16px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }

  .header.is-open .nav {
    display: flex;
  }

  .nav a:not(.btn) {
    background: #000;
    color: #fff;
    border-radius: var(--radius-pill);
    text-align: center;
    padding: 14px;
    font-size: 14px;
  }

  .nav a:not(.btn):hover {
    text-decoration: none;
  }

  .nav .btn {
    width: 100%;
    padding: 14px;
  }

  .hero {
    padding: 40px 0 24px;
  }

  .hero-grid,
  .service-grid,
  .steps,
  .why-list,
  .footer-grid,
  .who-grid {
    grid-template-columns: 1fr;
  }

  .who-grid {
    max-width: 360px;
    margin-inline: auto;
  }

  .hero .lede,
  .hero .follow {
    max-width: none;
  }

  section {
    padding: 64px 0;
  }

  .cta-panel {
    padding: 56px 20px 40px;
  }

  .footer-tagline {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .wrap,
  .wrap-narrow,
  .header-inner,
  .header-rule,
  .cta-panel-wrap,
  .why-list,
  .faq-list {
    width: calc(100% - 32px);
  }

  .logo-word {
    font-size: 22px;
  }

  .hero h1 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-item summary::after { transition: none; }
}

/* Added for the website editor: a real photo fills the picture frame. No effect until a photo is added. */
.photo:has(img) {
  padding: 0;
  overflow: hidden;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
