/* ============================================
   PERACH STYLING - GLOBAL DESIGN SYSTEM
   Decorilla-inspired premium aesthetic
   ============================================ */

/* ============================================
   IMPORTS - Premium Typography
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Heebo:wght@300;400;500;700&family=Assistant:wght@300;400;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Colors - Sophisticated Palette */
    --color-off-white: #F9F9F9;
    --color-cream: #F5F3EE;
    --color-charcoal: #2A2A2A;
    --color-charcoal-light: #3A3A3A;
    --color-gold: #C5A572;
    --color-gold-dark: #A68B5B;
    --color-gold-light: #D4BC8E;
    --color-sage: #D4E3D5;
    --color-sage-dark: #B8C9B9;
    --color-green: #2C4A3E;
    --color-green-dark: #1F3529;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    
    /* Typography */
    --font-serif: 'Playfair Display', 'Heebo', serif;
    --font-sans: 'Montserrat', 'Assistant', sans-serif;
    --font-hebrew: 'Heebo', 'Assistant', sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    
    /* Spacing */
    --space-xs: 0.5rem;      /* 8px */
    --space-sm: 1rem;        /* 16px */
    --space-md: 1.5rem;      /* 24px */
    --space-lg: 2rem;        /* 32px */
    --space-xl: 3rem;        /* 48px */
    --space-2xl: 4rem;       /* 64px */
    --space-3xl: 6rem;       /* 96px */
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-off-white);
    color: var(--color-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hebrew text styling */
[lang="he"],
[dir="rtl"] {
    font-family: var(--font-hebrew);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-green);
}

h1 {
    font-size: var(--text-6xl);
    letter-spacing: 2px;
}

h2 {
    font-size: var(--text-5xl);
    letter-spacing: 1.5px;
}

h3 {
    font-size: var(--text-4xl);
    letter-spacing: 1px;
}

h4 {
    font-size: var(--text-3xl);
}

h5 {
    font-size: var(--text-2xl);
}

h6 {
    font-size: var(--text-xl);
}

p {
    font-size: var(--text-base);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-gold-dark);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--color-gold);
    background: var(--color-gold);
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.5px;
    border-radius: 0;
}

.btn:hover {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
}

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

.btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

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

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

.btn-large {
    padding: 1.2rem 3rem;
    font-size: var(--text-lg);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: var(--text-sm);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(197, 165, 114, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--color-green);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--color-charcoal);
    font-weight: 500;
    font-size: var(--text-base);
    position: relative;
    transition: color var(--transition-base);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-cta-btn {
    background: var(--color-gold);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: var(--text-base);
    transition: all var(--transition-base);
    text-decoration: none;
}

.nav-cta-btn:hover {
    background: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 165, 114, 0.3);
}

/* RTL Navigation */
[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-3xl) 5%;
}

.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.section-hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 900px;
    padding: 0 var(--space-lg);
}

.section-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
    text-align: center;
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: var(--space-2xl);
    font-weight: 300;
}

/* ============================================
   CONTAINERS
   ============================================ */
.container {
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

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

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

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

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
    display: grid;
    gap: var(--space-lg);
}

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

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

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

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    overflow: hidden;
}

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

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image {
    transform: scale(1.1);
}

.card-content {
    padding: var(--space-lg);
}

.card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--color-charcoal);
    line-height: 1.7;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--color-green);
    font-size: var(--text-base);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--color-sage);
    background: var(--color-white);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    transition: border-color var(--transition-base);
    border-radius: 0;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-3xl) 5% var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3 {
    color: var(--color-gold);
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-base);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation utility classes */
.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-gold {
    color: var(--color-gold);
}

.text-white {
    color: var(--color-white);
}

.text-charcoal {
    color: var(--color-charcoal);
}

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

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

.bg-charcoal {
    background-color: var(--color-charcoal);
}

.bg-green {
    background-color: var(--color-green);
}

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --space-3xl: 4rem;
    }
    
    .nav {
        padding: 1rem 5%;
    }
    
    .nav-links {
        gap: 1.5rem;
        font-size: var(--text-sm);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--space-2xl) 5%;
    }
    
    .btn {
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --text-6xl: 2rem;
        --text-5xl: 1.75rem;
        --text-4xl: 1.5rem;
    }
    
    /* Hide entire navbar on mobile */
    .nav {
        display: none !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Mobile optimizations */
    body {
        padding-bottom: 70px;
        padding-top: 0;
    }
    
    .section {
        padding: 2rem 5%;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}
