/* css/components.css */

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease-out;
  border: none;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--light-text);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  background-color: var(--accent-gold);
  color: var(--dark-text);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--light-text);
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--light-text);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.site-header.sticky {
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-desktop { display: none; }
.hamburger {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-text);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--light-text);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.active { transform: translateX(0); }

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark-text);
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  margin-bottom: 2rem;
}

.mobile-nav-links li { margin-bottom: 1.5rem; }
.mobile-nav-links a {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-text);
}
.mobile-nav-links a:hover { color: var(--primary-blue); }

@media (min-width: 768px) {
  .logo img { height: 50px; }
  .hamburger { display: none; }
  .mobile-menu-overlay { display: none; }
  .header-actions { display: flex; align-items: center; gap: 2rem; }
  
  .nav-desktop { display: block; }
  .nav-desktop ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  .nav-desktop a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--dark-text);
    position: relative;
    padding-bottom: 0.25rem;
  }
  .nav-desktop a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
  }
  .nav-desktop a:hover::after { width: 100%; }
}

/* FOOTER */
.site-footer {
  background-color: var(--dark-text);
  color: var(--light-text);
  padding: 4rem 0 2rem;
}
.site-footer h3, .site-footer h4 { color: var(--light-text); font-size: 1.25rem; margin-bottom: 1.5rem; }
.site-footer a { color: var(--light-text); opacity: 0.8; }
.site-footer a:hover { color: var(--accent-gold); opacity: 1; }
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.75rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

.social-icons { display: flex; gap: 1rem; }
.social-icons a { display: block; width: 24px; height: 24px; }
.social-icons svg { fill: currentColor; width: 100%; height: 100%; transition: fill 0.3s; }
.social-icons a:hover svg { fill: var(--accent-gold); }

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background-color: var(--primary-blue);
  color: var(--light-text);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--accent-gold); color: var(--dark-text); }

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .footer-section { flex: 1; min-width: 200px; margin-bottom: 0; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* HERO SECTION (HOME) */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Default mobile */
  padding: 0 1rem;
  margin-top: 0; /* Overrides section padding */
}

/* PER PRD: NO OVERLAYS ON HERO SECTIONS */
.hero::before, .hero-page::before {
  display: none !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--light-text);
}

.hero h1 { color: var(--light-text); text-shadow: 0 2px 4px rgba(0,0,0,0.5); margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; font-weight: 300; margin-bottom: 2rem; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

@media (min-width: 1024px) {
  .hero { background-attachment: fixed; }
}

/* GENERIC HERO (OTHER PAGES) */
.hero-page {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 0 1rem;
}

.hero-page h1 {
  color: var(--light-text);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  z-index: 2;
  position: relative;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--light-text);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.feature-img-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.feature-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-img-wrapper img { transform: scale(1.1) rotate(3deg); }

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

/* FORMS */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}
textarea.form-control { resize: vertical; min-height: 150px; }

/* TESTIMONIALS */
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
  overflow: hidden;
}
.testimonial-slide {
  display: none;
  animation: fade 0.5s ease-in-out;
}
.testimonial-slide.active { display: block; }
.testimonial-slide blockquote p {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-slide cite {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--primary-blue);
  font-style: normal;
}
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-blue);
  cursor: pointer;
}
.carousel-dots { display: flex; gap: 0.5rem; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.dot.active { background-color: var(--primary-blue); }

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* MAP */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2rem;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.map-full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 450px;
}
.map-full-width iframe { width: 100%; height: 100%; border: 0; }
