/* ------------------------------
   Theme
------------------------------ */
:root{
  --bg:#fbfaf8;
  --paper:#ffffff;
  --tint:#f4f1ec;      /* soft beige section bg */
  --ink:#1f1f1f;
  --text-light: #f0f0f0;
  --muted:#6f6f6f;
  --accent:#637a54;    /* sage */
  --accent-2:#a7b79a;  /* lighter sage */
  --radius:14px;
  --shadow:0 6px 22px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
}
img{max-width:100%; display:block}

/* Containers & spacing */
.container{width:min(1120px, 92%); margin-inline:auto}
.section-spacious{padding:5rem 0}
.section-compact{padding:2.5rem 0}
.section-tint{background:var(--tint); padding:4rem 0}
.center{text-align:center}
.lead{font-size:1.2rem; color:var(--muted); max-width:820px; margin:1rem auto}

/* Typography */
h1,h2,h3,h4,h5{
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing:.2px;
  color:var(--ink);
  margin:0 0 .75rem 0;
}
.page-title{font-size:2.4rem; text-align:center}
.section-title{font-size:2rem; text-align:center}
.muted{color:var(--muted)}
.tiny{font-size:.9rem}

/* Header */
.site-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:1.25rem 0;
}
.logo {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}

.logo img {
  max-height: 50px; /* Adjust as needed */
  width: auto;
  display: block;
}
.nav a{
  text-decoration:none; color:var(--ink); margin-left:1.25rem;
  position:relative;
}
.nav a.active{font-weight:700}
.cart-link{display:inline-flex; align-items:center; gap:.5rem}
.badge{
  display:inline-grid; place-items:center;
  min-width:22px; height:22px; padding:0 .25rem;
  background:var(--accent); color:white; border-radius:999px; font-size:.8rem;
}

/* Hero (light, typographic) */
.hero-plain {
  background: url('../images/simple_image.png') center/cover no-repeat;
  /* border-radius: calc(var(--radius) + 6px); */
  margin: 1rem auto 0 auto;
  color: #fff; /* readable over image */
  position: relative;
  overflow: hidden;
  min-height: 60vh; /* ensures good height on mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Overlay for readability */
.hero-plain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: inherit;
  z-index: 0;
}

.hero-inner {
  padding: 6rem 1rem;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  color: var(--text-light);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--text-light);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2rem;
}

