/* ============================================
   THE FENCE PEOPLE — Static Site Stylesheet
   Rebuilt by Wandzilak Web Design Studio
   ============================================ */

/* --- CSS Variables --- */
:root {
  --green: #789b43;
  --green-check: #55aa39;
  --navy: #021d47;
  --charcoal: #3b3c38;
  --dark-charcoal: #2b2c27;
  --white: #ffffff;
  --light-bg: #eff4fb;
  --light-gray: #f4f4f4;
  --light-blue-gray: #eff4f7;
  --gray-text: #898989;
  --border-gray: #dddddd;
  --orange-hover: #ffa04f;
  --orange: #ee802f;
  --fb-blue: #3b5998;
  --fb-hover: #5b79b8;
  --ig-pink: #c32aa3;
  --ig-hover: #e34ac3;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  line-height: 1.1;
  letter-spacing: normal;
  color: var(--navy);
}

h1 { font-size: 64px; font-weight: 800; }
h2 { font-size: 48px; font-weight: 700; }
h3 { font-size: 36px; font-weight: 600; }
h4 { font-size: 24px; font-weight: 500; }
h5 { font-size: 20px; font-weight: 500; }
h6 { font-size: 16px; font-weight: 500; }

p {
  margin-bottom: 1em;
  font-weight: 300;
}

.section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 75px 20px;
}

/* --- Header --- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

/* Top bar - green */
.header-top {
  background-color: var(--green);
  padding: 14px 0;
}

.header-top .header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 0;
  transition: background-color 0.3s ease;
}

.social-icons a svg {
  width: 12px;
  height: 12px;
  fill: var(--white);
}

.social-icons a.social-fb { background-color: var(--fb-blue); }
.social-icons a.social-fb:hover { background-color: var(--fb-hover); }
.social-icons a.social-ig { background-color: var(--ig-pink); }
.social-icons a.social-ig:hover { background-color: var(--ig-hover); }

.header-phone a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
}

.header-phone svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

/* Main nav bar - navy */
.header-main {
  background-color: var(--navy);
  border-bottom: 1px solid var(--border-gray);
}

.header-main .header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  max-width: 198px;
  width: 100%;
  padding: 10px 10px 10px 0;
}

.header-logo img {
  width: 100%;
  height: auto;
}

/* Desktop Nav */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 24px 20px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-list > li > a:hover,
.nav-list > li.active > a {
  color: var(--green);
}

.nav-list > li.active > a {
  border-bottom-color: var(--green);
  padding-bottom: 22px;
}

/* Dropdown */
.nav-list > li > .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--navy);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.nav-list > li:hover > .sub-menu,
.nav-list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.sub-menu li a:hover {
  background-color: var(--green);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  width: 24px;
  height: 19px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--green);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger:hover .hamburger-line {
  background-color: var(--white);
}

/* Mobile menu open state */
.nav-menu.open .nav-list {
  display: flex;
}

.nav-menu.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}

