/*
Theme Name: Reny Lavi Pery
Theme URI: https://renylavipery.co.il
Author: Reny Lavi Pery Studio
Description: תבנית וורדפרס מותאמת אישית לרני לביא פרי — מעצבת גרפית ומפיקת דפוס.
Version: 1.0
Text Domain: reny-lavi-pery
*/

/* ============================================================
   Reny Lavi Pery — Graphic Design & Print Production
   Design language: colors sampled directly from the client's
   logo (violet wordmark, rose subtitle, sky-blue butterflies).
   Typeface: Rubik, kept light (300) for reading and medium (500)
   for emphasis — no heavy weights.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap');

:root {
    --ink: #251c47;
    --ink-soft: #3c2f70;
    --purple: #6849d6;
    --purple-deep: #4f34b0;
    --rose: #ee4266;
    --rose-deep: #c72c4c;
    --lavender: #9586bf;
    --sky: #00b1ec;
    --cream: #faf5ef;
    --paper: #fffdfb;
    --line: #e6ddf0;
    --text: #4a4356;
    --text-light: #857c8f;
    --white: #ffffff;

    --font-display: 'Rubik', sans-serif;
    --font-body: 'Rubik', sans-serif;

    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 4px;
    --shadow: 0 20px 50px -20px rgba(37, 28, 71, 0.25);
    --shadow-soft: 0 10px 30px -12px rgba(37, 28, 71, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text);
    line-height: 1.7;
    background-color: var(--cream);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.section-padding { padding: 130px 0; }

@media (max-width: 768px) {
    .section-padding { padding: 80px 0; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 500;
    line-height: 1.25;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--rose-deep);
    font-weight: 500;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--rose-deep);
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-light);
    max-width: 620px;
    margin-bottom: 20px;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Decorative butterfly motif ---------- */
.butterfly {
    position: absolute;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.butterfly path { fill: none; stroke-linecap: round; }

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(3deg); }
}

.butterfly { animation: drift 7s ease-in-out infinite; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(120deg, var(--purple) 0%, var(--rose) 100%);
    color: var(--white);
    box-shadow: 0 12px 30px -10px rgba(104, 73, 214, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -12px rgba(104, 73, 214, 0.6);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.btn-outline-dark:hover {
    background: var(--ink);
    color: var(--white);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    width: 100%;
    background: rgba(250, 245, 239, 0.85);
    backdrop-filter: blur(14px);
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(250, 245, 239, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img { height: 52px; width: auto; transition: var(--transition); }
.navbar.scrolled .logo-img { height: 42px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav-links a {
    font-weight: 400;
    font-size: 1.02rem;
    color: var(--ink-soft);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    inset-inline-start: 0;
    width: 0;
    height: 1.5px;
    background: var(--rose);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ink);
    padding: 140px 20px 100px;
    background: var(--cream);
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-video-banner {
    width: 100vw;
    margin-inline-start: calc(50% - 50vw);
    margin-inline-end: calc(50% - 50vw);
    margin-bottom: 44px;
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(37, 28, 71, 0.3);
}

.hero-full-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
}

.hero-title-light {
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.hero-subtitle-light {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--rose-deep);
    letter-spacing: 0.02em;
    margin-bottom: 40px;
}

.hero-subtitle-light .sep {
    color: var(--lavender);
    margin: 0 6px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll-dark {
    color: var(--text-light);
}

.hero-scroll-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    animation: bounceArrow 2s ease-in-out infinite;
    transition: var(--transition);
}

.hero-scroll-dark .hero-scroll-btn {
    border-color: var(--line);
    color: var(--ink);
}

.hero-scroll:hover .hero-scroll-btn {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ---------- About ---------- */
.about-section { position: relative; background: var(--paper); overflow: hidden; }

.about-bg-mark {
    position: absolute;
    top: -60px;
    inset-inline-end: -80px;
    width: 380px;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}

.about-wrap {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-wrap > .btn { margin-top: 10px; }

.about-quote {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: var(--ink);
    line-height: 1.5;
    margin: 36px 0;
    padding-inline-start: 26px;
    border-inline-start: 3px solid var(--rose);
}

.about-text p {
    font-size: 1.12rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--text);
}

.about-signature {
    margin-top: 40px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--rose-deep);
    font-style: italic;
}

/* ---------- Portfolio ---------- */
.portfolio-section { background: var(--cream); }

.portfolio-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.portfolio-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(160deg, var(--ink-soft) 0%, var(--purple-deep) 100%);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.portfolio-card-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--white);
}

.portfolio-card-logo {
    background-image: url('assets/portfolio-branding.jpg');
    background-size: cover;
    background-position: center;
    align-items: flex-end;
    padding-bottom: 22px;
}

.portfolio-card-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 8, 20, 0.65) 0%, transparent 50%);
    z-index: 0;
}

