/* ============================================
   GLOBAL STYLES — Natural Options Kenya
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--no-charcoal);
    background-color: var(--no-cream);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--no-forest);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    color: var(--no-charcoal);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
    margin-bottom: var(--space-md);
    line-height: var(--lh-relaxed);
}

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

/* ---- Container ---- */
.no-container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.no-container--narrow {
    max-width: var(--container-narrow);
}

.no-container--wide {
    max-width: var(--container-wide);
}

/* ---- Sections ---- */
.no-section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
}

.no-section--sm {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.no-section--cream {
    background-color: var(--no-cream);
}

.no-section--white {
    background-color: var(--no-white);
}

.no-section--forest {
    background-color: var(--no-forest);
    color: var(--no-white);
}

.no-section--forest h2,
.no-section--forest h3,
.no-section--forest h4,
.no-section--forest p {
    color: var(--no-white);
}

.no-section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.no-section__title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-sm);
    letter-spacing: var(--ls-tight);
}

.no-section__subtitle {
    font-size: var(--fs-md);
    color: var(--no-gray);
    font-weight: var(--fw-regular);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.no-section__divider {
    width: 60px;
    height: 2px;
    background-color: var(--no-gold);
    margin: var(--space-md) auto;
    border: none;
}

/* ---- Buttons ---- */
.no-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1;
    white-space: nowrap;
}

.no-btn--primary {
    background-color: var(--no-forest);
    color: var(--no-white);
    border-color: var(--no-forest);
}

.no-btn--primary:hover {
    background-color: var(--no-forest-dark);
    border-color: var(--no-forest-dark);
    color: var(--no-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.no-btn--secondary {
    background-color: transparent;
    color: var(--no-forest);
    border-color: var(--no-forest);
}

.no-btn--secondary:hover {
    background-color: var(--no-forest);
    color: var(--no-white);
    transform: translateY(-1px);
}

.no-btn--gold {
    background-color: var(--no-gold);
    color: var(--no-white);
    border-color: var(--no-gold);
}

.no-btn--gold:hover {
    background-color: var(--no-gold-dark);
    border-color: var(--no-gold-dark);
    color: var(--no-white);
    transform: translateY(-1px);
}

.no-btn--white {
    background-color: var(--no-white);
    color: var(--no-forest);
    border-color: var(--no-white);
}

.no-btn--white:hover {
    background-color: var(--no-cream);
    border-color: var(--no-cream);
    color: var(--no-forest);
    transform: translateY(-1px);
}

.no-btn--sm {
    padding: 10px 20px;
    font-size: var(--fs-xs);
}

.no-btn--lg {
    padding: 18px 42px;
    font-size: var(--fs-base);
}

.no-btn--full {
    width: 100%;
}

/* ---- Forms ---- */
.no-input {
    width: 100%;
    padding: 14px 18px;
    font-size: var(--fs-sm);
    background-color: var(--no-white);
    border: 1px solid var(--no-gray-lighter);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
}

.no-input:focus {
    border-color: var(--no-forest);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.08);
}

.no-input::placeholder {
    color: var(--no-gray-light);
}

/* ---- Grid ---- */
.no-grid {
    display: grid;
    gap: var(--space-lg);
}

.no-grid--2 { grid-template-columns: repeat(2, 1fr); }
.no-grid--3 { grid-template-columns: repeat(3, 1fr); }
.no-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Utility ---- */
.no-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.no-text-center { text-align: center; }
.no-text-left   { text-align: left; }
.no-text-right  { text-align: right; }

.no-flex {
    display: flex;
}

.no-flex--center {
    align-items: center;
    justify-content: center;
}

.no-flex--between {
    align-items: center;
    justify-content: space-between;
}

/* ---- Animations ---- */
.no-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.no-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.no-reveal--delay-1 { transition-delay: 0.1s; }
.no-reveal--delay-2 { transition-delay: 0.2s; }
.no-reveal--delay-3 { transition-delay: 0.3s; }
.no-reveal--delay-4 { transition-delay: 0.4s; }

/* ---- Breadcrumb ---- */
.no-breadcrumb {
    background-color: var(--no-cream);
    padding: var(--space-md) 0;
    font-size: var(--fs-sm);
    color: var(--no-gray);
}

.no-breadcrumb a {
    color: var(--no-gray);
    transition: color var(--transition-fast);
}

.no-breadcrumb a:hover {
    color: var(--no-forest);
}

.no-breadcrumb__sep {
    margin: 0 var(--space-sm);
    color: var(--no-gray-light);
}

/* ---- Back to Top ---- */
.no-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--no-forest);
    color: var(--no-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-md);
    border: none;
}

.no-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.no-back-to-top:hover {
    background-color: var(--no-forest-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ---- Star Rating ---- */
.no-star-rating {
    display: inline-flex;
    gap: 2px;
    color: var(--no-gold);
    font-size: var(--fs-sm);
}

.no-star-rating .star-empty {
    color: var(--no-gray-lighter);
}

/* ---- Selection ---- */
::selection {
    background-color: var(--no-forest);
    color: var(--no-white);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--no-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--no-sage);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--no-forest-light);
}
