/* ================================================
   Shot by Sagiv — Global Stylesheet
   ================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=DM+Sans:wght@300;400;500&display=swap");

:root {
  --bg: #0b0b0b;
  --bg-soft: #111;
  --bg-card: #181818;
  --border: #2a2a2a;
  --text: #e8e6e1;
  --muted: #888;
  --accent: #c8a96e;
  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* ------------------------------------------------
   Header & Nav
   ------------------------------------------------ */
header {
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

header nav {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

header h1 a {
  color: var(--text);
}
header h1 a:hover {
  color: var(--accent);
}

header nav ul {
  display: flex;
  gap: 2rem;
}

header nav ul a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

header nav ul a:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  header nav ul {
    gap: 1.2rem;
  }
  header nav ul a {
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  header {
    padding: 0 1rem;
  }
  header nav ul {
    gap: 0.8rem;
  }
}

/* ------------------------------------------------
   Hero
   ------------------------------------------------ */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.hero h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ------------------------------------------------
   Buttons
   ------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.7em 2em;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #0b0b0b;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ------------------------------------------------
   Gallery preview (homepage)
   ------------------------------------------------ */
.gallery-preview {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

.gallery-preview h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px;
  margin-bottom: 1.5rem;
}

.preview-grid img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: opacity 0.2s;
}

.preview-grid img:hover {
  opacity: 0.8;
}

/* ------------------------------------------------
   Page header (inner pages)
   ------------------------------------------------ */
.page-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  margin-bottom: 0.4rem;
}

.page-header p {
  color: var(--muted);
}

/* ------------------------------------------------
   Full gallery grid
   ------------------------------------------------ */
.gallery-grid-full {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: opacity 0.2s;
  cursor: pointer;
}

.gallery-grid img:hover {
  opacity: 0.8;
}

/* ------------------------------------------------
   Forms (book + contact)
   ------------------------------------------------ */
.form-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.contact-info {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-info a {
  color: var(--accent);
}
.contact-info a:hover {
  text-decoration: underline;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -0.4rem;
}

form input,
form select,
form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.7em 1em;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 300;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

form input::placeholder,
form textarea::placeholder {
  color: #444;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--accent);
}

form textarea {
  min-height: 130px;
  resize: vertical;
}

form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
  cursor: pointer;
}

form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
  cursor: pointer;
}

form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 3rem 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-container h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
}

.footer-container h4 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.footer-container p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.9;
}

.footer-container a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer-container a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------
   Reduced motion
   ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 200px; /* uniform height for grid */
  object-fit: contain; /* scale whole image inside box */
  background: #f0f0f0a4; /* placeholder color for empty space */
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 4px;
  padding: 5px;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Lightbox overlay */
#lightboxOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightboxOverlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px #000;
  border-radius: 4px;
}

#lightboxOverlay:after {
  content: "✕";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Preview Grid Styling */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  padding: 10px 0;
}

.preview-grid img {
  width: 100%;
  height: 150px; /* uniform height */
  object-fit: contain; /* scale image to fit without cropping */
  background: #f0f0f0a4; /* black background, or use transparent */
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.preview-grid img:hover {
  transform: scale(1.05);
}

/* Logo + site title flex container */
.logo-title a {
  display: flex;
  align-items: center;
  text-decoration: none; /* removes underline */
}

/* Logo styling */
.logo-title img.logo {
  width: 50px; /* size of logo */
  height: 50px; /* keep square for circle */
  border-radius: 50%; /* circle shape */
  object-fit: cover; /* fills circle nicely */
  margin-right: 10px; /* spacing between logo and text */
  border: 2px solid #fff; /* optional border */
  transition: transform 0.2s; /* optional hover effect */
}

.logo-title img.logo:hover {
  transform: scale(1.05); /* subtle zoom on hover */
}

/* Site title text */
.logo-title .site-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: #ffffff; /* adjust color as needed */
}
