/* ─────────────────────────────────────────────
   Ritchie Systems — stylesheet
   Fonts loaded in index.html:
     Playfair Display (400, 700, 900) — headings
     DM Sans (300, 400, 500, 600, italic) — body & labels
   ───────────────────────────────────────────── */

/* ── TOKENS ── */
:root {
    --navy:             #1a2332;   /* Primary dark — trust, depth */
    --navy-mid:         #2e4a6b;   /* Secondary dark — logo accent, depth layers */
    --terracotta:       #c8623e;   /* Primary action — CTAs, accents, hover */
    --terracotta-light: #e07a56;   /* Hover / highlight state */
    --cream:            #f7f4ee;   /* Warm background */
    --cream-dark:       #ede9df;   /* Dividers, card backgrounds */
    --slate:            #4a5568;   /* Body text on light backgrounds */
    --slate-light:      #718096;   /* Secondary / caption text */
    --white:            #ffffff;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--navy);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, .display {
    font-family: 'Playfair Display', serif;
    line-height: 1.15;
}

/* ── NAVIGATION ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(247, 244, 238, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 35, 50, 0.08);
}

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--navy);
}

.nav-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 700;
}

.logo-mark {
    width: 30px; height: 30px;
    position: relative; flex-shrink: 0;
}

.logo-mark::before, .logo-mark::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 3px;
}

.logo-mark::before { background: var(--terracotta); top: 0; left: 0; }
.logo-mark::after  { background: var(--navy-mid); bottom: 0; right: 0; opacity: 0.85; }

.nav-links {
    display: flex; align-items: center; gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none; color: var(--slate);
    font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--terracotta); }

.nav-cta {
    background: var(--navy) !important;
    color: var(--cream) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px !important;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: var(--terracotta) !important;
    transform: translateY(-1px);
}

/* ── BUTTONS ── */
.btn-primary {
    background: var(--terracotta);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(200, 98, 62, 0.25);
}

.btn-primary:hover {
    background: var(--terracotta-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 98, 62, 0.35);
}

.btn-ghost {
    color: var(--navy);
    padding: 0.875rem 0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ── SECTION COMMONS ── */
section { padding: 7rem 2rem; }

.container { max-width: 1200px; margin: 0 auto; }

.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem; font-weight: 600;
    color: var(--terracotta);
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.75rem;
}

.section-label::before {
    content: '';
    display: block; width: 24px; height: 1.5px;
    background: var(--terracotta);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--slate);
    max-width: 580px;
    line-height: 1.75;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: clamp(120px, 18vw, 260px);
    font-weight: 900;
    color: var(--navy);
    opacity: 0.04;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

.hero-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
    position: relative; z-index: 2;
}

.hero-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem; font-weight: 600;
    color: var(--terracotta);
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.75rem;
}

.hero-eyebrow::before {
    content: '';
    display: block; width: 32px; height: 1.5px;
    background: var(--terracotta);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--navy);
    margin-bottom: 1.75rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--terracotta);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.75;
}

.hero-actions {
    display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}

/* Hero card stack */
.hero-visual {
    position: relative;
    height: 480px;
}

.feature-card {
    background: white;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(26, 35, 50, 0.1);
    position: absolute;
}

.fc-main {
    width: 100%; top: 0; left: 0;
    animation: float 6s ease-in-out infinite;
}

.fc-small {
    width: 210px;
    bottom: 20px; right: -20px;
    background: var(--navy);
    color: white;
    animation: float 6s ease-in-out 2s infinite;
}

.fc-tag {
    width: 180px;
    bottom: 100px; left: -30px;
    animation: float 6s ease-in-out 4s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

.fc-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}

.fc-small .fc-label { color: var(--terracotta-light); }

.fc-main h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; margin-bottom: 1rem;
}

.fc-main .booking-list { list-style: none; }

.fc-main .booking-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.85rem;
    color: var(--slate);
    display: flex; align-items: center; justify-content: space-between;
}

.fc-main .booking-list li:last-child { border-bottom: none; }

.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #5a9e6f; flex-shrink: 0;
}

.status-dot.full { background: var(--terracotta); }

.fc-small .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; font-weight: 700;
    color: white; line-height: 1;
}

.fc-small .stat-label {
    font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 0.25rem;
}

.fc-tag .photo-tags {
    display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem;
}

.photo-tag {
    background: var(--cream);
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: var(--slate);
}

