/* 
 * SUBPAGE STYLES
 * Shared styles for gallery.html and services.html
 */

/* Typography */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

/* Page header - shared by both subpages */
.page-header {
  padding: 0 0 1.5rem;
  text-align: center;
  background: transparent;
  border-bottom: 3px solid transparent;
  background-image: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), var(--brand), transparent);
  background-position: bottom;
  background-size: 100% 3px;
  background-repeat: no-repeat;
}

.page-header h1 {
  margin-bottom: 0;
}

.page-header p {
  color: #cfd6e6;
  max-width: 700px;
  margin: .5rem auto 0;
  line-height: 1.6;
}

/* Remove excess top spacing on first content block after page header */
.page-header + * {
  margin-top: 0 !important;
  padding-top: 1.5rem !important;
}

/* Zero first-child top margin inside .container so section padding alone controls the gap */
.page-header + * > * > *:first-child {
  margin-top: 0;
}

/* ========== GALLERY-SPECIFIC STYLES ========== */

/* Category filter */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 2rem;
  padding: 0;
}

.category-btn {
  padding: .7rem 1.5rem;
  border: 2px solid var(--brand);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all .3s ease;
  font-family: inherit;
}

.category-btn:hover {
  background: rgba(143, 122, 0, .2);
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 0px solid transparent;
}



/* ========== SERVICES-SPECIFIC STYLES ========== */

/* Service detail section */
.service-detail {
  padding: 4rem 0;
  margin: 2rem 0;
}

.service-detail:target {
  scroll-margin-top: 80px;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.service-content.reverse {
  direction: rtl;
}

.service-content.reverse > * {
  direction: ltr;
}

.service-text {
  text-align: left;
}

.service-text h2 {
  color: var(--brand-2);
  margin-bottom: 1rem;
}

.service-text p {
  color: #cfd6e6;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.service-text ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-text ul li {
  padding: .5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #cfd6e6;
}

.service-text ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-weight: bold;
}

.service-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, .7);
  position: relative;
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.service-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), var(--brand), transparent);
  margin: 4rem auto;
  max-width: 600px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0 0;
}

.feature-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all .3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .05);
  border-color: var(--brand);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--brand-2);
  margin-bottom: .5rem;
}

.feature-card p {
  color: #cfd6e6;
  line-height: 1.6;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius);
  margin: 0 auto;
  max-width: 900px;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #f0f0f0;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ========== RESPONSIVE OVERRIDES ========== */

@media (max-width: 768px) {
  /* Gallery responsive */
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: 10px;
    right: 10px;
  }
  
  .category-filter {
    gap: .5rem;
    padding: .5rem;
  }
  
  .category-btn {
    padding: .5rem 1rem;
    font-size: .85rem;
  }
  
  /* Services responsive */
  .service-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-content.reverse {
    direction: ltr;
  }
  
  .service-text {
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact page responsive */
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CONTACT PAGE STYLES ========== */

/* Top section with contact info and flavor text */
.contact-top-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1050px;
  margin: 0 auto 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  align-items: center;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .6);
}

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

/* Form takes full width below */
.contact-page-grid {
  max-width: 1050px;
  margin: 0 auto;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  max-width: 400px;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  text-align: left;
}

.contact-info-item h3 {
  color: var(--brand-2);
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  text-align: left;
  line-height: 1;
}

.contact-info-item a {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  transition: color .25s ease;
  text-align: left;
}

.contact-info-item a:hover {
  color: var(--brand-2);
}

.contact-info-item span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
}

/* Responsive for contact top section */
@media (max-width: 768px) {
  .contact-top-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-photo {
    max-height: 300px;
  }

  .social-icons {
    padding-left: 0;
  }
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-left: calc(140px + 1.5rem);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: all .3s ease;
}

.social-icons a:hover {
  background: var(--brand-2);
  color: #fff;
  transform: translateY(-2px);
}

/* Contact Form Section - Bottom with gradient background */
.contact-form-section {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .6);
}

.contact-form-section h2 {
  color: #fff;
  margin-bottom: .5rem;
  text-align: center;
}

.contact-form-section > p {
  text-align: center;
  color: #f0f0f0;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-group label {
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .8rem 1rem;
  border: 2px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .15);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all .3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, .6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .2);
}

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

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--brand-background);
  color: var(--text);
}

.contact-form .btn {
  width: fit-content;
  margin: .5rem auto 0;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
}

.contact-form .btn:hover {
  background: #f0f0f0;
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background: rgba(34, 197, 94, .3);
  border: 2px solid rgba(34, 197, 94, .6);
  color: #fff;
}

.form-message.error {
  background: rgba(239, 68, 68, .3);
  border: 2px solid rgba(239, 68, 68, .6);
  color: #fff;
}
