/* Reset some default styles */
:root {
  --color-bg-header: #1f1f1f;
  --color-bg-hero: #8D7B68;
  --color-bg-gallery: #8D7B68;
  --color-bg-footer: #1f1f1f;

  --color-font-header: #ffffff;
  --color-font-hero: #ffffff;

  --color-section-1: #A4907C;
  --color-section-2: #C8B6A6;
  --color-accent: #F1DEC9;

  --color-dark-text: #1f1f1f;
  --color-accent-text: #6C584C;
  --color-white: #ffffff;

  --color-overlay: rgba(141, 123, 104, 0.6);
  --color-shadow: rgba(0, 0, 0, 0.7);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 80px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--color-bg-header);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.site-header h1  {
  color:  var(--color-font-header);
  text-align: left;
}

.site-header .nav-links a {
  color: var(--color-font-header);
  font-weight: bold;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* Hero Section */
.hero {
  background: url('images/img14.JPEG') center center/cover no-repeat;
  color:  var(--color-bg-hero);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  color: var(--color-font-hero);
  font-family: "Ancizar Serif", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
}


/* Content Section */
.content {
  padding: 2rem 1rem;
}

.content h3 {
  font-size: 2em;
  margin-bottom: 20px;
}

/* Spotlight */
.spotlight {
  padding: 2rem 0;
}

.spotlight h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--color-accent); /* Use your accent color variable */
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.spotlight-grid img {
  width: 100%;
  height: 200px; /* fixed height for consistent grid */
  object-fit: cover; /* maintain aspect ratio and crop */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spotlight-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

/* values */
.core-values {
  background-color: var(--color-background-light, #f9f9f9);
  padding: 4rem 0;
}

.values-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.values-text {
  flex: 1 1 400px;
}

.values-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.values-text ul {
  list-style: none;
  padding-left: 0;
}

.values-text li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--color-text, #444);
}

.values-image {
  flex: 1 1 400px;
}

.values-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


/* Gallery */
.gallery-container {
  padding-top: 30px;   /* space below the fixed navbar */
  width: 100vw;      /* full viewport width */
  margin: 0;         /* no margins */
  overflow-x: hidden; /* prevent horizontal scroll if any */
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;                 /* no gaps if you want images to touch each other */
  width: 100%;
}

/* Gallery images fill grid cells */
.gallery img {
  width: 100%;            /* fill entire grid cell width */
  height: 150px;          /* fixed height, adjust as you want */
  object-fit: cover;      /* crop to fill without distortion */
  display: block;
  border-radius: 0;       /* no rounded corners if you want flush edges */
}

.gallery h3 {
  text-align: center;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer {
  background-color:  var(--color-bg-footer);
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}
.lightbox:focus {
  outline: none;
}
/* Close button */
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  z-index: 1100;
}

/* Serivces */
.services {
  padding: 4rem 2rem;
  background-color: var(--color-light, #f9f9f9);
}

.service {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.service.reverse {
  flex-direction: row-reverse;
}

.service img {
  flex: 1 1 40%;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  object-fit: cover;
  height: 300px;
}

.service .text {
  flex: 1 1 50%;
}

.service .text h3 {
  font-size: 1.75rem;
  color: var(--color-accent, #8D7B68);
  margin-bottom: 1rem;
}

.service .text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* contact */
/* Contact Section */
.contact-section {
  padding: 3rem 1rem;
  background-color: var(--color-light, #f9f9f9);
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  color: var(--color-accent, #8D7B68);
  margin-bottom: 1rem;
}

.contact-section p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.contact-section a {
  color: var(--color-dark, #333);
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allows wrapping */
  padding: 1rem;
}

.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-light);
  cursor: pointer;
}


.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-light);
}

/* ===== Responsive Design for Mobile ===== */
@media (max-width: 768px) {

  .top-nav {
    padding: 0.5rem 1rem;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #222;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    padding: 0.75rem 0;
    display: block;
  }

  .container {
    width: 95%;
    padding: 1rem;
  }

  header h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .top-nav .nav-container {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .top-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .spotlight-grid,
  .services-grid,
  .content-flex {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }

  .spotlight img,
  .services-img,
  .content-flex img {
    width: 100%;
    height: auto;
  }

  .service-item,
  .content-text {
    padding: 1rem 0;
    text-align: center;
  }

  .gallery img {
    height: auto;
    max-width: 100%;
  }

  .contact-section h2 {
    font-size: 1.5rem;
  }

  .contact-section p {
    font-size: 1rem;
  }
}

