/* Sugarland Paint and Body — mobile-first, no build step */
/* Palette: white page, dark text, black header/footer, red buttons, light-blue highlights */
:root {
  --bg: #ffffff;
  --bg-deep: #f4f4f4;
  --ink: #1a1a1a;
  --ink-strong: #111111;
  --muted: #4a4a4a;
  --card: #ffffff;
  --line: #e0e0e0;
  --accent: #c8102e;
  --accent-hover: #7ad0ff;
  --accent-soft: #f8e8ea;
  --link: #c8102e;
  --hero: #111111;
  --hero-text: #ffffff;
  --hero-muted: #d0d0d0;
  --sky: #4fb3ff;
  --sky-hover: #7ad0ff;
  --sky-on-light: #1e90ff;
  --focus: #4fb3ff;
  --ok: #157347;
  --warn-bg: #4fb3ff;
  --warn-ink: #111111;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --max: 68rem;
  --header-h: 4.25rem;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

html:lang(es) {
  /* keep typography the same */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.0625rem;
}

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

a {
  color: var(--link);
}

a:hover {
  color: #1473b8; /* darker sky; #4fb3ff does not meet contrast on white */
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--sky);
  color: var(--ink-strong);
  padding: 0.5rem 0.85rem;
  z-index: 100;
  border-radius: 8px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(17, 17, 17, 0.96);
  color: var(--hero-text);
  backdrop-filter: blur(12px);
  border-bottom: 0;
  box-shadow: 0 4px 0 var(--sky), 0 8px 0 var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo-slot {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px dashed var(--sky);
  border-radius: 8px;
  background: var(--accent);
  color: var(--sky-hover);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-place {
  color: var(--hero-muted);
  font-size: 0.72rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-toggle,
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-toggle:hover,
.nav-toggle:hover {
  background: var(--sky);
  color: var(--ink-strong);
  border-color: var(--sky);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-phone {
  display: none;
  text-decoration: none;
  font-weight: 650;
  color: var(--sky);
  padding: 0.35rem 0.7rem;
}

.header-phone:hover {
  color: var(--sky-hover);
}

.site-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0 0.85rem;
}

.site-nav.open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--hero-text);
  padding: 0.7rem 0.2rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--sky);
}

/* Hero */
.hero {
  background: var(--hero);
  color: var(--hero-text);
  padding: 2.4rem 0 2.8rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sky);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.05rem, 8vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--hero-muted);
  font-size: 1.12rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 22rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  min-height: 3.15rem;
}

.btn-call {
  background: var(--sky);
  color: var(--ink-strong);
}

.btn-call:hover {
  background: var(--sky-hover);
  color: var(--ink-strong);
}

.btn-quote {
  background: var(--accent);
  color: #fff;
}

.btn-quote:hover {
  background: var(--sky);
  color: var(--ink-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.hero-meta {
  margin: 1.4rem 0 0;
  color: var(--hero-muted);
  font-size: 0.95rem;
}

.hero-meta a {
  color: var(--sky);
}

.hero-meta a:hover {
  color: var(--sky-hover);
}

/* Sections */
.section {
  padding: 2.6rem 0;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 38rem;
}

.services {
  background: var(--bg-deep);
}

.service-grid {
  display: grid;
  gap: 0.85rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.service-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--sky-on-light);
  margin-bottom: 0.6rem;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Why us */
.why-grid {
  display: grid;
  gap: 0.85rem;
}

.stat-value {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  margin: 0 0 0.35rem;
}

.stat-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--sky-on-light);
}

