/* ============================================================================
   🌋 MACO PAINTING – GLOBAL STYLES
   ----------------------------------------------------------------------------
   ✨ Core styling for the entire site
   ✅ Dark theme with white text
   ✅ Standardized content sections
   ✅ Responsive design
   ✅ Compatible with hero section
   ============================================================================
*/

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Global layout */
main {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding-top: 75px; /* Space for fixed header */
}

/* Hero compatibility */
section.hero-section {
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}

.scroll-indicator {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Content section standardization */
section:not(.hero-section):not(.service-grid) {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  margin-bottom: 3rem; /* Consistent vertical spacing */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #fff;
  font-family: "Playfair Display", serif;
  margin-top: 0;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-top: 1.2rem;
}

p {
  margin-bottom: 1.2rem;
  color: #f5f5f5;
}

li,
span,
div {
  color: #f5f5f5;
}

a {
  color: #ff3c1e; /* Volcanic red */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #ff6e5a;
  text-decoration: underline;
}

/* Image styling */
.section-break-image {
  display: block;
  margin: 2rem auto 1rem;
  max-width: 100%;
  border-radius: 0.5rem;
  height: auto;
}

/* Content with image layout */
.content-with-image {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.content-with-image img {
  max-width: 45%;
  border-radius: 0.5rem;
  height: auto;
}

.content-with-image p {
  flex: 1;
}

/* Lists */
ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Footer styling */
.site-footer {
  background-color: #111;
  color: #fff;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.footer-info,
.footer-contact {
  max-width: 45%;
}

.footer-info h3,
.footer-contact h4 {
  color: #fff;
  margin-top: 0;
}

.footer-contact a {
  color: #ff3c1e;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #ff6e5a;
}

/* Footer social media icons */
.footer-social {
  margin-top: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ff3c1e;
  color: #000;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #ff6e5a;
  transform: translateY(-3px);
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 3rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
  place-items: center;
  background-color: #000;
}

/* Image row styling for consistent image layouts */
.image-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 2rem 0;
}

.image-half {
  width: 48%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Standard image classes for mid and vert formats */
.mid-image {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  aspect-ratio: 3/2; /* Standard landscape proportion */
  margin: 2rem auto;
  border-radius: 0.5rem;
  object-fit: cover;
}

.vert-image {
  display: block;
  max-width: 800px;
  width: 100%;
  height: auto;
  aspect-ratio: 2/3; /* Standard portrait proportion */
  margin: 2rem auto;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* Enhanced content with image layout */
.content-with-image .text-content {
  flex: 1;
}

/* Standardize section spacing */
section:not(.hero-section):not(.service-grid) img {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-info,
  .footer-contact {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  section:not(.hero-section):not(.service-grid) {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .content-with-image {
    flex-direction: column;
  }

  .content-with-image img {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .image-row {
    flex-direction: column;
  }

  .image-half {
    width: 100%;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .social-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  section:not(.hero-section):not(.service-grid) {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

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

  h2 {
    font-size: 1.8rem;
  }
}

/* Add the following CSS at the end of your existing global.css file */

/* Enhanced content sections for better visual appeal */

/* Section titles with improved styling */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
  color: #fff;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #ff3c1e;
}

.section-intro {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #f5f5f5;
}

/* Content box with subtle styling */
.content-box {
  background-color: rgba(30, 30, 30, 0.7);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Featured content box with highlight styling */
.featured-content-box {
  background-color: rgba(100, 20, 20, 0.3);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #ff3c1e;
}

/* Enhanced list styling with colored bullets */
.enhanced-list {
  list-style: none;
  padding-left: 0.5rem;
  margin-bottom: 1.5rem;
}

.enhanced-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.enhanced-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background-color: #ff3c1e;
  border-radius: 50%;
}

/* Info box group for related content */
.info-box-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.info-box {
  background-color: rgba(40, 40, 40, 0.7);
  border-radius: 0.5rem;
  padding: 2rem;
  height: 100%;
}

.info-box .section-title {
  font-size: 1.8rem;
  text-align: left;
  padding-bottom: 0.5rem;
}

.info-box .section-title::after {
  left: 0;
  transform: none;
  width: 60px;
}

/* Call to action container */
.cta-container {
  background-color: rgba(100, 20, 20, 0.3);
  border-radius: 0.5rem;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.cta-text {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background-color: #ff3c1e;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #ff6e5a;
  color: white;
  text-decoration: none;
}

/* Enhanced content with image layout */
.content-with-image-placeholder {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.content-with-image-placeholder .text-content {
  flex: 1;
  min-width: 300px;
}

/* Image placeholders for vert and mid formats */
.image-placeholder-mid {
  width: 100%;
  max-width: 500px;
  height: 300px;
  background-color: rgba(40, 40, 40, 0.5);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-style: italic;
}

.image-placeholder-vert {
  width: 100%;
  max-width: 300px;
  height: 450px;
  background-color: rgba(40, 40, 40, 0.5);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-style: italic;
}

/* Note: The mid-image and vert-image classes are already in your global.css file */

/* Responsive adjustments for new components */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }

  .content-with-image-placeholder {
    flex-direction: column;
  }
}

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

  .featured-content-box,
  .content-box,
  .info-box,
  .cta-container {
    padding: 1.5rem;
  }

  .info-box-group {
    grid-template-columns: 1fr;
  }

  .section-title::after {
    width: 60px;
  }

  .cta-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }

  .featured-content-box,
  .content-box,
  .info-box,
  .cta-container {
    padding: 1.25rem;
  }

  .section-title::after {
    width: 50px;
  }
}
