/* styles.css (CLEAN) */
:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --accent: #914281;
  --accent-2: #914281;
  --card: #ffffff;
  --alt: #faf7fb;
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1100px;
}

/* Base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.topbar{
  background: #0b0b11;
  color: #fff;
  font-size: 14px;
}
.topbar__inner{
  display:flex;
  gap: 16px;
  align-items:center;
  justify-content: space-between;
  padding: 10px 0;
}
.topbar a{ color:#fff; text-decoration:none; }
.topbar a:hover{ text-decoration: underline; }
.dot{ opacity:0.6; margin: 0 10px; }
.topbar__right{ opacity: 0.85; }

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--accent);
  border-bottom: none;
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding: 14px 0;
}

.brand{
  display:flex;
  gap: 16px;
  align-items:center;
}

.brand__logo{
  height: 56px;
  width: auto;
  display: block;
}

.brand__text{
  display:flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.08;
}

.brand__name{
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.2px;
}

.brand__tag{
  font-size: 13px;
  margin-top: 3px;
  color: rgba(255,255,255,0.92);
}

/* Nav */
.nav{
  display:flex;
  gap: 18px;
  align-items:center;
  font-weight: 700;
}
.header .nav a{ color: #fff; }

.nav__cta{
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
  color: #fff;
}
.nav__cta:hover{
  text-decoration:none;
  background: rgba(255,255,255,0.30);
}

/* Hero */
.hero{
  padding: 56px 0 24px;
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items:start;
}

/* This controls the visual alignment between the headline and the contact card.
   If you want the contact card to sit higher/lower, adjust this ONE number. */
.hero__copy{
  padding-top: 22px;
}

.hero__copy h1{
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  margin: 0 0 10px;
}

.lead{
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 58ch;
}

.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.hero__badges{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.badge{
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
}

/* Legacy strip */
.legacy-strip{
  margin-top: 0;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;

  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(145,66,129,0.05);

  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.legacy-strip .sep{ opacity: 0.45; }

/* Watermark */
.hero--branded{
  position: relative;
  overflow: hidden;
}
.hero--branded::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 280px;
  background: url("script-logo.png") no-repeat center / contain;
  opacity: 0.09;
  pointer-events: none;
}

/* Sections */
.section{ padding: 56px 0; }

.section--alt{
  background: var(--alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section__head h2{
  margin:0;
  font-size: 28px;
}

.section__head p{
  margin:0;
  color: var(--muted);
  max-width: 60ch;
}

/* Services grid */
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tile{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(2,6,23,0.02);
}
.tile h3{ margin: 0 0 6px; font-size: 16px; }
.tile p{ margin: 0; color: var(--muted); font-size: 14px; }

/* Cards */
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card__title{
  font-weight: 800;
  margin-bottom: 12px;
}

/* Contact card in hero */
.contact-card__row{
  display:grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 8px 0;
}
.label{ color: var(--muted); font-size: 13px; }
.value{ font-weight: 700; }

/* Desktop: keep it normal (NOT sticky) so it aligns perfectly */
@media (min-width: 981px){
  .contact-card{
    position: static;
    margin-top: 0;
    align-self: start;
  }
}

/* About layout */
.prose p{ margin-top:0; color: var(--text); }
.prose ul{ margin: 14px 0 0; color: var(--muted); }
.prose li{ margin: 8px 0; }

.about-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.contact-details-card .contact-lines .spacer{
  height: 10px;
}

.contact-company{ font-weight: 800; }
.muted{ color: var(--muted); }

/* Headshot card */
.about-card{
  max-width: 270px;
  justify-self: end;
  padding: 0;
  overflow: hidden;
}

.headshot{
  width: 100%;
  height: auto;
  max-height: 255px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 0;
  display: block;
  filter: grayscale(0.2) contrast(0.95) brightness(1.03);
  transition: filter 0.3s ease;
}
.about-card:hover .headshot{ filter: grayscale(0); }

.about-card__text{
  padding: 12px 12px 14px;
  text-align: center;
}

.about-card__name{ font-weight: 800; }

.about-card__note{
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  text-decoration:none;
}
.btn:hover{ text-decoration:none; transform: translateY(-1px); }

.btn--primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
}
.btn--ghost{
  background: rgba(15,23,42,0.03);
}

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  padding: 22px 0;
  background: #fff;
}

.footer__stack{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo{
  max-width: 220px;
  opacity: 0.6;
}

.footer-copy{
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__copy{ padding-top: 0; }
  .contact-card{ position: static; margin-top: 16px; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .topbar__right{ display:none; }
  .hero--branded::after{ opacity: 0.04; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-card{ justify-self: start; max-width: 300px; }
}

@media (max-width: 520px){
  .nav{ display:none; }
  .grid{ grid-template-columns: 1fr; }
  .hero{ padding: 44px 0 18px; }
  .brand__logo{ height: 40px; }
  .header__inner{ min-height: 78px; }
}

