/* Rios Renovations — warm wood-and-craft landing page */

:root {
  --ink: #2a1c12;
  --ink-soft: #4a3728;
  --paper: #f6efe4;
  --paper-deep: #ece1cd;
  --cream: #fffaf2;
  --walnut: #3c2415;
  --walnut-deep: #23150c;
  --honey: #c9923a;
  --honey-bright: #e0b15a;
  --brass: #b8863b;
  --rule: #d9cbb3;
  --muted: #6d5a48;
  --shadow: 0 14px 30px rgba(35, 21, 12, 0.12);
  --radius: 14px;
  --font-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --header-h: 5.25rem;
  --wrap: 72rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font-body);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, .brand-name, .footer-tagline {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 6.4vw, 5.1rem); font-weight: 600; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); font-weight: 600; margin: 0 0 0.55em; }
h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

code {
  font-size: 0.92em;
  background: var(--paper-deep);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--honey);
  color: var(--walnut-deep);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { top: 0.75rem; }

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--brass);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--honey-bright); }

.section-intro {
  max-width: 42rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--walnut-deep);
  color: #f8efd8;
  border-bottom: 3px solid var(--honey);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark { color: #3c2415; flex: none; display: block; }
.brand-mark .mark-bg { fill: #3c2415; }
.brand-mark svg { display: block; background: var(--honey); border-radius: 4px; }

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--honey-bright);
  line-height: 1.3;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible { border-bottom-color: var(--honey); }

.nav-cta {
  background: var(--honey);
  color: var(--walnut-deep) !important;
  border-radius: 4px;
  padding: 0.5rem 0.9rem !important;
  border-bottom: 0 !important;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.nav-cta:hover,
.nav-cta:focus-visible { filter: brightness(1.06); }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(224, 177, 90, 0.35);
  background: transparent;
  color: var(--honey-bright);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--honey);
  color: var(--walnut-deep);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  padding: 0.9rem 1.35rem;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.btn:hover,
.btn:focus-visible { filter: brightness(1.06); }

.btn-ghost {
  background: transparent;
  color: #fff8e8;
  box-shadow: none;
  border: 1px solid rgba(248, 239, 216, 0.45);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(86svh, 46rem);
  display: flex;
  align-items: end;
  padding: 4.5rem 0 4rem;
  color: #fff8e8;
  background: var(--walnut-deep);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 12, 6, 0.86) 0%, rgba(22, 12, 6, 0.55) 46%, rgba(22, 12, 6, 0.18) 100%),
    linear-gradient(0deg, rgba(22, 12, 6, 0.72) 0%, transparent 48%);
}

.hero-content {
  width: min(calc(100% - 2.5rem), var(--wrap));
  margin-inline: auto;
}
.hero .lede { max-width: 34rem; }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 36rem;
  color: #f3e6c9;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Sections ---------- */

.section { padding: 4.4rem 0; }
.section-alt { background: var(--paper-deep); }

.card,
.quote-card,
.area-card,
.contact-card,
.planner {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-grid,
.trust-grid,
.gallery,
.quotes {
  display: grid;
  gap: 1.25rem;
}

.service-grid { grid-template-columns: repeat(3, 1fr); }
.trust-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem 1.5rem; }
.gallery { grid-template-columns: repeat(3, 1fr); }
.quotes { grid-template-columns: repeat(3, 1fr); }

.card { padding: 1.4rem 1.35rem 1.5rem; }
.card h3 { color: var(--walnut); }

.trust-grid h3 { margin-bottom: 0.35rem; }
.trust-grid p { color: var(--ink-soft); }

/* ---------- Gallery ---------- */

.gallery-card figure { margin: 0; }
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.gallery-card figcaption { padding: 1.15rem 1.2rem 1.3rem; }
.gallery-card h3 { margin-bottom: 0.3rem; }
.gallery-card p { color: var(--ink-soft); font-size: 0.98rem; }
.gallery-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ---------- Quotes ---------- */

