﻿/* assets/css/style.css */

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #2F3A33;
  background-color: #F5F7F4;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =========================
   CONTAINER
========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   HOME PAGE HERO
========================= */
.home-page {
  overflow-x: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.hero-bg {
  z-index: 0;
}

.hero-bg img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-bg img.active {
  opacity: 1;
}

.hero-overlay {
  background: rgba(30, 37, 33, 0.65);
  z-index: 1;
}

/* =========================
   TOP HEADER
========================= */
.home-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  backdrop-filter: blur(6px);
  z-index: 10;
}

.home-logo {
  font-size: 20px;
  font-weight: bold;
}

.home-email {
  font-size: 14px;
}

/* =========================
   HERO GRID
========================= */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100vh;
}

.grid-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  color: #fff;
  overflow: hidden;
  transition: all 0.4s ease;
}

.grid-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  transition: 0.4s;
}

.grid-item:hover::before {
  background: rgba(0,0,0,0.15);
}

.grid-content {
  position: relative;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.grid-item:hover .grid-content {
  transform: translateY(0);
  opacity: 1;
}

.grid-content h2 {
  font-size: 22px;
  letter-spacing: 1px;
}

.hero-grid:hover .grid-item {
  filter: brightness(0.6);
}

.hero-grid .grid-item:hover {
  filter: brightness(1);
  transform: scale(1.04);
  z-index: 3;
}

/* =========================
   INNER PAGE HEADER
========================= */
header {
  position: sticky;
  top: 0;
  background: #1E2521;
  color: #fff;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav ul li a {
  color: #fff;
  font-size: 14px;
  position: relative;
  padding-bottom: 3px;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #8FA78B;
  transition: 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a.active {
  color: #8FA78B;
}

.nav-cta {
  background: #D4A373;
  padding: 8px 14px;
  border-radius: 4px;
  color: #fff;
  transition: 0.3s;
}

.nav-cta:hover {
  background: #c8925f;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 35px;
  left: 0;
  background: #1E2521;
  display: none;
  flex-direction: column;
  min-width: 180px;
}

.dropdown-menu a {
  padding: 10px;
  border-bottom: 1px solid #333;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

/* =========================
   MOBILE MENU
========================= */
.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #1E2521;
}

.mobile-menu a {
  padding: 12px;
  border-bottom: 1px solid #333;
  color: #fff;
}

.mobile-menu.active {
  display: flex;
}

/* =========================
   MAIN CONTENT
========================= */
main {
  position: relative;
  z-index: 5;
  background: #F5F7F4;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 60px 0;
}

.section.alt {
  background: #ffffff;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  padding: 20px;
  border: 1px solid #eee;
  transition: 0.3s;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-color: #8FA78B;
}

.card img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* =========================
   FOOTER
========================= */
footer {
  position: relative;
  z-index: 5;
  background: #1E2521;
  color: #ccc;
  padding: 50px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

footer h4 {
  color: #fff;
  margin-bottom: 10px;
}

footer a {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

footer a:hover {
  color: #8FA78B;
}

.footer-bottom {
  margin-top: 30px;
  font-size: 12px;
  text-align: center;
}

/* =========================
   FADE-IN ANIMATION
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    height: auto;
  }

  nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}