/* ==========================================================================
   Christian García — Abogado Penalista
   Design system + layout · Vanilla CSS
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
}

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --ink-900: #0b1526;
  --ink-800: #0f1e36;
  --ink-700: #1b2a44;
  --ink-500: #3e4a5c;
  --ink-300: #8a94a6;
  --gold-600: #a67c3d;
  --gold-500: #b89152;
  --gold-300: #d6bc8a;
  --gold-100: #f0e6d2;
  --sand-50: #fbf9f4;
  --sand-100: #f6f2ea;
  --sand-200: #ede7da;
  --white: #ffffff;
  --line: #e4ddce;
  --line-dark: rgba(255, 255, 255, 0.12);
  --ok: #2f7d5c;
  --error: #b23a3a;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-100: 0.8125rem;
  --fs-200: 0.9375rem;
  --fs-300: 1.0625rem;
  --fs-400: 1.25rem;
  --fs-500: 1.625rem;
  --fs-600: clamp(1.9rem, 3.4vw, 2.5rem);
  --fs-700: clamp(2.6rem, 5.6vw, 4.25rem);
  --fs-800: clamp(2.1rem, 4.2vw, 3rem);
  --lh-tight: 1.1;
  --lh-body: 1.65;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(11, 21, 38, 0.06), 0 1px 3px rgba(11, 21, 38, 0.08);
  --shadow-md: 0 6px 18px rgba(11, 21, 38, 0.09), 0 2px 6px rgba(11, 21, 38, 0.06);
  --shadow-lg: 0 28px 60px -20px rgba(11, 21, 38, 0.35);

  /* Layout */
  --container: 1200px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --header-h: 74px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.3s;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-300);
  line-height: var(--lh-body);
  color: var(--ink-700);
  background-color: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-700);
}
h2 {
  font-size: var(--fs-600);
}
h3 {
  font-size: var(--fs-500);
}
h4 {
  font-size: var(--fs-400);
}

p {
  color: var(--ink-500);
}

a {
  text-decoration: none;
}

::selection {
  background: var(--gold-300);
  color: var(--ink-900);
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

body.no-scroll {
  overflow: hidden;
}

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

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.section--warm {
  background-color: var(--sand-100);
}

.section--dark {
  background-color: var(--ink-900);
  color: var(--sand-100);
}

.section--dark h2,
.section--dark h3 {
  color: var(--sand-50);
}

.section--dark p {
  color: rgba(251, 249, 244, 0.72);
}

.sr-only {
  position: absolute;
  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: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--gold-500);
  color: var(--ink-900);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Section heading ---------- */
.section-head {
  display: grid;
  gap: var(--space-3);
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold-500);
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-title {
  font-size: var(--fs-600);
}

.section-lead {
  font-size: var(--fs-300);
  color: var(--ink-500);
  max-width: 34rem;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--ink-900);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--ink-900);
}

.btn--primary:hover {
  --btn-bg: var(--gold-300);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--sand-50);
  --btn-bd: rgba(251, 249, 244, 0.35);
}

.btn--ghost:hover {
  --btn-bd: var(--sand-50);
  --btn-bg: rgba(251, 249, 244, 0.08);
}

.btn--dark {
  --btn-bg: var(--ink-900);
  --btn-fg: var(--sand-50);
}

.btn--dark:hover {
  --btn-bg: var(--ink-700);
}

.btn--sm {
  padding: 0.7rem 1.15rem;
  font-size: var(--fs-100);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sand-50);
  transition: color var(--dur) var(--ease);
}

