@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0a2540;
  --primary-light: #183b5e;
  --accent: #c89b3c;
  --accent-glow: rgba(200, 155, 60, 0.4);
  --light: #f4f6f8;
  --dark: #0f172a;
  --text-main: #334155;
  --text-light: #64748b;
  --max-width: 1200px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
  background-color: #fff;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* ================= GLOBAL ================= */
a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

/* ================= HEADER ================= */
header {
  background: var(--primary);
  height: 120px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid var(--accent);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
}

/* HEADER GRID */
nav.main-nav,
nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* NAV CENTER */
nav ul,
.nav-links {
  grid-column: 2;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* NAV LINKS */
nav a,
.nav-links a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 1.1rem;
  white-space: nowrap;
  line-height: 1;
}

nav a:hover,
.nav-links a:hover {
  color: var(--accent);
}

/* ================= HEADER CTA ================= */
.nav-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.contact-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  white-space: nowrap;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.contact-btn:hover {
  background: #dbac48;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
  color: #fff;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  justify-self: end;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: 0.3s ease;
}

.logo {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.logo img {
  position: absolute;
  top: -40px;
  left: -10px;
  height: 210px;
  width: auto;
  display: block;
}

.logo a {
  pointer-events: auto;
  display: inline-block;
}

/* Remove stray lines */
nav::before,
nav::after,
.main-nav::before,
.main-nav::after {
  content: none !important;
  display: none !important;
}

ul.feature-list {
  padding-left: 20px;
}

/* ================= HOMEPAGE HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  background-image: url("hero_desktop_2400x1600.jpg");
  background-size: cover;
  background-position: center bottom;
  display: flex;
  align-items: center;
  /* PERFECTLY CENTERED */
  color: white;
}

/* ABOUT HERO */
.about-hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  background-image: url("hero_desktop_2400x1600.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  /* PERFECTLY CENTERED */
}

/* DECKING HERO */
.decking-hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  background-image: url("hero_desktop_2400x1600.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  /* PERFECTLY CENTERED */
}

/* HERO OVERLAYS FOR READABILITY */
.hero::before,
.about-hero::before,
.decking-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.3) 0%, rgba(10, 37, 64, 0.7) 100%);
  z-index: 1;
}

.hero-content,
.about-hero-content {
  position: relative;
  z-index: 2;
  /* ENSURE CONTENT IS ABOVE OVERLAY */
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  /* REMOVED BOTTOM PADDING SINCE CENTERED */
  color: #ffffff;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.decking-hero .hero-content {
  max-width: 600px;
  padding: 2.5rem;
}

.hero h1,
.about-hero-content h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 1.25rem;
  color: #ffffff;
  /* FORCE WHITE OVERRIDE */
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  /* LEGIBILITY SHADOW */
}

.hero p {
  font-size: 1.4rem;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background-color: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.hero-btn:hover {
  background-color: #dbac48;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  background-color: #dbac48;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

/* ================= SECTIONS ================= */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section.light {
  background: var(--light);
  max-width: none;
}

.center {
  text-align: center;
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.section p {
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 560px;
  color: #333;
}

/* LAYOUTS */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  align-items: center;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

/* IMAGES */
.image-placeholder {
  width: 100%;
  max-width: 420px;
}

.image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.card {
  padding: 2.5rem 2rem;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* PROCESS */
.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 50px;
}

.step {
  text-align: center;
  flex: 1;
}

.step .circle {
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  margin-inline: auto;
}

.step h3 {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
}

/* CTA */
.cta-section {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ================= ABOUT CONTENT ================= */
.about-content {
  background: #fff;
  padding: 4rem 1.5rem;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

/* ================= GALLERY ================= */
.gallery {
  padding: 10rem 2rem 4rem;
  margin-top: 0;
  background-color: var(--light);
}

.gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.gallery p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
}


.project-group {
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 2rem;
}

.project-group:last-child {
  border-bottom: none;
  margin-bottom: 2rem;
}

.project-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
  display: block;
}

.project-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.5rem auto 0;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.gallery-item {
  background: #fff;
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-item h4 {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-main);
}

/* ================= FORM ================= */
.form-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 4rem 3rem;
  background-color: white;
  border-radius: 20px;
  box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02));
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-container h1 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 2.5rem;
}

.form-container p {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

form label {
  font-weight: bold;
  margin-bottom: 5px;
}

form input,
form select,
form textarea {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  font-family: inherit;
  transition: var(--transition);
  background-color: #f8fafc;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background-color: #fff;
}

form input[type="submit"] {
  background-color: var(--accent);
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
}

form input[type="submit"]:hover {
  background-color: #a7852a;
}

form textarea {
  height: 150px;
  resize: none;
}

.btn-submit {
  background-color: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  transition: var(--transition);
  font-size: 1.1rem;
  box-shadow: 0 4px 15px var(--accent-glow);
  margin-top: 1rem;
}

.btn-submit:hover {
  background-color: #dbac48;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

/* ================= FOOTER ================= */
footer {
  background-color: var(--primary);
  color: #fff;
  padding: 2rem;
  text-align: center;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ================= SECTIONS & LAYOUTS ================= */
.section {
  padding: 6rem 1.5rem;
  max-width: var(--max-width);
  margin: auto;
}

.section.light {
  background: var(--light);
  max-width: none;
}

.center {
  text-align: center;
  margin-bottom: 4rem;
}

.section h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.section p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 600px;
  color: var(--text-light);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  align-items: center;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.three-col h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ================= CARDS & IMAGES ================= */
.image-placeholder {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.image-placeholder:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-placeholder:hover img {
  transform: scale(1.05);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  padding: 2rem;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card .image-placeholder {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: none;
}

.card .image-placeholder img {
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ================= PROCESS STEPS ================= */
.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 3rem;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 3rem auto 0;
}

.step {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-5px);
}

.step .circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent) 0%, #a7852a 100%);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px var(--accent-glow);
  transition: var(--transition);
}

.step:hover .circle {
  transform: scale(1.1);
  box-shadow: 0 12px 25px var(--accent-glow);
}

.step h3 {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.4;
}

/* ================= CTA ================= */
.cta-section {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
}

.cta-section h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 2.5rem;
}

/* ================= ABOUT PAGE ================= */
.about-content {
  padding: 6rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-inner h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-inner p {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-inner img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 1280px) {

  /* HEADER GRID SIMPLIFIED */
  nav,
  nav.main-nav {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  header {
    height: 120px;
  }

  /* LOGO — SCALED FOR MOBILE */
  .logo {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 5;
    pointer-events: none;
  }

  .logo img {
    height: 160px;
    top: -20px;
    left: 0;
  }

  .logo a {
    pointer-events: auto;
    display: inline-block;
  }

  /* BURGER */
  .burger {
    display: block;
    position: relative;
    z-index: 20;
    margin-right: 1rem;
    grid-column: unset;
  }

  .burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: white;
    margin: 5px 0;
  }

  /* NAV MENU (HIDDEN BY DEFAULT) */
  nav ul,
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    z-index: 999;
  }

  nav ul.active,
  .nav-links.active {
    display: flex;
  }

  /* HIDE DESKTOP CTA */
  .nav-cta {
    display: none;
  }
}

@media (max-width: 1024px) {

  /* RESPONSIVE GRID */
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 160px;
    left: 0px;
  }

  .steps-container {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .card-grid {
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 2.2rem;
  }

  .two-col,
  .three-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}