/* ===========================================
   FERARA DECOR — Shared Styles
   =========================================== */

:root {
  --bg: #f4ead5;
  --paper: #f7eed8;
  --ink: #1d3a3a;
  --ink-soft: #2a4848;
  --accent: #e8c547;
  --accent-deep: #c9a227;
  --accent-soft: #f4d96a;
  --green: #4a5a3a;
  --green-deep: #3d4a30;
  --rule: #d6c79a;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===========================================
   Navigation
   =========================================== */
.site-nav {
  background: var(--bg);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px dashed var(--rule);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 138px;
  height: 92px;
  object-fit: contain;
  background: var(--accent);
  border-radius: 10px;
  display: block;
}

.nav-logo .placeholder-logo {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
}

.nav-logo .placeholder-logo .mark {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.nav-logo .placeholder-logo .name {
  font-size: 8px;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-deep);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
}

/* ===========================================
   Layout Helpers
   =========================================== */
main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===========================================
   Typography
   =========================================== */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

h1 { font-size: 36px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

p { margin-bottom: 14px; color: var(--ink-soft); }

ul, ol { margin-bottom: 14px; padding-left: 22px; color: var(--ink-soft); }

/* ===========================================
   Image Placeholder
   =========================================== */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.04) 10px, rgba(0,0,0,0.04) 20px),
    linear-gradient(135deg, #d6c79a 0%, #c9a227 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-align: center;
  padding: 20px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '🖼';
  font-size: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.img-placeholder span {
  position: relative;
  z-index: 1;
  background: rgba(247, 238, 216, 0.85);
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 13px;
}

/* ===========================================
   Footer
   =========================================== */
.site-footer {
  background: var(--bg);
  border-top: 1px dashed var(--rule);
  padding: 34px 40px;
  text-align: center;
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 60px;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-soft);
}

.site-footer p { margin-bottom: 10px; line-height: 1.7; }
.site-footer p:last-child { margin-bottom: 0; }

/* Legal company details (Legea 365/2002) */
.footer-company { font-size: 15px; }
.footer-company strong { font-weight: 600; letter-spacing: 0.5px; }

/* Acasă: footer continues the dark wood block */
.site-footer--dark {
  background: #2b2420;
  border-top: none;
  margin-top: 0;
  color: #d9cfae;
}
.site-footer--dark p,
.site-footer--dark a { color: #d9cfae; }
.site-footer--dark a { border-bottom-color: #8d8467; }

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 24px; }
  .site-nav { padding: 14px 24px; }
  .nav-logo img { width: 108px; height: 72px; }
  .site-footer { padding: 26px 20px; font-size: 15px; }
  .footer-company { font-size: 14px; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px dashed var(--rule);
  }

  .nav-links.open { display: flex; }

  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
}

@media (max-width: 500px) {
  body { font-size: 15px; }
  .container, .container-narrow { padding: 0 18px; }
}
