/* ========== Variables & Base Reset ========== */
:root{
  --sage:#9fb98b;
  --blush:#d7a89c;
  --linen:#fffaf7;
  --cream:#fff8e6;
  --coffee:#4e5d46;
  --ink:#4a3b2c;
  --thread:#b06050;
  --thread-dark:#a04a3c;
  --paper:#fffaf4;
  --mint:#e7f0e2;
  --shadow:0 2px 6px rgba(0,0,0,0.15);
  --maroon: #6b2e2f;
}

*{box-sizing:border-box}
html,body{overflow-x:hidden;scroll-behavior:smooth}

body{
  font-family:'Merriweather', serif;
  background-color:#B8CEC6;
  color:var(--ink);
  margin:0;
  padding-top:150px; /* fixed header offset */
  line-height:1.6;
}

img{max-width:100%;height:auto}

/* ========== Header & Navigation ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--sage);
  border-bottom: 4px solid var(--blush);
  box-shadow: var(--shadow);
  z-index: 3000;
  padding: 0.8em 0 1.6em 8px; /* slightly more top & bottom padding */
  color: var(--coffee);
  min-height: 120px;          /* gives consistent height */
  overflow: visible;
}


.header-container{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;position:relative;
}

.logo{
  height:85px;width:auto;border-radius:12px !important;
  background-color:var(--linen);padding:4px;margin-left:0.5em;display:block;
  align-self:center;
}

.title-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%; /* true center */
  transform: translate(-50%, -50%);
  text-align: center;
  gap: 0.4em;
  padding-bottom: 0.4em;
}

header h1{
  font-family:'Dancing Script',cursive !important;
  font-size:4rem;color:var(--cream);
  text-shadow:-2px -2px 0 #6b2e2f,2px -2px 0 #6b2e2f,-2px 2px 0 #6b2e2f,2px 2px 0 #6b2e2f;
  margin:0.5em 0 0.3em;line-height:1.1;letter-spacing:0.5px;text-align:center;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5em;
  margin-bottom: 0;          /* reset margin */
  padding-bottom: 0.6em;     /* new consistent spacing below links */
  transition: transform .3s ease, opacity .3s ease;
}


nav a{
  text-decoration:none;color:var(--cream);font-weight:600;
  transition:color .3s ease, text-shadow .3s ease, background .3s ease;
}
nav a:hover{color:#f4c8b6;text-shadow:0 0 6px rgba(244,200,182,.6)}

/* hamburger */
.menu-toggle{
  display:none;background:none;border:0;color:var(--cream);
  font-size:2rem;line-height:1;cursor:pointer;
}

/* mobile slide-in panel + backdrop */
.menu-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,0.3);z-index:2000;
  opacity:0;transition:opacity .3s ease;pointer-events:none;
}
.menu-backdrop.show{opacity:1;pointer-events:all}

/* ========== Hero & Intro ========== */
.hero{
  background-image:url('https://www.transparenttextures.com/patterns/cream-pixels.png');
  background-color:var(--paper);
  padding:2em 1em;text-align:center;font-size:1.4em;color:#6e4c3a;
}

.intro{
  text-align:center;
  margin:2em auto;
  max-width:700px;
  color:var(--coffee);
  font-family:'Lora',serif;
  line-height:1.6;
  padding:2em 10%;
  margin-bottom: 0.8em !important;
}
.intro h3{
  color:var(--thread);
  font-family:'Dancing Script',cursive;
  font-size:2em;
  margin:0 0 .4em;
  margin-bottom: 0.3em !important;
}

/* storefront stitched frame */
.storefront-hero {
  display: flex;
  flex-direction: column; /* stack text above image */
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 3em;
  padding: 0 1em;
  width: 100%;
  box-sizing: border-box;
  animation: fadeInUp 1.5s ease-out;
  text-align: center; /* ensure both text blocks center nicely */
}

.stitched-frame {
  position: relative;
  display: inline-block; /* ensures it only wraps its content */
  max-width: 1200px;
  border-radius: 16px;
  padding: 14px;
  background: var(--linen);
  box-shadow:
    0 0 0 2px #c49b82,
    0 0 0 6px #e2bda9,
    0 4px 12px rgba(0,0,0,.12);
  overflow: hidden; /* contain the border + image neatly */
  z-index: 1; /* ensure it sits behind text above/below */
}

