/* Typography, layout, base resets */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-VariableFont_wght.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf');
  font-display: swap;
}

:root{
  --accent: #ba9d90;
  --light: #ebddd7;
  --dark-accent: #ae9287;
  --dark-accent-2: #916f6c;
  --dark: #645045;
  --darker: #2f2420;
  --bold: #d1ab92;
  --primary: #dcc9bb;
  --background: #e9e1d6;
  --light-background: #f6eee1;
  --faint-background: #f8f8f8;
  --secondary: #d6c3b6;
  --dark-secondary: #ccb9ac;
  --tertiary: #e7d3c3;
  --light-gray: #444;
  --gray: #333;
  --dark-gray: #222;
}

body {
  font-family: 'Montserrat' 'Lato', sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
}

/* Navigation Bar */
header {
  background: var(--background);
  color: var(--gray);
  padding: 1rem 2rem;
  position: sticky;
  top:0;
  z-index: 1000;
  height:6rem;
}

.logo-image{
  height: 4rem;
  width: auto;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 1.2rem;
}

.nav-links .main-link{
  border-bottom: 2px solid transparent;
}

@media (min-width: 769px) {
  .nav-links .main-link:hover {
    border-bottom:2px solid var(--gray);
  }
}

/* Buttons */
.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #0073e6;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* Footer */
footer {
  background: #222;
  color: #f1f1f1;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10rem;
}

footer h2{
  font-size: 1.75rem;
}

.footer-left{
  text-align: center;
  display: flex;
  flex-direction: column;
  font-family:'Times New Roman';
  gap: 1rem;
}

.footer-logo-row{
  display:flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.social-icons a {
  font-size: 2rem;
  color: var(--primary); /* or use specific brand colors */
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.15);
  color: var(--accent); /* optional hover color */
}

.footer-legal {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 0;
}

.footer-legal a {
  color: white;
  text-decoration: none;
}

.SREG-logo {
  height: 5.5rem;
}

.kw-logo {
  height: 3rem;
}



.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: -70%;
  background: var(--light-background);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 1000;
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

.dropdown-menu li {
  padding: 0.5rem 1rem;
}

.dropdown-menu a {
  color: var(--gray);
  text-decoration: none;
  display: block;
  font-size: 1rem;
  padding: 0.5rem;
}

.dropdown-menu a:hover {
  background-color: var(--tertiary);
  color: var(--dark);
}

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






@media (min-width: 768px){
  .menu-toggle{
    display: none;
  }
}

/* Mobile-First Enhancements */
@media (max-width: 768px) {
  /* NAVIGATION */

  .header {
    height: 4rem;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .logo {
    width: auto;
    display: flex;
    flex: 1;
    align-items: center;
  }

  .nav-links {
    flex-direction: column;
    width: 30%; /* Or try 70%, or set a max-width in px */
    max-width: 300px;
    max-height: 0;
    overflow: hidden;
    background-color: var(--background);
    padding: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease, visibility 0.3s ease;
    position: absolute;
    top: 6rem; /* to sit right under your sticky header */
    right: 1rem; /* aligns it to the right */
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top:none;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
    width: 3rem;
  }

  .nav-links.show {
    max-height: 500px; /* adjust if needed */
    padding: 1rem 0;
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    text-align: right;
    margin-bottom: -0.5rem; /* space between each item */
  }
  /* Remove bottom margin on last item */
  .nav-links li:last-child {
    margin-bottom: 0;
  }

  .menu-toggle {
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--gray);
    padding: 0.5rem 1rem;
  }

  .dropdown-menu li {
    padding: 0.8rem;
    width: 6rem;
  }

  .dropdown-menu a {
    padding: 0rem;
    width: 6rem;
    font-size: 1rem;
    border: none;
  }

  .dropdown-menu {
    position: static;
    display: none;
    flex-direction: column;
    background-color: var(--primary);
    box-shadow: none;
    padding: 0;
  }

  .dropdown-menu.show {
    display: flex;
  }


  /* FOOTER */

  footer {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    width: 100%;
    align-items: center;
    padding: 0 1rem;
  }

  .footer-logo-row {
    flex-wrap: wrap;
  }

  .footer-right iframe {
    width: 100%;
    height: 300px;
    max-width: 95%;
  }

  .social-icons {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-legal {
    text-align: center;
    font-size: 0.9rem;
  }
}
