/* --- Fonts --- */
@font-face { font-family: 'IRANYekan'; src: url('../fonts/iranyekan.ttf') format('truetype'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'IRANYekan'; src: url('../fonts/iranyekan-bold.ttf') format('truetype'); font-weight: bold; font-display: swap; }

/* --- Core Variables --- */
:root {
    --bg-color: #F9F8F6; /* رنگ پایه بسیار ملایم و لوکس */
    --surface-color: #FFFFFF;
    --primary: #4A0C12; /* زرشکی بسیار عمیق */
    --text-main: #111111;
    --text-muted: #666666;
    --border-color: rgba(0,0,0,0.06);
}

/* --- Reset & Global --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'IRANYekan', sans-serif; background-color: var(--bg-color);
    color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3 { color: var(--primary); font-weight: bold; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem; text-align: center; }
p { font-size: 1.1rem; color: var(--text-muted); }

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(249, 248, 246, 0.9); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid transparent; transition: 0.3s;
}
.navbar.scrolled { border-bottom: 1px solid var(--border-color); padding: 1rem 5%; }
.nav-logo { height: 40px; width: auto; object-fit: contain; }
.nav-links a {
    color: var(--text-main); text-decoration: none; margin-left: 2.5rem;
    font-size: 0.9rem; font-weight: bold; transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* --- Hero Section (Perfect Viewport Fit) --- */
.hero {
    height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 0 5%;
}
.hero-logo { height: 70px; margin-bottom: 2rem; animation: fadeUp 0.8s ease forwards; }
.hero h1 { animation: fadeUp 0.8s ease 0.1s forwards; opacity: 0; }
.hero p { max-width: 600px; margin: 0 auto 2.5rem; animation: fadeUp 0.8s ease 0.2s forwards; opacity: 0; }
.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    animation: bounce 2s infinite, fadeUp 0.8s ease 0.4s forwards; opacity: 0;
}

/* --- Services Grid (Bento Style) --- */
.services-section { padding: 8rem 5%; max-width: 1400px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.card {
    background: var(--surface-color); padding: 3rem 2.5rem;
    border-radius: 24px; border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; align-items: flex-start;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.04); }
.card-icon {
    width: 48px; height: 48px; margin-bottom: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: #F2EBEB; border-radius: 12px; color: var(--primary);
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--primary); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.card p { font-size: 0.95rem; line-height: 1.7; }

/* --- Footer --- */
footer {
    padding: 4rem 5%; text-align: center; border-top: 1px solid var(--border-color);
    background: var(--surface-color); display: flex; flex-direction: column; align-items: center;
}
footer img { height: 32px; margin-bottom: 1rem; opacity: 0.8; }
.footer-links { display: flex; gap: 2rem; margin-top: 1.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }

/* --- Keyframes --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-logo { height: 50px; }
    .card { padding: 2rem 1.5rem; }
}
