/* ============================================================
   UR Hospitality — Site Design System (v2, editorial rebuild)
   Used by: index.html, roi.html, services.html, about.html
   (ad_*.html keep using style.css — do not merge)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink: #231A14;
    --coffee: #4A3B31;
    --cream: #FAF8F4;
    --sand: #EDE6DC;
    --clay: #C2410C;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    /* Reserve symmetric gutters so the vertical scrollbar doesn't push
       centered content ~8px left of true screen center (Windows browsers) */
    scrollbar-gutter: stable both-edges;
    background: var(--cream);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    /* Safety net: any future element that overflows horizontally gets clipped
       instead of shifting the whole page off-center */
    overflow-x: clip;
}

.font-display {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ---------- Responsive canvas width ----------
   Stretch content to the screen on desktop: full width minus a slim
   24px edge each side, capped only on very large monitors. The body
   prefix outranks the Tailwind utility regardless of stylesheet order. */
@media (min-width: 1024px) {
    body .max-w-6xl {
        max-width: min(100% - 48px, 1760px);
    }
}

/* ---------- Desktop type scale ----------
   The canvas stretches with the screen, so the type must too.
   Everything is rem-based, so bumping the root scales typography
   AND spacing together — the design grows as one. */
@media (min-width: 1280px) {
    html {
        font-size: 17px;
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 18px;
    }
}

/* Convert fixed-px type to rem equivalents (identical at the 16px
   baseline) so the root-size bump scales them with everything else. */
body .text-\[9px\]  { font-size: 0.5625rem; }
body .text-\[10px\] { font-size: 0.625rem; }
body .text-\[11px\] { font-size: 0.6875rem; }
body .text-\[13px\] { font-size: 0.8125rem; }
body .text-\[15px\] { font-size: 0.9375rem; }
body .text-\[17px\] { font-size: 1.0625rem; }
body .text-\[40px\] { font-size: 2.5rem; }
body .text-\[44px\] { font-size: 2.75rem; }

@media (min-width: 768px) {
    body .md\:text-\[52px\] { font-size: 3.25rem; }
    body .md\:text-\[68px\] { font-size: 4.25rem; }
}

/* ---------- Scroll progress ---------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--clay);
    z-index: 90;
    transition: width 0.1s linear;
}

/* ---------- Nav ---------- */
#site-nav {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#site-nav.scrolled {
    box-shadow: 0 1px 0 var(--sand), 0 8px 24px -16px rgb(35 26 20 / 0.25);
}

.nav-link {
    position: relative;
    color: #57534e;
    transition: color 0.2s ease;
    padding-bottom: 2px;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1.5px;
    background: var(--clay);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* ---------- Buttons ---------- */
.btn-primary {
    background: var(--ink);
    color: #fff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: var(--coffee);
    transform: translateY(-1px);
}

.btn-ghost {
    border: 1px solid #d6cec2;
    color: var(--ink);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-ghost:hover {
    border-color: var(--ink);
    background: #fff;
}

/* ---------- Scroll reveal (only when JS is confirmed running) ---------- */
html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

html.js .reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Stagger helper: children of .reveal-group get sequential delays */
.reveal-group > .reveal:nth-child(1) { --reveal-delay: 0ms; }
.reveal-group > .reveal:nth-child(2) { --reveal-delay: 90ms; }
.reveal-group > .reveal:nth-child(3) { --reveal-delay: 180ms; }
.reveal-group > .reveal:nth-child(4) { --reveal-delay: 270ms; }
.reveal-group > .reveal:nth-child(5) { --reveal-delay: 360ms; }
.reveal-group > .reveal:nth-child(6) { --reveal-delay: 450ms; }

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border: 1px solid var(--sand);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #d6cec2;
    box-shadow: 0 16px 32px -20px rgb(35 26 20 / 0.35);
}

/* ---------- Hairline section label ---------- */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clay);
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sand);
}

/* ---------- Logo strip ---------- */
.logo-strip img {
    height: 26px;
    opacity: 0.55;
    filter: grayscale(100%);
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.logo-strip img:hover {
    opacity: 1;
    filter: none;
}

/* ---------- Quote modal ---------- */
#quote-modal {
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Range inputs (ROI page) ---------- */
input[type="range"] {
    accent-color: var(--coffee);
}

/* ---------- Preset chips (ROI page) ---------- */
.preset-chip {
    border: 1px solid #d6cec2;
    color: #57534e;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.preset-chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.preset-chip.preset-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* ---------- Misc ---------- */
::selection {
    background: var(--clay);
    color: #fff;
}

@media (max-width: 767px) {
    .font-display {
        letter-spacing: -0.015em;
    }
}
