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

:root {
  --primary: #0376a7;
  --primary-dark: #025d85;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.5;
  color: var(--gray-900);
  background: var(--gray-50);
}

.hidden {
  display: none !important;
}

.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  color: white;
}

.logo-text {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-item {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.menu-icon, .close-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-content {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.mobile-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.mobile-nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.nav-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.main-content {
  padding-top: 4rem;
}

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--primary), rgba(3, 118, 167, 0.8), var(--primary-dark));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/img/main.jpg') center/cover;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.hero-text {
  animation: fadeUp 1s ease forwards;
}

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

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 6rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-weight: 300;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1.5rem;
  }
}

.hero-btn {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary);
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.btn-icon {
  margin-left: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.scroll-icon {
  width: 2rem;
  height: 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.section {
  padding: 5rem 0;
}

.bg-white {
  background: white;
}

.bg-gray {
  background: var(--gray-50);
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-divider {
  width: 6rem;
  height: 0.25rem;
  background: var(--primary);
  margin: 0 auto 1.5rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: top;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y:scroll;
  height:30rem;
}

.text-content {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.75;
}

.text-highlight {
  font-weight: 600;
  color: var(--primary);
}

.about-image {
  position: relative;
}

.image-card {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  overflow: hidden;
  position: relative;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: url('/img/about.jpg') center/cover;
}

.image-icon {
  position: absolute;
  inset: 0;
  width: 8rem;
  height: 8rem;
  margin: auto;
  color: rgba(255, 255, 255, 0.4);
}

.documents-grid, .permits-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .documents-grid, .permits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .documents-grid, .permits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .permits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.document-card, .permit-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s;
}

.document-card:hover, .permit-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.permit-card {
  border: 2px solid var(--gray-100);
}

.permit-card:hover {
  border-color: var(--primary);
}

.card-content {
  padding: 1.5rem;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-icon {
  padding: 0.75rem;
  background: rgba(3, 118, 167, 0.1);
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.document-card:hover .card-icon {
  background: var(--primary);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  transition: color 0.3s;
}

.document-card:hover .card-icon svg {
  color: white;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 9999px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
  height:3rem;
}

.document-card:hover .card-title {
  color: var(--primary);
}

.card-description {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.card-date {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.card-date svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.card-link {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--primary-dark);
}

.card-link svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

.permit-status {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-active {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.status-inspection {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
}

.permit-requirements {
  margin-bottom: 1rem;
}

.requirements-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.requirements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.requirement-item {
  display: flex;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.requirement-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  margin-right: 0.5rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.application-process {
  background: linear-gradient(to bottom right, var(--primary), var(--primary-dark));
  border-radius: 1rem;
  padding: 2rem 3rem;
  color: white;
  margin-top: 4rem;
}

.process-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.process-steps {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.625;
}

.process-cta {
  text-align: center;
}

.cta-button {
  background: white;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.gallery-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.gallery-title {
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
}

.gallery-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-icon {
  opacity: 1;
}

.contact-info-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-info-card {
  background: var(--gray-50);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s;
}

.contact-info-card:hover {
  background: var(--primary);
  color: white;
}

.info-icon {
  padding: 0.75rem;
  background: white;
  border-radius: 0.5rem;
  width: fit-content;
  margin-bottom: 1rem;
  transition: background 0.3s;
}

.contact-info-card:hover .info-icon {
  background: rgba(255, 255, 255, 0.2);
}

.info-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  transition: color 0.3s;
}

.contact-info-card:hover .info-icon svg {
  color: white;
}

.info-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
  transition: color 0.3s;
}

.contact-info-card:hover .info-title {
  color: white;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-detail {
  color: var(--gray-600);
  transition: color 0.3s;
}

.contact-info-card:hover .info-detail {
  color: rgba(255, 255, 255, 0.9);
}

.contact-content {
  /*display: grid;
  gap: 3rem;
  align-items: start;*/
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-map {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  height: 600px;
}

.footer {
  background: var(--primary);
  color: white;
  padding: 1.5rem 0;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .footer-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    padding: 0 2rem;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-text {
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-nav {
  position: absolute;
  padding: 0.5rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  transition: background 0.2s;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-prev {
  left: 1rem;
}

.modal-next {
  right: 1rem;
}

.modal-content {
  max-width: 72rem;
  max-height: 90vh;
  position: relative;
}

.modal-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
}

.modal-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.modal-title {
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
}
