@import url('https://fonts.googleapis.com/css2?family=Kodchasan:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;500&display=swap');

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

/* ===== VARIABLES ===== */
:root {
  --clr-dark: #3a3a3a;
  --clr-bg: #ffffff;
  --clr-light-section: #ebebeb;
  --clr-text-on-dark: #c0c0c0;
  --clr-text-on-light: #1a1a1a;
  --nav-gradient: linear-gradient(to right, #3d4818 0%, #4f5728 25%, #555548 50%, #654c59 65%, #754b2d 80%, #75430f 100%);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Kodchasan', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

/* ===== BASE ===== */
body {
  font-family: var(--font-serif);
  background: var(--clr-bg);
  color: var(--clr-text-on-light);
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; }

/* ===== SITE HEADER ===== */
.site-header {
  background: var(--clr-dark);
}

.site-title {
  display: block;
  text-align: center;
  padding: 28px 20px 22px;
  color: #b8b8b8;
  font-family: var(--font-display);
  font-size: clamp(14px, 2.2vw, 24px);
  font-weight: 300;
  letter-spacing: 0.22em;
}

.site-title:hover { color: #d8d8d8; }

/* ===== NAV ===== */
.nav-strip {
  background: var(--nav-gradient);
  padding: 10px 0;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 56px);
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.nav-links a:hover,
.nav-links a.active {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--clr-dark);
  color: var(--clr-text-on-dark);
  text-align: center;
  padding: 32px 20px;
  font-family: var(--font-sans);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.footer-email {
  color: var(--clr-text-on-dark);
  font-size: 14px;
}

.footer-email:hover { text-decoration: underline; }

.footer-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px auto;
  color: var(--clr-text-on-dark);
}

.footer-instagram:hover { color: #ffffff; }

.footer-copy {
  font-size: 12px;
  color: #b8b8b8;
  margin-top: 4px;
}

/* ===== HOME — HERO ===== */
.home-hero img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

/* ===== HOME — QUOTE ===== */
.quote-section {
  background: #2d2d2d;
  padding: 22px 6%;
  text-align: center;
  color: var(--clr-text-on-dark);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.5;
}

.quote-section cite {
  font-style: normal;
  font-size: 0.82em;
  margin-left: 8px;
}

/* ===== HOME — PORTFOLIO HEADING ===== */
.portfolio-heading {
  background: var(--clr-dark);
  padding: 54px 5% 8px;
  text-align: center;
  color: var(--clr-text-on-dark);
}

.portfolio-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 300;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.portfolio-heading p {
  font-style: italic;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
}

/* ===== HOME — GALLERY TILES ===== */
.gallery-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--clr-dark);
  padding: 18px 0 44px;
}

.gallery-tile {
  display: block;
  color: var(--clr-text-on-dark);
  overflow: hidden;
}

.gallery-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-tile:hover img { transform: scale(1.04); }

.tile-label {
  display: block;
  padding: 10px 12px 4px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ===== HOME — GET IN TOUCH ===== */
.get-in-touch {
  background: var(--clr-light-section);
  text-align: center;
  padding: 64px 5%;
}

.get-in-touch h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--clr-text-on-light);
  margin-bottom: 14px;
}

.get-in-touch a {
  color: var(--clr-text-on-light);
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.get-in-touch a:hover { text-decoration: underline; }

/* ===== ABOUT PAGE ===== */
.about-content {
  padding: 60px 5%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.about-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.about-text p {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  line-height: 1.78;
  margin-bottom: 16px;
}

.about-photo img {
  width: 100%;
  height: auto;
}

/* ===== SERVICES PAGE ===== */
.services-content {
  padding: 60px 5%;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.services-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.services-text p {
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  line-height: 1.78;
}

.services-image img {
  width: 100%;
  box-shadow: 0 2px 18px rgba(0,0,0,0.12);
}

/* ===== CONTACT FORM ===== */
.contact-form-wrap {
  background: var(--clr-light-section);
  padding: 64px 5%;
  text-align: center;
  font-family: var(--font-sans);
}

.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 12px;
}

.form-intro {
  font-size: clamp(0.88rem, 1.4vw, 0.95rem);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.68;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #555555;
  margin-bottom: 2px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #aaaaaa;
  padding: 8px 4px;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  color: var(--clr-text-on-light);
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #666666;
  font-size: 0.84rem;
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: #555555;
  font-family: var(--font-sans);
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.btn-submit {
  background: var(--clr-dark);
  color: #ffffff;
  border: none;
  padding: 10px 44px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: #555555; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-success {
  background: #e6f4ea;
  color: #2d6a3f;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.form-success:not([data-fs-active]) { display: none; }

.form-error-banner {
  background: #fce8e6;
  color: #a0160a;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.form-error-banner:empty { display: none; }

.field-error {
  display: block;
  color: #c0392b;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  margin-top: 4px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  outline: 2px solid #c0392b;
}

/* ===== VIDEOS PAGE ===== */
.videos-content {
  padding: 60px 5%;
  max-width: 960px;
  margin: 0 auto;
}

.videos-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  margin-bottom: 8px;
}

.videos-intro p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-bottom: 50px;
  line-height: 1.6;
}

.video-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: start;
}

.video-info h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.video-info p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.65;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #d8d8d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.84rem;
  font-family: var(--font-sans);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== GALLERY PAGES ===== */
.gallery-page {
  background: var(--clr-dark);
  color: var(--clr-text-on-dark);
  padding: 44px 5%;
  min-height: calc(100vh - 120px);
}

.gallery-page-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  text-align: center;
  color: var(--clr-text-on-dark);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.gallery-page hr {
  border: none;
  border-top: 1px solid #666;
  margin: 0 0 32px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  column-gap: 24px;
  row-gap: 48px;
}

.image-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.image-grid-item img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-grid-item:hover img { transform: scale(1.04); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .about-grid,
  .services-grid,
  .video-item { grid-template-columns: 1fr; }

  .gallery-tiles { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .about-photo { order: -1; }

  .image-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .image-grid { grid-template-columns: 1fr; }
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(58, 58, 58, 0.93);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  overflow-y: auto;
}

#lightbox.active { display: flex; }

.lb-content {
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: start;
  gap: 48px;
  width: min(1100px, 88vw);
  padding: 0 72px;
}

.lb-img {
  max-height: 80vh;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  justify-self: center;
}

.lb-meta {
  min-width: 200px;
  max-width: 240px;
  color: #d0d0d0;
  text-align: right;
  padding-top: 25px;
}

.lb-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #ffffff;
  margin-bottom: 16px;
}

.lb-dimensions,
.lb-medium,
.lb-price {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-bottom: 6px;
}

.lb-price {
  margin-top: 10px;
  font-size: 1rem;
  color: #c8c8c8;
}

.lb-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  outline: none;
  color: #a0a0a0;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 1001;
}

.lb-close:hover { color: #ffffff; }

.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999999;
  font-size: 5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 16px;
  z-index: 1001;
  user-select: none;
}

.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-prev:hover,
.lb-next:hover { color: #ffffff; }

@media (max-width: 768px) {
  .lb-content {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    padding: 0 56px;
    gap: 20px;
  }

  .lb-img { max-width: 100%; max-height: 55vh; }

  .lb-meta {
    min-width: 0;
    max-width: none;
    width: 100%;
    text-align: center;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #111111;
}
