/* ========================
   CSS VARIABLES (BRAND)
======================== */
:root {
  --brand-primary: #5E3018;
  --brand-primary-dark: #3A1C0E;
  --brand-primary-light: #9B6A54;
  --brand-bg-light: #EFE7E2;
  --brand-accent: #C6A15B;

  --text-dark: #1E1E1E;
  --text-muted: #777;
}

/* ========================
   Base Styles
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--brand-bg-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 35px 20px;
}

/* ========================
   Header & Navigation
======================== */
.site-header {
  background-color: #fff;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 60px;
  transition: height 0.3s ease;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--brand-primary-dark);
  transition: font-size 0.3s ease;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  padding: 0.5rem 1rem;
  display: block;
  font-weight: 500;
  color: var(--brand-primary);
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--brand-primary-dark);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #eee;
  display: none;
  list-style: none;
  min-width: 200px;
  z-index: 99;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #f1f1f1;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  background-color: var(--brand-primary);
  border-radius: 2px;
  transition: 0.3s;
}


/* ========================
   Header Scroll Effect
======================== */
.site-header.shrink {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.site-header.shrink .logo-img {
  height: 45px;
}

.site-header.shrink .logo-text {
  font-size: 1.1rem;
}




/* ========================
   Newsletter Page Layout (Content Only)
======================== */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.page-header {
  color: #2b1b14; /* dark cocoa for readability */
  padding: 120px 20px 40px; /* increased top padding to clear fixed header */
}

.title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.title h1 {
  margin: 0;
  font-size: 20px;
  color: #5e3118; /* primary cocoa */
}

.subtitle {
  opacity: 0.9;
  font-size: 14px;
  color: #5e3118; /* slightly muted cocoa */
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.search {
  flex: 1;
  min-width: 220px;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d9c3b4; /* light cocoa border */
  background: #fff;
  color: #2b1b14;
}

main.wrap {
  padding: 28px 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width:900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff8f5; /* very light cocoa */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(94, 49, 24, 0.08); /* cocoa shadow */
  display: flex;
  flex-direction: column;
}

.thumb {
  height: 140px;
  background: linear-gradient(180deg, #f3e5dc, #fff); /* light cocoa gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #5e3118;
}

.card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #7b5b49; /* medium cocoa */
}

.card h3 {
  margin: 2px 0 0;
  font-size: 15px;
  color: #5e3118;
}

.desc {
  font-size: 13px;
  color: #4a2a17; /* darker cocoa */
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

/* === Button Colors === */
.btn.download {
  background: #5e3118; /* primary cocoa */
  color: #fff;
}

.btn.download:hover {
  background: #3a1c0e; /* dark cocoa */
}

.btn.view {
  background: #f5ebe2; /* light cocoa */
  color: #5e3118;
  border: 1px solid #d9c3b4;
}

.btn.view:hover {
  background: #e5d3c4; /* slightly darker */
}

/* === Pagination === */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 28px 0;
}

.page-btn {
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d9c3b4;
  cursor: pointer;
  color: #5e3118;
  font-weight: 500;
}

.page-btn:hover {
  background: #f3e5dc;
}

/* === Modal === */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(94, 49, 24, 0.3); /* cocoa overlay */
  z-index: 999;
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 900px;
  height: 80vh;
  background: #fff8f5; /* light cocoa panel */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e5d3c4;
  color: #5e3118;
  background: #f3e5dc; /* light cocoa */
  font-weight: 600;
}

.iframe-wrap {
  flex: 1;
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* === Responsive Improvements === */
@media (max-width: 768px) {
  .controls {
    flex-direction: column;
  }

  .page-header {
    padding: 100px 15px 30px;
  }

  .card-body {
    padding: 12px;
  }
}



/* ========================
   Footer
======================== */
.site-footer {
  background: var(--brand-primary-dark);
  color: #E6D8CF;
  padding: 60px 20px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 50px;
}


.footer-left,
.footer-right {
  flex: 1;
  min-width: 220px;
}



.footer-logo {
  width: 80px;
  margin-bottom: 15px;
}

.footer-links h4,
.footer-right h4 {
  color: var(--brand-accent);
  margin-bottom: 15px;
}

.footer-links ul,
.footer-right ul {
  list-style: none;
}

.footer-links ul li,
.footer-right ul li {
  margin-bottom: 12px;
}

.footer-links ul li a,
.footer-right ul li a {
  color: #E6D8CF;
  transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-right ul li a:hover {
  color: #fff;
}

.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.footer-links > div {
  min-width: 160px;
}


.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #fff;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.15);
}

/* ========================
   Header Shrink Effect
======================== */
.site-header.shrink {
  padding: 0.5rem 0;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(94,48,24,0.12);
}

.site-header.shrink .logo-img {
  height: 45px;
}

.site-header.shrink .logo-text {
  font-size: 1.1rem;
}

/* ========================
   Responsive
======================== */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    display: none;
    background-color: #fff;
    padding: 1rem;
    border-top: 1px solid #eee;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-social {
    flex-direction: row;
    bottom: 20px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}


