:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --card: #f3f4f6;
  --border: rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.logo-img {
  height: 60px;   /* controls logo size */
  width: auto;
  display: block;
  opacity: 0.45;  /* optional – matches subtle style */
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  margin-left: 18px;
  font-size: 14px;
}
.nav-links a:hover { text-decoration: underline; }

.hero {
  padding: 56px 0 22px;
}
.hero-title {
  margin: 0 0 10px;
  font-size: 52px;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.section {
  padding: 28px 0;
}
.section h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: transparent;
}

.thumb {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.thumb img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
}

.card h3 {
  margin: 10px 0 4px;
  font-size: 16px;
}
.card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer {
  padding: 30px 0 50px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-title { font-size: 44px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links a { margin-left: 12px; }
  .hero-title { font-size: 38px; }
}


/* Make cards clickable */
.card.clickable {
  cursor: pointer;
}
.card.clickable:hover .thumb {
  transform: translateY(-2px);
  transition: transform 120ms ease;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: none; /* hidden by default */
  z-index: 999;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-panel {
  position: relative;
  width: min(900px, 92%);
  margin: 6vh auto;
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 16px;
}
.modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.modal-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.modal-image-wrap {
  background: #f3f4f6;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.modal-text {
  padding: 18px 18px 20px;
}

.modal-text h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.muted {
  color: #6b7280;
  margin: 0 0 12px;
}

.modal-details {
  margin: 0;
  white-space: pre-wrap;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  color: #111;
}

/* Responsive modal */
@media (max-width: 700px) {
  .modal-panel {
    margin: 4vh auto;
  }
  .modal-content {
    grid-template-columns: 1fr;
  }
  .modal-image-wrap {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
}

/* ---------- Contact form polish ---------- */
.contact-form {
  max-width: 640px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 14px;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.full {
  grid-column: 1 / -1;
}

/* Make button full width nicely */
.btn.full {
  width: 100%;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 12px;
}

/* Mobile */
@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* About + Contact page layout */
.page-title {
  margin: 0 0 14px;
  font-size: 56px;
  letter-spacing: -0.6px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 28px;
}

.about-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  padding-top: 24px;
}

.about-copy {
  max-width: 60ch;
}

.about-lead,
.about-body {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.about-photo img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

/* Contact block sits under the about section */
.contact-section {
  margin-top: 44px;
}

/* Form polish (if you already added these, keep one copy only) */
.contact-form {
  max-width: 720px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 14px;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.full {
  grid-column: 1 / -1;
}

/* Mobile */
@media (max-width: 850px) {
  .about-top {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 42px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.clamp-card .thumb img {
  height: 140px;        /* smaller thumbnail */
  object-fit: contain; /* show whole image */
  background: #f3f4f6; /* light background for PNG */
}