/* * ============================================================
 * 1. RESET & BASE STYLES
 * ============================================================
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f5f0e6; /* light beige background */
  color: #4a3f35;      /* dark brown text */
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
}

/* * ============================================================
 * 2. STICKY HEADER & BRANDING
 * ============================================================
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999; 
  background-color: #f5f0e6; 
  transition: background-color 0.3s ease;
}

header {
  padding: 2rem 3rem;
  border-bottom: 1px solid #e0d6c8; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
}

header h1 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a3f35;
}

/* Hamburger toggle for mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #4a3f35;
  border-radius: 2px;
}

/* * ============================================================
 * 3. NAVIGATION & DROPDOWNS
 * ============================================================
 */

.main-nav {
  padding: 0 3rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: #6b5e4b; 
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.main-nav a:hover {
  color: #4a3f35; 
}

.main-nav li {
  position: relative;
}

.main-nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #f0e6d8; 
  display: none;
  flex-direction: column;
  min-width: 180px;
  padding: 1rem;
  border: 1px solid #e0d6c8;
}

.main-nav li:hover > ul {
  display: flex;
}

.main-nav li ul li ul {
  left: 100%;
  top: 0;
}

/* * ============================================================
 * 4. MAIN LAYOUT & GRID SYSTEM
 * ============================================================
 */

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem;
}

.major h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0d6c8;
  padding-bottom: 0.5rem;
  color: #4a3f35;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.col-4 { width: calc(33.333% - 1.34rem); }
.col-6 { width: calc(50% - 1rem); }
.col-12 { width: 100%; }

@media (max-width: 900px) {
  .col-4, .col-6-medium { width: calc(50% - 1rem); }
}

@media (max-width: 600px) {
  .col-4, .col-6, .col-12-small { width: 100%; }
}

/* * ============================================================
 * 5. PORTFOLIO & MASONRY GRID
 * ============================================================
 */

.box {
  background: none;
  border: none;
}

.image.featured {
  overflow: hidden;
}

.image.featured img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.box:hover img {
  transform: scale(1.05);
}

.box header h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a3f35;
}

.box p {
  font-size: 1.10rem;
  color: #7a6b57; 
  margin-top: 0.5rem;
}

.masonry-grid {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.masonry-item {
  width: calc(33.3333% - 10px);
  margin-bottom: 10px;
  overflow: hidden;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  cursor: pointer;
  object-fit: cover;
}

.masonry-item img:hover {
  transform: scale(1.005);
}

@media (max-width: 900px) {
  .masonry-item { width: 45%; }
}

@media (max-width: 600px) {
  .masonry-item { width: 90%; }
}

/* * ============================================================
 * 6. BUTTONS & UI ELEMENTS
 * ============================================================
 */

.actions {
  list-style: none;
  margin-top: 1rem;
}

.button {
  text-decoration: none;
  font-size: 0.85rem;
  color: #4a3f35;
  border-bottom: 1px solid #4a3f35;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.button:hover {
  color: #6b5e4b;
  border-color: #6b5e4b;
}

/* * ============================================================
 * 7. BLOG POST CARDS
 * ============================================================
 */

.box header p {
  font-size: 0.75rem;
  color: #8c7b66; 
  margin-top: 0.3rem;
}

.box footer {
  margin-top: 1rem;
}

/* * ============================================================
 * 8. FOOTER
 * ============================================================
 */

footer {
  border-top: 1px solid #e0d6c8;
  padding: 2rem 3rem;
  text-align: center;
  font-size: 0.75rem;
  color: #7a6b57;
}

/* * ============================================================
 * 9. MOBILE OVERLAY NAVIGATION
 * ============================================================
 */

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: #f0e6d8;
    flex-direction: column;
    padding-top: 6rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-nav.active { right: 0; }

  .main-nav li ul {
    position: static;
    display: none;
    padding-left: 1rem;
    border: none;
  }

  .main-nav li.active > ul {
    display: flex;
    flex-direction: column;
  }

  .menu-toggle { display: flex; }
}

/* * ============================================================
 * 10. LIGHTBOX OVERLAY
 * ============================================================
 */

#lightbox {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(245, 240, 230, 0.95); 
  display: none;
  justify-content: center;
  align-items: center;
}

#lightbox.active { display: flex; }

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  width: auto;
  height: auto;
  border: 2px solid #4a3f35;
  border-radius: 4px;
  object-fit: contain;
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #4a3f35;
  font-size: 3rem;
  cursor: pointer;
  user-select: none;
}

#lightbox .prev,
#lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #4a3f35;
  padding: 10px;
  cursor: pointer;
  user-select: none;
}

#lightbox .prev { left: 30px; }
#lightbox .next { right: 30px; }

#lightbox .prev:hover,
#lightbox .next:hover,
#lightbox .close:hover {
  color: #6b5e4b;
}


/* * ============================================================
 * 11. CONTACT PAGE STYLING
 * ============================================================
 */

.contact-wrapper {
    align-items: flex-start;
    margin-top: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #4a3f35;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.contact-details li {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #6b5e4b;
}

.contact-details strong {
    color: #4a3f35;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: block;
    letter-spacing: 0.1em;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid #e0d6c8;
    color: #4a3f35;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #4a3f35;
}

.form-submit {
    background: none;
    cursor: pointer;
    align-self: flex-start;
    border: none;
    border-bottom: 1px solid #4a3f35;
    padding: 10px 0;
    font-weight: 500;
}

/* Update the container for the icon and handle */
.contact-details li span {
    display: inline-flex;  /* Keeps it inline but allows flex alignment */
    align-items: center;   /* Vertically centers text with the icon */
    gap: 10px;             /* Space between icon and @handle */
    margin-top: 0.25rem;   /* Slight gap from the 'STRONG' label */
    color: #6b5e4b;
}

/* Ensure the Instagram icon behaves */
.contact-details img {
    width: 24px;           /* Fixed size for social icons */
    height: 24px;
    display: inline-block; /* Overrides the global 'display: block' */
    margin: 0;
}

/* Fix for Date/Time inputs to match your theme */
input[type="date"],
input[type="time"] {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid #e0d6c8;
    color: #4a3f35;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Specifically for the time field if you want to ensure 24h feel */
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

/* Mobile Fix for Contact */
@media (max-width: 900px) {
    .contact-info {
        margin-bottom: 3rem;
    }
}