.stitched-frame::before{
  content:"";position:absolute;inset:0;border-radius:inherit;z-index:0;
  background:
    repeating-linear-gradient(90deg,#c49b82 0 3px,transparent 3px 7px) top/100% 7px no-repeat,
    repeating-linear-gradient(180deg,#e2bda9 0 3px,transparent 3px 7px) right/7px 100% no-repeat,
    repeating-linear-gradient(90deg,#c49b82 0 3px,transparent 3px 7px) bottom/100% 7px no-repeat,
    repeating-linear-gradient(0deg,#e2bda9 0 3px,transparent 3px 7px) left/7px 100% no-repeat;
}
.stitched-frame img{position:relative;z-index:1;display:block;width:100%;height:auto;max-height:500px;object-fit:cover;border-radius:10px}

.storefront-hero img{
  width:100%;max-width:1200px;height:auto;max-height:480px;object-fit:cover;border-radius:12px;display:block;z-index:1;
}

/* --- Hero Text Above and Below Image --- */
.hero-text {
  text-align: center;
  color: var(--cream);
  font-family: 'Dancing Script', cursive;
  text-shadow:
    -2px -2px 0 var(--coffee),
     2px -2px 0 var(--coffee),
    -2px  2px 0 var(--coffee),
     2px  2px 0 var(--coffee);
}

/* Top text (Welcome to...) */
.hero-text.top-text {
  color: var(--maroon);
  text-shadow:
    0 1px 3px rgba(0,0,0,0.25);
  font-weight: 400;
  opacity: 0.95;
  position: relative;
  margin-bottom: 1em;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.5px; /* slight spacing gives a stitched rhythm */
  text-transform: none;
}

/* Bottom text (tagline) */
.hero-text.bottom-text {
  color: var(--maroon);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  font-family: 'Merriweather', serif; /* or keep 'Lora' if you prefer consistency */
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-top: 0.15em;
  margin-bottom: 0;
}


.hero-text h1{font-size:clamp(2rem,5vw,3.5rem);margin:0 0 .4em}
.hero-text p{font-size:clamp(1rem,2vw,1.4rem);font-family:'Lora',serif;font-style:italic}

/* ========== Gallery (Unified) ========== */
.gallery,
.gallery-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1.5em;padding:1em 10% 2em;max-width:1100px;margin:0 auto;
}

/* --- GALLERY GRID ITEMS --- */
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--linen);
  border: 3px solid var(--sage);
  box-shadow: 0 0 0 6px var(--mint), 0 6px 15px rgba(0,0,0,0.12);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(159, 185, 139, 0.45) 0,
    rgba(159, 185, 139, 0.45) 1.5px,
    transparent 1.5px,
    transparent 3px
  );
  background-origin: border-box;
  background-clip: content-box, border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* --- HOME PAGE PHOTO ITEMS (no fade-in hiding) --- */
.photo-item {
  position: relative;
  flex: 1 1 20%;
  max-width: 22%;
  min-width: 200px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--linen);
  border: 3px solid var(--sage);
  box-shadow: 0 0 0 6px var(--mint), 0 6px 15px rgba(0,0,0,0.12);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(159, 185, 139, 0.45) 0,
    rgba(159, 185, 139, 0.45) 1.5px,
    transparent 1.5px,
    transparent 3px
  );
  background-origin: border-box;
  background-clip: content-box, border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Fix collapsed photo-item height in flex layout --- */
.photo-item::before {
  content: "";
  display: block;
  padding-top: 100%; /* makes the box square */
}

.gallery-item img,
.photo-item img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
  display:block;
  transition:transform .3s ease;
  will-change:transform;
}

.gallery-item:hover,
.photo-item:hover{
  transform:scale(1.03);
  box-shadow:0 0 0 6px #dce9d4,0 8px 20px rgba(0,0,0,.18);
}
.gallery-item:hover img{
  transform:scale(1.05)
}

