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

/* Base */
body {
  font-family: 'Playfair Display', serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #222;
}

@media (max-width: 768px) {
  .hero-layout,
  .about-layout,
  .projects-layout,
  .contact-layout {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-layout,
  .about-layout,
  .projects-layout {
    padding-bottom: 50px;
  }
}

@media (max-width: 768px) {
  .hero-text .sketch,
  .about-text .sketch,
  .projects-text .sketch {
    width: 100%;
    top: 0;
    right: 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-links li {
    margin: 5px 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.95rem;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: white;
  padding: 1.2rem 0;
  position: relative;
  z-index: 2000;
}

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

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: #5f8f7e;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  position: sticky;
  top: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a.active {
  color: #449782;
  border-bottom: 2px solid #449782;
  padding-bottom: 3px;
}

.nav-links a:hover {
  color: #449782; /* accent color */
}

/* Hero Section */
.hero-layout {
  display: flex;
  /* Change 'center' to 'flex-start' so both image and text align to the top */
  align-items: flex-start; 
  justify-content: space-between;
  gap: 3rem;
  
  /* Creates the gap above the entire hero section */
  padding-top: 50px;
  padding-bottom: 50px;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-text {
  flex: 1;
  position: relative;
}

.hero-text .sketch {
  position: absolute;
  top: -80px;
  right: 40px;
  width: 110%;
  z-index: -1; /* Ensure the sketch is behind the text */
}

.hero-text h1 {
  margin-bottom: 1rem;
  color: #2c5949;
}

.hero-text p {
  text-align: justify;
  text-justify: inter-word;
}

.hero-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero-image span {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: white;
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 4px;
}


/* Content Sections
.content-section {
  padding: 2rem 0;
}

.content-section h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.content-section p {
  margin-bottom: 3rem;
} */

/* Footer */
.site-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  padding-top: 300px;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }
}



/* CONTACT PAGE */

.contact-layout {
  display: flex;
  /* Change 'center' to 'flex-start' so both image and text align to the top */
  align-items: flex-start; 
  justify-content: space-between;
  gap: 3rem;
  
  /* Creates the gap above the entire hero section */
  padding-top: 50px;
  padding-bottom: 50px;
}

.contact-image {
  flex: 1;
  position: relative;
}

.contact-text {
  flex: 1;
}

.contact-text h1 {
  margin-bottom: 1rem;
  color: #2c5949;
}

.contact-text ul li {
  margin-left: 1rem;
  list-style-type: circle;
}

/* Default link */
.contact-text a {
  color: #449782;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Visited link */
.contact-text a:visited {
  color: #357a68; /* slightly darker/muted version */
}

/* Hover state */
.contact-text a:hover {
  border-bottom: 1px solid #2f6657;
}

/* Active (when clicked) */
.contact-text a:active {
  color: #1f4d42;
}


.contact-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.contact-image span {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: white;
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 4px;
}


/* FIELDWORK PAGE */

.fieldwork-layout {
  display: flex;
  /* Change 'center' to 'flex-start' so both image and text align to the top */
  align-items: flex-start; 
  justify-content: space-between;
  gap: 3rem;
  
  /* Creates the gap above the entire hero section */
  padding-top: 50px;
  padding-bottom: 50px;
}

.fieldwork-image {
  flex: 1;
  text-align: justify;
  position: relative;
}

.fieldwork-text {
  flex: 1;
  position: relative;
}

.fieldwork-text .sketch {
  position: absolute;
  top: -80px;
  right: 40px;
  width: 110%;
  z-index: -1; /* Ensure the sketch is behind the text */
}

.fieldwork-text h1 {
  margin-bottom: 1rem;
  color: #2c5949;
}

.fieldwork-text p {
  text-align: justify;
  text-justify: inter-word;
}

.fieldwork-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.fieldwork-image span {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: white;
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 4px;
}

.fieldwork-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.fieldwork-card {
  text-decoration: none;
  color: #2c5949;
  background: rgb(133, 169, 157);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #d8e2dc;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fieldwork-card h3 {
  margin-bottom: 0.3rem;
}

.fieldwork-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

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

/* PROJECTS PAGE */

.projects-layout {
  display: flex;
  /* Change 'center' to 'flex-start' so both image and text align to the top */
  align-items: flex-start; 
  justify-content: space-between;
  gap: 3rem;
  
  /* Creates the gap above the entire hero section */
  padding-top: 50px;
  padding-bottom: 100px;
}

.projects-text .sketch {
  position: absolute;
  top: -80px;
  right: 40px;
  width: 110%;
  z-index: -1; /* Ensure the sketch is behind the text */
}

.projects-image {
  flex: 1;
  text-align: justify;
  position: relative;
}

.projects-text {
  flex: 1;
  position: relative;
}

.projects-text h1 {
  margin-bottom: 1rem;
  color: #2c5949;
}

.projects-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.projects-image span {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: white;
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 4px;
}

/* FIELDWORK PAGES */

.scotland-text, .norfolk-text, .spain-text, .thailand-text h1 {
  margin-bottom: 1rem;
  color: #2c5949;
  padding-top: 50px;
  padding-bottom: 50px;
}

.fieldwork-gallery {
  column-count: 3;
  column-gap: 1rem;
}

.fieldwork-gallery img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 6px;
  display: block;
}

.fieldwork-gallery img {
  transition: transform 0.2s ease;
}

.fieldwork-gallery img:hover {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .fieldwork-gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .fieldwork-gallery {
    column-count: 1;
  }
}

/* DROPDOWN */

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 6px;

  min-width: 180px;
  padding: 0.5rem 0;

  box-shadow: 0 6px 12px rgba(0,0,0,0.08);

  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}

.dropdown-content a:hover {
  background: #f5f5f5;
  color: #449782;
}

.dropdown:hover .dropdown-content {
  display: block;
}