/* ==========================================================
   1. Design tokens
   ========================================================== */
:root {
  --slate-950: #17191C;
  --slate-900: #1F2124;
  --slate-800: #2A2D34;
  --slate-700: #3A3E47;
  --slate-500: #5A606B;
  --slate-300: #B8BCC4;

  --orange: #D35400;
  --amber: #E67E22;
  --amber-hover: #F0913A;
  --orange-text: #A84300;      /* AA-compliant accent text on light backgrounds */

  --off-white: #F5F3F0;
  --white: #FFFFFF;
  --line: #E1DDD7;

  --text: #2A2D34;
  --text-muted: #555A64;
  --text-on-dark: #F5F3F0;
  --text-on-dark-muted: #B8BCC4;

  --error: #B3261E;
  --success: #1E7A46;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(23, 25, 28, .06), 0 8px 24px rgba(23, 25, 28, .08);
  --header-h: 72px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --brick-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='36'%3E%3Cpath d='M0 .5H72M0 18.5H72M.5 0V18M36.5 18V36' stroke='%23ffffff' stroke-opacity='.055' fill='none'/%3E%3C/svg%3E");
}

/* ==========================================================
   2. Base / reset
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p { margin: 0 0 1em; }

a { color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--amber);
  color: var(--slate-900);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ==========================================================
   3. Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 14px 28px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: var(--amber);
  color: var(--slate-900);
  box-shadow: 0 4px 12px rgba(211, 84, 0, .18);
}
.btn--primary:hover { background: var(--amber-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(245, 243, 240, .35);
}
.btn--ghost:hover { border-color: var(--text-on-dark); background: rgba(245, 243, 240, .06); }

.btn--whatsapp {
  background: #25D366;
  color: var(--slate-900);
  box-shadow: 0 4px 12px rgba(37, 211, 102, .18);
}
.btn--whatsapp:hover { background: #1EBE5A; transform: translateY(-1px); }
.btn--whatsapp:active { transform: translateY(0); }

.btn--sm { min-height: 42px; padding: 10px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }

/* ==========================================================
   4. Header & sticky nav
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--slate-900);
  border-bottom: 3px solid var(--orange);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 52px; width: auto; }

.nav__links {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
  gap: 32px;
}
.nav__links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  padding: 8px 0;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text-on-dark); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

@media (min-width: 860px) {
  .nav__links { display: flex; }
}

@media (max-width: 559px) {
  .btn--whatsapp .btn__label { display: none; }
}

@media (max-width: 400px) {
  .logo img { height: 42px; }
  .btn--sm { padding: 10px 14px; }
}

/* ==========================================================
   5. Hero
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--text-on-dark);
  background-color: var(--slate-800);
  background-image:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(230, 126, 34, .18), transparent 70%),
    linear-gradient(180deg, rgba(31, 33, 36, 0) 60%, rgba(31, 33, 36, .7)),
    var(--brick-pattern);
  padding-block: clamp(64px, 10vw, 128px) clamp(56px, 8vw, 104px);
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 3px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(2.375rem, 6.2vw, 4.25rem);
  max-width: 14ch;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-on-dark-muted);
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__areas {
  margin-top: 40px;
  font-size: .9375rem;
  color: var(--text-on-dark-muted);
}
.hero__areas strong { color: var(--text-on-dark); font-weight: 600; }

.hero__panel {
  background: rgba(23, 25, 28, .72);
  border: 1px solid rgba(245, 243, 240, .1);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(4px);
}
.hero__panel h2 {
  font-size: 1.125rem;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 28px; height: 28px; color: var(--amber); }
.checklist strong { display: block; color: var(--text-on-dark); font-weight: 700; }
.checklist span { color: var(--text-on-dark-muted); font-size: .9375rem; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.45fr 1fr; gap: 64px; }
}

@media (max-width: 520px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__panel { padding: 24px; }
}

/* ==========================================================
   6. Section scaffolding
   ========================================================== */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--white { background: var(--white); }
.section--dark {
  background-color: var(--slate-900);
  background-image: var(--brick-pattern);
  color: var(--text-on-dark);
}

.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head .eyebrow { color: var(--orange-text); }
.section--dark .section-head .eyebrow { color: var(--amber); }
.section-head h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
.section-head p { color: var(--text-muted); font-size: 1.125rem; margin: 0; }
.section--dark .section-head p { color: var(--text-on-dark-muted); }

/* ==========================================================
   7. Services grid
   ========================================================== */
.services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 4px;
  background: var(--orange);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: #D6D0C8; }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: var(--slate-800);
  color: var(--amber);
}
.service-card__icon svg { width: 30px; height: 30px; }

.service-card h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
.service-card p { color: var(--text-muted); }

