/* ---------- RESET & GLOBAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #fefcf5;
  color: #1e2a2f;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

/* ---------- COLOUR PALETTE ---------- */
:root {
  --primary-brick: #b44c3c;
  --primary-dark: #7a2e22;
  --accent-stone: #d9c7b0;
  --accent-charcoal: #2a2d2e;
  --soft-grey: #f1efe7;
  --pure-white: #ffffff;
  --text-dark: #1f2a2c;
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 25px 35px -12px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ========== PAGE LOADER SPINNER ========== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fefcf5;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

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

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0d6ca;
  border-top: 4px solid var(--primary-brick);
  border-right: 4px solid var(--primary-brick);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-text {
  color: var(--accent-charcoal);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

/* ========== CUSTOM LOGO STYLES ========== */
.custom-logo {
  height: 55px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.footer-brand-name {
  font-weight: 800;
  font-size: 1rem;
  color: #f0e5d8;
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-brick);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(180, 76, 60, 0.4);
}

/* ========== EMAIL & TEL STYLING ========== */
.contact-link {
  color: var(--primary-brick);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

.contact-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  transform: translateX(2px);
}

/* ---------- NAVBAR / HEADER ---------- */
.navbar {
  background: var(--pure-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(180, 76, 60, 0.15);
  width: 100%;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  flex-wrap: wrap;
  position: relative;
}

.logo-area {
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-brick);
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s;
  z-index: 101;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  list-style: none;
  transition: all 0.3s ease;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-charcoal);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary-brick);
}

.btn-outline {
  border: 1.5px solid var(--primary-brick);
  padding: 8px 20px;
  border-radius: 40px;
  background: transparent;
  font-weight: 600;
  transition: all 0.25s;
}

.btn-outline:hover {
  background: var(--primary-brick);
  color: white !important;
  border-color: var(--primary-brick);
}

/* ---------- HERO SECTION ---------- */
.hero {
  background: linear-gradient(105deg, #f9f6ed 0%, #fef8ec 100%);
  padding: 2.5rem 0 3rem 0;
  border-bottom: 1px solid #e9e2d4;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  min-width: 280px;
}

.hero-badge {
  background: rgba(180, 76, 60, 0.12);
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-brick);
  margin-bottom: 1.2rem;
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent-charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-content h1 i {
  color: var(--primary-brick);
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: #3e4a4d;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: var(--primary-brick);
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 8px rgba(180, 76, 60, 0.2);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.stat-item h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-brick);
}

.stat-item p {
  font-size: 0.85rem;
}

.hero-image {
  flex: 1;
  background: #e6dfd1;
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shadow-hover);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500" width="100%" height="100%"><rect width="800" height="500" fill="%23e2d9c8"/><path fill="%23b44c3c" opacity="0.4" d="M0,400 L800,300 L800,500 L0,500 Z"/><circle cx="650" cy="180" r="45" fill="%23d4bc9a" opacity="0.6"/><rect x="120" y="320" width="180" height="60" fill="%23997b64" opacity="0.4" rx="8"/><rect x="460" y="260" width="140" height="40" fill="%23876148" opacity="0.4" rx="6"/><path d="M60 280 L140 240 L220 280 L220 340 L60 340 Z" fill="%23aa6e58" opacity="0.5"/></svg>');
  background-size: cover;
  background-position: center;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-repeat: no-repeat;
}

.hero-image-inner {
  background: rgba(42, 45, 46, 0.75);
  backdrop-filter: blur(2px);
  padding: 0.8rem 1.2rem;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  margin: 15px;
  font-size: 0.8rem;
}

/* ---------- GENERIC SECTIONS ---------- */
.section {
  padding: 3rem 0;
}

.section-dark {
  background-color: var(--soft-grey);
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--accent-charcoal);
  padding: 0 10px;
}

.section-sub {
  text-align: center;
  max-width: 90%;
  margin: 0 auto 2rem auto;
  color: #5b6669;
  font-size: 0.95rem;
  padding: 0 15px;
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0 10px;
}

.service-card {
  background: var(--pure-white);
  padding: 1.8rem 1.5rem;
  border-radius: 20px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-brick);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- ABOUT SECTION ---------- */
.about-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  flex-direction: column;
}

.about-text {
  flex: 1;
  width: 100%;
  padding: 0 10px;
}

.about-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #2e3b3f;
  font-size: 0.95rem;
}