/* ── CAPABILITIES ── */
.capabilities { background: white; }

.caps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--cream-dark);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 4rem;
}

.cap-item {
    background: white;
    padding: 2.5rem;
    transition: background 0.25s;
}

.cap-item:hover { background: var(--cream); }

.cap-icon {
    width: 48px; height: 48px;
    background: var(--cream);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: background 0.25s;
}

.cap-item:hover .cap-icon { background: rgba(200, 98, 62, 0.1); }

.cap-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.cap-item p {
    font-size: 0.92rem;
    color: var(--slate-light);
    line-height: 1.7;
}

/* ── PROCESS ── */
.process { background: var(--cream); }

.process-header {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: end;
    margin-bottom: 5rem;
}

.process-body {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: start;
}

.process-steps { position: relative; }

.process-steps::before {
    content: '';
    position: absolute;
    left: 28px; top: 28px; bottom: 28px;
    width: 1.5px;
    background: var(--cream-dark);
}

.step {
    display: flex; gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step:last-child { margin-bottom: 0; }

.step-num {
    width: 56px; height: 56px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; font-weight: 700;
    color: var(--terracotta);
    flex-shrink: 0;
    border: 1.5px solid var(--cream-dark);
    position: relative; z-index: 1;
    transition: all 0.25s;
}

.step:hover .step-num {
    background: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
}

.step-body { padding-top: 0.75rem; }

.step-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.step-body p { font-size: 0.92rem; color: var(--slate-light); line-height: 1.7; }

.process-aside {
    background: var(--navy);
    border-radius: 16px;
    padding: 3rem;
    color: white;
}

.ongoing-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.72rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.ongoing-badge::before {
    content: '';
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--terracotta-light);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.3); }
}

.process-aside h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white;
}

.process-aside p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.checkin-list { list-style: none; }

.checkin-list li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.checkin-list li:last-child { border-bottom: none; }

.checkin-list li::before {
    content: '→';
    color: var(--terracotta-light);
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* ── WHY ── */
.why { background: white; }

.why-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
}

.why-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.5rem;
}

.why-content h2 em { font-style: italic; color: var(--terracotta); }

.why-content p {
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.why-pull {
    border-left: 3px solid var(--terracotta);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: var(--cream);
    border-radius: 0 8px 8px 0;
}

.why-pull p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--navy);
    margin: 0;
    line-height: 1.6;
}

.pillars {
    display: flex; flex-direction: column; gap: 1rem;
}

.pillar {
    background: var(--cream);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    display: flex; gap: 1rem; align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pillar:hover {
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--terracotta);
}

.pillar-icon { font-size: 1.4rem; flex-shrink: 0; }

.pillar h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pillar p { font-size: 0.875rem; color: var(--slate-light); margin: 0; }

/* ── CONTACT ── */
.contact-section {
    background: var(--navy);
    color: white;
    padding: 7rem 2rem;
    position: relative; overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(200, 98, 62, 0.12) 0%, transparent 65%);
    bottom: -300px; right: -200px;
    pointer-events: none;
}

.contact-inner {
    max-width: 640px; margin: 0 auto;
    text-align: center;
    position: relative; z-index: 1;
}

.contact-details { justify-content: center; list-style: none; }
.contact-details li { justify-content: center; }

.contact-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: white;
    margin-bottom: 1.25rem;
}

.contact-left p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem; line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-details li {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.contact-details li:last-child { border-bottom: none; }

.contact-details a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.contact-details a:hover { color: var(--terracotta-light); }

/* ── FOOTER ── */
footer {
    background: #111820;
    color: rgba(255,255,255,0.5);
    padding: 2rem;
}

.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.footer-links {
    display: flex; gap: 2rem; list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

.footer-copy { font-size: 0.8rem; }

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-inner         { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual        { height: 320px; }
    .caps-grid          { grid-template-columns: 1fr 1fr; }
    .process-header     { grid-template-columns: 1fr; gap: 3rem; }
    .process-body       { grid-template-columns: 1fr; gap: 3rem; }
    .why-grid           { grid-template-columns: 1fr; gap: 3rem; }
    .contact-inner      { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 600px) {
    section             { padding: 5rem 1.25rem; }
    .caps-grid          { grid-template-columns: 1fr; }
    .hero-visual        { display: none; }
    nav .nav-links      { display: none; }
}