.stars {
  color: var(--sky-on-light);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

/* Our Work gallery */
.work-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.gallery-item,
.shop-photo-office {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--bg-deep);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.gallery-item:focus-visible,
.shop-photo-office:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.gallery-item img,
.shop-photo-office img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item {
  aspect-ratio: 4 / 3;
}

.gallery-item.featured {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.gallery-caption {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.7rem 0.55rem;
  pointer-events: none;
}

/* Visit the shop photos */
.shop-photos {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.shop-photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-deep);
  box-shadow: var(--shadow);
}

.shop-photo-office {
  flex: 1 1 auto;
  max-width: 22rem;
  aspect-ratio: 4 / 3;
}

.shop-photo-sign {
  flex: 0 0 auto;
  width: min(42%, 13.5rem);
  max-width: 13.5rem;
}

.shop-photo-sign img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

.shop-photo-sign .gallery-caption,
.shop-photo-sign figcaption {
  position: static;
  background: var(--bg-deep);
  color: var(--muted);
  font-weight: 600;
  padding: 0.35rem 0.5rem 0.45rem;
  font-size: 0.78rem;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3.2rem 2rem;
  box-sizing: border-box;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(100%, 1600px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100dvh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.lightbox-figure figcaption {
  color: #f5f5f5;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.2em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  background: #111;
  color: #fff;
  border: 2px solid var(--sky);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close {
  top: 0.7rem;
  right: 0.7rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 700;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 1.15rem;
}

.lightbox-prev { left: 0.55rem; }
.lightbox-next { right: 0.55rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 2px;
}

/* Form */
.quote {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.form-note {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}

.form-note code {
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.estimate-fee {
  background: var(--sky);
  color: var(--ink-strong);
  font-weight: 700;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.2rem;
  max-width: 40rem;
  line-height: 1.4;
}

.hero .estimate-fee {
  margin-top: 1.2rem;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 1px;
  border-color: var(--sky);
}


form {
  display: grid;
  gap: 0.9rem;
}

.field-row {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
  font-size: 0.92rem;
}

.req {
  color: var(--link);
}

input,
textarea,
select {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid #555;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-strong);
  width: 100%;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.file-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-status {
  display: none;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin: 0 0 1rem;
}

.form-status.show {
  display: block;
}

.form-status.ok {
  background: #e6f0ea;
  color: var(--ok);
}

.form-status.err {
  background: #f8e6e2;
  color: #7a2a1a;
}

/* Map / visit */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
  min-height: 16rem;
}

.map-frame iframe {
  width: 100%;
  height: 16.5rem;
  border: 0;
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.contact-list a {
  color: inherit;
  font-weight: 650;
}

/* Footer */
.site-footer {
  background: var(--hero);
  color: var(--hero-text);
  padding: 2rem 0 6.5rem;
  border-top: 4px solid var(--accent);
  box-shadow: inset 0 4px 0 var(--sky);
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.site-footer h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.site-footer p,
.site-footer li {
  color: var(--hero-muted);
  margin: 0 0 0.35rem;
}

.site-footer a {
  color: var(--sky);
}

.site-footer a:hover {
  color: var(--sky-hover);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.hours-table th {
  color: var(--hero-text);
  font-weight: 650;
}

.copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: var(--hero-muted);
}

/* Mobile call bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(17, 17, 17, 0.96);
  border-top: 3px solid var(--sky);
}

.mobile-bar .btn {
  min-height: 2.9rem;
  padding: 0.7rem 0.6rem;
  font-size: 0.95rem;
}

/* Desktop */
@media (min-width: 720px) {
  .wrap {
    width: min(100% - 2.5rem, var(--max));
  }

  .nav-toggle {
    display: none;
  }

  .header-phone {
    display: inline-flex;
  }

  .site-nav {
    display: block;
    border: 0;
    padding: 0;
  }

  .header-inner {
    gap: 1.2rem;
  }

  .site-header .wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .site-nav ul {
    display: flex;
    gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.92rem;
  }

  .hero {
    padding: 4.2rem 0 4.5rem;
  }

  .hero-actions {
    flex-direction: row;
    max-width: none;
  }

  .hero-actions .btn {
    min-width: 13.5rem;
  }

  .service-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid .span-2 {
    grid-column: span 2;
  }

  .work-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }

  .gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
  }

  .field-row.two {
    grid-template-columns: 1fr 1fr;
  }

  .visit-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.4rem;
    align-items: start;
  }

  .map-frame iframe {
    height: 20rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .site-footer {
    padding-bottom: 2.4rem;
  }

  .mobile-bar {
    display: none;
  }

  .brand-name {
    font-size: 1.08rem;
  }
}

@media (min-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid .wide {
    grid-column: span 1;
  }
}