.site-header.is-scrolled .brand {
  color: var(--ink-900);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__name {
  font-size: 1.05rem;
}

.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1.2;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav__link {
  position: relative;
  font-size: var(--fs-200);
  font-weight: 500;
  color: rgba(251, 249, 244, 0.82);
  padding-block: 0.4rem;
  transition: color var(--dur) var(--ease);
}

.site-header.is-scrolled .nav__link {
  color: var(--ink-500);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--gold-500);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__cta {
  display: none;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 249, 244, 0.35);
  color: var(--sand-50);
  transition: border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
  color: var(--ink-900);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle__bars {
  position: relative;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile nav panel */
.nav.is-open {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  display: block;
  padding: var(--space-5) var(--gutter) var(--space-6);
  background: var(--sand-50);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: navIn var(--dur) var(--ease);
}

.nav.is-open .nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
}

.nav.is-open .nav__link {
  display: block;
  padding: 0.85rem 0;
  color: var(--ink-900);
  border-bottom: 1px solid var(--line);
}

.nav.is-open .nav__link::after {
  display: none;
}

.nav.is-open .header__cta {
  display: inline-flex;
  margin-top: var(--space-5);
  width: 100%;
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--space-6));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(
      180deg,
      rgba(11, 21, 38, 0.94) 0%,
      rgba(11, 21, 38, 0.74) 46%,
      rgba(11, 21, 38, 0.96) 100%
    ),
    url("img/fondo-inicio.webp") center / cover no-repeat;
  color: var(--sand-50);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero__content {
  display: grid;
  gap: var(--space-5);
  max-width: 36rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.hero__eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold-500);
}

.hero__title {
  font-size: var(--fs-700);
  color: var(--sand-50);
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: italic;
  color: var(--gold-300);
}

.hero__lead {
  font-size: var(--fs-300);
  color: rgba(251, 249, 244, 0.8);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
}

.hero__meta-item {
  display: grid;
  gap: 0.15rem;
}

.hero__meta-value {
  font-family: var(--font-display);
  font-size: var(--fs-500);
  color: var(--gold-300);
  line-height: 1;
}

.hero__meta-label {
  font-size: var(--fs-100);
  color: rgba(251, 249, 244, 0.66);
  letter-spacing: 0.04em;
}

/* Portrait */
.hero__portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 26rem);
}

.hero__portrait::before {
  content: "";
  position: absolute;
  inset: -1.25rem -1.25rem auto auto;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(214, 188, 138, 0.5);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.hero__portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  filter: saturate(0.92) contrast(1.02);
}

.hero__badge {
  position: absolute;
  z-index: 2;
  left: -0.75rem;
  bottom: 1.75rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 1.1rem;
  background: var(--sand-50);
  color: var(--ink-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.hero__badge strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.hero__badge span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--ink-900);
  border-top: 1px solid var(--line-dark);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-4);
  padding-block: clamp(2rem, 4vw, 2.75rem);
}

.stat {
  display: grid;
  gap: 0.25rem;
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--gold-300);
  line-height: 1;
}

.stat__label {
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 249, 244, 0.62);
}

/* ---------- Cards (practice areas) ---------- */
.cards {
  display: grid;
  gap: var(--space-4);
}

.card {
  position: relative;
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--gold-100);
  color: var(--gold-600);
}

.card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.card__title {
  font-size: var(--fs-400);
}

.card__text {
  font-size: var(--fs-200);
  color: var(--ink-500);
}

.card__list {
  display: grid;
  gap: 0.5rem;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.card__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--fs-200);
  color: var(--ink-500);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold-500);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--ink-900);
}

.card__link svg {
  transition: transform var(--dur) var(--ease);
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* ---------- About ---------- */
.about {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about__media {
  position: relative;
  justify-self: center;
  width: min(100%, 24rem);
}

.about__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.about__media::after {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--gold-300);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__content {
  display: grid;
  gap: var(--space-4);
}

.about__content .section-head {
  margin-bottom: 0;
}

.about__sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-400);
  color: var(--gold-600);
}

.credentials {
  display: grid;
  gap: 0.65rem;
  margin-top: var(--space-2);
}

.credentials li {
  display: flex;
  gap: 0.65rem;
  font-size: var(--fs-200);
  color: var(--ink-500);
}

