/* === Hoja & Piedra — Estudio de Paisajismo === */

@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-400i.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}

:root {
  --bg: #FAF7F2;
  --bg-warm: #F0EBE2;
  --bg-deep: #E8E2D5;
  --brand: #2D3F2D;
  --brand-soft: #4A5C49;
  --accent: #C9A961;
  --accent-deep: #A88B47;
  --text: #1F2520;
  --text-muted: #5A5F58;
  --text-light: #8A9088;
  --border: #D9D2C4;
  --white: #FFFFFF;

  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --container: 1280px;
  --container-narrow: 920px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(31, 37, 32, 0.04), 0 2px 8px rgba(31, 37, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 37, 32, 0.08);
  --shadow-lg: 0 24px 48px rgba(31, 37, 32, 0.12);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.005em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw + 0.8rem, 4.2rem); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3vw + 0.6rem, 2.8rem); }
h3 { font-size: clamp(1.4rem, 1.5vw + 0.6rem, 1.8rem); }
h4 { font-size: 1.2rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: 68ch; }

a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(45, 63, 45, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition), color var(--transition);
}
a:hover { text-decoration-color: var(--accent); color: var(--accent-deep); }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: 0.4em; }

table { border-collapse: collapse; width: 100%; }

/* === Container === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

@media (min-width: 768px) { .container { padding: 0 40px; } }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  min-height: 48px;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--brand);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}
.btn--accent {
  background: var(--accent);
  color: var(--text);
}
.btn--accent:hover {
  background: var(--accent-deep);
  color: var(--bg);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn--ghost:hover {
  background: var(--brand);
  color: var(--bg);
  text-decoration: none;
}

/* === Utilities === */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  margin-bottom: 16px;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem);
  line-height: 1.45;
  color: var(--text-muted);
  font-style: italic;
  max-width: 56ch;
}

.divider {
  width: 56px;
  height: 1px;
  background: var(--accent);
  margin: 24px 0;
  border: 0;
}

.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: -9999px; top: 0;
  background: var(--brand);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 9999;
}
.skip-link:focus { left: 16px; top: 16px; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
