/* Renton Skin Care — shared design system (sage/ivory)
   Canonical source for tokens, header, nav, mobile menu, footer.
   Page-specific styles live inline on each page and load after this file. */

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/playfair-display-500.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/playfair-display-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/montserrat-300.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/montserrat-500.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/montserrat-600.woff2') format('woff2'); }

:root {
    --ivory: #FAF6EF;
    --cream: #F3EEE4;
    --white: #FFFFFF;
    --sage: #7E8B72;
    --sage-deep: #5C6A50;
    --sage-dark: #46523C;
    --sage-tint: #ECEFE5;
    --charcoal: #2F2E2A;
    --warm-gray: #6C685F;
    --line: #E7E1D3;
    --gold: #C9A227;
    --radius-img: 14px;
    --radius-card: 16px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 4rem;
    --sp-xl: 6.5rem;
    --transition: all 0.3s ease;
}

.icon { width: 1.1em; height: 1.1em; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem 2.1rem; min-height: 44px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; border: 1px solid transparent; border-radius: 999px; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-primary { background-color: var(--sage-deep); color: var(--white); }
.btn-primary:hover { background-color: var(--sage-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.85); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--charcoal); }
.btn-outline-soft { background: var(--white); border-color: var(--line); color: var(--charcoal); }
.btn-outline-soft:hover { border-color: var(--sage); color: var(--sage-deep); }

/* Top Bar */
.top-bar { background: var(--sage-dark); color: rgba(255,255,255,0.92); padding: 0.4rem 0; font-size: 0.78rem; letter-spacing: 0.02em; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top-bar a { color: inherit; }
.top-bar a:hover { color: var(--white); }
.top-bar-left { display: flex; gap: 1.75rem; align-items: center; min-width: 0; }
.top-bar-left span, .top-bar-left a { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.top-bar-right { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; }
.site-header .container, .mobile-menu .container, footer .container { max-width: 1180px; margin: 0 auto; padding: 0 var(--sp-md); }
header.main-header { background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-main { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 0; }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.logo-divider-top, .logo-divider-bottom { width: 40px; height: 1px; background: var(--sage); }
.logo-divider-top { margin-bottom: 7px; }
.logo-divider-bottom { margin-top: 7px; }
.logo-main { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.06em; color: var(--charcoal); text-align: center; line-height: 1.1; }
.logo-main .logo-highlight { display: block; font-style: italic; letter-spacing: 0.02em; color: var(--sage-deep); font-size: 0.95rem; margin-top: 2px; }
nav.main-nav > ul { display: flex; list-style: none; gap: 1.9rem; align-items: center; margin: 0; padding: 0; }
nav.main-nav a { font-size: 0.88rem; font-weight: 400; letter-spacing: 0.05em; transition: var(--transition); padding: 0.35rem 0; color: var(--charcoal); text-decoration: none; }
nav.main-nav > ul > li > a:not(.btn):hover { color: var(--sage-deep); }
nav.main-nav a.btn { color: var(--white); }
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-dropdown .icon { width: 0.9em; height: 0.9em; transition: var(--transition); }
.dropdown-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(47,46,42,0.1); padding: 0.5rem; min-width: 230px; list-style: none; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 1001; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown:hover > a .icon { transform: rotate(180deg); }
.dropdown-menu li a { display: block; padding: 0.6rem 0.9rem; border-radius: 8px; font-size: 0.88rem; color: var(--charcoal); }
.dropdown-menu li a:hover { background: var(--sage-tint); color: var(--sage-deep); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--charcoal); padding: 10px; min-width: 44px; min-height: 44px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mobile-menu-btn .icon { width: 26px; height: 26px; }

/* Mobile menu */
.mobile-menu { display: flex; position: fixed; top: 0; right: 0; width: min(340px, 88vw); height: 100vh; height: 100dvh; background: var(--white); z-index: 2000; padding: 5.5rem var(--sp-md) var(--sp-md); flex-direction: column; box-shadow: -20px 0 60px rgba(47,46,42,0.18); transform: translateX(105%); transition: transform 0.32s ease; overflow-y: auto; }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > ul > li { margin-bottom: 0.25rem; }
.mobile-menu a { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--charcoal); padding: 0.55rem 0; min-height: 44px; text-decoration: none; }
.mobile-menu a:hover { color: var(--sage-deep); }
.mobile-menu .mobile-secondary { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.mobile-menu .mobile-secondary a { font-family: var(--font-body); font-size: 0.95rem; color: var(--warm-gray); }
.mobile-menu .btn { margin-top: 1.5rem; font-family: var(--font-body); font-size: 0.82rem; color: var(--white); }
.mobile-menu-close { position: absolute; top: 1.1rem; right: 1.1rem; background: none; border: none; cursor: pointer; color: var(--charcoal); padding: 10px; min-width: 44px; min-height: 44px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mobile-menu-close .icon { width: 26px; height: 26px; }
.menu-backdrop { position: fixed; inset: 0; background: rgba(41,38,31,0.4); z-index: 1999; opacity: 0; visibility: hidden; transition: var(--transition); }
.menu-backdrop.active { opacity: 1; visibility: visible; }

/* Footer */
footer { background: #2B2E25; color: var(--white); padding: var(--sp-lg) 0 var(--sp-md); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-lg); margin-bottom: var(--sp-lg); }
.footer-brand p { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.footer-logo .logo-main { color: var(--white); }
.footer-logo .logo-highlight { color: #A9B79B; }
.footer-logo .logo-divider-top, .footer-logo .logo-divider-bottom { background: #A9B79B; }
.footer-social { display: flex; gap: 0.9rem; margin-top: 1.4rem; }
.footer-social a { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.28); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); color: rgba(255,255,255,0.85); }
.footer-social a:hover { background: var(--sage); border-color: var(--sage); color: var(--white); }
.footer-column h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.4rem; color: rgba(255,255,255,0.92); }
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin-bottom: 0.7rem; color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.footer-column a { color: rgba(255,255,255,0.68); font-size: 0.92rem; transition: var(--transition); text-decoration: none; }
.footer-column a:hover { color: #A9B79B; }
.footer-newsletter { margin-top: 1.6rem; }
.footer-newsletter h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.5rem; color: rgba(255,255,255,0.92); }
.footer-newsletter p { font-size: 0.85rem; margin-bottom: 0.75rem; }
.footer-newsletter-row { display: flex; gap: 0.5rem; max-width: 340px; }
.footer-newsletter input[type="email"] { flex: 1; min-width: 0; padding: 0.7rem 1rem; min-height: 44px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.07); color: var(--white); border-radius: 999px; font-family: var(--font-body); font-size: 0.88rem; }
.footer-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter button { padding: 0.7rem 1.3rem; min-height: 44px; background: var(--sage); color: var(--white); border: none; border-radius: 999px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: var(--transition); }
.footer-newsletter button:hover { background: var(--sage-deep); }
.footer-bottom { padding-top: var(--sp-md); border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Responsive — shared components */
@media (max-width: 968px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
}
@media (max-width: 768px) {
    nav.main-nav { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .top-bar-content { justify-content: center; }
    .top-bar .top-bar-address, .top-bar-right { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-newsletter-row { margin: 0 auto; }
    .footer-bottom { justify-content: center; text-align: center; }
}
