/* ========================
   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;
}

/* ========================
   RESET & BASE
======================== */
* {
  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
======================== */
.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;
  position: relative;
}

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

.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);
  position: relative;
  transition: color 0.3s ease;
}

/* underline effect */
.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 MENU
======================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.3s ease;
  margin-left: auto;
}

.nav-toggle:hover {
  background: rgba(0,0,0,0.05);
}

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

/* animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ========================
   HERO SECTION
======================== */
.hero {
  position: relative;
  height: 750px;
  overflow: hidden;
  margin-top: 80px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
  opacity: 1;
}

/* arrows */
.arrow-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 20;
}

.arrow {
  background: rgba(94, 48, 24, 0.75);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  cursor: pointer;
}

/* social */
.hero-social {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ========================
   NEWS HEADER
======================== */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
}

.news-header h2 {
  font-size: 1.8rem;
  color: var(--brand-primary-dark);
}

.news-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.view-all {
  color: var(--brand-primary);
  font-weight: 600;
}

/* ========================
   NEWS GRID
======================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* ========================
   CARD DESIGN
======================== */
.news-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

/* ========================
   IMAGE FIX (IMPORTANT)
======================== */
.news-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* FIXES CUTTING ISSUE */
  object-position: center;
  transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

/* TAG */
.news-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-accent);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 20px;
}

/* ========================
   BODY
======================== */
.news-body {
  padding: 15px 18px 20px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--brand-primary-dark);
  line-height: 1.4;
}

.news-body p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

/* READ MORE */
.read-more {
  font-weight: 600;
  color: var(--brand-primary);
  font-size: 0.9rem;
}

/* ========================
   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
======================== */
.site-header.shrink {
  padding: 0.5rem 0;
}

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

/* ========================
   MOBILE RESPONSIVE
======================== */
@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }

  .nav-menu {
    flex-direction: column;
    display: none;
    background: #fff;
    padding: 1rem;
    border-top: 1px solid #eee;
  }

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

  .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;
  }
}