/* --- Unified hover effect for image + text --- */
.photo-block:hover .photo-item img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.photo-block:hover .photo-item {
  transform: scale(1.03);
  box-shadow: 0 0 0 6px #dce9d4, 0 8px 20px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Slight color change for text on hover --- */
.photo-block:hover .photo-text {
  color: #552022; /* maroon-deep for subtle emphasis */
}

.photo-row{display:flex;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:1.5em;margin:2em auto;max-width:95%}

.photo-block{
  flex: 1 1 20%;
  max-width: 22%;
  min-width: 200px;
  text-align: center;
}

.photo-text {
  position: static;
  display: block;
  margin-top: 0.5em;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: var(--maroon);
  text-decoration-line: underline;
  text-decoration-color: #6b2e2f;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  line-height: 1.2;
  pointer-events: none;
}

/* home wide image */
.storefront img{
  width:100%;max-height:400px;object-fit:cover;border-radius:10px;padding-top:2em;margin-bottom:1.5em;box-shadow:0 2px 8px rgba(0,0,0,.1);
}

.home-gallery{text-align:center;margin:2em auto;max-width:1000px;padding:1em}
.home-gallery h2{font-family:"Playfair Display",serif;font-size:1.8rem;color:#4B2E2B;margin-bottom:1em}

/* ========== Lightbox ========== */
.lightbox{
  display:none;position:fixed;z-index:5000 !important;inset:0;width:100%;height:100%;
  background:rgba(0,0,0,.8);justify-content:center;align-items:center;
}
.lightbox-inner{text-align:center;color:#fff;margin-top:120px}
.lightbox-content{
  max-width:90%;max-height:80vh;border-radius:10px;box-shadow:0 4px 20px rgba(0,0,0,.5);
  animation:fadeInUp .5s ease;
}
.lightbox-caption{
  margin-top:1em;font-size:1.1em;font-style:italic;color:#f4e3d7;opacity:0;
  animation:fadeInUp 1s ease .3s forwards;
}
.close{position:absolute;top:20px;right:30px;font-size:2.5em;color:#fff;cursor:pointer;user-select:none}
.close:hover{color:#f4c8b6}

/* ========== Blog ========== */
/* --- Blog Page Intro Title and Text --- */

/* --- Keep Blog Title on a Single Line --- */
.blog-page .intro {
  max-width: 100% !important; /* allow the heading full width */
  padding: 1.5em 5% !important; /* maintain balanced spacing */
  padding-top: 0.4em !important;   /* reduce top padding */
  margin-top: 0.4em !important;    /* pull closer to header */
}

.blog-page .intro h3 {
  text-align: center;
  color: var(--maroon);
  font-family: 'Dancing Script', cursive;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
  opacity: 0.95;
  margin-top: 0.2em;
  margin-bottom: 0.4em;
  white-space: nowrap; /* prevent wrapping */
  overflow-wrap: normal;
}

.blog-page .intro p {
  color: var(--maroon);
  font-family: 'Merriweather', serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-align: center;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
  margin-top: 0.2em;
}

.blog-container{
  display:flex;flex-direction:column;align-items:center;margin:2em auto;padding:0 1.5em;max-width:900px;
}
.blog-post{
  background-color:var(--linen);border:2px solid var(--mint);border-radius:10px;box-shadow:0 2px 6px rgba(0,0,0,.05);
  padding:1.5em 2em;margin-bottom:2em;font-family:'Lora',serif;color:var(--coffee);line-height:1.6;
}
.blog-post h4{
  font-family:'Dancing Script',cursive;font-size:1.8rem;color:var(--coffee);margin-bottom:.3em;
}
.blog-post .date{font-size:.9rem;font-style:italic;color:#7c8a71;margin-bottom:1em}
.blog-post .read-more{text-decoration:none;color:var(--thread);font-weight:700}
.blog-post .read-more:hover{text-decoration:underline}


/* --- Blog Gallery Strip (Below Article) --- */
.blog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2em;
  margin: 2em auto 0;
  max-width: 950px;
  padding: 0 1em;
}

.blog-gallery img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.blog-gallery-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1em;
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 2px solid var(--mint); /* subtle divider from text */
}

.blog-gallery-inline img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-gallery-inline img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* ========== About ========== */
/* --- About Page Intro Title and Text --- */
.about-page .intro h3 {
  text-align: center;
  color: var(--maroon);
  font-family: 'Dancing Script', cursive;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
  opacity: 0.95;
  margin-top: 0.1em !important;    /* minimize space above the title */
  margin-bottom: 0.05em !important;
}

.about-page .intro p {
  color: var(--maroon);
  font-family: 'Merriweather', serif;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem); /* smaller than before */
  text-align: center;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
  margin-top: 0.05em;
}

.about-page .intro {
  padding-top: 0.5em !important;   /* reduce space below header */
  margin-top: 0.3em !important;    /* bring intro closer to header */
  margin-bottom: 0.4em !important; /* bring next section closer */
}

/* --- About Page Two-Column Layout --- */
.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3em; /* spacing between text and image */
  max-width: 1100px;
  margin: 2em auto;
  padding: 1.5em 5%;
  flex-wrap: wrap; /* allows stacking on smaller screens */
  margin-top: 0.5em !important;   /* was around 2em before */
  padding-top: 0.5em !important;
}

/* --- Match the About intro paragraph styling for side text --- */
.about-content div p {
  color: var(--maroon);
  font-family: 'Merriweather', serif;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
  margin-bottom: 1em;
}

/* Text column */
.about-content div {
  flex: 1 1 50%;
  font-family: 'Merriweather', serif;
  color: var(--coffee);
  line-height: 1.7;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}

/* Image column */
.about-content img {
  flex: 1 1 40%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
}

/* --- Two-Image Grid for About Page --- */
.about-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5em;
  flex-wrap: wrap;
  margin-top: 1em;
}

.about-images img {
  flex: 1 1 30%;
  max-width: 30%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
}

/* --- Single Image Below Text on About Page --- */
.about-bottom-image {
  display: flex;
  justify-content: center;
  margin: 1.5em auto 0;
  padding: 0 1em;
}

.about-bottom-image img {
  width: 90%;
  max-width: 800px;
  height: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
  animation: fadeInUp 1s ease;
}

/* --- Maintain header integrity if the desktop browser window size decreases --- */
@media (max-width: 1250px) and (min-width: 1025px) {
  header h1 {
    font-size: clamp(2rem, 3vw + 0.5rem, 3.3rem);
    white-space: nowrap;
  }
  nav {
    gap: 1.8em;
    flex-wrap: nowrap;
  }
  nav a {
    font-size: clamp(0.9rem, 1vw, 1rem);
  }
}

/* --- Responsive stacking for tablets and smaller --- */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5em;
  }
  
  .about-content img {
    flex: 0 0 auto;          /* prevent flex stretching */
    width: 80%;              /* scale nicely within screen width */
    max-width: 320px;        /* keeps proportions stable */
    height: auto !important; /* ensure image scales naturally */
    object-fit: contain !important; /* stop zooming/cropping */
    margin: 0 auto;          /* center the image */
    display: block;
  }

  .about-images img {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .blog-gallery {
    gap: 1em;
    margin-top: 1.5em;
  }
}

