/* Fonts loaded via <link> in HTML for better performance */

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

html { scroll-padding-top: 4.5rem; }

:root {
  --nav-bg: #B59A5E;
  --nav-text: #fff;
  --panel-bg: rgba(248, 242, 228, 0.96);
  --footer-bg: #3E342A;
  --footer-text: #ccc;
  --accent: #8B6914;
  --text: #2c2218;
  --heading-font: 'Caveat', cursive;
  --body-font: 'Lora', serif;
}

body {
  font-family: var(--body-font);
  color: var(--text);
  min-height: 100vh;
  background-color: #8B6040;
  background-image: url('rusted-vintage-wood-background.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  display: flex;
  flex-direction: column;
}

/* NAV */
nav {
  background: var(--nav-bg);
  padding: 0 2rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
nav ul li a {
  display: block;
  padding: 0.9rem 1.4rem;
  color: var(--nav-text);
  text-decoration: none;
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: rgba(0,0,0,0.2);
}

/* MAIN */
main {
  flex: 1;
  padding: 2.5rem 1rem;
  display: flex;
  justify-content: center;
}

/* PANEL */
.panel {
  background: var(--panel-bg);
  border-radius: 3px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  padding: 2.5rem 3rem;
  width: 100%;
  max-width: 740px;
}

h1 {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1.4rem;
  font-weight: 700;
}
h2 {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: #3a2d20;
}
a { color: #5580a0; }

/* WHATSAPP BUTTON */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
}
.whatsapp-btn:hover {
  background: #1ebe57;
  color: #fff;
}
.whatsapp-btn svg {
  flex-shrink: 0;
}

/* HOME */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.home-layout img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.home-credentials {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d4c8b0;
}
.home-credentials p {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

/* MEET OZ */
.meet-img {
  width: min(100%, 260px);
  display: block;
  border-radius: 2px;
  margin: 1.5rem auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.video-embed {
  background: #1a1a1a;
  border-radius: 3px;
  aspect-ratio: 16/9;
  margin: 1.5rem 0;
  overflow: hidden;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* RELIABILITY SECTION */
.reliability-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #d4c8b0;
}
.reliability-section h2 {
  font-style: italic;
}

/* OZ CAN DO */
.cando-portrait {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.cando-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.cando-job-item {
  background: rgba(139, 105, 20, 0.08);
  border-left: 3px solid var(--accent);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: #3a2d20;
  font-family: var(--body-font);
}
.cando-section {
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid #d4c8b0;
}

/* PORTFOLIO */
.panel-wide {
  max-width: 900px;
}
.portfolio-intro {
  margin-bottom: 1rem;
}
.portfolio-section {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid #d4c8b0;
}
.portfolio-section:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}
.portfolio-grid {
  columns: 3;
  column-gap: 0.6rem;
  margin-top: 0.5rem;
}
.portfolio-thumb {
  display: block;
  break-inside: avoid;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 0.6rem;
}
.portfolio-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.portfolio-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.portfolio-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: #9a8a6e;
  font-style: italic;
  font-size: 0.9rem;
  background: rgba(139, 105, 20, 0.05);
  border-radius: 2px;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.active {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2.6rem;
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255,255,255,0.22);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-details p {
  margin-bottom: 0.6rem;
}
.contact-details strong { color: var(--accent); }
.contact-layout img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.contact-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #d4c8b0;
}
.contact-form h2 { margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #c4b898;
  border-radius: 2px;
  background: #faf7f0;
  font-family: var(--body-font);
  font-size: 0.87rem;
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  background: var(--nav-bg);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--accent); }

/* FOOTER */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 1.2rem 2rem;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-address p,
.footer-contact p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #bbb;
  margin: 0;
}
.footer-contact p { text-align: right; }
.footer-social { display: flex; gap: 0.5rem; }
.social-icon {
  width: 30px; height: 30px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.social-icon.fb { background: #3b5998; }
.social-icon.tw { background: #1da1f2; }
.social-icon.li { background: #0077b5; }

/* UTILITY */
.visually-hidden {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

@media (max-width: 600px) {
  .panel { padding: 1.5rem 1.2rem; }
  .home-layout, .contact-layout { grid-template-columns: 1fr; }
  .cando-grid { grid-template-columns: 1fr; }
  .portfolio-grid { columns: 2; }
  .lightbox-prev { left: 0.4rem; font-size: 2rem; }
  .lightbox-next { right: 0.4rem; font-size: 2rem; }
  nav ul li a { padding: 0.8rem 0.6rem; font-size: 0.82rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact p { text-align: left; }
}
