/*
Theme Name: Modern Sanat
Theme URI: https://modernsanatco.ir
Author: Mahdi
Description: Lightweight custom RTL theme for Modern Sanat.
Version: 1.0.0
Text Domain: modern-sanat
*/

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
}

:root {
  --primary: #0b4f9c;
  --secondary: #2d89ef;
  --dark: #1f2937;
  --light: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  margin: 0;
  color: var(--dark);
  background: var(--light);
  font-family: "Vazirmatn", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-main {
  min-height: 60vh;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header,
.site-footer {
  padding: 12px 0;
  background: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer {
  color: #fff;
  background: var(--primary);
}

.site-branding {
  font-weight: 700;
  margin-left: auto;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  display: block;
  width: auto;
  max-width: 150px;
  height: 42px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(11, 79, 156, 0.15);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.site-nav ul a {
  color: var(--dark);
  font-weight: 500;
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 11px 24px;
  font-weight: 700;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-outline-light {
  color: #fff;
  border-color: #fff;
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(8, 30, 60, 0.86),
    rgba(8, 30, 60, 0.42)
  );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-subtitle,
.section-subtitle {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--secondary);
  font-weight: 700;
}

.hero-subtitle {
  padding: 8px 18px;
  color: #fff;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.6;
}

.hero p,
.section-text {
  line-height: 2;
}

.hero p {
  max-width: 680px;
  color: #e5eef8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.section {
  padding: 88px 0;
  background: #fff;
}

.services,
.contact {
  background: #f7f9fc;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.section-title {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.6;
}

.about-image {
  width: 100%;
  border-radius: 18px;
}

.about-list {
  padding: 0;
  list-style: none;
  line-height: 2.2;
}

.about-list li::before {
  content: "✓";
  margin-left: 8px;
  color: var(--primary);
  font-weight: 700;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card,
.contact-card {
  padding: 28px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.contact-card-box {
  padding: 28px 24px;
  border: 1px solid rgba(11, 79, 156, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.service-card h3 {
  margin-top: 0;
  color: var(--primary);
}

.service-card p,
.contact-card p {
  line-height: 1.9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.project-card h3 {
  padding: 0 14px;
  font-size: 1rem;
}

.contact-item {
  margin-bottom: 18px;
}

.contact-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
}

.contact-item p {
  margin: 0;
  line-height: 1.9;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-success {
  color: #fff;
  background: #25d366;
}

.map-box {
  width: 100%;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.map-box iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-brand p,
.footer-contact p,
.footer-menu ul,
.footer-menu li,
.footer-menu a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.footer-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 2;
}

.whatsapp-float,
.back-to-top {
  position: fixed;
  z-index: 20;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
}

.whatsapp-float {
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  font-size: 0;
}

.whatsapp-float::after {
  content: "✆";
  font-size: 25px;
}

.back-to-top {
  right: 24px;
  bottom: 92px;
  width: 40px;
  height: 40px;
  color: var(--primary);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox.show {
  display: grid;
}

.lightbox img {
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 24px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 2rem;
}

@media (max-width: 900px) {
  .site-header .container,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .site-branding {
    margin-left: 0;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-logo {
    height: 36px;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .header-contact {
    display: none;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.entry-content {
  line-height: 2;
}
