/* theme.css – Design tokens, color palette, dark mode */

:root {
  /* Primary palette */
  --color-primary: #A7AA4A;   /* green (primary) */
  --color-primary-dark: #8A8A30; /* darker green */
  --color-accent: #0A74DA;   /* blue (accent) */
  --color-gray: #F5F7FA;      /* light background */
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-dark: #004A8F;      /* dark brand color */

  /* Typography */
  --font-family: 'Poppins', system-ui, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 600;
  --font-weight-bold: 700;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
}

/* Dark mode – follows system preference, can be overridden by user */
@media (prefers-color-scheme: dark) {
  :root {
    --color-gray: #1a1a1a;
    --color-white: #111111;
    --color-primary: #0A74DA; /* keep brand colour */
    --color-primary-dark: #004A8F;
    --color-accent: #A7AA4A;
  }
}

/* Manual toggle – class added to <html> */
html.dark-mode {
  --color-gray: #1a1a1a;
  --color-white: #111111;
}

/* Left‑menu styling */
/* Full‑width header background */
.header-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #a7aa4a;
  z-index: 999;
}

/* Header menu (desktop) */
.header-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #a7aa4a;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem; /* reduced side padding */
  margin: 0 auto; /* center header container */
  box-shadow: var(--shadow-sm);
  z-index: 1001;
}

.header-menu .logo-wrapper img {
  max-height: 50px;
}

/* Logo as list item styling */
.header-menu .logo-item {
  margin-right: 1rem;
  display: flex;
  align-items: center;
}
.header-menu .logo-item img {
  max-height: 50px;
  width: auto;
}

  .header-menu .logo-wrapper {
  margin-right: 0; /* removed extra margin */
}
   .header-menu .nav-links {
     position: absolute;
     left: 50%;
     transform: translateX(-50%);
     top: 0;
     height: 100%;
     display: flex;
     align-items: center;
     z-index: 2;
   }

.header-menu .nav-links ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header-menu .nav-links a {
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
  padding: 0.5rem 0.75rem;
  text-transform: uppercase;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition-fast);
}
.header-menu .nav-links a::after { display: none; }
.header-menu .nav-links a:hover::after,
.header-menu .nav-links a:focus::after {
  transform: scaleX(1);
}
.header-menu .nav-links a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.header-menu .nav-links a:hover,
.header-menu .nav-links a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}

/* Removed erroneous .header-menu .cta-wrapper .site-footer block – it applied footer styles to header CTA */
.header-menu .cta-wrapper {
  margin-left: 0; /* removed extra margin */
  display: flex;
  align-items: center;
}
/* Ensure CTA button inherits primary button styles */
.header-menu .cta-wrapper .btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-bold);
}
.header-menu .cta-wrapper .btn-primary:hover {
  background: var(--color-primary-dark);
}

.header-menu .cta-wrapper .btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-bold);
}

.header-menu .cta-wrapper .btn-primary:hover {
  background: var(--color-primary-dark);
}

/* Footer link styling */
.site-footer a {
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition-fast);
}
.site-footer a:hover,
.site-footer a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Hide left‑menu (no longer used) */
.left-menu { display: none; }

.left-menu .logo-wrapper img {
  max-width: 180px;
}

.left-menu .nav-links ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem;
}

.left-menu .nav-links a {
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.left-menu .nav-links a:hover,
.left-menu .nav-links a:focus {
  background: rgba(255,255,255,0.1);
}

.left-menu .cta-wrapper .btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-bold);
  transition: var(--transition-fast);
}

.left-menu .cta-wrapper .btn-primary:hover {
  background: var(--color-primary-dark);
}

/* Additional menu enhancements */
.header-menu {
  /* Slight darker shade on scroll */
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
/* Active link styling */
.header-menu .nav-links a.active {
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
}
/* Ensure smooth hover background */
.header-menu .nav-links a:hover,
.header-menu .nav-links a:focus {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}
/* Mobile hamburger animation */
.mobile-header .hamburger span {
  transition: transform var(--transition-fast);
}
.mobile-header .hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-header .hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-header .hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* Mobile navigation slide down */
.mobile-nav {
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.mobile-nav[hidden] {
  display: none;
}
.mobile-nav:not([hidden]) {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1023px) {
  .left-menu { display: none; }
  .mobile-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: var(--color-primary); color: var(--color-white); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
  .mobile-header .hamburger { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
  .mobile-header .hamburger span { display: block; width: 24px; height: 2px; background: var(--color-white); }
  .mobile-nav { background: var(--color-white); position: absolute; top: 100%; left: 0; width: 100%; box-shadow: var(--shadow-md); }
  .mobile-nav ul { list-style: none; padding: 1rem; }
  .mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-dark);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    transition: var(--transition-fast);
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background: var(--color-accent);
    color: var(--color-white);
  }
  .mobile-nav .mobile-cta { background: var(--color-primary); color: var(--color-white); text-align: center; margin-top: 0.5rem; border-radius: var(--radius-md); }
}

/* Hero section styling to show full-width images without cropping */
.hero {
  width: 100%;
  max-width: none;
  height: 525px; /* Fixed banner height */
  overflow: hidden;
  background: var(--color-gray);
  position: relative; /* for overlay and slides */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel {
  position: relative;
  width: 100vw; /* full viewport width */
  max-width: none;
  height: 100%;
  overflow: hidden;
}

.hero .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 25s infinite;
}

/* Stagger animation for each slide */
.hero .slide:nth-child(1) { animation-delay: 0s; }
.hero .slide:nth-child(2) { animation-delay: 5s; }
.hero .slide:nth-child(3) { animation-delay: 10s; }
.hero .slide:nth-child(4) { animation-delay: 15s; }
.hero .slide:nth-child(5) { animation-delay: 20s; }

@keyframes heroFade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  20% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}









/* Content wrapper and container for premium sections */
.content-wrapper{
    width:100%;
    display:flex;
    justify-content:center;
}
.content-container{
    width:100%;
    max-width:800px;
    margin:0 auto;
    padding:80px 20px;
}
html { scroll-behavior: smooth; }
section { scroll-margin-top: 90px; }
.card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  will-change: transform, box-shadow;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform var(--transition-fast);
}

.card-img:hover {
  transform: scale(1.02);
}
