/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Colors */
    --primary-color: #0f1c2e;
    /* Deep Navy Blue */
    --secondary-color: #9e8e6b;
    /* Muted Gold/Beige */
    --accent-color: #c0b283;
    /* Lighter Gold */
    --text-color: #333333;
    --light-text: #f4f4f4;
    --bg-color: #ffffff;
    --section-bg: #f9f9f9;
    --border-color: #e0e0e0;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #1a2b42;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.center {
    text-align: center;
}

/* Header */
header {
    height: var(--header-height);
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

.btn-contact {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 4px;
}

.btn-contact:hover {
    background-color: var(--accent-color);
    color: #fff !important;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 40px;
    transition: right 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    margin-top: 40px;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
}

.btn-contact-mobile {
    margin-top: 20px;
    display: inline-block;
    color: var(--secondary-color);
}

/* Hero Section */
#hero {
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    background-color: var(--primary-color);
    /* Fallback */
    /* background-image: url('../img/office-bg.jpg'); */
    /* Optional bg image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 28, 46, 0.95) 0%, rgba(15, 28, 46, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    max-width: 650px;
}

.hero-text h1 {
    color: #fff;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #d0d0d0;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-buttons .btn-secondary {
    color: #fff;
    border-color: #fff;
}

.hero-buttons .btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* About Section */
#about {
    padding: 100px 0;
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    /* Reduced slightly for better proportion */
    height: auto;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.image-outline {
    position: absolute;
    top: 20px;
    left: 50%;
    /* Start from center */
    width: 100%;
    max-width: 350px;
    /* Match img max-width */
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    z-index: 0;
    transform: translate(-50%, 0) translate(-15px, 15px);
    /* Center X, then offset */
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    text-align: justify;
}

.about-list {
    margin-top: 30px;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-list i {
    color: var(--secondary-color);
}

/* Purpose Section */
#purpose {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}

#purpose .section-subtitle {
    color: var(--accent-color);
}

#purpose h2 {
    color: #fff;
    margin-bottom: 30px;
}

.purpose-text {
    max-width: 800px;
    margin: 0 auto;
}

.purpose-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.hebrew-term {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 700;
}

/* Areas Section */
#areas {
    padding: 100px 0;
    background-color: var(--section-bg);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.area-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid transparent;
}

.area-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--secondary-color);
}

.icon-box {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.area-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.area-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Differentials */
#differentials {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #fff;
}

.diff-grid {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.diff-item {
    flex: 1;
    padding: 0 20px;
}

.diff-item h3 {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.diff-item p {
    color: #ddd;
    font-size: 0.95rem;
}

.diff-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    height: 80px;
    align-self: center;
}

/* Articles */
#articles {
    padding: 100px 0;
}

.section-desc {
    color: #666;
    margin-top: -10px;
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.article-content {
    padding: 25px;
}

.article-content h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.article-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 8px;
    color: var(--secondary-color);
}

/* Contact */
#contact {
    padding: 100px 0;
    background-color: var(--section-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info p {
    margin-bottom: 30px;
    color: #666;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.map-placeholder {
    margin-top: 30px;
    background-color: #e9e9e9;
    height: 200px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
}

.map-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-full {
    width: 100%;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.footer-logo p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-oab p {
    color: #aaa;
    margin-bottom: 5px;
}

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
    margin-left: 20px;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    color: #666;
    font-size: 0.85rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {

    .about-grid,
    .contact-wrapper,
    .diff-grid {
        grid-template-columns: 1fr;
        display: grid;
        gap: 40px;
    }

    .diff-grid {
        gap: 30px;
    }

    .diff-divider {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}