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

:root {
  --primary-color: #6b7280;
  --secondary-color: #6b7280;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f9f7f4;
  --bg-white: #ffffff;
  --border-color: #e5e5e5;
}

/* Keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(30, 58, 95, 0.08);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger {
  background: transparent;
  border: none;
  padding: 6px;
}

/* Hero Section */
.hero {
  background-image:
    linear-gradient(
      135deg,
      rgba(107, 114, 128, 0.75) 0%,
      rgba(107, 114, 128, 0.85) 100%
    ),
    url("assets/projects/18 MacMurray Road, Remuera, Auckland 1050.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 100px 20px;
  text-align: center;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content > p:first-of-type {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-meta {
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: #6b7280;
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: #4b5563;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

/* Services Section */
.services {
  padding: 80px 20px;
  background-color: var(--bg-light);
}

.services h2,
.guarantee h2,
.team h2,
.projects h2,
.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.15);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Guarantee Section */
.guarantee {
  padding: 80px 20px;
  background-color: white;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.guarantee-card {
  background-color: var(--bg-light);
  padding: 2.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  transition: all 0.4s ease;
  opacity: 0;
  animation: slideInLeft 0.7s ease-out forwards;
}

.guarantee-card:nth-child(1) {
  animation-delay: 0.1s;
}
.guarantee-card:nth-child(2) {
  animation-delay: 0.3s;
}
.guarantee-card:nth-child(3) {
  animation-delay: 0.5s;
}

.guarantee-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.1);
}

.guarantee-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.guarantee-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.guarantee-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Team Section */
.team {
  padding: 80px 20px;
  background-color: var(--bg-light);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0;
  animation: scaleIn 0.6s ease-out forwards;
}

.team-card:nth-child(1) {
  animation-delay: 0.1s;
}
.team-card:nth-child(2) {
  animation-delay: 0.2s;
}
.team-card:nth-child(3) {
  animation-delay: 0.3s;
}

.team-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.15);
}

.team-avatar {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.team-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.team-card .title {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.team-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.team-card a:hover {
  color: var(--secondary-color);
}

/* Projects Section */
.projects {
  padding: 80px 20px;
  background-color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  animation: fadeInUp 0.7s ease-out forwards;
}

.project-card:nth-child(1) {
  animation-delay: 0.1s;
}
.project-card:nth-child(2) {
  animation-delay: 0.2s;
}
.project-card:nth-child(3) {
  animation-delay: 0.3s;
}
.project-card:nth-child(4) {
  animation-delay: 0.4s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.18);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-image {
  width: 100%;
  height: 200px;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placeholder-image {
  font-size: 3rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  color: var(--primary-color);
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.1rem;
}

.project-card p {
  color: var(--text-light);
  padding: 0 1.5rem 1rem;
  font-size: 0.95rem;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.note {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  margin-top: 2rem;
}

/* Contact Section */
.contact {
  padding: 80px 20px;
  background-color: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3,
.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.3rem;
}

.info-block {
  margin-bottom: 2rem;
}

.info-block h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.info-block p {
  color: var(--text-light);
  line-height: 1.8;
}

.info-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.info-block a:hover {
  color: var(--secondary-color);
}

.contact-form p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

.form-group label {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.footer p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile opened menu layout */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 8px;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 200;
  }

  .nav-menu.open li {
    width: 100%;
  }

  .nav-menu.open a {
    display: block;
    padding: 0.6rem 0.4rem;
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content > p:first-of-type {
    font-size: 1rem;
  }

  .services h2,
  .guarantee h2,
  .team h2,
  .projects h2,
  .contact h2 {
    font-size: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid,
  .guarantee-grid,
  .team-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 20px;
    min-height: 400px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content > p:first-of-type {
    font-size: 0.9rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .services h2,
  .guarantee h2,
  .team h2,
  .projects h2,
  .contact h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .nav-container {
    padding: 1rem 15px;
  }

  .logo {
    font-size: 1.2rem;
  }
}
