/* ================================================== 
   Reset & Base Styles
   ================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

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

a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #d4b44a;
}

/* ================================================== 
   Typography
   ================================================== */

h1,
h2,
h3,
h4 {
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 300;
  color: #222222;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 200;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.5rem;
}

h5,
h6 {
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

p {
  margin-bottom: 1.5rem;
}

/* ================================================== 
   Layout
   ================================================== */

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

/* ================================================== 
   Navigation
   ================================================== */

.top-nav {
  background: rgba(255, 255, 255, 0.95) url("images/header-bg.png") top left
    repeat-x;
  background-size: auto 9px;
  padding: 20px 0;
  padding-top: 29px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo {
  max-width: 250px;
}

.logo img {
  width: 100%;
}

.tagline {
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: #333;
  margin: 0;
}

/* ================================================== 
   Hero Section
   ================================================== */

.hero {
  width: 100%;
  margin-bottom: 50px;
}

.hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ================================================== 
   Main Content
   ================================================== */

main {
  padding: 50px 20px;
}

.intro {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: left;
}

.intro p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Divider */
.divider {
  margin: 10px 0 40px 0;
  text-align: center;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-color: #dcdcdc;
  border-color: rgba(0, 0, 0, 0.15);
  height: 12px;
}

.divider h5 {
  line-height: 20px !important;
  margin: 0;
}

.divider span {
  background: #333;
  padding: 5px 10px;
  color: #fff;
  height: 12px;
  margin-bottom: -10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================================================== 
   Gallery Grid
   ================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 8px;
  margin: 0 auto 50px;
  max-width: 800px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery Item Sizes - Matching Original Grid */
.gallery-item.big {
  grid-column: span 2;
  grid-row: span 3;
}

.gallery-item.square {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.slim {
  grid-column: span 2;
  grid-row: span 1;
}

/* ================================================== 
   Footer
   ================================================== */

footer {
  background: #d4b44a url("images/bottom-bg.png") top left repeat-x;
  background-size: auto 150px;
  height: 150px;
  padding: 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 57px;
  padding-right: 20px;
}

.social-links a {
  display: inline-block;
  width: 35px;
  height: 35px;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  opacity: 0.8;
}

.social-links a i {
  color: #fff;
  font-size: 24px;
}

/* ================================================== 
   Responsive Design
   ================================================== */

@media (max-width: 768px) {
  .tagline {
    display: none;
  }

  .top-nav .container {
    justify-content: center;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }

  .gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item.square {
    grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-item.slim {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Reorder items: move last slim (6th item) to 4th position */
  .gallery-item:nth-child(1) {
    order: 1;
  } /* big stays 1st */
  .gallery-item:nth-child(2) {
    order: 2;
  } /* slim stays 2nd */
  .gallery-item:nth-child(3) {
    order: 3;
  } /* square stays 3rd */
  .gallery-item:nth-child(4) {
    order: 5;
  } /* square moves to 5th */
  .gallery-item:nth-child(5) {
    order: 6;
  } /* big moves to 6th */
  .gallery-item:nth-child(6) {
    order: 4;
  } /* slim moves to 4th */

  /* Make last two items display as squares */
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 2;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .intro p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 100px;
    gap: 10px;
  }

  .gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item.square,
  .gallery-item.slim {
    grid-column: span 1;
    grid-row: span 2;
  }

  /* Reorder for mobile - move image 2 to position 4 */
  .gallery-item:nth-child(1) {
    order: 1;
  }
  .gallery-item:nth-child(2) {
    order: 4;
  } /* Move to 4th position */
  .gallery-item:nth-child(3) {
    order: 2;
  }
  .gallery-item:nth-child(4) {
    order: 3;
  }
  .gallery-item:nth-child(5) {
    order: 5;
  }

  /* Make image 2 display as big on mobile */
  .gallery-item:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* Hide image 6 on mobile */
  .gallery-item:nth-child(6) {
    display: none;
  }
}

/* ================================================== 
   Utilities
   ================================================== */

.clear {
  clear: both;
}

.hidden {
  display: none;
}

/* Highlight Color */
.highlight,
a:hover,
button:hover {
  color: #d4b44a;
}