.hero-plain .btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 9999px;
}
/* Buttons */
.btn{
  display:inline-block; padding:.9rem 1.5rem; border-radius:999px;
  text-decoration:none; cursor:pointer; transition:transform .08s ease, background .2s ease, border-color .2s ease;
  border:1.5px solid transparent;
}
.btn:hover{ transform:translateY(-1px) }
.btn-primary{ background:var(--accent); color:#fff }
.btn-primary:hover{ background:#4f6143 }
.btn-outline{ background:transparent; border-color:var(--accent); color:var(--accent) }
.btn-outline:hover{ background:var(--accent); color:#fff }
.full{ width:100% }

/* Features */
.features-grid{
  display:grid; gap:1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-card{
  background:var(--paper); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:1.75rem; text-align:center;
}
.feature-card .icon{
  width:40px; height:40px; margin:0 auto .75rem auto; color:var(--accent);
}
.feature-card .icon svg{width:100%; height:100%}

/* Split sections */
.split{
  display:grid; gap:2rem;
  grid-template-columns: 1.1fr 1fr;
  align-items:center;
}
.split-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.split-media img {
  width: 300px;        
  height: 300px;         
  object-fit: cover;      /* crop without distortion */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 100%;        /* don’t overflow small screens */
}
.split .section-title{ text-align:left }
@media (max-width: 900px){
  .split{ grid-template-columns:1fr; }
  .split .section-title{ text-align:center }
}

/* Founder */
.founder blockquote{
  font-family:'Playfair Display', Georgia, serif;
  font-size:1.2rem; color:var(--ink);
  margin:0 0 .75rem 0;
}
.founder-name{ color:var(--muted) }

/* Products grid */
.products-grid{
  padding-bottom:4rem;
  display:grid; gap:1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.product-card{
  background:var(--paper); border-radius:var(--radius); box-shadow:var(--shadow);
  overflow:hidden; display:flex; flex-direction:column;
}
.product-card img{ aspect-ratio: 4/3; object-fit:cover }
.product-info{ padding:1rem }
.product-info h3{ font-size:1.2rem; margin-bottom:.25rem }
.price{ color:var(--ink); font-weight:700; margin:.25rem 0 1rem }

/* Cart page */
.cart-wrap{
  display:grid; gap:2rem;
  grid-template-columns: 1.6fr .9fr;
}
.cart-items{
  background:var(--paper); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:1rem;
}
.cart-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem 0; border-bottom:1px solid #eee;
}
.cart-row:last-child{ border-bottom:none }
.cart-item-name{ font-weight:700 }
.cart-item-controls{
  display:flex; align-items:center; gap:1rem;
}
.qty{
  display:flex; align-items:center; gap:.5rem; color:var(--muted);
}
.qty input{
  width:70px; padding:.5rem .6rem; border-radius:10px; border:1px solid #ddd;
}
.link{ background:transparent; border:none; color:var(--accent); cursor:pointer; padding:.35rem .5rem; border-radius:8px }
.link:hover{ background: #e8efe3 }
.link.danger{ color:#b24b4b }
.link.danger:hover{ background:#f7eaea }

.cart-summary{
  background:var(--paper); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:1.25rem; height:max-content;
}
.summary-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:.35rem 0;
}
.summary-row.total{ font-size:1.1rem }

/* Forms */
.checkout-form{
  background:var(--paper); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:1.25rem;
}
input{
  width:100%; padding:.9rem 1rem; border:1px solid #ddd; border-radius:12px;
  background:#fff; outline:none; transition:border-color .2s ease;
}
input:focus{ border-color: var(--accent-2) }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:1rem }
@media (max-width: 700px){ .grid-2{ grid-template-columns:1fr } }

/* Hidden description styles */
.product-desc {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  padding-top: 0;
}

.product-desc.open {
  max-height: 300px; /* adjust to content */
  opacity: 1;
  padding-top: 0.5rem;
}

/* Optional: Style the toggle button */
.toggle-desc {
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

.toggle-desc:hover {
  color: #222;
}


/* Footer */
.site-footer{
  margin-top:3rem; background:var(--tint); padding:2rem 0;
}
.footer-grid{
  display:grid; gap:1.25rem;
  grid-template-columns:1.2fr 1fr 1fr;
  align-items:start;
}
.newsletter{ display:flex; gap:.6rem; margin-top:.5rem }
.newsletter input{ flex:1 }
.socials a{ display:inline-flex; width:28px; height:28px; margin-right:.4rem; color:var(--ink) }
.socials svg{ width:100%; height:100% }
@media (max-width: 900px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* Utilities */
hr{ border:none; border-top:1px solid #eee; margin:1rem 0 }
.empty{ padding:1rem; color:var(--muted) }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-info .price {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #556b2f;
  color: #fff;
}

.toggle-desc {
  background: transparent;
  border: none;
  color: #556b2f;
  cursor: pointer;
  margin-top: 0.5rem;
}

.product-desc {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
}

.product-desc.open {
  display: block;
}
.checkout-form {
  max-width: 700px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: grid;
  gap: 15px;
}

.checkout-form input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
}

.checkout-form input:focus {
  border-color: #4d6937;
  outline: none;
  box-shadow: 0 0 0 2px rgba(77,105,55,0.15);
}

.checkout-form button {
  padding: 14px;
  background: #4d6937;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.25s;
}

.checkout-form button:hover {
  background: #3a512b;
}

/* Background for features section */
.features-bg {
  background-image: url("../images/vision-bg.png"); /* change to your image */
  background-attachment: fixed;   /* keeps it fixed */
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  position: relative;
  z-index: 1;
}

/* Slight overlay to improve text readability */
.features-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* semi-transparent white overlay */
  z-index: -1;
}

/* Ensure cards appear above overlay */
.features-grid {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
}
/* Modal background */
/* .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
} */

/* Modal box */
.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* Image */
/* .modal-content img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
} */

/* Title + text */
/* .modal-content h2 {
  margin: 0.5rem 0;
}
.modal-content p {
  margin: 0.25rem 0;
} */

/* Close button */
/* .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.close-btn:hover {
  color: red;
} */
/* Modal background */
/* .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
} */

/* Modal background */


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Center everything inside the modal */
/* .modal-content {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
} */

/* Center the image itself */
.modal-content img {
  display: block;
  margin: 0 auto 1rem;   /* ← centers the block */
  max-width: 100%;
  width: clamp(220px, 60%, 360px);  /* nice responsive size */
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
}

/* Title + text */
.modal-content h2 {
  margin: 0.5rem 0;
}
.modal-content p {
  margin: 0.25rem 0;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.close-btn:hover {
  color: red;
}



