/*
Theme Name: Kunert Construction
Theme URI: https://kunertconstruction.com
Author: Kunert Construction, Inc.
Author URI: https://kunertconstruction.com
Description: Professional construction company theme for Kunert Construction, Inc. - serving Illinois and Wisconsin for 35+ years. Features a dark theme design with warm copper accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kunert-construction
Tags: dark, construction, business, one-column, custom-menu, featured-images
*/

:root {
  --background: #000000;
  --foreground: #ebe8e4;
  --card: #141414;
  --card-foreground: #ebe8e4;
  --primary: #b06a28;
  --primary-foreground: #fefdfb;
  --secondary: #1f1d1b;
  --secondary-foreground: #ebe8e4;
  --muted: #1f1d1b;
  --muted-foreground: #a19d98;
  --accent: #b06a28;
  --accent-foreground: #fefdfb;
  --border: #302c28;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Site Layout with Sidebar */
.site-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 16rem;
  background-color: var(--card);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  display: none;
}

@media (min-width: 768px) {
  .sidebar {
    display: block;
  }
}

.sidebar.open {
  display: block;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
}

.sidebar-logo {
  padding: 1rem;
  margin-bottom: 1rem;
}

.sidebar-logo img {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  transition: opacity 0.2s;
}

.sidebar-logo a:hover img {
  opacity: 0.8;
}

.sidebar-nav {
  flex: 1;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: background-color 0.2s;
}

.sidebar-nav a:hover {
  background-color: var(--secondary);
}

.sidebar-nav a.active {
  background-color: var(--secondary);
  color: var(--primary);
}

.sidebar-footer {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sidebar-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: background-color 0.2s;
}

.sidebar-phone:hover {
  background-color: var(--secondary);
}

.sidebar-phone svg {
  flex-shrink: 0;
}

/* Main Content Wrapper */
.main-wrapper {
  flex: 1;
  margin-left: 0;
}

@media (min-width: 768px) {
  .main-wrapper {
    margin-left: 16rem;
  }
}

/* Mobile Header */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (min-width: 768px) {
  .mobile-header {
    display: none;
  }
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.menu-toggle:hover {
  background-color: var(--secondary);
}

.mobile-logo img {
  height: 2.5rem;
  width: auto;
}

.mobile-phone {
  color: var(--primary);
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.mobile-phone:hover {
  background-color: var(--secondary);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidebar-overlay.active {
  display: block;
}

@media (min-width: 768px) {
  .sidebar-overlay {
    display: none !important;
  }
}

/* Legacy Header Styles - kept for compatibility */
.site-header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

@media (min-width: 768px) {
  .site-logo {
    font-size: 1.5rem;
  }
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .main-navigation ul {
    gap: 1rem;
  }
}

.main-navigation a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.main-navigation a:hover {
  background-color: var(--secondary);
}

.main-navigation .current-menu-item a {
  color: var(--primary);
}

.header-phone {
  display: none;
}

@media (min-width: 768px) {
  .header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: #c57830;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.hero-tagline {
  font-size: 1.5rem !important;
  font-style: italic;
  font-family: var(--font-serif);
  color: rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 2rem;
}

.intro-text {
  max-width: 48rem;
  margin: 0 auto;
}

.intro-text p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.services-grid-home {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .services-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

.services-grid-home .card {
  padding: 1.5rem;
}

.services-grid-home .card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.services-grid-home .card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.section-alt {
  background-color: var(--card);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', Georgia, serif;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Card Styles */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-content {
  padding: 1.5rem;
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  color: var(--muted-foreground);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

/* Page Titles */
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .page-title {
    font-size: 3.5rem;
  }
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.75;
}

/* Featured Projects Grid */
.featured-projects-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .featured-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .featured-projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-project-item {
  aspect-ratio: 1;
  background-color: var(--card);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.featured-project-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.featured-project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.feature-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0.5rem;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.testimonial-content {
  flex: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  line-height: 1.75;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

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

.testimonial-date {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* About Page */
/* About Page Layout */
.about-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}

.about-text-column {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about-section {
  margin-bottom: 0;
}

.section-heading-primary {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-heading-primary {
    font-size: 2rem;
  }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--foreground);
}

.mission-statement {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem !important;
  font-weight: 700;
  color: var(--foreground) !important;
}

.about-contact-divider {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.about-contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .about-contact-links {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.about-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 1.125rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.about-contact-link:hover {
  background-color: var(--secondary);
}

.contact-divider-text {
  display: none;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .contact-divider-text {
    display: inline;
  }
}

.about-image-column {
  order: -1;
}

@media (min-width: 1024px) {
  .about-image-column {
    order: 0;
  }
}

.about-image-sticky {
  position: sticky;
  top: 2rem;
}

.about-image-wrapper {
  aspect-ratio: 3/4;
  background-color: var(--card);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

/* Legacy about-content for compatibility */
.about-content {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}

.about-section h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-section p {
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-image {
  aspect-ratio: 3/4;
  border-radius: 0.5rem;
  overflow: hidden;
}

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

/* Contact Section */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .contact-info {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item svg {
  color: var(--primary);
}

/* Footer */
.site-footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 1rem;
}

.footer-column h3 {
  color: var(--primary);
}

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

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.social-links a:hover {
  background-color: var(--secondary);
}

/* Page Header */
.page-header {
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 3rem;
  }
}

.page-header p {
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

/* CTA Section */
.cta-section {
  background-color: var(--card);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Utility Classes */
.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted-foreground);
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

/* About Page Additional Styles */
.mission-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-image-wrapper {
  position: sticky;
  top: 2rem;
  aspect-ratio: 3/4;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--card);
}

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

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Projects Page Styles */
.projects-intro {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
  color: var(--muted-foreground);
}

.project-categories {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .project-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-category-content {
  padding: 2rem;
  text-align: center;
}

.project-category-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-category-content p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.services-overview {
  margin-top: 4rem;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-item {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.service-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-item p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Gallery Page Styles */
/* Removed gallery instructions - no longer needed */
.gallery-instructions {
  display: none;
}

.gallery-instructions h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.gallery-instructions p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.gallery-instructions code {
  background-color: var(--secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.gallery-section {
  margin-bottom: 4rem;
}

.gallery-title {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.no-images {
  color: var(--muted-foreground);
  font-style: italic;
  padding: 2rem;
  text-align: center;
  background-color: var(--card);
  border-radius: 0.5rem;
  grid-column: 1 / -1;
}