.service-card ul {
  list-style: none;
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: .9375rem;
  font-weight: 600;
}
.service-card li { display: flex; gap: 10px; align-items: baseline; }
.service-card li::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  background: var(--orange);
  transform: translateY(-1px);
}

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

/* ==========================================================
   8. Gallery / before-after showcase
   ========================================================== */
.gallery-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.project {
  margin: 0;
  background: var(--slate-800);
  border: 1px solid rgba(245, 243, 240, .08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--orange); /* acts as the divider between panes */
}

.ba__pane {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--slate-700);
}

/* Real photos: photos arrive in mixed orientations (portrait, landscape, tall),
   so the whole photo is shown uncropped and the spare space is filled with a
   blurred copy of the same image, set via --photo on the pane. */
.ba__pane::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--photo) center / cover no-repeat;
  filter: blur(18px) brightness(.55);
}

.ba__pane img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
}

.ba__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  font-size: .8125rem;
  color: var(--text-on-dark-muted);
  background-image: var(--brick-pattern);
}
.ba__pane--before .ba__placeholder { background-color: #34373D; }
.ba__pane--after .ba__placeholder { background-color: #3D3A38; }
.ba__placeholder svg { width: 32px; height: 32px; opacity: .6; }

.ba__label {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  padding: 4px 10px;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 3px;
  background: var(--slate-950);
  color: var(--text-on-dark);
}
.ba__pane--after .ba__label { background: var(--amber); color: var(--slate-900); }

.project figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  align-items: baseline;
  gap: 4px 16px;
  padding: 18px 22px;
}
.project__title { font-weight: 700; color: var(--text-on-dark); }
.project__meta { font-size: .875rem; color: var(--text-on-dark-muted); }

.gallery-note {
  margin: 40px 0 0;
  text-align: center;
  color: var(--text-on-dark-muted);
}
.gallery-note a { color: var(--amber); font-weight: 700; }

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

/* ==========================================================
   9. Contact section & form
   ========================================================== */
.contact-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
.contact-info > p { color: var(--text-muted); font-size: 1.125rem; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--slate-800);
  color: var(--amber);
  font-weight: 800;
}
.steps strong { display: block; }
.steps span { color: var(--text-muted); font-size: .9375rem; }

.contact-direct {
  font-style: normal;
  margin-top: 32px;
  display: grid;
  gap: 12px;
}
.contact-direct a {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-direct a:hover { color: var(--orange-text); text-decoration: underline; }
.contact-direct span {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.areas {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.areas h3 {
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.areas ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.areas li {
  padding: 6px 14px;
  font-size: .875rem;
  font-weight: 600;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 20px 50px rgba(23, 25, 28, .12);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card__intro { color: var(--text-muted); margin-bottom: 28px; }

.form-grid { display: grid; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-weight: 700;
  font-size: .9375rem;
}
.field .req { color: var(--orange-text); }
.field__optional { font-weight: 400; color: #5A5F68; font-size: 0.875em; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem; /* ≥16px prevents iOS zoom on focus */
  color: var(--text);
  background: var(--off-white);
  border: 2px solid #CFC9C1;
  border-radius: var(--radius);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #767B84; }

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.field__label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.field__count { font-size: .8125rem; color: var(--text-muted); }

.field select {
  padding-right: 48px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%232A2D34' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--slate-500); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, .22);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--error);
  background-color: #FDF5F4;
}

.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--error);
}
.field__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--error);
  color: var(--white);
  font-size: .75rem;
  font-weight: 800;
}
.field__error.is-visible { display: flex; }

.form-row { display: grid; gap: 20px; }

@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-submit { margin-top: 8px; }

.form-privacy {
  margin: 14px 0 0;
  font-size: .8125rem;
  color: var(--text-muted);
  text-align: center;
}

.form-status {
  display: none;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9375rem;
}
.form-status.is-error {
  display: block;
  color: var(--error);
  background: #FDF5F4;
  border: 1px solid #F0C9C5;
}

.form-success {
  text-align: center;
  padding: 24px 0;
}
.form-success svg { display: block; width: 64px; height: 64px; color: var(--success); margin: 0 auto 16px; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--text-muted); margin: 0; }

.operator-note {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--text-muted);
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .contact-info { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ==========================================================
   10. Footer
   ========================================================== */
.site-footer {
  background: var(--slate-950);
  color: var(--text-on-dark-muted);
  padding-block: 40px;
  font-size: .875rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer__inner .logo img { height: 44px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer__links a { color: var(--text-on-dark-muted); text-decoration: none; }
.footer__links a:hover { color: var(--text-on-dark); text-decoration: underline; }
.footer__copy { margin: 0; width: 100%; padding-top: 16px; border-top: 1px solid rgba(245, 243, 240, .08); }

/* ==========================================================
   11. Reduced motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
