@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

:root {
  --hero: #3D4A60;
  --accent: #2B3D4F;
  --bg-color: #FFFEF9;
  --text-color: #1A1A1A;
  --text-color-light: #505050;
  --border-color: #E5E5E5;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.7;
  color: var(--text-color);
  background: var(--bg-color);
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 200;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Navigation */
.navbar {
  background: var(--hero);
  padding: 1.25rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 100;
  margin: 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-container a {
  color: white;
  text-decoration: none;
  font-style: normal;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  transition: opacity 0.3s;
}

.nav-container a:hover {
  opacity: 0.75;
}

.nav-container a[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-container i {
  font-size: 1.15rem;
}

/* Hero Section - Full screen and full width */
.hero {
  background: var(--hero);
  height: 40vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  font-weight: bold;
  font-style: italic;
}

.hero h1 {
  color: white;
  font-size: 8vh;
  font-weight: 400;
  margin: 0;
  letter-spacing: 1px;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

h1 {
  margin-bottom: 2.5rem;
  font-size: 2.75rem;
  color: var(--text-color);
  font-weight: 400;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 2.25em;
  margin: 2rem 0 1.25rem 0;
  color: var(--text-color);
  font-weight: 400;
  letter-spacing: 0.5px;
}

h3 {
  font-size: 1.5em;
  font-weight: 500;
  color: var(--text-color);
  letter-spacing: 0.3px;
}

p {
  margin: 1.5rem 0;
  font-size: 1.25em;
  color: var(--text-color);
  line-height: 1.8;
}

a {
  color: #2C5F8D;
  font-style: normal;
  text-decoration: underline;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
}

/* Unified button styles */
button, .btn, input[type="button"] {
  padding: 0.5rem 1.5rem !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 0 !important;
  background: white !important;
  background-color: white !important;
  cursor: pointer;
  font-size: 1rem !important;
  font-family: 'Cormorant Garamond', serif !important;
  transition: all 0.25s ease;
  color: var(--text-color) !important;
  font-weight: 400;
  letter-spacing: 0.5px;
}

button:hover, .btn:hover, input[type="button"]:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

button:focus-visible, .btn:focus-visible, input[type="button"]:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px;
}

/* Filter buttons */
.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border-color);
  background: white;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Cormorant Garamond', serif;
  transition: all 0.25s ease;
  color: var(--text-color);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Three-column photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 968px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-container {
    gap: 1.25rem;
    flex-wrap: wrap;
  }
  
  .hero h1 {
    font-size: 6vh;
    padding: 0 1.5rem;
  }
}

.project-card {
  background: white;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.project-card a {
  text-decoration: none;
  color: inherit;
  font-style: normal;
  border: none;
}

.project-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.placeholder-image {
  width: 100%;
  height: 280px;
  background: #F5F5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-light);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.project-info {
  padding: 1.5rem;
  text-align: center;
}

.project-info h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-color);
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  background: transparent;
  color: var(--text-color-light);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Content pages */
.content {
  padding-top: 20px;
  text-align: left;
  max-width: 750px;
  margin: 0 auto;
}

blockquote {
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--hero);
  font-style: italic;
  color: var(--text-color-light);
  font-size: 1.15em;
}

strong {
  font-weight: 600;
  color: var(--text-color);
}

/* Slideshow */
.slideshow-container {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  position: relative;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  max-height: 650px;
  height: auto;
  object-fit: contain;
}

.slideshow-nav {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  font-size: 2rem;
  user-select: none;
  transition: opacity 0.3s;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-nav:hover {
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.9);
}

.slideshow-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.slideshow-nav.prev {
  left: 10px;
}

.slideshow-nav.next {
  right: 10px;
}

.single-image-container {
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.single-image-container img {
  width: 100%;
  max-height: 650px;
  height: auto;
  object-fit: contain;
}

/* Form inputs focus states */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Project card focus states */
.project-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 404 Page */
.error-404 {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.error-404 p {
  margin-bottom: 2rem;
  color: var(--text-color-light);
}