.credentials svg {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  color: var(--gold-500);
}

/* ---------- Process ---------- */
.process {
  background: linear-gradient(rgba(11, 21, 38, 0.95), rgba(11, 21, 38, 0.95)),
    url("img/fondo-skills.webp") center / cover no-repeat;
}

.process__list {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  gap: 0.6rem;
  padding: var(--space-5);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.step__index {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1rem;
}

.step__title {
  font-size: var(--fs-400);
  color: var(--sand-50);
}

.step__text {
  font-size: var(--fs-200);
  color: rgba(251, 249, 244, 0.68);
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  gap: var(--space-4);
}

.testimonial {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--fs-400);
  line-height: 1.35;
  color: var(--ink-900);
}

.testimonial__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.testimonial__avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  font-family: var(--font-display);
  font-weight: 600;
}

.testimonial__name {
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--ink-900);
}

.testimonial__role {
  font-size: var(--fs-100);
  color: var(--ink-300);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--ink-900);
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-600);
  transition: transform var(--dur) var(--ease);
}

.faq__item[open] .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  padding: 0 1.35rem 1.25rem;
  font-size: var(--fs-200);
  color: var(--ink-500);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact__form {
  display: grid;
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field__label {
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.field__input {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: var(--fs-200);
  color: var(--ink-900);
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.field__input::placeholder {
  color: var(--ink-300);
}

.field__input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(184, 145, 82, 0.18);
}

.field__input:user-invalid {
  border-color: var(--error);
}

.field__error {
  font-size: var(--fs-100);
  color: var(--error);
  min-height: 0;
}

textarea.field__input {
  min-height: 9rem;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: var(--space-4);
}

.form-status {
  font-size: var(--fs-200);
  color: var(--ok);
  min-height: 1.25rem;
}

.form-status[data-state="error"] {
  color: var(--error);
}

.contact__info {
  display: grid;
  gap: var(--space-5);
}

.info-block {
  display: grid;
  gap: 0.35rem;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.info-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-block__label {
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.info-block__value {
  font-family: var(--font-display);
  font-size: var(--fs-400);
  color: var(--ink-900);
}

.info-block__note {
  font-size: var(--fs-100);
  color: var(--ink-300);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(251, 249, 244, 0.7);
  padding-block: clamp(3rem, 6vw, 4.5rem) var(--space-6);
}

.footer__grid {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line-dark);
}

.footer__brand {
  display: grid;
  gap: var(--space-3);
  max-width: 22rem;
}

.footer__brand .brand {
  color: var(--sand-50);
}

.footer__brand p {
  font-size: var(--fs-200);
  color: rgba(251, 249, 244, 0.62);
}

.footer__nav {
  display: grid;
  gap: 0.6rem;
}

.footer__nav a {
  font-size: var(--fs-200);
  color: rgba(251, 249, 244, 0.7);
  transition: color var(--dur) var(--ease);
}

.footer__nav a:hover {
  color: var(--gold-300);
}

.footer__col-title {
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--space-2);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: var(--fs-100);
  color: rgba(251, 249, 244, 0.5);
}

.social {
  display: flex;
  gap: 0.75rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: rgba(251, 249, 244, 0.75);
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.social a:hover {
  color: var(--gold-300);
  border-color: var(--gold-500);
}

.social svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive (mobile-first) ---------- */
@media (min-width: 640px) {
  .trust__grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

@media (min-width: 900px) {
  .nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }

  .nav.is-open {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
  }

  .nav.is-open .nav__list {
    flex-direction: row;
    align-items: center;
  }

  .nav.is-open .nav__link {
    display: inline;
    padding-block: 0.4rem;
    border: 0;
    color: var(--ink-500);
  }

  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .hero__portrait {
    justify-self: end;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .about {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .process__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .hero__inner {
    gap: 5rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