.portfolio-card-books { background: linear-gradient(160deg, #3c2f70 0%, #c72c4c 100%); }
.portfolio-card-rollup { background: linear-gradient(160deg, #4f34b0 0%, #00b1ec 100%); }
.portfolio-card-web { background: linear-gradient(160deg, #251c47 0%, #6849d6 100%); }
.portfolio-card-folder { background: linear-gradient(160deg, #ee4266 0%, #4f34b0 100%); }

.portfolio-card-more {
    background: transparent;
    border: 1.5px dashed var(--lavender);
    flex-direction: column;
    gap: 10px;
}

.portfolio-card-more .portfolio-card-title {
    color: var(--ink);
    font-size: 1.5rem;
}

.portfolio-card-more-sub {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 300;
    max-width: 180px;
}

@media (max-width: 860px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .portfolio-card { padding: 16px; }
}

/* ---------- Stats band ---------- */
.stats-section {
    background: linear-gradient(150deg, #4f34b0 0%, #c72c4c 100%);
    padding: 70px 0;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.stats-row .stat-item { flex: 1; min-width: 140px; }

.stats-row .stat-num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 3.2rem;
    color: var(--white);
    line-height: 1;
}

.stats-row .stat-label {
    color: #f0e0e8;
    font-size: 0.95rem;
    font-weight: 300;
    margin-top: 10px;
}

/* ---------- Services ---------- */
.services-section {
    background: var(--ink);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.services-section .eyebrow { color: #d9b8e0; }
.services-section .eyebrow::before { background: #d9b8e0; }
.services-section h2 { color: var(--white); }
.services-section .section-subtitle { color: #c9c0d3; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.12);
    margin-top: 60px;
    border: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service-card {
    background: var(--ink);
    padding: 38px 40px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--ink-soft);
}

.service-num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--sky);
    flex-shrink: 0;
    padding-top: 3px;
}

.service-card p {
    font-size: 1.08rem;
    font-weight: 300;
    color: #ece6f0;
}

/* ---------- Contact ---------- */
.contact-section {
    position: relative;
    background: linear-gradient(150deg, #4f34b0 0%, #c72c4c 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.contact-inner { position: relative; z-index: 1; }

.contact-section h2 { color: var(--white); }

.contact-section .section-subtitle {
    color: #f0e0e8;
    margin-inline: auto;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: var(--white);
    margin: 30px 0 40px;
    border-bottom: 2px solid rgba(255,255,255,0.4);
    padding-bottom: 6px;
    transition: var(--transition);
}

.contact-email:hover { border-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #b9aec4;
    padding: 44px 0;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 300;
}

.footer-logo { height: 34px; margin: 0 auto 14px; opacity: 0.85; }

.footer-name {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: #dcc9e6;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 0;
        inset-inline-end: 0;
        height: 100vh;
        width: min(78vw, 320px);
        background: var(--paper);
        flex-direction: column;
        justify-content: center;
        gap: 34px;
        transform: translateX(-100%);
        transition: var(--transition);
        box-shadow: -20px 0 40px rgba(0,0,0,0.1);
    }

    .nav-links.open { transform: translateX(0); }

    .nav-toggle { display: flex; }

    .stats-row { gap: 36px; }
    .stats-row .stat-item { min-width: 100px; }
}
