/*
Theme Name: Walsh Blanc Premium
Theme URI: https://example.com/walsh-blanc-premium
Description: A premium, luxury architecture and design portfolio WordPress theme with advanced customizer options and a modern, elegant design.
Version: 1.0.0
Author: Walsh Blanc Themes
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: walsh-blanc
Domain Path: /languages
*/

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #d4af37;
  --accent-color: #f5f5f5;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --spacing-unit: 1rem;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-dark);
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-unit);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  color: var(--text-light);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background-color: #ffffff;
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-logo {
  height: 50px;
  transition: all 0.3s ease;
}

.site-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.site-header.scrolled .site-logo {
  height: 40px;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav .current-menu-item > a {
  color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide:first-child {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 1;
  animation: fadeInUp 1s ease-out 0.2s both;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-family: var(--font-display);
  margin-bottom: 2rem;
  line-height: 1.1;
  animation: fadeInUp 1s ease-out 0.4s both;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  font-weight: 700;
}

.hero-description {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.8;
  opacity: 1;
  animation: fadeInUp 1s ease-out 0.6s both;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.8s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 2;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  border: 2px solid var(--secondary-color);
  pointer-events: none;
}

.about-content h2 {
  margin-bottom: 2rem;
  position: relative;
}

.about-content h2::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

.about-content p {
  margin-bottom: 2rem;
  line-height: 1.9;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  padding: 1.5rem;
  border-left: 3px solid var(--secondary-color);
}

.feature-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.feature-item p {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 0;
}

/* ============================================
   PORTFOLIO / PROJECTS SECTION
   ============================================ */

.projects-section {
  padding: 8rem 2rem;
  background-color: #fafafa;
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-header p {
  font-size: 1.2rem;
  color: #777;
  max-width: 600px;
  margin: 2rem auto 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background-color: #000;
  cursor: pointer;
  group: 'project-card';
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: var(--text-light);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-title {
  font-size: 1.8rem;
  font-family: var(--font-display);
  margin-bottom: 1rem;
  font-weight: 700;
}

.project-card-category {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.service-card {
  padding: 3rem 2rem;
  border: 2px solid var(--border-color);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--secondary-color);
  z-index: -1;
  transition: width 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.service-card:hover::before {
  width: 100%;
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  transition: color 0.4s ease;
}

.service-card:hover h3 {
  color: var(--primary-color);
}

.service-card p {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.8;
  transition: color 0.4s ease;
}

.service-card:hover p {
  color: #555;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--text-light);
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-section .section-header h2,
.testimonials-section .section-header p {
  color: var(--text-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.testimonial-card {
  padding: 3rem;
  border-left: 4px solid var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
  opacity: 0.95;
}

.testimonial-author {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-position {
  font-size: 0.9rem;
  opacity: 0.8;
}

.stars {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: #1a1a1a;
  color: var(--text-light);
  padding: 5rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 0.75rem;
}

.footer-widget ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* ============================================
   PAGES & SINGLE POSTS
   ============================================ */

.page-title-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--text-light);
  text-align: center;
  margin-bottom: 4rem;
}

.page-title-section h1 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.page-title-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.post-content {
  line-height: 1.9;
  color: #555;
}

.post-content h2,
.post-content h3 {
  margin: 2rem 0 1rem;
  color: var(--primary-color);
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border: 2px solid var(--border-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .header-container {
    padding: 0 1.5rem;
  }

  .main-nav ul {
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .about-section,
  .projects-section,
  .services-section,
  .testimonials-section {
    padding: 4rem 1.5rem;
  }

  .hero-section {
    height: 80vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .main-nav ul.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .projects-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
