/* =========================
   GLOBAL STYLES
========================= */

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

body {
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  color: #6e6e6e;
  text-align: center;
}

.Body-text {
  padding: 50px 50px;
  display: block;
}

.small-heading {
  color: black;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

/* =========================
   NAVBAR SECTION
========================= */

#Nav {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  color: #111;
  z-index: 1000;
}

nav .logo img {
  height: auto;
  max-height: 120px;
  width: auto;
}

nav .links {
  display: flex;
  gap: 15px;
  font-size: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav .links a {
  color: black;
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav .links a:hover,
nav .links a.active {
  color: #ffcc00;
}

/* Hamburger icon — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #111;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animated X when open */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.98);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.6rem;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: #ffcc00;
}

.mobile-nav .close-btn {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 2rem;
  cursor: pointer;
  color: #111;
  background: none;
  border: none;
  line-height: 1;
}

/* =========================
   HERO CAROUSEL
========================= */

.hero-carousel {
  position: relative;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 570px;
  object-fit: cover;
}

.hero-carousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-carousel .carousel-caption {
  z-index: 2;
  bottom: 70px;
}

.hero-carousel .carousel-caption h1 {
  font-size: 5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.hero-carousel .carousel-caption p {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* =========================
   BUTTONS
========================= */

.hero-btn {
  display: inline-block;
  padding: 14px 35px;
  background: #ffc107;
  color: #111;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
}

.hero-btn:hover {
  background: #ffca2c;
  color: #000;
  transform: translateY(-3px);
}

/* =========================
   CAROUSEL CONTROLS
========================= */

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 4rem;
  height: 4rem;
  background-size: 100% 100%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 8%;
}

.carousel-indicators button {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50%;
  margin: 0 8px !important;
  background-color: white !important;
  opacity: 0.5;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #ffc107 !important;
}

/* =========================
   ANIMATIONS
========================= */

.carousel-caption h1,
.carousel-caption p,
.carousel-caption .hero-btn {
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.carousel-caption p { animation-delay: 0.3s; }
.carousel-caption .hero-btn { animation-delay: 0.6s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   MAIN CONTENT
========================= */

.Main-Text1 {
  color: black;
}

#intro-body {
  color: #6e6e6e;
}

.Certifications {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.Certifications img {
  width: 150px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.Certifications img:hover {
  transform: scale(1.05);
}

.Experienced-Scaffolders {
  margin: 30px 300px;
}

.space1 { margin-bottom: 35px; }
.space2 { margin-top: 35px; }

/* =========================
   GALLERY STYLES
========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
  margin: 50px;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  transition: transform ease 0.3s;
}

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

/* =========================
   SERVICE LIST STYLES
========================= */

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

.services-list {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-left: 20px;
}

.services-list li {
  font-size: 1.1rem;
  color: #6e6e6e;
}

/* =========================
   COMPANY LOGOS STYLES
========================= */

.comp-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 10px 0;
  align-items: start;
}

.logo-item {
  display: grid;
  grid-template-rows: 120px auto;
  justify-items: center;
}

.logo-item img {
  height: auto;
  width: 150px;
  object-fit: contain;
  align-self: center;
}

.logo-item p {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #6e6e6e;
  text-align: center;
  align-self: start;
}

/* =========================
   TESTIMONIALS STYLES
========================= */

.italic-sign {
  font-style: italic;
}

.test-style {
  padding: 10px;
  background-color: #6e6e6e;
  border: 3px solid black;
  display: inline-block;
}

.button1 {
  display: inline-block;
  padding: 10px 12px;
  background-color: #6e6e6e;
  color: black;
  text-decoration: none;
  border: none;
  transition: transform 0.3s ease;
}

.button1:hover {
  transform: scale(1.08);
}

/* =========================
   CONTACT & MAP STYLES
========================= */

.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  margin: 0 auto;
  padding: 40px;
}

.contact-text {
  text-align: left;
  max-width: 600px;
}

.contact-image img {
  width: 500px;
  height: auto;
}

/* =========================
   CONTACT PAGE STYLES
========================= */

.contact-page {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 30px;
  text-align: left;
}

.contact-page h1 {
  color: black;
  margin-bottom: 10px;
}

.contact-page .intro {
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.contact-detail-block h3 {
  color: black;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.contact-detail-block p,
.contact-detail-block a {
  color: #6e6e6e;
  text-decoration: none;
  line-height: 1.8;
  display: block;
}

.contact-detail-block a:hover {
  color: #ffcc00;
}

.contact-form-section h2 {
  color: black;
  margin-bottom: 25px;
}

/* =========================
   FORM LAYOUT
========================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.required {
  color: #c0392b;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #1a2744;
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

.contact-form input.field-error,
.contact-form textarea.field-error {
  border-color: #c0392b;
  background-color: #fff8f8;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  padding: 14px 40px;
  background: #1a2744;
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.contact-form button:hover {
  background: #ffcc00;
  color: #1a2744;
}

/* =========================
   FORM NOTICE MESSAGES
========================= */

.form-notice {
  padding: 20px 25px;
  border-radius: 6px;
  margin-bottom: 30px;
  text-align: left;
  line-height: 1.7;
  outline: none;
}

.form-notice strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.form-notice p,
.form-notice ul {
  margin: 0;
  font-size: 0.95rem;
}

.form-notice ul {
  padding-left: 20px;
}

.form-notice ul li {
  margin-bottom: 4px;
}

/* Success */
.form-notice--success {
  background: #f0faf4;
  border: 2px solid #27ae60;
  color: #1e6b3c;
}

.form-notice--success strong {
  color: #1a5c33;
  font-size: 1.2rem;
}

.form-notice--success a {
  color: #1a5c33;
  font-weight: bold;
}

/* Error */
.form-notice--error {
  background: #fff8f8;
  border: 1px solid #c0392b;
  color: #7b1e1e;
}

.form-notice--error strong {
  color: #c0392b;
}

/* =========================
   INNER PAGE STYLES
========================= */

.page-hero {
  background: #1a2744;
  color: white;
  padding: 80px 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.inner-content {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 30px;
  text-align: left;
}

.inner-content h2 {
  color: black;
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.inner-content h3 {
  color: black;
  margin-top: 25px;
  margin-bottom: 10px;
}

.inner-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.inner-content ul {
  padding-left: 25px;
  margin-bottom: 15px;
}

.inner-content ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* =========================
   CTA STRIP
========================= */

.cta-strip {
  background: #1a2744;
  padding: 50px 40px;
  text-align: center;
  margin-top: 60px;
}

.cta-strip h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta-strip p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: #ffffff;
  color: #1a2744;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.cta-btn:hover {
  background: #ffcc00;
  color: #1a2744;
}

/* =========================
   FOOTER SECTION STYLES
========================= */

.footer-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 50px;
  width: 100%;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 140px;
}

.footer-column h3 {
  margin-bottom: 15px;
  color: black;
}

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

.footer-column li {
  margin-bottom: 10px;
  color: #6e6e6e;
}

.footer-column a {
  text-decoration: none;
  color: #6e6e6e;
}

.footer-column a:hover {
  color: #ffcc00;
}

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

.footer-bottom {
  width: 100%;
  text-align: center;
  padding: 10px;
  color: #6e6e6e;
  font-size: 0.95rem;
}

/* =========================
   EMAIL OBFUSCATION
   Assembles email address purely via CSS content.
   No @ symbol or complete address exists anywhere in the HTML.
   data-user = part before @
   data-domain = part after @
========================= */

.css-email {
  cursor: pointer;
  color: #6e6e6e;
  text-decoration: none;
  transition: color 0.3s;
}

.css-email:hover {
  color: #ffcc00;
}

/* Contact page version — inherits link colour from parent */
.contact-detail-block .css-email {
  color: #6e6e6e;
  display: block;
  line-height: 1.8;
}

.contact-detail-block .css-email:hover {
  color: #ffcc00;
}

.css-email::before {
  content: attr(data-user);
}

.css-email::after {
  content: attr(data-domain);
}

/* The @ sits between ::before and ::after via a wrapper trick —
   we use a zero-width element between them and inject @ as its content */
.css-email span {
  display: inline;
}

.css-email span::before {
  content: "@";
}

/* =========================
   RESPONSIVE — TABLET
========================= */

@media (max-width: 992px) {
  .hero-carousel .carousel-caption h1 { font-size: 3.5rem; }
  .hero-carousel .carousel-caption p  { font-size: 1.2rem; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .comp-logos    { grid-template-columns: repeat(2, 1fr); }
  .Experienced-Scaffolders { margin: 30px 80px; }
  .contact-row   { gap: 40px; }
  .contact-image img { width: 350px; }
}

/* =========================
   RESPONSIVE — MOBILE
========================= */

@media (max-width: 768px) {

  #Nav {
    padding: 15px 20px;
    flex-wrap: nowrap;
    gap: 10px;
  }

  nav .logo {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
  }

  nav .logo img {
    max-height: 70px;
    max-width: 200px;
    width: 100%;
  }

  nav .links {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
  }

  .hero-carousel .carousel-item img { height: 60vh; }
  .hero-carousel .carousel-caption  { bottom: 30%; }
  .hero-carousel .carousel-caption h1 { font-size: 2rem; }
  .hero-carousel .carousel-caption p  { font-size: 0.95rem; padding: 0 10px; }

  .Body-text { padding: 30px 20px; }

  .gallery-grid {
    grid-template-columns: 1fr;
    margin: 20px;
  }

  .comp-logos { grid-template-columns: repeat(2, 1fr); }

  .Experienced-Scaffolders { margin: 20px 15px; }

  .contact-row {
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
  }

  .contact-image img { width: 100%; }

  .contact-details { grid-template-columns: 1fr; gap: 25px; }
  .form-row        { grid-template-columns: 1fr; }

  .page-hero h1 { font-size: 2rem; }
  .page-hero p  { font-size: 1rem; }

  .footer-section {
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding: 40px 20px;
  }

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

  .footer-logo img { width: 160px; }
}

@media (max-width: 480px) {
  .hero-carousel .carousel-caption h1 { font-size: 1.5rem; }
  .gallery-grid { margin: 10px; }
  .comp-logos   { grid-template-columns: 1fr; }
}
