
/*
Theme Name: Rejuvenation Custom
Theme URI: https://r.nurseyalda.com/
Author: Rejuvenation Clinic
Description: Lightweight custom WordPress theme for Rejuvenation Clinic.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: rejuvenation-custom
*/

/* -----------------------------------------
   1. Design variables and reset
----------------------------------------- */

:root {
    --rc-color-primary: #171717;
    --rc-color-accent: #b49a68;
    --rc-color-background: #ffffff;
    --rc-color-surface: #f7f6f4;
    --rc-color-text: #333333;
    --rc-color-muted: #777777;
    --rc-color-border: #eeeeee;
    --rc-content-width: 1200px;
    --rc-page-padding: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--rc-color-background);
    color: var(--rc-color-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--rc-color-accent);
}

a:hover {
    color: var(--rc-color-primary);
}

button,
input,
select,
textarea {
    font: inherit;
}

/* -----------------------------------------
   2. General layout
----------------------------------------- */

.site-container {
    width: min(
        calc(100% - (var(--rc-page-padding) * 2)),
        var(--rc-content-width)
    );
    margin-inline: auto;
}

.site-main {
    min-height: 360px;
}

.site-main > :first-child {
    margin-top: 0;
}

.site-main > :last-child {
    margin-bottom: 0;
}

/* -----------------------------------------
   3. Header and branding
----------------------------------------- */

.site-header {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 18px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--rc-color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-brand {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.site-brand a {
    display: inline-block;
    color: var(--rc-color-primary);
    text-decoration: none;
}

.site-brand .custom-logo-link {
    display: inline-block;
}

.site-brand .custom-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 70px;
}

/* -----------------------------------------
   4. Primary navigation
----------------------------------------- */

.site-navigation {
    flex: 0 1 auto;
    min-width: 0;
}

.site-navigation .menu,
.site-navigation ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation a {
    display: inline-block;
    padding: 8px 0;
    color: var(--rc-color-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a {
    color: var(--rc-color-accent);
}

.site-navigation a:focus-visible,
.site-brand a:focus-visible {
    outline: 2px solid var(--rc-color-accent);
    outline-offset: 4px;
}

/* -----------------------------------------
   5. Homepage welcome section
----------------------------------------- */

.welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 72px 0;
    background: var(--rc-color-surface);
    text-align: center;
}

.welcome .site-container {
    max-width: 900px;
}

.welcome h1 {
    margin: 0 0 16px;
    color: var(--rc-color-primary);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
}

.welcome p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--rc-color-muted);
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.8;
}

/* -----------------------------------------
   6. Buttons
----------------------------------------- */

.button,
a.button {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--rc-color-accent);
    border-radius: 3px;
    background: var(--rc-color-accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.button:hover,
a.button:hover {
    border-color: var(--rc-color-primary);
    background: var(--rc-color-primary);
    color: #ffffff;
}

/* -----------------------------------------
   7. Footer
----------------------------------------- */

.site-footer {
    padding: 26px 0;
    background: var(--rc-color-primary);
    color: #ffffff;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
}

.site-footer a {
    color: #ffffff;
}

/* -----------------------------------------
   8. WordPress content and accessibility
----------------------------------------- */

.alignwide {
    max-width: 1400px;
    margin-inline: auto;
}

.alignfull {
    width: 100%;
    max-width: none;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -----------------------------------------
   9. Responsive layout
----------------------------------------- */

@media (max-width: 768px) {
    :root {
        --rc-page-padding: 20px;
    }

    .site-header {
        padding: 16px 0;
    }

    .header-inner {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .site-brand {
        text-align: center;
        font-size: 20px;
    }

    .site-brand .custom-logo {
        max-width: 190px;
        max-height: 60px;
    }

    .site-navigation {
        width: 100%;
    }

    .site-navigation .menu,
    .site-navigation ul {
        justify-content: center;
        gap: 4px 20px;
    }

    .site-navigation a {
        padding: 6px 0;
        font-size: 14px;
    }

    .welcome {
        min-height: 300px;
        padding: 56px 0;
    }
}

@media (max-width: 420px) {
    :root {
        --rc-page-padding: 16px;
    }

    .site-navigation .menu,
    .site-navigation ul {
        gap: 4px 14px;
    }

    .welcome {
        padding: 44px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


.site-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    display: block;
    width: auto;
    max-width: 260px;
    max-height: 80px;
    object-fit: contain;
}

