/* ============================================
   Perfect Vastoo Solutions — Page-Specific Styles
   ============================================ */

/* ===================== HOME — HERO ===================== */
.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--dark-brown) 0%, #1a0e08 60%, var(--brown) 100%);
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,151,59,0.12) 0%, transparent 70%);
  animation: pulse-glow 6s ease-in-out infinite;
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,151,59,0.08) 0%, transparent 60%);
  animation: pulse-glow 8s ease-in-out infinite 2s;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.home-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
}

.home-hero__content {
  color: var(--white);
}

.home-hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: var(--space-5);
}

.home-hero__label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.home-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-5);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.home-hero h1 span {
  color: var(--gold);
}

.home-hero__text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-7);
  max-width: 520px;
}

.home-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.home-hero__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__image-wrapper {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  position: relative;
}

.home-hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__float-card {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.home-hero__float-card .stat {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.home-hero__float-card .label {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 500;
}

@media (max-width: 992px) {
  .home-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .home-hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero__actions {
    justify-content: center;
  }

  .home-hero__image {
    display: none;
  }
}

/* ===================== HOME — TRUST BAR ===================== */
.trust-bar {
  background: var(--white);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--gray-light);
}

.trust-bar .grid {
  gap: var(--space-6);
}

/* ===================== HOME — ABOUT PREVIEW ===================== */
.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
}

.about-preview__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-preview__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-preview__content .section-header {
  text-align: left;
  margin: 0 0 var(--space-5);
}

.about-preview__content h2 {
  margin-bottom: var(--space-4);
}

.about-preview__content p {
  margin-bottom: var(--space-5);
}

.about-preview__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.about-preview__feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 500;
  color: var(--gray-dark);
  font-size: 0.9rem;
}

.about-preview__feature svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .about-preview .container {
    grid-template-columns: 1fr;
  }

  .about-preview__features {
    grid-template-columns: 1fr;
  }
}

/* ===================== HOME — TESTIMONIALS ===================== */
.testimonials-section .testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 992px) {
  .testimonials-section .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .testimonials-section .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== ABOUT PAGE ===================== */
.about-story .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
}

.about-story__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-story__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .about-story .container {
    grid-template-columns: 1fr;
  }
}

/* Mission Vision cards */
.mv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-7);
  border: 1px solid var(--gray-light);
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.mv-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.mv-card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
}

.mv-card h3 {
  margin-bottom: var(--space-3);
}

@media (max-width: 600px) {
  .mv-cards {
    grid-template-columns: 1fr;
  }
}

/* About approach */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.approach-card {
  text-align: center;
  padding: var(--space-6);
}

.approach-card__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.approach-card h3 {
  margin-bottom: var(--space-3);
  font-size: 1.15rem;
}

@media (max-width: 600px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
}

/* Credentials */
.credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.credential-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--white);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.credential-badge svg {
  width: 24px;
  height: 24px;
  fill: var(--gold);
}

/* ===================== SERVICES PAGE ===================== */
.service-detail {
  padding: var(--space-10) 0;
}

.service-detail:nth-child(even) {
  background: var(--off-white);
}

.service-detail .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
}

.service-detail:nth-child(even) .container {
  direction: rtl;
}

.service-detail:nth-child(even) .container > * {
  direction: ltr;
}

.service-detail__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.service-detail__icon svg {
  width: 30px;
  height: 30px;
  fill: var(--gold);
}

.service-detail h2 {
  margin-bottom: var(--space-4);
}

.service-detail p {
  margin-bottom: var(--space-5);
}

.service-detail__benefits {
  margin-bottom: var(--space-6);
}

.service-detail__benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 0.95rem;
  color: var(--gray-dark);
}

.service-detail__benefits svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-detail__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-detail__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

@media (max-width: 768px) {
  .service-detail .container {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) .container {
    direction: ltr;
  }

  .service-detail__image {
    order: -1;
  }
}

/* ===================== CASE STUDIES PAGE ===================== */
.case-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.case-filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray);
  border: 1px solid var(--gray-light);
  background: var(--white);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.case-filter-btn:hover,
.case-filter-btn.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.case-detail-content {
  display: none;
  padding: var(--space-5);
  border-top: 1px solid var(--gray-light);
  background: var(--off-white);
}

.case-detail-content.expanded {
  display: block;
}

.case-detail-content h4 {
  font-size: 1rem;
  margin-bottom: var(--space-3);
  color: var(--dark-brown);
}

.case-detail-content p {
  font-size: 0.9rem;
}

.case-detail-content ul {
  margin-bottom: var(--space-4);
}

.case-detail-content ul li {
  font-size: 0.9rem;
  color: var(--gray);
  padding-left: var(--space-5);
  position: relative;
  margin-bottom: var(--space-2);
}

.case-detail-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===================== BLOG PAGE ===================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-8);
}

.blog-featured {
  margin-bottom: var(--space-8);
}

.blog-featured__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  background: var(--white);
  transition: all var(--duration-normal) var(--ease-out);
}

.blog-featured__card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.blog-featured__image {
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.blog-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured__body {
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured__body h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.blog-featured__body h2 a {
  color: var(--dark-brown);
}

.blog-featured__body h2 a:hover {
  color: var(--gold);
}

/* Blog sidebar */
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.sidebar-widget h4 {
  font-size: 1rem;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--gold);
}

.sidebar-widget li {
  margin-bottom: var(--space-3);
}

.sidebar-widget a {
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.sidebar-widget a:hover {
  color: var(--gold);
}

.sidebar-newsletter input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  font-size: 0.9rem;
}

.sidebar-newsletter input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

.sidebar-newsletter .btn {
  width: 100%;
}

@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-featured__card {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

/* ===================== CONTACT PAGE ===================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-7);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  margin-bottom: var(--space-5);
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--gray-light);
  text-align: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.contact-info-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.contact-info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.contact-info-card__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--gray);
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-light);
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }
}

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-7);
}

.form-success.visible {
  display: block;
}

.form-success svg {
  width: 64px;
  height: 64px;
  fill: var(--gold);
  margin-bottom: var(--space-4);
}

.form-success h3 {
  margin-bottom: var(--space-3);
}
