/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%; width: 100%;
  background: #F8F8F8; color: #4A4A4A;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.2px;
}

/* ===== Header ===== */
header {
  position: relative;
  width: 100%;
  padding: 36px 0 12px;
  border-bottom: 1px solid #e9e9e9;
}

/* Nav: truly flush-left; sits on top so links work */
nav {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  padding-left: 12px;     /* tiny gutter from the absolute edge */
  z-index: 3;
}
nav ul { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; }
nav a {
  position: relative; display: inline-block; text-decoration: none;
  color: #000; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.12em;
  opacity: .9; transition: opacity .2s, transform .25s, letter-spacing .25s;
}
nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: #000; transform: scaleX(0); transform-origin: left; transition: transform .28s ease; opacity: .45;
}
nav a:hover { opacity: 1; transform: translateY(-2px); letter-spacing: 0.14em; }
nav a:hover::after { transform: scaleX(1); }
nav a.active::after { transform: scaleX(1); opacity: .3; }

/* Logo centered beneath nav */
.logo-container {
  position: relative; z-index: 1;
  display: flex; justify-content: center; width: 100%;
  margin-top: 28px; margin-bottom: 10px;
  transition: transform .35s, opacity .35s;
}
.logo { width: 128px; height: auto; display: block; }
.logo-container:hover { transform: scale(1.04); opacity: .95; }
.logo-container:hover .logo { transform: translateY(-2px); transition: transform .35s; }

/* ===== Main ===== */
main { display: flex; justify-content: center; padding: 48px 20px 80px; }
.section { width: 100%; max-width: 1120px; margin: 0 auto; }

h1 {
  font-size: 1.9rem; text-transform: uppercase; font-weight: 500;
  letter-spacing: 0.14em; text-align: center; margin-bottom: 18px;
}
.lead {
  max-width: 720px; margin: 0 auto; text-align: center;
  line-height: 1.6; font-size: 1rem; color: #333;
}

/* ===== Work grid ===== */
/* Gallery with captions */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px; /* more breathing space for captions */
  margin-top: 40px;
}

.image-grid figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.image-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #f8f8f8;
  border: 1px solid #e9e9e9;
  border-radius: 2px;
  transition: transform .4s ease, filter .35s ease, box-shadow .35s ease, opacity .35s ease;
}

.image-grid figcaption {
  margin-top: 14px;
  max-width: 90%;
}

.image-grid figcaption h2 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.image-grid figcaption p {
  font-size: 0.88rem;
  color: #333;
  line-height: 1.4;
}

/* Hover focus stays the same */
@media (hover:hover) {
  .image-grid:hover img { opacity: .6; filter: grayscale(12%); }
  .image-grid img:hover {
    opacity: 1;
    filter: none;
    transform: scale(1.06);
    box-shadow: 0 6px 28px rgba(0,0,0,.08);
    z-index: 1;
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .image-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .image-grid { grid-template-columns: 1fr; gap: 28px; }
  .image-grid figcaption h2 { font-size: 1rem; }
  .image-grid figcaption p { font-size: 0.9rem; }
}

@media (hover:hover) {
  .image-grid:hover img { opacity: .6; filter: grayscale(12%); }
  .image-grid img:hover { opacity: 1; filter: none; transform: scale(1.04); box-shadow: 0 6px 28px rgba(0,0,0,.08); z-index: 1; }
}

/* ===== About text ===== */
.about-text { max-width: 760px; margin: 0 auto; color: #111; line-height: 1.7; font-size: 1rem; }
.about-text p + p { margin-top: 12px; }

/* ===== Contact ===== */
.contact-grid {
  margin-top: 20px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px;
}
.contact-info p { margin-bottom: 14px; font-size: .98rem; color: #111; line-height: 1.55; }
.contact-info a { color: #000; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,.25); }
.contact-info a:hover { opacity: .7; }

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #333; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfcfcf; background: #fff; color: #000;
  border-radius: 4px; font-size: .95rem; outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: #000; background: #f9f9f9; box-shadow: 0 0 0 2px rgba(0,0,0,.05) inset;
}
.contact-form button {
  margin-top: 6px; padding: 12px 16px; border: 1px solid #000; background: #000; color: #fff;
  text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; border-radius: 4px; cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.contact-form button:hover { opacity: .92; transform: translateY(-1px); }

/* ===== Responsive ===== */
@media (max-width: 1080px) { .image-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) {
  /* prevent header overlap on phones */
  nav { position: static; transform: none; padding-left: 10px; margin-bottom: 8px; }
  .logo { width: 108px; }
  .image-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  h1 { font-size: 1.6rem; }
}
@media (hover:none) {
  .image-grid:hover img { opacity: 1; filter: none; }
  nav a:hover { transform: none; }
}

/* ===== About text ===== */
.about-text {
  max-width: 760px;
  margin: 0 auto;
  color: #111;
  line-height: 1.7;
  font-size: 1rem;
  text-align: center;   /* centers the text lines */
}
.about-text p + p {
  margin-top: 12px;
}

/* Home (Index) page */
.intro {
  text-align: center;
}

.intro h1 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.intro p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
  text-align: center;    /* ensures paragraph text is centered */
}

.intro p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
  text-align: center;
}

/* Add spacing between multiple paragraphs */
.intro p + p {
  margin-top: 18px;  /* adjust this number for more or less space */
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh; /* centers it vertically */
  text-align: center;
  padding: 0 20px;
}
