@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --page: #f7f7ef;
  --paper: #fffef9;
  --brown: #6B4932;
  --brown-dark: #4A3426;
  --brown-soft: #EEE5DA;
  --text: #4f5f51;
  --muted: #7c887b;
  --line: #e3e8dc;
  --peach: #f3ded0;
  --shadow: 0 14px 35px rgba(43, 70, 48, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'DM Sans', Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.site-header {
  min-height: 78px;
  padding: 0 clamp(22px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: rgba(255,254,249,.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.brand {
  color: var(--brown);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.5px;
}
.brand span { color: #d59b6d; }
.top-nav { display: flex; align-items: center; gap: 30px; }
.top-nav a {
  color: var(--brown);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.top-nav a:hover { color: #b77d50; }
.menu-toggle { display: none; }

.hero {
  min-height: 500px;
  max-width: none;
  margin: 0 auto;
  padding: 72px clamp(22px, 7vw, 105px) 82px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: clamp(35px, 6vw, 90px);
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(190, 155, 115, 0.48), rgba(165, 125, 85, 0.38) ), url("imagini/Fereastra.jpeg"); 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat;
}
.eyebrow {
  color: #6B4932;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin: 0 0 13px;
}
.hero-copy { 
	align-self: end; 
	justify-self: start; 
	padding-bottom: 40px; 
	margin-left: 170px;}
.hero-copy h1 { 
	color: #F3E8D8; 
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45); 
	line-height: 1.15; 
	font-weight: 750;
	font-size: clamp(1.5rem, 5vw, 2.5rem);	} 
.hero a { 
	color: #fffaf3; 
	background-color: #795943; 
	border: 1px solid #795943; 
	padding: 12px 24px; 
	border-radius: 8px; 
	text-decoration: none; 
	display: inline-block; 
	transition: background-color 0.3s ease; } 
.hero a:hover { 
	background-color: #5e4231; }
	
.materials-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 30px; align-items: start; }
.meniu-capitole { background: #E6D9CB; border-left: 3px solid #6B4932; border-radius: 8px; padding: 20px 12px; box-sizing: border-box; } 
.meniu-capitole h3 { font-family: Georgia, serif; font-size: 1.15rem; color: #4A3426; margin: 0 0 15px; } 
.meniu-capitole ul { list-style: none; padding: 0; margin: 0; } 
.meniu-capitole li { margin-bottom: 5px; } 
.meniu-capitole a { display: block; padding: 10px 8px; color: #4A3426; text-decoration: none; border-radius: 5px; transition: background 0.2s ease; } 
.meniu-capitole a:hover { background: #D5C1AA; }
.materials-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 30px; align-items: start; }
.materials-content { min-width: 0; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 13px 20px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brown); color: white; }
.button-primary:hover { background: var(--brown-dark); }

.image-note {
  position: absolute;
  left: -25px;
  bottom: 25px;
  background: var(--paper);
  color: var(--brown);
  border-radius: 9px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  transform: rotate(-1.5deg);
}
.note-dot { display: inline-block; width: 8px; height: 8px; background: #d49a6c; border-radius: 50%; margin-right: 8px; }
.hero-decoration { position: absolute; border: 1px solid #d9dfcf; border-radius: 50%; pointer-events: none; }
.decoration-one { width: 170px; height: 170px; right: -90px; top: 45px; }
.decoration-two { width: 75px; height: 75px; left: 45%; bottom: 18px; }

.materials-section {
  padding: 72px clamp(22px, 7vw, 105px) 80px;
  background: #eeefe5;
}
.section-heading {
  max-width: 1200px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
}
.section-heading h2, .about-section h2 {
  margin: 0;
  color: var(--brown);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.2;
}
.section-intro { max-width: 300px; margin: 0 0 5px; color: #788477; font-size: 14px; }
.filters {
  max-width: 1200px;
  margin: 0 auto 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.filter-button {
  border: 1px solid #d8e0d4;
  background: transparent;
  color: var(--brown);
  border-radius: 30px;
  padding: 8px 16px;
  cursor: pointer;
  font: 700 12px 'DM Sans', Arial, sans-serif;
}
.filter-button:hover, .filter-button.active { background: var(--brown); color: white; border-color: var(--brown); }
.posts-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid rgba(213, 222, 207, .8);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(43, 70, 48, .045);
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card[hidden] { display: none; }
.post-image { height: 200px; display: block; position: relative; overflow: hidden; text-decoration: none; background: #eee8cf; border-radius: 12px 12px 0 0; } 
.post-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform 0.4s ease; } 
.post-image:hover img { transform: scale(1.04); } 
.post-type { position: absolute; left: 15px; top: 15px; padding: 5px 10px; border-radius: 30px; background: rgba(255, 254, 249, 0.9); color: var(--brown); font-size: 9px; font-weight: 800; letter-spacing: 1px; z-index: 1; }
.post-content { padding: 22px 22px 24px; }
.post-category { margin: 0 0 7px; color: #a17c56; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.post-content h3 {
  margin: 0 0 10px;
  color: var(--brown);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  line-height: 1.3;
}
.post-content > p:not(.post-category) { margin: 0 0 17px; color: #748073; font-size: 13px; line-height: 1.7; }
.read-more {
  border: 0;
  border-bottom: 1px solid #c9d6c4;
  padding: 0 0 5px;
  background: transparent;
  color: var(--brown);
  font: 700 12px 'DM Sans', Arial, sans-serif;
  cursor: pointer;
}
.read-more span { margin-left: 8px; color: #b77d50; }
.read-more:hover { border-color: var(--brown); }
.edit-tip { max-width: 1200px; margin: 25px auto 0; color: #7c887b; font-size: 12px; }

.about-section {
  max-width: 1050px;
  margin: 0 auto;
  padding: 80px 25px;
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 30px;
  align-items: start;
  background: #e8ebdf;
}

.about-section p:last-child { max-width: 700px; color: var(--brown); }
.site-footer {
  padding: 27px 22px;
  text-align: center;
  background: #e8ebdf;
}
.site-footer .brand { font-size: 19px; }
.site-footer p { margin: 5px 0 0; font-size: 12px; color: var(--brown); }

.modal { display: none; position: fixed; inset: 0; z-index: 30; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24, 42, 31, .52); }
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 35px;
  background: var(--paper);
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.modal-panel h2 { color: var(--brown); font: 700 28px/1.2 'Playfair Display', Georgia, serif; }
.modal-panel p { color: var(--brown-soft); }
.modal-close { position: absolute; top: 10px; right: 15px; border: 0; background: transparent; color: var(--brown); font-size: 30px; cursor: pointer; }
.modal-hint { font-size: 12px; }
.modal-hint code { background: #edf0e7; padding: 2px 5px; border-radius: 3px; }

@media (max-width: 900px) {
  .hero { gap: 35px; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .site-header { min-height: 68px; flex-wrap: wrap; padding: 15px 20px; }
  .brand { font-size: 20px; }
  .menu-toggle { display: block; border: 1px solid var(--line); background: var(--page); color: var(--brown); border-radius: 7px; padding: 7px 11px; font-size: 20px; }
  .top-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; padding: 5px 0 8px; }
  .top-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; gap: 38px; }
  .hero h1 { font-size: 53px; }
  .hero-image-wrap { min-height: 280px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-image { height: 300px; }
  .section-heading { display: block; }
  .section-intro { margin-top: 12px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-image { min-height: 200px; }
  .about-section { grid-template-columns: 1fr; gap: 15px; padding-top: 55px; padding-bottom: 55px; 
 }
 @media (max-width: 700px) { .materials-layout { grid-template-columns: 1fr; gap: 20px; } }
