/*
Theme Name: Greg Stuart Urban Design
Description: A custom WordPress theme for Greg Stuart's Urban Design practice. Professional, simple, and mobile-friendly design with easy content management features.
Author: Christian Cutter
Version: 2.2
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Google Fonts are now loaded via functions.php */
/* Archivo Black for titles, Quicksand Light for content, Edu SA Hand for captions */

body {
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 300; /* Light weight for Quicksand */
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  max-width: 1000px;
}

.logo-container {
  text-align: center;
  padding: 40px 0;
}

.site-logo {
  max-height: 300px; /* Significantly increased for ultra-high resolution display */
  width: auto;
  height: auto;
  max-width: 100%; /* Ensure it doesn't overflow container */
}

.site-title {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2.5rem;
  color: #333;
  text-decoration: none;
  letter-spacing: 1px;
}

.site-title:hover {
  color: #666;
}

/* Navigation Styles */
.main-navigation {
  background: transparent;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  margin: 0;
  padding-left: 20px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 15px 25px;
  text-decoration: none;
  color: #333;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  transition: background-color 0.3s ease;
}

.nav-menu a:hover {
  background-color: #f8f8f8;
}

/* Dropdown Menu */
.nav-menu .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 250px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1001;
  list-style: none;
}

.nav-menu li:hover .dropdown {
  display: block;
}

.dropdown a {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}

.dropdown a:hover {
  background-color: #f8f8f8;
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  background: #fff;
}

.hero-section .container {
  max-width: 1000px;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 400px;
}

.hero-image {
  flex: 1;
  max-width: 50%;
}

.hero-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-content {
  flex: 1;
  max-width: 50%;
  text-align: left;
  color: #333;
}

.hero-text {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #666;
}

/* Service Cards Section */
.services-section {
  padding: 80px 0;
  background: #f8f8f8;
}

.services-section .container {
  max-width: 1000px;
}

.section-title {
  text-align: left;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
  letter-spacing: 1px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 300px;
}

.service-card a {
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 25px;
}

.service-card h3 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
  letter-spacing: 0.5px;
}

