/**
 * Perfect Services Theme - Main Styles
 * Homepage layout matching the design reference
 */

/* ============================================
   Header
   ============================================ */
.ps-header {
  background: var(--ps-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ps-header-top {
  background: var(--ps-light-bg);
  padding: 8px 0;
  font-size: 0.875rem;
}

.ps-header-top-inner {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.ps-header-contact {
  color: var(--ps-text-light);
  text-decoration: none;
}

.ps-header-contact:hover {
  color: var(--ps-primary);
}

.ps-header-main {
  padding: 15px 0;
}

.ps-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
}

.ps-logo a,
.ps-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ps-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-logo-icon {
  color: var(--ps-primary);
  font-size: 1.25rem;
}

.ps-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.ps-nav-menu a {
  color: var(--ps-text);
  font-weight: 500;
  text-decoration: none;
}

.ps-nav-menu a:hover {
  color: var(--ps-primary);
}

.ps-header-cta {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.ps-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.ps-nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--ps-text);
  border-radius: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.ps-hero {
  background: linear-gradient(135deg, #f8f6fc 0%, #fff 100%);
  padding: 80px 0 100px;
}

.ps-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ps-hero-subtitle {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ps-primary);
  margin-bottom: 15px;
}

.ps-hero-title {
  font-size: 2.75rem;
  line-height: 1.2;
  color: var(--ps-text);
  margin-bottom: 20px;
}

.ps-hero-desc {
  font-size: 1.1rem;
  color: var(--ps-text-light);
  margin-bottom: 30px;
  line-height: 1.7;
}

.ps-hero-buttons {
  display: flex;
  gap: 15px;
}

.ps-hero-image {
  position: relative;
}

.ps-hero-img {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(107, 78, 158, 0.15);
}

.ps-hero-img {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(107, 78, 158, 0.15);
  width: 100%;
  object-fit: cover;
}

.ps-hero-image {
  position: relative;
}

.ps-hero-placeholder {
  background: linear-gradient(135deg, var(--ps-accent) 0%, #e0d5f0 100%);
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.ps-hero-stat {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ps-primary);
}

/* ============================================
   Front Page Content (from perfectservices.com.au)
   ============================================ */
.ps-services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-services-list li {
  padding: 15px;
  background: var(--ps-white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.ps-services-list a {
  color: var(--ps-text);
}

.ps-services-list a:hover {
  color: var(--ps-primary);
}

.ps-content-section {
  background: var(--ps-light-bg);
}

.ps-content-block {
  margin-bottom: 40px;
}

.ps-content-block p {
  color: var(--ps-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ps-who-section {
  background: var(--ps-light-bg);
}

.ps-who-we-are {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-who-we-are li {
  padding: 15px 20px;
  background: var(--ps-accent);
  border-radius: 8px;
}

.ps-who-we-are a {
  color: var(--ps-text);
  font-weight: 500;
}

.ps-who-we-are a:hover {
  color: var(--ps-primary);
}

.ps-why-item {
  margin-bottom: 40px;
  padding: 30px;
  background: var(--ps-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ps-why-item h3 {
  margin-bottom: 15px;
  font-size: 1.35rem;
}

.ps-why-item p {
  color: var(--ps-text-light);
  line-height: 1.8;
  margin: 0;
}

.ps-testimonials-section {
  background: var(--ps-light-bg);
}

.ps-google-reviews {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: var(--ps-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ps-google-reviews .ps-rating {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ps-primary);
}

.ps-google-reviews .ps-review-count {
  color: var(--ps-text-light);
  margin: 5px 0 15px;
}

.ps-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.ps-testimonial-card {
  background: var(--ps-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ps-testimonial-card blockquote {
  margin: 0 0 20px;
  font-style: italic;
  color: var(--ps-text);
  line-height: 1.6;
}

.ps-testimonial-author {
  font-weight: 600;
  color: var(--ps-text);
}

.ps-testimonial-date {
  font-size: 0.85rem;
  color: var(--ps-text-light);
}

/* ============================================
   Service Highlights
   ============================================ */
.ps-highlights {
  background: var(--ps-white);
}

.ps-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ps-highlight-card {
  background: var(--ps-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ps-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(107, 78, 158, 0.12);
}

.ps-highlight-icon {
  width: 70px;
  height: 70px;
  background: var(--ps-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.ps-highlight-icon svg {
  width: 32px;
  height: 32px;
  color: var(--ps-primary);
}

.ps-highlight-card h3 {
  margin-bottom: 15px;
  font-size: 1.35rem;
}

.ps-highlight-card p {
  color: var(--ps-text-light);
  margin: 0;
  font-size: 0.95rem;
}

/* ============================================
   About Section
   ============================================ */
.ps-about {
  background: var(--ps-light-bg);
}

.ps-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ps-about-content .ps-section-heading {
  text-align: left;
  margin-bottom: 20px;
}

.ps-about-content p {
  color: var(--ps-text-light);
  margin-bottom: 25px;
}

.ps-about-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-about-features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-check {
  color: var(--ps-primary);
  font-weight: bold;
}

.ps-about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.ps-video-placeholder {
  background: linear-gradient(135deg, var(--ps-accent) 0%, #d5c8e8 100%);
  border-radius: 12px;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ps-video-stats {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ps-stat {
  text-align: right;
}

.ps-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--ps-primary);
}

.ps-stat span {
  font-size: 0.8rem;
  color: var(--ps-text-light);
}

.ps-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ps-white);
  border: none;
  font-size: 1.5rem;
  color: var(--ps-primary);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.ps-play-btn:hover {
  transform: scale(1.1);
}

/* ============================================
   Services Section
   ============================================ */
.ps-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.ps-service-card {
  background: var(--ps-white);
  padding: 35px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ps-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(107, 78, 158, 0.12);
}

.ps-service-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.ps-service-icon {
  width: 60px;
  height: 60px;
  background: var(--ps-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.ps-service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--ps-primary);
}

.ps-service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.ps-service-card p {
  color: var(--ps-text-light);
  margin: 0;
  font-size: 0.9rem;
}

.ps-services-cta {
  text-align: center;
}

/* ============================================
   Why Choose Us
   ============================================ */
.ps-why-choose {
  background: var(--ps-white);
}

.ps-why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ps-why-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  min-height: 400px;
}

.ps-why-desc {
  color: var(--ps-text-light);
  margin-bottom: 25px;
}

.ps-why-placeholder {
  background: linear-gradient(135deg, #fce4ec 0%, #f8e0e8 100%);
  border-radius: 12px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ps-text-light);
}

.ps-why-content .ps-section-heading {
  text-align: left;
  margin-bottom: 25px;
}

.ps-why-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
}

.ps-why-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================
   Pricing Section
   ============================================ */
.ps-pricing {
  background: var(--ps-light-bg);
}

.ps-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.ps-price-card {
  background: var(--ps-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s ease;
}

.ps-price-card:hover {
  transform: translateY(-5px);
}

.ps-price-featured {
  background: var(--ps-primary-dark);
  color: var(--ps-white);
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(74, 53, 112, 0.3);
}

.ps-price-featured .ps-price-amount,
.ps-price-featured h3,
.ps-price-featured .ps-price-features {
  color: var(--ps-white);
}

.ps-price-featured .ps-check {
  color: rgba(255, 255, 255, 0.9);
}

.ps-price-card h3 {
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.ps-price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.ps-currency {
  font-size: 1.5rem;
}

.ps-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ps-text-light);
}

.ps-price-featured .ps-period {
  color: rgba(255, 255, 255, 0.8);
}

.ps-price-features {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  text-align: left;
}

.ps-price-features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================
   Team Section
   ============================================ */
.ps-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.ps-team-member {
  text-align: center;
}

.ps-team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--ps-accent);
  margin: 0 auto 20px;
  object-fit: cover;
}

.ps-team-member h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.ps-team-member p {
  margin: 0;
  color: var(--ps-text-light);
  font-size: 0.9rem;
}

/* ============================================
   Testimonials
   ============================================ */
.ps-testimonials {
  background: var(--ps-light-bg);
}

.ps-testimonials .ps-section-title p {
  color: var(--ps-text-light);
  max-width: 600px;
  margin: 15px auto 0;
}

.ps-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ps-testimonial-card {
  background: var(--ps-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ps-testimonial-stars {
  color: #f5a623;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.ps-testimonial-card blockquote {
  margin: 0 0 20px;
  font-style: italic;
  color: var(--ps-text);
  line-height: 1.6;
}

.ps-testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ps-testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ps-accent);
}

.ps-testimonial-author strong {
  display: block;
  font-size: 1rem;
}

.ps-testimonial-author span {
  font-size: 0.85rem;
  color: var(--ps-text-light);
}

/* ============================================
   Clients Section
   ============================================ */
.ps-clients {
  background: var(--ps-white);
  padding: 50px 0;
}

.ps-clients-inner {
  text-align: center;
}

.ps-clients-inner .ps-section-subtitle {
  display: block;
  margin-bottom: 10px;
}

.ps-clients-inner .ps-section-heading {
  margin-bottom: 30px;
}

.ps-clients-text {
  color: var(--ps-text-light);
  margin-bottom: 30px;
}

.ps-clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.ps-client-logo {
  padding: 15px 30px;
  background: var(--ps-light-bg);
  border-radius: 8px;
  color: var(--ps-text-light);
  font-size: 0.9rem;
}

.ps-client-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

/* ============================================
   Newsletter
   ============================================ */
.ps-newsletter {
  background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-primary-dark) 100%);
  color: var(--ps-white);
}

.ps-newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ps-newsletter .ps-section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.ps-newsletter .ps-section-heading {
  color: var(--ps-white);
  text-align: left;
}

.ps-newsletter p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.ps-newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 450px;
}

.ps-newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ps-white);
  font-size: 1rem;
}

.ps-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.ps-newsletter-form .ps-btn-primary {
  background: var(--ps-white);
  color: var(--ps-primary);
  border-color: var(--ps-white);
}

.ps-newsletter-form .ps-btn-primary:hover {
  background: var(--ps-accent);
  color: var(--ps-primary-dark);
  border-color: var(--ps-accent);
}

.ps-newsletter-placeholder {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  min-height: 300px;
}

.ps-newsletter-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

/* ============================================
   Footer
   ============================================ */
.ps-footer-main {
  background: var(--ps-primary-dark);
  color: var(--ps-white);
  padding: 60px 0 40px;
}

.ps-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.ps-footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ps-white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

.ps-footer-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ps-social-links {
  display: flex;
  gap: 15px;
}

.ps-social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ps-white);
  transition: background 0.3s ease;
}

.ps-social-links a:hover {
  background: var(--ps-primary);
}

.ps-footer-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--ps-white);
}

.ps-footer-links,
.ps-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-footer-links li,
.ps-footer-contact li {
  margin-bottom: 10px;
}

.ps-footer-links a,
.ps-footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.ps-footer-links a:hover,
.ps-footer-contact a:hover {
  color: var(--ps-white);
}

.ps-footer-contact li {
  color: rgba(255, 255, 255, 0.8);
}

.ps-footer-bottom {
  background: var(--ps-primary);
  padding: 20px 0;
}

.ps-copyright {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

/* ============================================
   Page & Post Content
   ============================================ */
.ps-page-content,
.ps-single-content {
  padding: 60px 0;
}

.ps-page-header,
.ps-post-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ps-border);
}

.ps-page-header h1,
.ps-post-header h1 {
  margin-bottom: 10px;
}

.ps-post-meta {
  font-size: 0.9rem;
  color: var(--ps-text-light);
}

.ps-post-meta span {
  margin-right: 15px;
}

.ps-post-thumbnail {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.ps-page-content-inner,
.ps-post-content {
  line-height: 1.8;
}

.ps-page-content-inner p,
.ps-post-content p {
  margin-bottom: 1rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .ps-hero-inner,
  .ps-about-inner,
  .ps-why-inner,
  .ps-newsletter-inner {
    grid-template-columns: 1fr;
  }
  
  .ps-hero-image {
    order: -1;
  }
  
  .ps-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ps-pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .ps-price-featured {
    transform: none;
  }
  
  .ps-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ps-testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .ps-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .ps-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ps-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: none;
  }
  
  .ps-nav.active {
    display: block;
  }
  
  .ps-nav-menu {
    flex-direction: column;
    gap: 0;
  }
  
  .ps-nav-menu li {
    border-bottom: 1px solid var(--ps-border);
  }
  
  .ps-nav-menu a {
    display: block;
    padding: 15px 0;
  }
  
  .ps-nav-toggle {
    display: flex;
  }
  
  .ps-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .ps-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .ps-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .ps-nav-toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .ps-header-cta {
    display: none;
  }
  
  .ps-hero-title {
    font-size: 2rem;
  }
  
  .ps-highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .ps-services-grid {
    grid-template-columns: 1fr;
  }
  
  .ps-why-features {
    grid-template-columns: 1fr;
  }
  
  .ps-team-grid {
    grid-template-columns: 1fr;
  }
  
  .ps-newsletter-form {
    flex-direction: column;
  }
  
  .ps-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .ps-social-links {
    justify-content: center;
  }
}