.about-features {
  display: flex;
  gap: 1.2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.feature i {
  font-size: 1.3rem;
  color: var(--primary-brick);
}

.about-image {
  flex: 1;
  background: #d9cdbb;
  border-radius: 24px;
  height: 280px;
  width: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 500"><rect width="600" height="500" fill="%23cdbc9f"/><circle cx="180" cy="160" r="55" fill="%23bc8f72" opacity="0.7"/><path fill="%23966248" d="M90 300 L210 280 L300 320 L300 420 L90 420 Z" opacity="0.5"/><rect x="350" y="230" width="140" height="90" fill="%23ab7b5a" opacity="0.5" rx="12"/><path d="M420 370 L520 340 L560 380 L480 420 Z" fill="%23b44c3c" opacity="0.4"/></svg>');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
}

/* ---------- PROJECTS CARDS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0 10px;
}

.project-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.project-img {
  height: 200px;
  background: #cbbfaa;
  position: relative;
  background-size: cover;
}

.project-card:nth-child(1) .project-img { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 220"><rect width="400" height="220" fill="%23ab886b"/><path d="M0 160 L400 130 L400 220 L0 220 Z" fill="%23926248"/><rect x="80" y="70" width="60" height="50" fill="%237a4e36"/></svg>'); background-size: cover; }
.project-card:nth-child(2) .project-img { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 220"><rect width="400" height="220" fill="%23b99972"/><path d="M0 100 L400 70 L400 220 L0 220 Z" fill="%23976345"/><circle cx="300" cy="120" r="35" fill="%23c6a27e"/></svg>'); background-size: cover; }
.project-card:nth-child(3) .project-img { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 220"><rect width="400" height="220" fill="%23bd9a74"/><path d="M50 170 L180 120 L310 160 L370 200 L30 200 Z" fill="%23875b3f"/></svg>'); background-size: cover; }

.project-info {
  padding: 1.2rem;
}

.project-info h3 {
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.project-info p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: var(--accent-charcoal);
  color: white;
  border-radius: 30px;
  margin: 1.5rem auto 3rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.cta-section p {
  font-size: 0.9rem;
}

.cta-button {
  background: var(--primary-brick);
  border: none;
  padding: 10px 28px;
  border-radius: 40px;
  font-weight: 700;
  color: white;
  margin-top: 1rem;
  display: inline-block;
  transition: 0.2s;
  text-decoration: none;
  font-size: 0.9rem;
}

/* ---------- CONTACT SECTION ---------- */
.contact-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  flex-direction: column;
}

.contact-details {
  flex: 1;
  min-width: auto;
  padding: 0 10px;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.contact-icon {
  color: var(--primary-brick);
  font-size: 1.4rem;
  min-width: 32px;
}

.contact-item div {
  font-size: 0.9rem;
  word-break: break-word;
}

.contact-form {
  flex: 1.5;
  padding: 0 10px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

input, textarea {
  font-family: 'Inter', sans-serif;
  padding: 12px 16px;
  border-radius: 30px;
  border: 1px solid #e0d6ca;
  background: white;
  width: 100%;
  font-size: 0.9rem;
}

textarea {
  border-radius: 20px;
  resize: vertical;
}

/* ---------- FOOTER ---------- */
footer {
  background: #1f2629;
  padding: 2rem 0 1.5rem;
  color: #cfcfc4;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.8rem;
  flex-direction: column;
  text-align: center;
}

.footer-brand p {
  margin: 0.6rem 0;
  font-size: 0.85rem;
}

.footer-links h4, .footer-contact h4 {
  color: #f0e5d8;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #bdb3a4;
  text-decoration: none;
  font-size: 0.85rem;
}

.social-icons a {
  color: #cfcfc4;
  font-size: 1.2rem;
  margin: 0 0.6rem;
  transition: color 0.2s;
  display: inline-block;
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #354349;
  font-size: 0.7rem;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-wrap {
    flex-direction: row;
  }
  .contact-flex {
    flex-direction: row;
  }
  .footer-grid {
    flex-direction: row;
    text-align: left;
  }
  .section {
    padding: 4rem 0;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-content h1 {
    font-size: 3.2rem;
  }
  .custom-logo {
    height: 60px;
  }
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: var(--pure-white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
    gap: 1.5rem;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 99;
  }
  .nav-links.nav-active {
    left: 0;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 10px;
    font-size: 1.1rem;
  }
  .hero-stats {
    justify-content: space-between;
  }
  .stat-item h3 {
    font-size: 1.3rem;
  }
  .hero-image {
    min-height: 220px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-stats {
    gap: 1rem;
  }
  .stat-item h3 {
    font-size: 1.2rem;
  }
  .stat-item p {
    font-size: 0.75rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .custom-logo {
    height: 45px;
    max-width: 180px;
  }
  .btn-primary {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  .service-card {
    padding: 1.4rem 1.2rem;
  }
}