.service-card p {
  font-family: "Edu SA Hand", cursive;
  font-weight: 400;
  color: #666;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Ensure first-block previews inside service cards are tidy */
.service-card-preview {
  overflow: hidden;
}
.service-card-preview p:last-child {
  margin-bottom: 0;
}
.service-card-preview img {
  max-height: 160px;
  object-fit: cover;
  width: 100%;
}
.service-card-preview .wp-block-gallery,
.service-card-preview .blocks-gallery-grid {
  margin: 0;
}

/* Home page: Use Open Sans Light for service card captions */
.home .services-section .service-card p,
.front-page .services-section .service-card p {
  font-family: "Open Sans", "Quicksand", sans-serif;
  font-weight: 300;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: #fff;
}

.about-section .container {
  max-width: 1000px;
}

.about-content {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.about-content h2 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #333;
  text-align: left;
  letter-spacing: 1px;
}

.about-content p {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
  text-align: left;
}

/* Page Styles */
.page-container {
  padding: 60px 0;
  min-height: 60vh;
}

.page-container .container {
  max-width: 1000px;
}

.page-header {
  margin-bottom: 40px;
  text-align: left;
}

.page-title {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
  text-align: left;
  letter-spacing: 1px;
}

.page-featured-image {
  margin: 30px 0;
}

.page-featured-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-content {
  max-width: 100%;
  margin: 0;
  line-height: 1.8;
  text-align: left;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: left;
  letter-spacing: 0.5px;
}

.page-content p {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: #666;
  text-align: left;
}

.page-content img {
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-content blockquote {
  border-left: 4px solid #e0e0e0;
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
  text-align: left;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  text-align: left;
}

.page-content li {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: #666;
}

.page-links {
  margin-top: 2rem;
  text-align: left;
}

.page-links a {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  background: #f8f8f8;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}

.page-links a:hover {
  background: #e0e0e0;
}

/* Project Description Captions - Special styling for image captions and project descriptions */
.wp-caption-text,
.wp-block-image figcaption,
.project-caption,
.image-caption {
  font-family: "Edu SA Hand", cursive;
  font-weight: 400;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.4;
  text-align: center;
  margin-top: 0.5rem;
}

/* Blog Styles */
.blog-container {
  padding: 60px 0;
  min-height: 60vh;
}

.blog-container .container {
  max-width: 1000px;
}

.blog-header {
  text-align: left;
  margin-bottom: 50px;
}

.blog-title {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
  text-align: left;
  letter-spacing: 1px;
}

.blog-description {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: #666;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.blog-posts {
  max-width: 100%;
  margin: 0;
}

.blog-post {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post-header {
  margin-bottom: 20px;
}

.blog-post-title {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: left;
  letter-spacing: 0.5px;
}

.blog-post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post-title a:hover {
  color: #666;
}

.blog-post-meta {
  color: #666;
  font-size: 0.9rem;
  text-align: left;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}

.blog-post-meta span {
  /* Only one span now (date), no margin needed */
}

.blog-post-thumbnail {
  margin: 20px 0;
}

.blog-post-thumbnail img {
  width: 100%;
  height: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-post-thumbnail:hover img {
  transform: scale(1.02);
}

.blog-post-excerpt {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #666;
  text-align: left;
}

.read-more-link {
  color: #333;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  font-family: "Quicksand", sans-serif;
}

.read-more-link:hover {
  color: #666;
}

.blog-pagination {
  margin-top: 50px;
  text-align: left;
}

.blog-pagination a {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 5px;
  background: #f8f8f8;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}

.blog-pagination a:hover {
  background: #e0e0e0;
}

.blog-pagination .current {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 5px;
  background: #333;
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}

.no-posts {
  text-align: left;
  padding: 40px 0;
}

.no-posts h2 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2rem;
  color: #333;
  margin-bottom: 15px;
  text-align: left;
  letter-spacing: 1px;
}

.no-posts p {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  color: #666;
  font-size: 1.1rem;
  text-align: left;
}

/* Footer */
.site-footer {
  background: #333;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-resume {
  flex: 1 1 auto;
  text-align: center;
}

.footer-resume .resume-link {
  color: #fff;
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}

.footer-resume .resume-link:hover {
  text-decoration: underline;
}

.footer-contact {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}

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

.footer-credit {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: #ccc;
}

.footer-credit a {
  color: #fff;
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  padding: 10px;
  cursor: pointer;
  color: #333;
}

/* Additional JavaScript-enhanced styles */
.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #555;
  transform: translateY(-2px);
}

/* Form error styles */
.error {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 5px rgba(255, 107, 107, 0.3) !important;
}

/* Service card image transitions */
.service-card img {
  transition: transform 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .site-logo {
    max-height: 200px; /* Reduced for mobile but still high-res */
  }

  .mobile-nav-toggle {
    display: block;
    margin-left: 20px;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-left: 0;
    border-top: 1px solid #e0e0e0;
  }

  .nav-menu.mobile-active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-menu .dropdown {
    position: static;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
    background: #f8f8f8;
  }

  .hero-section {
    padding: 40px 0;
  }

  .hero-layout {
    flex-direction: column;
    gap: 30px;
    min-height: auto;
  }

  .hero-image,
  .hero-content {
    max-width: 100%;
    flex: none;
  }

  .hero-content {
    text-align: left;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-container {
    padding: 40px 0;
  }

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

  .page-content {
    padding: 0 20px;
  }

  .blog-container {
    padding: 40px 0;
  }

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

  .blog-post-title {
    font-size: 1.5rem;
  }

  .blog-posts {
    padding: 0 20px;
  }

  .blog-post-meta span {
    /* Only one span now (date), no special mobile styling needed */
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-resume {
    width: 100%;
    order: 2;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  /* Mobile service cards: make full-width and comfy */
  .service-card {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
  }
  .service-card img {
    height: 180px;
  }
  .service-card-content {
    padding: 20px;
  }
}

/* Resume CTA Section */
.resume-cta-section {
  padding: 60px 0 80px;
  background: #fff;
}
.resume-cta-section .container {
  max-width: 1000px;
  text-align: center;
}
.resume-cta-button {
  display: inline-block;
  padding: 18px 36px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.resume-cta-button:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.resume-cta-button:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .resume-cta-section {
    padding: 40px 0 60px;
  }
  .resume-cta-button {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    max-height: 150px; /* Even smaller for very small screens */
  }

  .container {
    padding: 0 15px;
  }

  .hero-section {
    padding: 30px 0;
  }

  .hero-layout {
    gap: 20px;
  }

  .hero-text {
    font-size: 0.95rem;
  }

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