/* assets/css/main.css
   Mobile-first, RTL, Vazir font assumed enqueued in functions.php
*/

/* Variables */
:root{
  --accent: #1e3a8a;
  --muted: #6b7280;
  --bg: #fbfdff;
  --card: #ffffff;
  --accent-2: #facc15;
}

/* Reset / base */
* { box-sizing: border-box; }
html,body { height:100%; }
body.lt-body {
  margin: 0;
  font-family: Vazir, "Vazir FD", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--bg);
  color: #111827;
  direction: rtl;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

@font-face {
    font-family: 'Nastaliq';
    src: url('../fonts/IranNastaliq.woff2') format('woff2'),
         url('../fonts/IranNastaliq.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Page wrapper: wider than before but still centered */
.lt-page-wrap {
  width: 100%;
  max-width: 900px;  /* wider final width */
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* ---------- HERO & SLIDER (revised) ---------- */
.lt-hero {
  position: relative;
  width: 100vw;      /* full viewport width */
  left: 50%;
  margin-left: -50vw; /* full-bleed trick */
  min-height: 50vh;
  height: 50vh;
  overflow: hidden;
}


/* Slider base */
.lt-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lt-slide {
  position: absolute;
  inset: 0;
  background-size: cover;      /* zoom/crop to fill container */
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.8s ease, transform 1s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* keep content on right */
}


/* Active slide */
.lt-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Dim overlay for readability */
.lt-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(49, 47, 47, 0.4), rgba(0,0,0,0.25));
  z-index: 0;
}


/* inner container for slide content */
.lt-slide-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 16px;
}

/* Content is placed within right half */
.lt-slide-content {
  width: 100%;
  /* max-width: 400px; */
  text-align: right;
  color: #fff;
  /* padding: 30px; */
  margin-right: 5%;
  position: relative;
  z-index: 1;
}

/* Force content to right half visually */
.lt-slide-content--right {
  margin-left: auto;  /* push it to visual right */
}

/* Profile mini */
.lt-profile-mini {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.06);
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 10px;
}

.lt-profile-mini img { width:100%; height:100%; object-fit:cover; }

/* Text */
.lt-name { font-size: 1.6rem; margin: 6px 0; font-weight:700; }
.lt-name.small { font-size: 1rem; margin-top: 6px; }
.lt-title { margin: 0 0 8px 0; font-size: 1rem; color: rgba(255,255,255,0.9); font-weight:400; }
.lt-slogan { 
  font-size: 1.4rem; font-weight:500; line-height:1; margin-bottom:10px; color:#fff; 
}
.lt-name,
.lt-title,
.lt-slogan
 {
    font-family: 'Nastaliq', 'Vazir', serif;
}

.lt-phone {
  display:inline-block;
  background: rgba(0,0,0,0.22);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight:700;
}

.lt-contact-link {
  display:inline-block;
  background: rgba(0,0,0,0.22);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight:700;
}

/* Controls (left area visually because of RTL, but we keep simple) */
.lt-controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lt-prev, .lt-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}
.lt-prev:hover, .lt-next:hover {
  background: rgba(255,255,255,0.4);
}


/* Dots */
.lt-dots {
  display: none;
  gap: 6px;
}
.lt-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.lt-dot.active {
  background: var(--accent-2);
  transform: scale(1.2);
}

/* MAIN: body rows */
.lt-main { padding: 12px 0 40px; }

/* Row container: image-left (visually left), text-right */
.lt-row {
  display:flex;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
}

/* image column (left) */
.lt-row-image {
  flex: 0 0 34%;
  max-width: 34%;
  text-align: left; /* visual left for images */
}
.lt-row-image img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

/* text column (right) */
.lt-row-text { flex: 1 1 66%; text-align: right; }
.lt-row-text h3 { margin: 0 0 10px; color: var(--accent); font-size: 1.2rem; }
.lt-row-text p {
  margin:0; line-height: 1.8; color: #222; 
  text-align: justify;       /* justifies the paragraph text */
  text-justify: inter-word;  /* improves spacing for languages like Persian */
}

/* CONTACT */
.lt-contact {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
  margin-bottom: 18px;
}
.lt-contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lt-contact-main { text-align: right; }
.lt-contact-name { margin: 0 0 6px 0; color: var(--accent); font-weight:700; font-size: 1.1rem; }
.lt-contact-title { margin: 0 0 8px 0; color: var(--muted); }
.lt-contact-items { display:grid; gap:8px; }
.lt-contact-item { font-size: 0.95rem; }

/* map embed */
.lt-contact-map {
  margin-top: 2.5rem; /* increases vertical distance from above contact sections */
  border-radius: 12px;
  overflow: hidden;
}
.lt-contact-map iframe { width:100%; height:220px; border:0; border-radius:8px; }

/* footer */
.lt-footer { padding: 10px 0 26px; text-align:center; color: var(--muted); }

