/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; line-height: 1.5; color: #222; }

.container { display: grid; grid-template-columns: 1fr; }

/* Banner */
.banner { width: 750px; height: 90px; position: relative; top: 0; margin: 12px auto 0; max-width: 100%; display:flex; justify-content:center; align-items:center; }
.banner img { max-height: 100%; width: auto; height: 100%; }

/* ===== Nav ===== */
/* Header container: centered row */
.nav-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 18px 28px !important;
  border-bottom: 1px solid #eee;
}
/* ====== FIX PACK: centered, horizontal nav + heading alignment ====== */
/* Kill legacy wrappers if still on page */
.left-side, .right-side { display: none !important; }
/* New nav row */
.site-nav {
  display: flex !important;
  gap: 22px !important;
  flex-wrap: wrap;
  justify-content: center;
}

/* Nav links: no underline, proper spacing */
.site-nav a,
.nav-link {
  position: relative;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #6d6d6d;
  text-decoration: none !important;       /* remove default underline */
  padding-bottom: 4px;
  transition: color .25s ease;
}
.site-nav a:hover,
.nav-link:hover { color: #000; }

/* Underline-on-hover/active */
.site-nav a::after,
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: transparent;
  transition: background .25s ease;
}
.site-nav a:hover::after,
.nav-link:hover::after,
.nav-link.active::after { background: #000; }

/* Neutralize old underline styles that may still apply */
.nav-link-wrapper,
.nav-link-wrapper a {
  border: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
}


.nav-link-wrapper { height: 22px; border-bottom: 1px solid transparent; transition: border-bottom 0.3s ease; }
.nav-link-wrapper a { color: #6d6d6d; text-decoration: none; transition: color 0.3s ease; }
.nav-link-wrapper:hover { border-bottom: 1px solid #000; }
.nav-link-wrapper a:hover { color: #000; }
.active-nav-link { border-bottom: 1px solid #000; }
.active-nav-link a { color: #000 !important; }
.brand { font-weight: 700; }

/* ===== Content wrappers ===== */
.content-wrapper { padding: 0 28px 56px; }
.section-divider { border: 0; border-top: 1px solid #eee; margin: 32px 0; }

/* ===== Gallery ===== */
.portfolio-items-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.portfolio-item-wrapper { position: relative; overflow: hidden; border-radius: 12px; background: #000; }

/* Full photo (no crop) */
.portfolio-img { width: 100%; height: auto; display: block; transition: filter 0.6s ease, transform 0.4s ease; }

/* Hover darken + gentle zoom */
.portfolio-item-wrapper:hover .portfolio-img { filter: brightness(60%); transform: scale(1.02); }

/* Caption + logo overlay */
.img-text-wrapper { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 40px; pointer-events: none; }
.logo-wrapper img { width: 50%; max-width: 220px; height: auto; margin-bottom: 20px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.img-text-wrapper .subtitle { transition: color 0.4s ease, opacity 0.3s ease, transform 0.3s ease; font-weight: 700; color: transparent; opacity: 0; transform: translateY(6px); }
.portfolio-item-wrapper:hover .img-text-wrapper .subtitle { color: lightseagreen; opacity: 1; transform: translateY(0); }

/* ===== About (unchanged basics) ===== */
.two-column-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile-image-wrapper img { width: 100%; height: auto; display: block; }
.profile-content-wrapper { padding: 30px; }
.profile-content-wrapper h1 { color: lightseagreen; }

/* ===== Hero card ===== */
.hero-card {
  margin: 22px auto 32px;
  padding: 28px 24px;
  max-width: 900px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
}

.hero-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
}

.hero-card p {
  margin: 0 0 10px;
  color: #444;
}

.hero-card .btn {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  transition: filter .2s ease;
}
.hero-card .btn:hover { filter: brightness(1.05); }



/* Center top-level headings site-wide */
.content-wrapper > h1 { 
  text-align: center; 
  margin: 10px 0 16px; 
}

/* ===== Front page photos ===== */
.front-photos { padding: 0 28px 56px; }
/* Center the "Recent shots" title on the home page */
.front-photos h2 { 
  text-align: center; 
  margin: 0 0 12px;
}
.front-photos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.front-photo { position: relative; overflow: hidden; border-radius: 12px; background: #000; }
.front-photo img { width: 100%; height: auto; display: block; transition: transform .4s ease, filter .6s ease; }
.front-photo:hover img { transform: scale(1.02); filter: brightness(70%); }
.front-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; color: #fff; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.front-photo:hover .front-caption { opacity: 1; transform: translateY(0); }
@media (max-width: 800px){ .front-photos-grid { grid-template-columns: 1fr; } }

/* ===== Projects grid ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 24px 0 56px; }
.project-card { border: 1px solid #eee; border-radius: 12px; background: #fff; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.project-thumb { width: 100%; height: 160px; object-fit: cover; display: block; }
.project-body { padding: 14px 16px; }
.project-title { margin: 0 0 6px; font-weight: 700; }

/* Playground */
.playground-box { border: 1px dashed #bbb; border-radius: 12px; padding: 16px; background: #fafafa; }

/* ===== Responsive breakpoints ===== */
@media (max-width: 1800px) { .portfolio-items-wrapper { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1150px) { .portfolio-items-wrapper { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1060px) { .portfolio-items-wrapper { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px)  { .portfolio-items-wrapper { grid-template-columns: 1fr; } }
@media (max-width: 600px)  { .project-thumb { height: 140px; } }
@media (max-width: 480px)  { .project-thumb { height: 128px; } }
@media (max-width: 360px)  { .project-thumb { height: 112px; } }

/* About responsive */
@media (max-width: 900px) { .two-column-wrapper { grid-template-columns: 1fr; } }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .portfolio-img, .img-text-wrapper .subtitle, .project-card { transition: none !important; }
}

/* ===== Contact form ===== */
.contact-form { max-width: 760px; margin: 0 auto; }
.form-row { display: grid; gap: 8px; margin-bottom: 14px; }
.form-row label { font-weight: 700; }
.form-row input, .form-row textarea { padding: 10px 12px; border: 1px solid #ccc; border-radius: 10px; font: inherit; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: #2aa198; box-shadow: 0 0 0 2px rgba(42,161,152,.15); }
.form-actions { margin-top: 16px; }
.form-actions button { padding: 10px 16px; border-radius: 10px; border: 1px solid #0a0a0a; background: #0a0a0a; color: #fff; cursor: pointer; }
.form-actions button:hover { filter: brightness(1.05); }
/* honeypot hidden */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Rescue pitch ===== */
.rescue-pitch { padding: 28px; background: #f9f9f9; border-radius: 12px; margin: 28px auto 56px; max-width: 860px; }
.rescue-pitch h2 { margin-top: 0; color: #0a0a0a; }
.rescue-pitch p { margin-bottom: 1em; }
.rescue-pitch a { color: lightseagreen; text-decoration: none; border-bottom: 1px solid transparent; }
.rescue-pitch a:hover { border-bottom-color: lightseagreen; }

/* ===== Thank-you page ===== */
.thankyou-box {
  max-width: 700px;
  margin: 60px auto;
  padding: 40px;
  border-radius: 12px;
  background: #f9f9f9;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.thankyou-box h1 {
  margin-top: 0;
  font-size: 2em;
  color: lightseagreen;
}
.thankyou-box p {
  margin: 1em 0;
}
.thankyou-box a {
  color: lightseagreen;
  text-decoration: none;
  font-weight: 600;
}
.thankyou-box a:hover {
  text-decoration: underline;
}
/* ===== Footer ===== */
.site-footer {
  margin-top: 40px;
  padding: 26px 20px;
  background: #0b0b0b;
  color: #d7d7d7;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr;
  gap: 20px;
  align-items: start;
}

.footer-brand img {
  height: 40px; width: auto; display: block; margin-bottom: 10px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
}
.footer-brand p { margin: 0; color: #bdbdbd; }

/*.footer-nav {
  display: grid;
  grid-auto-flow: row;
  gap: 8px;
} */
.footer-nav a {
  color: #d7d7d7;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color .2s ease, color .2s ease;
}
.footer-nav a:hover { color: #fff; border-bottom-color: #fff; }

.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 6px; color: #bdbdbd; }
.footer-meta a { color: #fff; text-decoration: none; }

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-meta { text-align: center; }
}
/* === Footer nav: force horizontal layout === */
.footer-nav {
  display: flex !important;
  gap: 16px !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;   /* center in the footer */
}

.footer-nav a {
  display: inline-block;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
}

/* On wide screens you can left-align if you prefer */
@media (min-width: 900px) {
  .footer-inner { align-items: center; }
  .footer-nav { justify-content: flex-start; } /* change to left on desktop */
}