/* ==================================================
   LAYOUT CSS
   Purpose:
   - Structural layout: header, nav, footer, sections
   - Grids & containers
   - Page wrappers
   - Hero sections
   ================================================== */

/* ================= CONTAINERS ================= */
section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

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

.page-hero {
  width: 100%;
  height: 360px;
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Header & Nav */
header {
  background: var(--primary);
  color: var(--white);
  padding: 15px 20px;
}

nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

nav img {
  height: 70px;
  border-radius: 35px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: 0.3s;
}

nav ul li a:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* Active Nav Item */
nav ul li a.active {
  background: var(--accent);
  color: var(--secondary);
}


/* Hero Section */
.hero {
  background: linear-gradient(rgba(40,44,133,.85), rgba(40,44,133,.85)),
              url("../images/hero.jpg") center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 40px;
  color: var(--white);
}

.hero p {
  font-size: 20px;
}
.tagline {
  color: #ffffff;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  padding: 12px 25px;
  margin-top: 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}
.features {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* ================= GRID SYSTEMS ================= */

/* 2-column grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}

/* 3-column grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* ================= CARD LAYOUT ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.card h3,
.card h4 {
  color: var(--primary);
}

.image-box {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 15px;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= HIGHLIGHTS ================= */
.highlights {
  padding: 50px 20px;
  background: #f9f9f9;
}

.highlights .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

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

/* ================= CTA ================= */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--radius-lg);
  margin: 50px auto;
  max-width: 900px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  opacity: 0.9;
}

.cta .btn {
  background-color: var(--accent)
}

/* ================= FOOTER ================= */

.site-footer {
  background: var(--secondary);
  color: #ffffff;
  padding: 70px 20px 30px;
  font-size: 14px;
}

/* ================= LAYOUT ================= */

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 45px;
  text-align: center;
}

/* ================= COLUMNS ================= */

.footer-col {
  animation: footerFadeUp 0.8s ease forwards;
}

/* Headings */
.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

/* Paragraphs */
.footer-col p {
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 10px;
  opacity: 0.9;
}

/* ================= BRAND ================= */

.footer-brand img {
  max-height: 70px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.footer-brand img:hover {
  transform: scale(1.08);
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  display: block;
  margin: 0 auto 15px;
}


/* ================= QUICK LINKS ================= */

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

/* Arrow animation */
.footer-links a::before {
  content: "›";
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 10px;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

/* ================= CONTACT LINKS ================= */

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--accent);
}

/* ================= SOCIAL ICONS ================= */

.social-icons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--accent);
  color: var(--secondary);
  transform: translateY(-4px) scale(1.1);
}

/* ================= NEWSLETTER ================= */

.footer-newsletter form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-newsletter input {
  width: 100%;
  max-width: 260px;
  padding: 12px 16px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 14px;
}

.footer-newsletter button {
  background: var(--accent);
  color: var(--secondary);
  border: none;
  padding: 12px 26px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-newsletter button:hover {
  background: #ffffff;
  color: var(--secondary);
  transform: translateY(-3px);
}

/* ================= FOOTER BOTTOM ================= */

.footer-bottom {
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.footer-bottom p {
  color: #ffffff;
  font-size: 13px;
  opacity: 0.85;
}

/* ================= ANIMATION ================= */

@keyframes footerFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .footer-content {
    gap: 35px;
  }
}