.nav-menu.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-menu.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  padding: 10px 16px;
  border-radius: 0px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.btn-green {
  background-color: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-green:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn-submit {
  background-color: rgb(32, 76, 229);
  color: var(--white);
  border-color: rgb(32, 76, 229);
  width: 100%;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* --- Section Headings Pattern --- */
.section-label {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--green);
  margin-bottom: 22px;
  line-height: 1.2;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 40px;
  text-align: center;
}

/* --- About Section --- */
.about-section {
  background-color: var(--white);
  padding-top: 0;
  padding-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.about-slider {
  max-width: 100%;
  width: 100%;
  height: 500px;
}

.about-slider .swiper-slide {
  background-size: cover;
  background-position: center center;
  height: 100%;
}

.about-text h2 {
  color: var(--navy);
  margin-bottom: 30px;
  font-size: 42px;
}

.about-text p {
  color: var(--charcoal);
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 15px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  font-size: 24px;
  color: var(--green);
  font-weight: bold;
  line-height: 1;
}

.feature-icon-svg {
  flex-shrink: 0;
}

.feature-text {
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

/* --- Services Section (3-Column Grid) --- */
.services-section {
  background-color: var(--white);
  padding: 0;
}

.services-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 42px;
  color: var(--navy);
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1440px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-card-image {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center center;
  background-color: #eee;
}

.service-card-title {
  font-size: 18px;
  font-family: var(--font-heading);
  margin: 20px 20px 0 20px;
  padding-top: 0;
  padding-bottom: 0;
}

.service-card-title a {
  color: var(--green);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: capitalize;
  transition: color 0.3s ease;
}

.service-card-title a:hover {
  color: var(--navy);
}

.service-card-meta {
  font-size: 12px;
  color: var(--gray-text);
  margin: 5px 20px 0 20px;
  font-weight: 300;
}

.service-card-excerpt {
  margin: 15px 20px;
  padding: 0;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}

.btn-read-more {
  font-size: 12.8px;
  color: var(--light-bg);
  background-color: var(--navy);
  padding: 10px 20px;
  line-height: 1;
  border-radius: 3px;
  display: inline-block;
  align-self: flex-start;
  transition: all 0.3s ease;
  margin: 0 20px 20px 20px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.btn-read-more:hover {
  background-color: var(--green);
  color: var(--white);
}

/* --- Why Choose Us Section --- */
.why-choose-us-section {
  background-color: var(--white);
  padding: 0;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.why-choose-text h2 {
  color: var(--navy);
  margin-bottom: 30px;
  font-size: 42px;
}

.why-choose-text p {
  color: var(--charcoal);
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 15px;
}

.why-choose-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.why-choose-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.why-choose-icon {
  font-size: 24px;
  color: var(--green);
  font-weight: bold;
  line-height: 1;
}

.why-choose-label {
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.why-choose-image {
  width: 100%;
}

.why-choose-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* --- Projects / Recent Work Section --- */
.projects-section {
  background-color: var(--white);
  padding: 0;
}

.projects-section h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 42px;
  color: var(--navy);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.filter-tab {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  padding: 10px 18px;
  cursor: pointer;
  color: var(--white);
  background-color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.filter-tab.active,
.filter-tab:hover {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* Recent Work Grid (4 columns) */
.recent-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1440px;
  margin: 0 auto;
}

.recent-work-item {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center center;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.recent-work-item:hover {
  transform: scale(1.05);
}

/* --- Get In Touch Section (with Form) --- */
.get-in-touch-section {
  position: relative;
  background-color: var(--white);
  padding: 80px 20px;
  overflow: hidden;
}

.get-in-touch-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  z-index: 0;
}

.get-in-touch-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  position: relative;
  z-index: 1;
}

.get-in-touch-form-container {
  width: 100%;
  margin-left: 50%;
  padding-left: 60px;
}

.get-in-touch-form-container h2 {
  color: var(--green);
  margin-bottom: 40px;
  font-size: 42px;
}

.get-in-touch-heading {
  color: var(--green) !important;
}

/* Contact Form Styles */
.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.required {
  color: var(--orange);
}

.char-count {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid rgb(104, 110, 119);
  border-radius: 3px;
  background-color: var(--white);
  color: var(--charcoal);
  transition: all 0.3s ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
  color: rgba(0,0,0,0.4);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background-color: var(--white);
  outline: none;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.form-group select option {
  color: var(--charcoal);
  background-color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--green);
}

.form-checkbox label {
  margin-bottom: 0;
  display: inline;
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--charcoal);
}

.form-sms-notice {
  background-color: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 2px;
}

.form-sms-notice p {
  color: var(--charcoal);
  font-size: 13px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 20px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  max-width: 188px;
  width: 100%;
  margin-bottom: 20px;
  height: auto;
}

.footer-distributor {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 15px;
}

.footer-sipo-logo {
  max-width: 90px;
  width: 100%;
  height: auto;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 32px;
  line-height: 1.1;
}

.footer-subheading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 15px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.5;
}

.footer-contact a {
  color: rgba(255,255,255,0.85);
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--green);
}

.footer-icon {
  width: 18px;
  height: 18px;
  fill: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.footer-social-link svg {
  width: 12px;
  height: 12px;
  fill: var(--white);
}

.footer-social-link:nth-child(1) {
  background-color: var(--fb-blue);
}

.footer-social-link:nth-child(1):hover {
  background-color: var(--fb-hover);
}

.footer-social-link:nth-child(2) {
  background-color: var(--ig-pink);
}

.footer-social-link:nth-child(2):hover {
  background-color: var(--ig-hover);
}

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

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu li a {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-menu li a:hover {
  color: var(--green);
}

.footer-logos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logos img {
  max-width: 320px;
  height: auto;
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-copyright a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-copyright a:hover {
  color: rgba(255,255,255,0.8);
}

/* --- Service Items with Checkmark (Legacy) --- */
.service-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.service-item svg {
  width: 28px;
  height: 28px;
  fill: var(--green);
  margin-right: 10px;
  flex-shrink: 0;
}

.service-item span {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  text-transform: capitalize;
}

/* --- Product Cards Grid (Legacy) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.product-card-image {
  width: 100%;
  margin-bottom: 1em;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  padding-bottom: 100%;
  background-size: cover;
  background-position: center center;
  background-color: #eee;
}

.product-card-title {
  font-size: 1.5em;
  font-family: var(--font-heading);
  color: var(--green);
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.product-card-content {
  margin: 1em 0;
  font-size: 16px;
  line-height: 1.6;
}

.product-card-content p {
  margin: 0;
}

.product-card .btn-read-more {
  font-size: 0.8em;
  color: var(--light-bg);
  background-color: var(--navy);
  padding: 0.75em 1.5em;
  line-height: 1;
  border-radius: 3px;
  display: inline-block;
  transition: all 0.3s ease;
}

.product-card .btn-read-more:hover {
  background-color: var(--green);
  color: var(--white);
}

/* Products page — img-based cards */
.product-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 1em;
}

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

.product-info h3 {
  font-size: 1.4em;
  font-family: var(--font-heading);
  color: var(--green);
  margin-bottom: 0.4em;
  line-height: 1.2;
}

.product-info p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 1em;
}

.product-cta {
  font-size: 0.8em;
  color: var(--light-bg);
  background-color: var(--navy);
  padding: 0.75em 1.5em;
  line-height: 1;
  border-radius: 3px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-cta:hover {
  background-color: var(--green);
  color: var(--white);
}

/* --- Two-Column Sections (Legacy) --- */
.two-col {
  display: flex;
  flex-wrap: wrap;
}

.two-col > .col {
  width: 50%;
}

.col-image-bg {
  background-size: cover;
  background-position: center center;
  min-height: 500px;
}

/* --- Recent Work Gallery (Legacy) --- */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.gallery-tab {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--charcoal);
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.gallery-tab:hover,
.gallery-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.gallery-item {
  flex: 0 0 calc(25% - 6px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
}

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

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

/* --- Swiper Overrides --- */
.swiper {
  width: 100%;
  position: relative;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--white) !important;
  transition: color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: var(--green) !important;
}

/* Hero section & slider */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  overflow: hidden;
}

.hero-slider .swiper-slide {
  height: 800px;
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--navy);
}

/* About slider */
.about-slider {
  max-width: 100%;
  width: 100%;
  height: 500px;
}

.about-slider .swiper-slide {
  background-size: cover;
  background-position: center center;
  height: 100%;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.bg-navy { background-color: var(--navy); }
.bg-light { background-color: var(--light-bg); }
.bg-gray { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .about-grid,
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .filter-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-tab {
    font-size: 11px;
    padding: 8px 14px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .get-in-touch-bg {
    display: none;
  }

  .get-in-touch-form-container {
    margin-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .section-inner {
    padding: 40px 15px;
  }

  h2 {
    font-size: 32px;
  }

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

  .recent-work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hamburger {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--navy);
    width: 100%;
    z-index: 999;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list > li > a {
    padding: 15px 20px;
    border-bottom: none;
  }

  .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none;
    background-color: #001a3d;
  }

  .has-dropdown.active .sub-menu {
    display: flex;
    flex-direction: column;
  }

  .sub-menu li a {
    padding: 12px 20px;
    padding-left: 40px;
  }
}
