/* ============================= */
/* GLOBAL RESET */
/* ============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;

  /* ✅ GLOBAL SIDE SPACING */
  padding: 0 8%;

  opacity: 1 !important;
  transition: none;
}

/* ============================= */
/* NAVBAR */
/* ============================= */
.topbar {
  background: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  transition: 0.3s ease;
}

.topbar a:hover {
  color: #d08a3c;
}

/* ============================= */
/* BUTTONS */
/* ============================= */
.btn {
  display: inline-block;
  background: #c97c3a;
  color: white;
  padding: 12px 26px;
  text-decoration: none;
  border-radius: 30px;
  margin-top: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #a86127;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn.secondary {
  background: #b46a2f;
}

.btn.center {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
}

/* ============================= */
/* BRAND HEADER */
/* ============================= */
.brand-header {
  margin-top: 40px;
  margin-bottom: 60px;
}

.brand-header img {
  display: block;
  margin-bottom: 10px;
}

.brand-header h2 {
  margin-bottom: 5px;
}

.brand-header p {
  color: #666;
}

/* ============================= */
/* HERO */
/* ============================= */
.hero {
  display: flex;
  gap: 150px;
  padding: 80px 0;
  align-items: center;
  flex-wrap: nowrap;
  background: white;
}

/* ✅ THIS IS THE FIX (ONLY THIS MATTERS) */
.hero-content {
  flex: 1;
  max-width: 600px;
  margin-top: 100px; /* pushes "Affordable Painter" down */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* optional extra spacing for your custom class */
.down-text {
  margin-top: 10px;
}

.description {
  color: #666;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ============================= */
/* FEATURE SECTION */
/* ============================= */
.feature {
  display: flex;
  gap: 50px;
  padding: 80px 0;
  align-items: center;
  flex-wrap: wrap;
  background: #f2f2f2;
}

.feature-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  margin-bottom: 20px;
}

/* ============================= */
/* POSTS */
/* ============================= */
.posts {
  padding: 80px 0;
  background: white;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
}

.post {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: center;
}

.post img {
  width: 200px;
  border-radius: 10px;
  object-fit: cover;
}

.post-text h3 {
  margin-bottom: 10px;
}

/* ============================= */
/* GALLERY */
/* ============================= */
.row:after {
  content: "";
  display: table;
  clear: both;
}

.column {
  float: left;
  width: 25%;
  padding: 8px;
  overflow: hidden;
}

.column img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: 0.4s ease;
}

.column img:hover {
  transform: scale(1.08);
}

/* ============================= */
/* MODAL LIGHTBOX */
/* ============================= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
}

.modal-content {
  position: relative;
  margin: auto;
  width: 90%;
  max-width: 1100px;
}

.mySlides {
  display: none;
}

.mySlides img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.close {
  color: white;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  cursor: pointer;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-size: 22px;
  font-weight: bold;
  user-select: none;
  transition: 0.3s;
}

.prev { left: 0; }
.next { right: 0; }

.prev:hover,
.next:hover {
  background: rgba(255,255,255,0.2);
}

.caption-container {
  text-align: center;
  padding: 10px;
  color: white;
}

/* ============================= */
/* FOOTER */
/* ============================= */
.footer {
  background: #222;
  color: white;
  display: flex;
  gap: 50px;
  padding: 70px 0;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
}

.footer input,
.footer textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 6px;
  border: none;
}

.footer button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: #c97c3a;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s ease;
}

.footer button:hover {
  background: #a86127;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 900px) {
  .column {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .hero,
  .feature,
  .post {
    flex-direction: column;
    text-align: center;
  }

  .column {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .post img {
    width: 100%;
    max-width: 300px;
  }
}

/* ============================= */
/* EXTRA FIXES */
/* ============================= */
#preloader {
  display: none !important;
}

.hero-image img,
.feature-image img,
.post img {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.hero-image img.visible,
.feature-image img.visible,
.post img.visible {
  transform: scale(1);
  opacity: 1;
}
