/* fonts */
@font-face { font-family: 'A Rezvan'; src: url("../fonts/A-Rezvan.ttf") format('truetype'); }
@font-face { font-family: 'Vazir'; src: url("../fonts/Vazir.ttf") format('truetype'); }

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
body, html {
    margin: 0; padding: 0;
    font-family: Vazir, "A Rezvan", Arial, sans-serif;
    background-color: #f5f5f0; color: #1a1a1a;
}

/* ============================================
   NAV  — responsive, uses rem/vw not fixed cm
   ============================================ */
.custom-nav {
    background-color: deepskyblue;
    min-height: 56px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* every direct child of nav is a link wrapper */
.custom-nav > a,
.custom-nav .navp a {
    font-family: 'A Rezvan', sans-serif;
    font-size: clamp(0.95rem, 3.2vw, 1.3rem);
    color: white !important;
    text-decoration: none !important;
    padding: 0.3rem 0.9rem;
    transition: color 0.2s;
    white-space: nowrap;
}
.custom-nav > a:hover,
.custom-nav .navp a:hover { color: yellow !important; }

/* strip all margin/padding from the wrapper p tags so they don't push layout */
.custom-nav p,
.custom-nav .navp {
    margin: 0;
    padding: 0;
    display: contents; /* makes <p> invisible to layout, children lay out directly */
}

@media (max-width: 420px) {
    .custom-nav > a, .custom-nav .navp a { padding: 0.25rem 0.55rem; font-size: 0.95rem; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative; min-height: 520px;
    background: linear-gradient(135deg, #085041 0%, #1D9E75 50%, #0F6E56 100%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; padding: 3rem 2rem; max-width: 700px; }
.hero-eyebrow { font-family: Vazir, sans-serif; font-size: 16px; color: rgba(255,255,255,0.75); margin: 0 0 1rem; }
.hero-title {
    font-family: "A Rezvan", Vazir, sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem); font-weight: bold; color: #fff;
    margin: 0 0 0.5rem; line-height: 1.1;
    position: relative; display: inline-block;
}
.hero-title::after {
    content: ''; position: absolute; bottom: -8px; right: 0;
    height: 4px; width: 0%; background: #9FE1CB; border-radius: 2px;
    animation: underline-grow 0.9s ease-out 0.4s forwards;
}
@keyframes underline-grow { to { width: 100%; } }
.hero-sub {
    font-family: "A Rezvan", Vazir, sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.88); margin: 1.4rem 0 2.2rem; line-height: 1.6;
}
.hero-btn {
    display: inline-block; font-family: "A Rezvan", Vazir, sans-serif;
    font-size: 1.1rem; color: #085041; background: #fff;
    text-decoration: none; padding: 0.75rem 2.2rem; border-radius: 50px;
    font-weight: bold; transition: background 0.2s, transform 0.15s;
}
.hero-btn:hover { background: #E1F5EE; transform: translateY(-2px); }

/* ============================================
   SERVICES
   ============================================ */
.services-section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title {
    font-family: "A Rezvan", Vazir, sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: #085041; text-align: center; margin: 0 0 2.5rem;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: #1D9E75; border-radius: 2px; margin: 0.6rem auto 0;
}

/* ============================================
   SERVICES SLIDESHOW
   ============================================ */
.ss { --ss-red: #e21b1b; --ss-blue: #16278c; width: 100%; }

/* title shown on ALL screens, above the image */
.ss-mtitle {
    display: block;
    font-family: "A Rezvan", Vazir, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: bold;
    color: var(--ss-red);
    text-align: center; margin: 0 0 1rem;
}

.ss-main { display: flex; flex-direction: column; gap: 1.5rem; align-items: stretch; }

/* ---- image + overlay + dots ---- */
.ss-imagebox {
    position: relative; width: 100%; min-width: 0;
    border-radius: 24px; overflow: hidden;
    background: #e8e8e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    aspect-ratio: 16 / 10;
}
.ss-track { position: relative; width: 100%; height: 100%; }
.ss-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.6s ease;
    background: linear-gradient(135deg, #085041 0%, #1D9E75 60%, #0F6E56 100%);
}
.ss-slide.is-active { opacity: 1; visibility: visible; }
.ss-slide::before {
    content: attr(data-icon);
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem; opacity: 0.35;
}
.ss-img {
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.ss-caption {
    position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 2;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 1rem 1.4rem;
}
.ss-desc {
    margin: 0; text-align: center;
    font-family: Vazir, sans-serif; font-weight: bold;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.9; color: var(--ss-blue);
}

.ss-dots {
    display: flex; justify-content: center; gap: 0.5rem;
    margin-top: 1rem;
}
.ss-dot {
    width: 9px; height: 9px; border-radius: 50%;
    border: 1.5px solid #9a9a90; background: transparent;
    padding: 0; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.ss-dot.is-active { background: #3a3a34; border-color: #3a3a34; }

.ss-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.85); color: #085041;
    font-size: 1.4rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.15s;
}
.ss-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.ss-arrow-prev { right: 0.9rem; }
.ss-arrow-next { left: 0.9rem; }

/* ============================================
   SERVICES SLIDESHOW — MOBILE
   ============================================ */
@media (max-width: 760px) {
    .ss-imagebox { aspect-ratio: 4 / 3; border-radius: 18px; }
    .ss-arrow { width: 32px; height: 32px; font-size: 1.2rem; }
    .ss-caption { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 0.75rem 1rem; }
    .ss-desc { font-size: 0.9rem; line-height: 1.7; }
}
/* ============================================
   SOCIAL SECTION (Homepage & About)
   ============================================ */
.social-section-home { background: #fff; padding: 4rem 2rem; }
.social-grid-home {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.social-card-home {
    background: #f5f5f0; border-radius: 14px; padding: 2rem 1.5rem;
    text-align: center; border: 1px solid #e0e0d8;
    text-decoration: none; color: inherit; display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.social-card-home:hover {
    transform: translateY(-4px); box-shadow: 0 8px 24px rgba(8,80,65,0.12);
    text-decoration: none; color: inherit;
}
.social-card-home img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 0.9rem; display: block; }
.social-card-home h3 { font-family: "A Rezvan", Vazir, sans-serif; font-size: 1.05rem; color: #085041; margin: 0 0 0.35rem; }
.social-handle { font-family: Vazir, sans-serif; font-size: 0.85rem; color: #555; font-weight: bold; direction: ltr; text-align: center; display: block; }
.social-at { color: #1D9E75; }

/* ============================================
   CTA
   ============================================ */
.cta-section { background: #085041; padding: 3.5rem 2rem; }
.cta-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-family: "A Rezvan", Vazir, sans-serif; font-size: clamp(1.2rem, 3vw, 1.7rem); color: #fff; margin: 0 0 2rem; }
.cta-contacts {
    display: flex; justify-content: center; align-items: stretch;
    background: rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; margin-bottom: 1.2rem;
}
.cta-item { flex: 1; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.cta-divider { width: 1px; background: rgba(255,255,255,0.25); flex-shrink: 0; }
.cta-label { font-family: Vazir, sans-serif; font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.cta-value { font-family: Vazir, sans-serif; font-size: 1.4rem; color: #9FE1CB; font-weight: bold; }
.cta-hint { font-family: Vazir, sans-serif; font-size: 0.9rem; color: rgba(255,255,255,0.7); margin: 0; line-height: 1.7; }

/* ============================================
   FOOTER
   ============================================ */
.Footer {
    width: 100%;
    background: linear-gradient(135deg, #0a0a2e 0%, #1a1a5e 60%, #0d0d3d 100%);
    padding: 3rem 2rem 0;
}
.footer-content {
    display: flex; gap: 3rem; flex-wrap: wrap;
    max-width: 1200px; margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-left { flex: 2; min-width: 220px; }
.footer-middle { flex: 1; min-width: 140px; }
.footer-right { flex: 1.5; min-width: 200px; }

.footer-left h4 { font-family: "A Rezvan", sans-serif; font-size: 1.6rem; color: rgb(255,255,73); margin: 0 0 0.6rem; }
.footer-left > p { font-family: "A Rezvan", sans-serif; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 3px 0; }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.footer-social-a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.12);
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.footer-social-a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.footer-social-icon { width: 22px !important; height: 22px !important; object-fit: contain; display: block; }

.footer-middle h5, .footer-right h5 {
    font-family: "A Rezvan", sans-serif; font-size: 1rem; color: #9FE1CB;
    margin: 0 0 1rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(159,225,203,0.3);
}
.footer-middle a {
    display: block; font-family: "A Rezvan", sans-serif; font-size: 0.9rem;
    color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 0.6rem;
    transition: color 0.2s;
}
.footer-middle a:hover { color: yellow; }
.footer-address { font-family: Vazir, sans-serif; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 0 0 1rem; }
.footer-map-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-map-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: Vazir, "A Rezvan", sans-serif; font-size: 0.85rem;
    color: rgba(255,255,255,0.85); text-decoration: none;
    background: rgba(255,255,255,0.08); border-radius: 8px;
    padding: 0.45rem 0.9rem; width: fit-content;
    transition: background 0.2s, color 0.2s;
}
.footer-map-btn:hover { background: rgba(159,225,203,0.2); color: #9FE1CB; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 1rem 0; text-align: center; }
.footer-bottom p { font-family: "A Rezvan", sans-serif; font-size: 0.8rem; color: rgba(255,255,255,0.35); margin: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) { .footer-content { flex-direction: column; gap: 2rem; } }
@media (max-width: 600px) {
    .hero { min-height: 400px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .cta-contacts { flex-direction: column; }
    .cta-divider { width: 100%; height: 1px; }
}
@media (max-width: 400px) { .services-grid { grid-template-columns: 1fr; } }
