/* ============================================
   AI.RIDGEWAY — STYLES
   Grounded · Clear · Confident
   ============================================ */

:root {
    --cream:        #f4f1eb;
    --cream-deep:   #e8e3d8;
    --bone:         #faf8f3;
    --ink:          #1a1917;
    --ink-soft:     #5a5850;
    --forest:       #2a3d28;
    --sage:         #4a6347;
    --amber:        #b8892e;
    --slate:        #3d4a5c;
    --rule:         #d4cfc4;
    --accent:       #1a3a1a;

    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body:    'DM Sans', -apple-system, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle paper-grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4vw;
    background-color: var(--cream);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-mark {
    height: 44px;
    padding: 0 0.9rem;
    background: var(--forest);
    color: var(--cream);
    display: grid;
    place-items: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border-radius: 6px;
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-line-1 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}
.logo-line-2 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--ink-soft);
    margin-top: 3px;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--ink); }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--forest);
    color: var(--cream);
    border: none;
    padding: 0.65rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
}
.nav-cta:hover {
    background: var(--ink);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 65vh;
    min-height: 400px;
    max-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 25, 23, 0.05) 0%,
        rgba(26, 25, 23, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 6vw;
    max-width: 760px;
    animation: heroRise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(244, 241, 235, 0.75);
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.hero-content h1 em {
    font-style: italic;
    color: rgba(244, 241, 235, 0.85);
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(244, 241, 235, 0.8);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--cream);
    color: var(--ink);
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}
.hero-btn:hover {
    background: white;
    transform: translateY(-2px);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 6rem 4vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage);
    text-align: center;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    text-align: center;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 4rem;
    max-width: 680px;
}
.section-title em {
    font-style: italic;
    color: var(--sage);
}

.product-grid {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   SERVICE CARD
   ============================================ */
.product-card {
    background: var(--bone);
    border: 1px solid var(--rule);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: cardRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.product-card:hover {
    box-shadow: 0 12px 40px rgba(26, 25, 23, 0.1);
    transform: translateY(-3px);
}

@keyframes cardRise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Stagger card animations */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.25s; }
.product-card:nth-child(4) { animation-delay: 0.35s; }

.product-image-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Service icon illustration */
.service-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(244, 241, 235, 0.3);
}

.product-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.product-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.product-price {
    background: var(--forest);
    color: var(--cream);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-desc {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.75;
    flex-grow: 1;
}

.add-to-cart {
    background: var(--forest);
    color: var(--cream);
    border: none;
    padding: 0.85rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 0.65rem;
}
.add-to-cart:hover {
    background: var(--ink);
    transform: translateY(-1px);
}

/* Detail toggle */
.detail-toggle {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--rule);
    padding: 0.85rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.detail-toggle:hover { border-color: var(--ink); background: var(--cream); }
.detail-toggle svg { transition: transform 0.3s ease; }
.detail-toggle.open svg { transform: rotate(180deg); }

.product-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.4s ease;
}
.product-detail.open {
    max-height: 1000px;
    margin-top: 1rem;
}

.detail-inner {
    padding: 1.25rem;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.7;
}
.detail-inner h4 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.65rem;
}

/* ============================================
   WHY SECTION
   ============================================ */
.why-section {
    background: var(--forest);
    padding: 6rem 4vw;
}

.why-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.why-section .page-eyebrow {
    color: rgba(244, 241, 235, 0.5);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.why-card {
    padding: 2rem;
    border: 1px solid rgba(244, 241, 235, 0.12);
    border-radius: 8px;
    color: var(--cream);
    background: rgba(244, 241, 235, 0.04);
}

.why-icon {
    width: 48px;
    height: 48px;
    background: rgba(244, 241, 235, 0.08);
    border-radius: 8px;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    color: rgba(244, 241, 235, 0.7);
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--cream);
}

.why-card p {
    font-size: 0.9rem;
    color: rgba(244, 241, 235, 0.65);
    line-height: 1.75;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 6rem 4vw;
    display: flex;
    justify-content: center;
}

.contact-inner {
    max-width: 640px;
    text-align: center;
}

.contact-sub {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    margin-top: -2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--forest);
    color: var(--cream);
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.contact-btn:hover {
    background: var(--ink);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 2.5rem 4vw;
    text-align: center;
    border-top: 1px solid var(--rule);
    color: var(--ink-soft);
    font-size: 0.82rem;
}

/* ============================================
   DRAWER (re-used for service detail)
   ============================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 25, 23, 0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: var(--cream);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(26, 25, 23, 0.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
    padding: 1.75rem;
    border-bottom: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
}

.cart-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--ink);
    transition: transform 0.2s ease;
}
.cart-close:hover { transform: rotate(90deg); }

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem 1.75rem;
}

.drawer-service-icon {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--forest);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(244,241,235,0.25);
    margin-bottom: 2rem;
}

.drawer-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 0.5rem;
}

.drawer-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.drawer-desc {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.drawer-includes h4 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1rem;
}

.drawer-includes ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.drawer-includes li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.drawer-includes li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sage);
    flex-shrink: 0;
    margin-top: 0.45rem;
}

.cart-footer {
    padding: 1.75rem;
    border-top: 1px solid var(--rule);
    background: var(--bone);
}

.checkout-btn {
    display: block;
    width: 100%;
    background: var(--forest);
    color: var(--cream);
    border: none;
    padding: 1.05rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}
.checkout-btn:hover {
    background: var(--ink);
    transform: translateY(-1px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .navbar { padding: 1rem 4vw; }
    .nav-link { display: none; }
    .logo-line-1 { font-size: 1rem; }
    .logo-line-2 { display: none; }
    .hero { height: 55vh; min-height: 360px; }
    .hero-content h1 { font-size: 2.4rem; }
    .services-section { padding: 4rem 4vw; }
    .product-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
}
