/* ===== Lankin Painting Co. — styles ===== */

:root {
  --navy: #1B2A4A;
  --navy-deep: #142038;
  --navy-soft: #2A3C63;
  --terracotta: #C8743C;
  --terracotta-dark: #A95E2C;
  --terracotta-soft: #E8B48D;
  --white: #ffffff;
  --offwhite: #F7F5F1;
  --offwhite-2: #EFEBE4;
  --text: #1B2A4A;
  --text-muted: #4A5468;
  --border: #E2DDD3;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --shadow: 0 6px 24px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 24px 64px rgba(27, 42, 74, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--offwhite);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
}

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ===== Falling paint canvases ===== */
.paint-canvas { pointer-events: none; }
.paint-canvas--page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.paint-canvas--hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Content sits above the page canvas; slightly translucent section
   backgrounds let the falling paint whisper through the whitespace. */
.site-header, main, .site-footer, .trustbar { position: relative; z-index: 1; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.72em 1.5em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
  box-shadow: 0 8px 20px rgba(200, 116, 60, 0.35);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(200, 116, 60, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn-lg { font-size: 1.05rem; padding: 0.85em 1.8em; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(27, 42, 74, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 52px; width: auto; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.phone-link .icon { color: var(--terracotta); }
.phone-link:hover { color: var(--terracotta-dark); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(90rem 40rem at 85% -20%, var(--navy-soft) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 9vw, 120px);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  z-index: 1;
}
.hero-copy { max-width: 640px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--terracotta-soft);
  margin: 0 0 1.1em;
}
.swatch-dots { display: inline-flex; gap: 5px; }
.swatch-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--terracotta);
}
.swatch-dots i:nth-child(2) { background: #D9A441; }
.swatch-dots i:nth-child(3) { background: #7C9A72; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 600;
  margin-bottom: 0.45em;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta-soft);
}
.hero-subhead {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.8em;
  max-width: 34em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  position: relative;
  justify-self: center;
  max-width: 460px;
  width: 100%;
}
.hero-media img {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
  z-index: 1;
  width: 100%;
  height: auto;
}
.hero-brush {
  position: absolute;
  inset: -7% -9% auto auto;
  width: 70%;
  height: 45%;
  background: var(--terracotta);
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  transform: rotate(8deg);
  opacity: 0.9;
}
.hero-badge {
  position: absolute;
  z-index: 2;
  left: -14px;
  bottom: -20px;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: grid;
  gap: 2px;
  transform: rotate(1.5deg);
}
.hero-badge strong { font-family: var(--font-display); font-size: 1.05rem; }
.hero-badge span { font-size: 0.85rem; color: var(--text-muted); }

/* ===== Trust bar ===== */
.trustbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
}
.drip {
  position: absolute;
  left: 0; right: 0; top: 100%;
  width: 100%;
  height: clamp(40px, 6vw, 84px);
  z-index: 2;
  display: block;
  margin-top: -1px;
}
.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  text-align: center;
}
.trustbar .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--terracotta);
  display: inline-block;
}

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section { background: rgba(247, 245, 241, 0.82); }
.section-alt { background: rgba(239, 235, 228, 0.88); }
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0 0 0.6em;
}
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-bottom: 0.25em; }
.section-head .stroke,
.why-intro .stroke {
  display: inline-block;
  width: 110px;
  height: 14px;
  margin: 2px auto 14px;
  background: var(--terracotta);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 110 14"><path d="M2 10 C 20 4, 45 2, 70 4 C 88 5.5, 100 7, 108 6 C 96 9, 78 11.5, 55 11 C 35 10.6, 15 11, 2 10 Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 110 14"><path d="M2 10 C 20 4, 45 2, 70 4 C 88 5.5, 100 7, 108 6 C 96 9, 78 11.5, 55 11 C 35 10.6, 15 11, 2 10 Z"/></svg>') center / contain no-repeat;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.12rem;
  margin: 0;
}

/* ===== Cards (services) ===== */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(200, 116, 60, 0.12);
  color: var(--terracotta);
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.28rem; }
.card p { margin: 0; color: var(--text-muted); }

.card-cta {
  background: var(--navy);
  border-color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.card-cta h3 { color: var(--white); }
.card-cta p { color: rgba(255, 255, 255, 0.8); margin-bottom: 18px; }
.card-cta .btn { margin-top: auto; }

/* ===== Work / gallery ===== */
.section-work { background: rgba(255, 255, 255, 0.86); }
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.work-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.4s ease;
}
.work-item:hover img { transform: scale(1.035); }
.work-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 20px 16px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
  background: linear-gradient(to top, rgba(20, 32, 56, 0.85), transparent);
}

/* ===== Process ===== */
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  counter-reset: step;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--terracotta-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.22rem; }
.process-step p { margin: 0; color: var(--text-muted); }

/* ===== Why ===== */
.why-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}
.why-intro .kicker { margin-bottom: 0.6em; }
.why-intro h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.25em; }
.why-intro .stroke { margin: 2px 0 14px; }
.why-intro .section-sub { margin-bottom: 1.6em; }
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(200, 116, 60, 0.14);
  color: var(--terracotta);
  margin-top: 2px;
}
.check svg { width: 18px; height: 18px; }
.why-item h3 { font-size: 1.12rem; margin-bottom: 0.2em; }
.why-item p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* ===== Reviews ===== */
.reviews-placeholder {
  position: relative;
  background: var(--white);
  border: 1px dashed #cfc7b8;
  border-radius: var(--radius);
  padding: 56px 28px 44px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.quote-mark {
  position: absolute;
  top: -6px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: rgba(200, 116, 60, 0.25);
  pointer-events: none;
}
.reviews-note {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}
.reviews-sub {
  margin: 0 0 22px;
  color: var(--text-muted);
}

/* ===== Quote / Contact ===== */
.section-quote {
  background:
    radial-gradient(80rem 36rem at 15% 0%, var(--navy-soft) 0%, transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.section-head--light h2 { color: var(--white); }
.section-head--light .section-sub { color: rgba(255, 255, 255, 0.78); }

.quote-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}
.quote-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.95rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  padding: 0.72em 0.9em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--offwhite);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
  border-color: var(--terracotta);
  background: var(--white);
}
.field textarea { resize: vertical; }
.hidden-field { position: absolute; left: -9999px; margin: 0; }

.quote-contact {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.quote-contact h3 { color: var(--white); font-size: 1.4rem; }
.contact-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 20px;
}
.contact-list li { display: grid; gap: 3px; }
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terracotta-soft);
}
.contact-list a { color: var(--white); text-decoration: none; font-size: 1.12rem; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.quote-note {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0;
}
.footer-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.footer-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}
.footer-meta a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
.footer-copy { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 940px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero-media { justify-self: end; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .work-grid { grid-template-columns: 1.15fr 1fr 1fr; }
  .work-item--tall { grid-row: span 1; }
  .why-layout { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .quote-layout { grid-template-columns: 1.4fr 0.9fr; }
}

@media (max-width: 520px) {
  .phone-link span { display: none; }
  .phone-link .icon { width: 1.4em; height: 1.4em; }
  .hero-badge { left: 8px; bottom: -16px; padding: 10px 14px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