/* ========== Contact ========== */
/* --- Contact Page Typography Update --- */
.contact {
  text-align: center;
  padding: 3em 1em;
  color: var(--maroon); /* match About page text color */
  font-family: 'Merriweather', serif; /* consistent font */
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); /* soft depth */
  opacity: 0.95;
  padding-top: 0.2em !important;  /* same as About page intro */
  margin-top: 0.2em !important;
}

/* --- Contact Page Heading --- */
.contact h2 {
  font-family: 'Dancing Script', cursive;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--maroon);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
  margin-top: 0.05em !important;   /* minimal space above title */
  margin-bottom: 0.2em !important; /* same gap below as "Meet Neena" */
}

/* --- Contact Page Paragraphs --- */
.contact p {
  color: var(--maroon);
  font-family: 'Merriweather', serif;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  text-align: center;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
  margin-top: 0.15em;
  margin-bottom: 2em !important; /* gentle gap before Facebook button */
}


.contact-details{display:flex;flex-direction:column;align-items:center;gap:1.5em}
.contact-item{
  display:flex;align-items:center;gap:.75em;background:#f2ede7;padding:.75em 1.25em;border:2px solid var(--sage);
  border-radius:12px;box-shadow:0 2px 6px rgba(0,0,0,.08);transition:transform .2s ease, box-shadow .2s ease;width:fit-content;
}
.contact-item:hover{transform:translateY(-3px);box-shadow:0 4px 10px rgba(0,0,0,.1)}
.contact-item img{width:28px;height:28px}
.contact-item a,.contact-item p{font-size:1.1rem;color:var(--coffee);text-decoration:none}
.contact-item a:hover{color:#2e3b29;text-decoration:underline}

/* form */
.contact-form{padding:2em 20%}
form{display:flex;flex-direction:column;gap:1em}
label{font-weight:700;color:#6e4c3a}
input,textarea{
  border:1px solid #d6bfa7;border-radius:6px;padding:.7em;font-family:'Merriweather',serif;
}
button{
  background-color:var(--thread);color:#fff;padding:.8em;border:0;border-radius:6px;cursor:pointer;font-size:1em;transition:background .2s ease,transform .05s ease;
}
button:hover{background-color:var(--thread-dark)}
button:active{transform:translateY(1px)}

/* --- Match Contact page top spacing with "Meet Neena" --- */
.contact {
  padding-top: 0 !important;      /* remove extra internal space */
  margin-top: -1.2em !important;  /* pull section upward to match About page */
}

.contact h2 {
  margin-top: 0.05em !important;  /* minimal vertical gap above title */
  margin-bottom: 0.2em !important;
}

/* ========== Sections & Utilities ========== */
section{margin:1.5em auto;padding:1.5em;max-width:900px}
.home-gallery{margin:2em auto;padding:1em}
.daily-tip{
  background-color:#FFF9F6;border:2px dashed #C18C74;border-radius:8px;padding:1em 1.5em;margin:2em auto;max-width:700px;
  text-align:center;color:#4B2E2B;font-style:italic;box-shadow:0 2px 5px rgba(0,0,0,.05);
}
.hover-message{opacity:0;font-size:.9rem;color:#4B2E2B;transition:opacity .4s ease;margin-left:10px}
header:hover .hover-message{opacity:1}

/* focus states */
a:focus,button:focus{outline:2px dashed var(--thread);outline-offset:3px}

/* footer */
footer{
  width:100%;background-color:#f4e3d7;text-align:center;padding:.2em 0;margin-top:3em;font-size:.95em;color:var(--coffee);
  box-shadow:0 -2px 4px rgba(0,0,0,.05);
}

/* ========== Animations ========== */
@keyframes fadeInUp{
  0%{opacity:0;transform:translateY(20px)}
  100%{opacity:1;transform:translateY(0)}
}
.fade-in{opacity:0;transform:translateY(20px);transition:opacity .8s ease-out, transform .8s ease-out}
.fade-in.visible{opacity:1;transform:translateY(0)}

/* ========== Responsive ========== */

/* scalable text */
header h1{font-size:clamp(2rem,4vw + 1rem,4rem)}
nav a{font-size:clamp(.8rem,1.2vw + .2rem,1.1rem)}

/* tablet */
@media (max-width:1024px){
  .photo-item{flex:1 1 30%;max-width:30%}
}

/* mobile nav + header (<=1024px) */
@media (max-width:1024px){
  .intro{text-align:center;margin:0 auto}
  header{overflow:visible}
  .header-container{position:relative;align-items:center;justify-content:flex-start;padding-right:3rem}
  .title-nav{position:static;transform:none;align-items:flex-start;text-align:left;gap:.25em}
  .menu-toggle{
    display:block;position:fixed;font-size:1.8em;top:0.3em;right:0.8em;z-index:3002;background:none;border:0;color:var(--cream);line-height:1;cursor:pointer;
  }

  header nav{
    position:absolute;top:100%;right:-100%;width:70vw;background-color:var(--sage);
    padding:.75em 1em;display:flex;flex-direction:column;align-items:flex-start;gap:1em;
    box-shadow:-4px 0 12px rgba(0,0,0,.2);border-bottom-left-radius:12px;transition:right .4s ease;z-index:2001;
  }
  header nav.show{right:0}
  header nav a{display:block;font-size:1.2rem;color:var(--cream);text-decoration:none;width:100%}
  header nav a:hover{color:#f4c8b6;background:rgba(255,255,255,.08)}
  .logo{height:64px}
}

@media (min-width:769px) and (max-width:1024px) {
  header nav {
    width: 45vw; /* wider for tablet */
    font-size: 1.1rem; /* slightly larger text */
    border-left: 3px solid var(--blush);
    padding-left: 1.5em;
    transition: right .5s ease;
  }
}

/* narrow phones & placement tweaks */
@media (max-width:430px){
  .menu-toggle{right:0.8em;top:0.4em}
}
@media (max-width:380px){
  .menu-toggle{right:1.6em}
  .intro{font-size:.9em}
}

/* small phones (<=480px) */
@media (max-width:480px){
  .stitched-frame{padding:10px;border-radius:14px}
  .stitched-frame::before{
    background:
      repeating-linear-gradient(90deg,#c49b82 0 2px,transparent 2px 5px) top/100% 5px no-repeat,
      repeating-linear-gradient(180deg,#e2bda9 0 2px,transparent 2px 5px) right/5px 100% no-repeat,
      repeating-linear-gradient(90deg,#c49b82 0 2px,transparent 2px 5px) bottom/100% 5px no-repeat,
      repeating-linear-gradient(0deg,#e2bda9 0 2px,transparent 2px 5px) left/5px 100% no-repeat;
  }

  .intro{
    width:100%;max-width:100%;text-align:center !important;margin:0 auto !important;
    padding:2em 1.5em !important;display:block;
  }
  .intro h3,.intro p{text-align:center !important;margin-left:auto !important;margin-right:auto !important}

  header{
    max-height:none;height:auto;overflow:visible;padding:.8em 1em;text-align:left;
  }
  .header-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%}
  .logo{height:68px;align-self:flex-start;margin:0 0 .6em 0}
  .title-nav{position:static;transform:none;width:100%;align-items:flex-start;gap:.4em;margin:0}
  header h1{font-size:2rem;margin:.1em 0 .3em;line-height:1.2;text-align:left}
  nav{flex-direction:column;align-items:flex-start;gap:.45em;margin:0}
  nav a{font-size:1rem;line-height:1.3}
  body{padding-top:220px} /* room for taller header on mobile */
}

/* --- Optimized storefront hero spacing for full above-the-fold visibility --- */
.storefront-hero {
  margin-top: 0; /* remove top gap under header */
  padding: 0; /* no internal padding needed here */
}

.stitched-frame {
  margin: 0.3em 0; /* smaller spacing around the image */
  margin-top: 0.2em !important;   /* tighten top spacing */
  margin-bottom: 0.05em !important; /* minimal gap below image */
}

.stitched-frame img {
  max-height: 420px; /* slightly smaller image keeps everything visible */
}

.hero-text.top-text {
  margin-bottom: 0.25em; /* bring the title closer to the image */
}

.hero-text.bottom-text {
  margin-top: 0.05em !important;  /* bring tagline closer */
  margin-bottom: 0;
}

/* --- Tighter spacing between the two hero heading lines --- */
.hero-text.top-text h1 {
  margin: 0.1em 0;      /* minimal vertical margin between lines */
  line-height: 1.05;    /* tighter line spacing than default (1.1–1.2) */
}

/* --- Reduce space between the image and tagline below --- */
.stitched-frame {
  margin-bottom: 0.1em; /* tighten space below image */
}

.hero-text.bottom-text {
  margin-top: 0.1em; /* reduce gap above tagline */
}

/* --- Hero spacing: make tagline hug the image and keep stitches tight --- */

/* Remove extra outside gap */
.stitched-frame {
  margin: 0.15em 0 !important;      /* small outside gap */
  padding: 8px !important;           /* was 14px; this trims the white band inside the stitches */
}

/* Slightly smaller image still, so everything fits above the fold */
.stitched-frame img {
  max-height: 400px !important;      /* was 420/500 in earlier rules */
  display: block;
}

/* Bring the tagline closer to the frame */
.hero-text.bottom-text {
  margin-top: 0.1em !important;      /* reduce space above the line */
  margin-bottom: 0 !important;
}

/* Keep the title snug above the frame */
.hero-text.top-text {
  margin-bottom: 0.2em !important;
}

/* Keep the two title lines tight */
.hero-text.top-text h1 {
  margin: 0.05em 0 !important;
  line-height: 1.04 !important;
}

/* --- Wider hero image without breaking proportions --- */
.stitched-frame {
  display: block !important;       /* allows full-width expansion */
  max-width: 90% !important;       /* fill most of the viewport */
  margin-left: auto !important;
  margin-right: auto !important;
}

.stitched-frame img {
  width: 100% !important;          /* expand image to frame width */
  max-width: none !important;      /* remove earlier hard limit */
  max-height: 420px !important;    /* keep it visually balanced */
  object-fit: cover;
}

/* --- Make the hero image wider --- */
.stitched-frame {
  display: block !important;
  width: min(1700px, 95vw) !important; /* explicit width, not just a cap */
  margin: 0.15em auto !important;      /* keep your tight spacing + center */
  padding: 8px !important;             /* your reduced stitch padding */
}

/* Remove the 1200px cap applied earlier inside the hero section */
.storefront-hero img {
  max-width: none !important;
  width: 100% !important;              /* fill the frame’s width */
  height: auto !important;
  max-height: 400px !important;        /* keep height sensible above the fold */
  object-fit: cover;
}

/* --- Gallery page: title override with higher specificity --- */
.intro h3.gallery-title {
  text-align: center;
  color: var(--maroon);
  font-family: 'Dancing Script', cursive;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  letter-spacing: 0.5px;
  opacity: 0.95;
  margin-top: 0.2em;
  margin-bottom: 0.4em;
}

/* --- Gallery Page Intro Text --- */
.gallery-page .intro p {
  color: var(--maroon);
  font-family: 'Merriweather', serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-align: center;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
  margin-top: 0.2em;
}

/* --- Reduce space between header and Gallery title --- */
.gallery-page .intro {
  padding-top: 0.5em !important;   /* was 2em */
  margin-top: 0.5em !important;    /* was 2em */
}

.gallery-page .intro h3.gallery-title {
  margin-top: 0.1em !important;    /* was 0.2em */
}

.gallery-note {
  text-align: center;
  color: #6b2e2f; /* maroon for readability and theme consistency */
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-size: 1rem;
  margin-top: 0.4em;
  margin-bottom: 0.4em;
  opacity: 0.9;
}

/* --- Blog Gallery (desktop & mobile) --- */
.blog-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin-top: 1.5em;
  flex-wrap: wrap;
}

.blog-gallery img {
  flex: 1 1 30%;
  max-width: 30%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.blog-gallery img:hover {
  transform: scale(1.03);
}

/* --- Fix Blog Page Title Overflow and Styling on Small & Tablet Screens --- */
@media (max-width: 600px) {
  .blog-page .intro h3 {
    white-space: normal !important;        /* allow wrapping */
    overflow-wrap: break-word !important;  /* safe breaking */
    text-align: center !important;
    line-height: 1.1 !important;           /* tighter line spacing for elegance */
    font-size: clamp(2rem, 6vw, 2.8rem) !important; /* adaptive scaling */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .blog-container {
    width: 100%;
    max-width: 100%;
    padding: 0 1em !important;
    margin: 0 auto !important;
    overflow-x: hidden;
  }

  .blog-post {
    width: 100%;
    max-width: 100%;
    padding: 1em !important;
    box-sizing: border-box;
  }

  .blog-gallery {
    gap: 0.3em;                 /* reduce gap slightly */
    flex-wrap: nowrap;          /* keep one row */
    justify-content: center;    /* center the whole strip */
    padding: 0 0.25em;          /* small horizontal padding for safety */
  }

  .blog-gallery::-webkit-scrollbar {
    display: none;                   /* hide scrollbar (iOS/Safari/Chrome) */
  }

  .blog-gallery img {
    flex: 1 1 32.5%;            /* each image takes ~1/3 of width */
    max-width: 32.5%;           /* ensures all three fit snugly */
    height: auto;
  }

  /* Force a one-row strip regardless of wrappers around the images */
  .blog-post .blog-gallery-inline {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center;
    gap: 0.6em;
    overflow-x: auto;          /* allow swipe if it gets tight */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.3em;
  }

  /* Size the *children* of the strip (wrappers or images) to thirds */
  .blog-post .blog-gallery-inline > * {
    flex: 0 0 32% !important;
    max-width: 32% !important;
    margin: 0 !important;      /* kill default margins from p/figure */
  }

  /* Ensure images themselves fill their wrapper cleanly */
  .blog-post .blog-gallery-inline img {
    display: block;
    width: 100% !important;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
  }
}

/* === Tighten gap between "Meet Neena" and the text below === */
.about-page .intro {
  padding-bottom: 0 !important;   /* kill leftover bottom padding */
  margin-bottom: 0.1em !important; /* tiny breathing room */
}

.about-page .intro h3 {
  margin-bottom: 0 !important;     /* snug the heading itself */
}

.about-page .about-content {
  margin-top: 0.1em !important;    /* reduce space above the text block */
}

/* === Keep About Page Images Side by Side on Mobile === */
@media (max-width: 768px) {
  .about-images {
    flex-wrap: nowrap !important;      /* prevent stacking */
    justify-content: center;           /* keep them centered */
    gap: 0.8em !important;             /* tighter spacing for small screens */
  }

  .about-images img {
    flex: 1 1 48% !important;          /* two even columns */
    max-width: 48% !important;         /* prevent overflow */
    height: auto !important;
    object-fit: cover;
  }
}