.quote-card { padding: 1.4rem 1.35rem 1.3rem; display: flex; flex-direction: column; gap: 1rem; }
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--walnut);
}
.quote-card blockquote::before {
  content: "“";
  display: block;
  font-size: 2rem;
  line-height: 0.8;
  color: var(--brass);
  margin-bottom: 0.35rem;
}
.quote-meta { color: var(--muted); font-size: 0.92rem; margin: 0; margin-top: auto; }

/* ---------- Area ---------- */

.area-split {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.area-card { padding: 1.6rem 1.5rem; }
.area-card p { margin-bottom: 1.1rem; }
.area-card p:last-child { margin-bottom: 0; }
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- Bookings mockup ---------- */

.planner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
}

.planner-cal { padding: clamp(1rem, 2.4vw, 2rem); }
.slots {
  padding: clamp(1rem, 2.4vw, 2rem);
  background: #f3ead7;
  border-left: 1px solid var(--rule);
}
.slots h3 { margin-top: 0; }

.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.month-nav h3 { margin: 0; font-size: 1.2rem; }

.month-nav button,
.dates button,
.slot-list button {
  font: 650 0.95rem/1 var(--font-body);
  background: var(--cream);
  color: var(--walnut-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}
.month-nav button { min-width: 2.5rem; }

.dates {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
  text-align: center;
}
.dates .dow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0;
}
.dates button { width: 100%; padding: 0.6rem 0; box-shadow: none; }
.dates button:disabled,
.month-nav button:disabled {
  color: #9a8c7c;
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.dates button[aria-pressed="true"],
.slot-list button[aria-pressed="true"] {
  background: var(--walnut-deep);
  color: #fff8e8;
  border-color: var(--walnut-deep);
}

.slot-list { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.9rem 0 1rem; }
.receipt {
  min-height: 1.4em;
  font-weight: 650;
  color: var(--walnut);
}
.mock-note {
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px dashed var(--rule);
  padding-top: 0.9rem;
  margin-top: 0.6rem;
}

/* ---------- Contact ---------- */

.contact-card {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  text-align: left;
}

.contact-actions { margin: 1.4rem 0 1.6rem; }

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin: 0;
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule);
}
.contact-details dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.2rem;
}
.contact-details dd { margin: 0; }
.contact-details a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--walnut-deep);
  color: #f8efd8;
  padding: 2.4rem 0 2.2rem;
  border-top: 3px solid var(--honey);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: end;
}

.footer-brand .brand-name { font-size: 1.55rem; margin: 0 0 0.35rem; }
.footer-tagline {
  margin: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--honey-bright);
  letter-spacing: 0;
}

.footer-meta { color: #e8d8b8; font-size: 0.95rem; }
.footer-meta p { margin: 0 0 0.25rem; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover,
.footer-meta a:focus-visible { text-decoration: underline; }

/* ---------- Focus ---------- */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .service-grid,
  .trust-grid,
  .gallery,
  .quotes,
  .area-split,
  .planner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--walnut);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    border-bottom: 3px solid var(--honey);
  }

  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { padding: 0.75rem 0.4rem; border-bottom: 1px solid rgba(248, 239, 216, 0.12); }
  .nav-cta {
    margin-top: 0.4rem;
    text-align: center;
    border-bottom: 0 !important;
  }
}

@media (max-width: 760px) {
  .service-grid,
  .trust-grid,
  .gallery,
  .quotes,
  .area-split,
  .planner,
  .contact-details { grid-template-columns: 1fr; }

  .slots { border-left: 0; border-top: 1px solid var(--rule); }
  .hero { min-height: 70svh; padding-top: 5rem; align-items: end; }
  .hero-image { object-position: 70% 50%; }
  .section { padding: 3.2rem 0; }
  .wrap { width: min(calc(100% - 1.5rem), var(--wrap)); }
}

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