/* ============================================
   EMPOWER COMMUNITIES — Black & White Modern
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-black {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn-black:hover {
  background: #333;
  border-color: #333;
}

.btn-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-white:hover {
  background: #fff;
  color: #111;
}

.btn-outline-header {
  padding: 8px 24px;
  border: 2px solid #111;
  color: #111;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-outline-header:hover,
.btn-outline-header.active {
  background: #111;
  color: #fff;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: #fff;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.header-top {
  background: #111;
  padding: 8px 0;
}

.header-top-inner {
  display: flex;
  justify-content: flex-end;
}

.header-contact a {
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 400;
  transition: color 0.3s;
}

.header-contact a:hover {
  color: #fff;
}

.header-contact .separator {
  color: #555;
  margin: 0 12px;
}

.header-nav {
  background: #fff;
  padding: 16px 0;
  transition: padding 0.3s;
}

.site-header.scrolled .header-nav {
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 80px;
  width: auto;
}

.logo .logo-light {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #333;
  transition: color 0.3s;
  position: relative;
}

.nav-map-tool {
  font-weight: 600 !important;
  color: #111 !important;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #111;
  transition: width 0.3s;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  background: #fff;
  padding: 24px;
  border-top: 1px solid #eee;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  display: block;
  transform: translateY(0);
}

.mobile-nav li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #111;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #111;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 40px;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 140px 0 80px;
  background: #111;
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Sections --- */
.services,
.video-section,
.connect,
.about-content,
.contact-content {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  color: #666;
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: 50px;
}

/* --- Services Grid --- */
.services {
  background: #fafafa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: #111;
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  color: #111;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* --- Video Section --- */
.video-section {
  text-align: center;
}

.video-wrapper {
  max-width: 960px;
  margin: 40px auto 0;
  position: relative;
}

.video-wrapper video {
  width: 100%;
  display: block;
  background: #111;
}

/* --- Full-width Video --- */
.video-fullwidth {
  background: #fff;
  padding: 60px 0;
}

.video-fullwidth video {
  width: 100%;
  display: block;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1rem;
  padding: 40px;
}

/* --- Connect Section --- */
.connect {
  background: #111;
  color: #fff;
  text-align: center;
}

.connect h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.connect p {
  color: #999;
  font-size: 1.05rem;
  line-height: 1.7;
}

.connect-phone {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 30px 0;
}

.connect .btn-black {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.connect .btn-black:hover {
  background: transparent;
  color: #fff;
}

/* --- About Content --- */
.about-content {
  padding-top: 60px;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.about-text p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* --- Portfolio Content --- */
.portfolio-content {
  padding: 60px 0 100px;
}

.portfolio-project {
  margin-bottom: 80px;
}

.portfolio-project:last-child {
  margin-bottom: 0;
}

.project-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
}

.project-image {
  background: #f5f5f5;
  border: 1px solid #eee;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-image:empty::after,
.project-image img[src=""]::after {
  content: 'Site plan coming soon';
  color: #999;
  font-size: 0.9rem;
}

/* --- Contact Page --- */
.contact-content {
  padding-top: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-info > p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #111;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-item a {
  color: #555;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #111;
}

/* --- Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 0.95rem;
  color: #111;
  background: #fafafa;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #111;
  background: #fff;
}

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

/* --- Footer --- */
.site-footer {
  background: #111;
  color: #fff;
  padding: 60px 0 40px;
}

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

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo img {
  height: 36px;
  margin: 0 auto;
}

.footer-contact p {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.footer-social {
  margin-bottom: 24px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  border-radius: 50%;
  color: #888;
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: #fff;
  color: #fff;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-legal {
  margin-bottom: 16px;
}

.footer-legal p {
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.05em;
}

.footer-legal a {
  color: #888;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-credit p {
  font-size: 0.75rem;
  color: #555;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.3s; }
.fade-in.delay-2 { animation-delay: 0.6s; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    padding: 100px 24px 24px;
    flex-direction: column;
  }

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

  .mobile-nav a {
    font-size: 1.2rem;
    padding: 4px 0;
  }

  /* Logo */
  .logo img {
    height: 55px;
  }

  /* Sections */
  .services,
  .video-section,
  .connect,
  .about-content,
  .contact-content {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 24px;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 30px;
  }

  /* Page Hero */
  .page-hero {
    padding: 120px 0 50px;
  }

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

  /* Video */
  .video-fullwidth {
    padding: 40px 0;
  }

  /* Connect */
  .connect h2 {
    font-size: 1.8rem;
  }

  .connect p {
    font-size: 0.95rem;
  }

  .connect-phone {
    font-size: 1.1rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-info h2 {
    font-size: 1.6rem;
  }

  /* Portfolio */
  .portfolio-content {
    padding: 40px 0 60px;
  }

  .portfolio-project {
    margin-bottom: 50px;
  }

  .project-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  /* Footer */
  .site-footer {
    padding: 40px 0 30px;
  }

  .footer-contact p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.8rem;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  .contact-info h2 {
    font-size: 1.4rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .footer-contact p {
    font-size: 0.75rem;
    word-break: break-word;
  }
}