/* Responsive: small screens stack things */
@media (max-width: 760px) {
  .lt-page-wrap {
     width: 100%;
     /* padding: 0 6px; */
    }
  /* .lt-slide-content { width: 78%; margin-right: 6%; } */
  .lt-slide-content {
    text-align: right;  /* maintain RTL alignment */
    width: 100%;
    /* padding: 24px; more space on mobile */
    /* margin-right: 5%; maintain visual margin */
  }
  /* .lt-hero { height: 60vh; min-height: 50vh; } */
  .lt-hero {
    width: 100%;
    left: 0;
    margin-left: 0;
  }
  .lt-row { flex-direction: column; }
  .lt-row-image { max-width: 100%; flex-basis: auto; }
  .lt-row-image img { max-height: 280px; width: 90vw; }
}

/* Larger desktops keep the centered narrow column (we already limited max-width) */
@media (min-width: 1200px) {
  .lt-page-wrap { max-width: 900px; }
}

/* For wider screens, shift background upward */
/* @media (min-width: 1200px) {
/*   .lt-slide {
    /* still cover, but align top instead of center */
/*     background-position: center top;
/*     background-size: cover;
/*   }
/* }

/* ---------- Desktop (wider than 768px) ---------- */
@media (min-width: 769px) {
  .lt-hero {
    width: 100%;      /* override full-bleed */
    left: 0;
    margin-left: 0;   /* reset negative margin */
    max-width: 900px; /* constrain hero width */
    margin-right: auto;
    margin-left: auto; /* center horizontally */
    border-radius: 0;
  }

  .lt-slide-inner {
    width: 100%;        /* inside hero wrapper */
    max-width: 100%;    /* match hero width */
    padding: 0 0;       /* optional */
    justify-content: flex-end;
  }
}


/* --- Contact Section --- */
.lt-contact {
  margin-top: 2rem;
  padding: 2rem 1rem;
}

.lt-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Profile section */
.lt-contact-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: 1; /* show first on mobile */
}

/* Office & socials section */
.lt-contact-left {
  order: 2; /* show second on mobile */
}

/* Remove box styling */
.lt-contact-left,
.lt-contact-right {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

/* Profile info */
.lt-profile-info {
  flex: 1;
}

.lt-contact-item {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.cv-contact-item {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.lt-contact-item a {
  color: var(--lt-accent, #0072b1);
  text-decoration: none;
}

.lt-contact-item a:hover {
  text-decoration: underline;
}

/* Social icons */
.lt-social {
  display: flex;
  justify-content: center;  /* horizontally center the icons */
  align-items: center;      /* vertically center them */
  gap: 0.75rem;             /* space between icons */
  margin-top: 1rem;
  flex-wrap: wrap;          /* allows wrapping on small screens */
}

.lt-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lt-social a img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.lt-social svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.lt-social a:hover img {
  transform: scale(1.1);
}

/* --- Desktop layout --- */
@media (min-width: 768px) {
  .lt-contact-grid {
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: space-between;
  }

  .lt-contact-right,
  .lt-contact-left {
    flex: 1 1 48%;
    order: initial;
  }
}

/* Profile container */
.lt-profile-mini.large.centered {
  width: 140px;              /* larger on mobile */
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem auto; /* bottom margin for spacing with contact info */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ddd;    /* optional border */
}

/* Profile image itself */
.lt-profile-mini.large.centered img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- Optional: make profile image even larger on mobile if desired */
@media (max-width: 767px) {
  .lt-profile-mini.large.centered {
    width: 160px;
    height: 160px;
  }
}

/* --- Desktop sizes --- */
@media (min-width: 768px) {
  .lt-profile-mini.large.centered {
    width: 120px;
    height: 120px;
  }
}

@media (min-width: 768px) {
  .lt-slogan{
    font-size: 2.2rem;
    font-weight: 500;
  }
  .lt-title {
    font-size: 2rem;
  }
  .lt-name {
    font-size: 2rem;
  }
}

.parsi-vakil-logo {
    height: 2em; /* Twice the text height */
    vertical-align: middle; /* Keep it centered with text */
    margin-right: 0.3em; /* Space between logo and text */
    margin: 10px;
}

.lt-contact-item.a.svg {
    width: 32px;
    height: 32px;
}



/* // Nav bar css */
/* ============================================
   Hamburger Menu inside Hero (top-left corner)
   ============================================ */
.lt-hamburger-menu {
  position: absolute;  /* inside the hero */
  top: 20px;
  left: 20px;          /* top-left corner */
  z-index: 1000;       /* above overlays */
  direction: rtl;
}

/* Hamburger Button */
.lt-hamburger-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.lt-hamburger-toggle span {
  display: block;
  height: 3px;
  background-color: #fff; /* white to contrast hero */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation: turn into X */
.lt-hamburger-menu.active .lt-hamburger-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.lt-hamburger-menu.active .lt-hamburger-toggle span:nth-child(2) {
  opacity: 0;
}
.lt-hamburger-menu.active .lt-hamburger-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Dropdown panel */
.lt-hamburger-list {
  position: absolute;
  top: 30px;
  left: 0; /* under the hamburger */
  width: 220px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Show when active */
.lt-hamburger-menu.active .lt-hamburger-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Menu links */
.lt-hamburger-list a {
  display: block;
  padding: 6px 6px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  border-radius: 3px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lt-hamburger-list a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  /* transform: translateX(3px); */
}

