/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Questrial', sans-serif, 'Open Sans', 'Helvetica Neue', Arial;
  color: #032d62;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Header with Banner */
header {
  background: url('images/Banner.png') no-repeat center center/cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #032d62;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 300;
}

/* Navigation */
nav {
  background: #032d62;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  position: relative;
}

.logo-container {
  display: none;
}

.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

nav li {
  margin: 0;
  position: relative;
}

nav a {
  display: block;
  padding: 20px 18px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover,
nav a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown > a::after {
  content: ' ▾';
  font-size: 0.8em;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #032d62;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover > .dropdown-content,
.dropdown-content.show {
  display: block;
}

.dropdown-content li {
  margin: 0;
}

.dropdown-content li a {
  padding: 14px 20px;
  font-size: 0.9em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content li:last-child a {
  border-bottom: none;
}

.dropdown-content li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  padding-left: 24px;
  transition: padding-left 0.2s ease;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Content */
.content {
  padding: 60px 20px 24px;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 60vh;
}

.content h2 {
  color: #032d62;
  font-size: 2em;
  margin-bottom: 20px;
  font-weight: 400;
  border-bottom: 2px solid #032d62;
  padding-bottom: 10px;
}

.home-logo {
  display: block;
  width: min(320px, 70%);
  height: auto;
  margin: 8px auto 0;
}

.content h2.home-welcome {
  text-align: center;
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.svef-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 10px;
}

.svef-row p {
  flex: 1;
  margin-bottom: 0;
}

.svef-row-text {
  flex: 1;
  min-width: 0;
}

.svef-row-text p {
  margin-bottom: 15px;
}

.svef-row-text p:last-child {
  margin-bottom: 0;
}

.svef-logo {
  display: block;
  width: 140px;
  height: auto;
  flex-shrink: 0;
}

.svef-logo-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

#section-home .svef-row {
  align-items: center;
  gap: 40px;
}

#section-home .svef-logo-link {
  align-self: center;
  width: min(220px, 28%);
}

#section-home .svef-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.content h3 {
  color: #032d62;
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 400;
}

.content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.8;
}

.content strong {
  color: #032d62;
  font-weight: 600;
}

/* Photo/Text Content Rows */
.content-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.content-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.content-text {
  flex: 1;
  min-width: 300px;
}

.content-text h3 {
  color: #032d62;
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 400;
}

.content-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.8;
}

/* Contact Section */
.contact-info {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #032d62;
}

.contact-social-link {
  color: #032d62;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-social-link:hover {
  opacity: 0.75;
}

.contact-form-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form-container h3 {
  color: #032d62;
  font-size: 1.5em;
  margin-bottom: 25px;
  font-weight: 400;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #032d62;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 1em;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-family: 'Questrial', sans-serif;
  font-size: 1em;
  color: #032d62;
  background-color: #ffffff;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #032d62;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 14px 30px;
  background-color: #032d62;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
  font-family: 'Questrial', sans-serif;
}

.submit-btn:hover {
  background-color: #011f42;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background-color: #6b7c93;
  cursor: not-allowed;
  transform: none;
}

.submit-btn:disabled:hover {
  background-color: #6b7c93;
  transform: none;
}

/* Form Messages */
.form-message {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 1em;
  line-height: 1.5;
  font-weight: 500;
}

.form-message-success {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.form-message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

/* Sections */
.hidden {
  display: none;
}

/* Instagram feed */
.instagram-feed {
  padding: 0 20px 8px;
}

.instagram-feed-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #032d62 0%, #011f42 100%);
  color: #ffffff;
  padding: 50px 20px 30px;
  margin-top: 16px;
}

.footer-title {
  text-align: center;
  font-size: 1.8em;
  font-weight: 400;
  margin: 0 0 40px 0;
  color: #ffffff;
  font-family: serif;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  justify-self: start;
  align-items: flex-start;
}

.footer-logo-img {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.footer-contact {
  gap: 25px;
  align-items: flex-start;
  justify-self: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: currentColor;
}

.contact-label {
  margin: 0 0 5px 0;
  font-size: 0.95em;
  color: #ffffff;
  font-weight: 500;
}

.contact-value {
  margin: 0;
  font-size: 1em;
  color: #ffffff;
}

.footer-social {
  justify-self: end;
  align-items: center;
}

.social-icons-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.social-icon-link:hover {
  opacity: 0.8;
}

.social-icon-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-handles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.social-handles p {
  margin: 0;
  font-size: 0.95em;
  color: #ffffff;
}

.social-label {
  font-weight: 500;
}

.social-handle-link {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.social-handle-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  margin: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  header {
    background-image: url('images/Banner2.png');
    background-position: center center;
    background-size: cover;
  }
}

@media (max-width: 768px) {
  header {
    height: 200px;
  }

  header h1 {
    font-size: 1.8em;
  }

  .nav-container {
    padding: 0 15px;
    justify-content: flex-end;
    min-height: 60px;
  }

  .logo {
    height: 50px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #032d62;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  .nav-menu.active {
    max-height: 600px;
    padding: 10px 0;
  }

  nav li {
    width: 100%;
  }

  nav a {
    padding: 15px 20px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-content {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: 0;
  }

  .dropdown:hover > .dropdown-content,
  .dropdown-content.show {
    display: block;
  }

  .dropdown > a::after {
    content: ' ▾';
    float: right;
  }

  .content {
    padding: 40px 15px;
  }

  .content h2 {
    font-size: 1.6em;
  }

  .content h3 {
    font-size: 1.3em;
  }

  .content p {
    font-size: 1em;
  }

  .content-row {
    flex-direction: column;
    gap: 25px;
    margin: 35px 0;
  }

  .content-row.reverse {
    flex-direction: column;
  }

  .content-image {
    min-width: 100%;
    max-width: 100%;
  }

  .content-text {
    min-width: 100%;
  }

  .content-text h3 {
    font-size: 1.2em;
  }

  .contact-form-container {
    max-width: 100%;
  }

  .contact-form {
    gap: 18px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .submit-btn {
    width: 100%;
    padding: 12px 25px;
  }

  .svef-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .svef-logo {
    width: 120px;
    align-self: center;
  }

  .svef-logo-link {
    align-self: center;
  }

  #section-home .svef-logo {
    width: 100%;
    height: auto;
    align-self: center;
  }

  #section-home .svef-logo-link {
    align-self: center;
    width: min(180px, 50%);
  }

  .footer-title {
    font-size: 1.5em;
    margin-bottom: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-contact,
  .footer-logo,
  .footer-social {
    grid-column: 1;
    justify-self: center;
    align-items: center;
  }

  .social-icons-row {
    justify-content: center;
    margin-bottom: 15px;
  }

  .social-handles {
    align-items: center;
    text-align: center;
  }

  footer {
    padding: 40px 15px 20px;
  }
}

@media (max-width: 480px) {
  header {
    height: 150px;
  }

  header h1 {
    font-size: 1.5em;
  }

  .logo {
    height: 40px;
  }

  .content {
    padding: 30px 10px;
  }

  .content h2 {
    font-size: 1.4em;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
