/* Reset and base */
* {
box-sizing: border-box;
margin: 0;
}

body {
font-family: 'Georgia', serif;
background: #fdf6e3;
color: #333;
line-height: 1.6;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
}

/* Header */
header {
  background-color: #fdf6e3;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  position: sticky;     
  top: 0;               
  z-index: 999;         
  transition: padding 0.3s ease; /* smooth shrink */
}

.logo img {
  height: 120px;        
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease; /* smooth shrink */
}

/* Shrink class applied on scroll */
header.shrink {
  padding: 0.5rem 2rem; /* smaller header padding */
}

header.shrink .logo img {
  height: 70px; /* smaller logo */
}


.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.navbar li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 6px 0;
}

.navbar li a:hover {
  border-bottom: 2px solid #ffc43d;
  color: #316943;
}
/* Main content container */
.contact-page {
flex-grow: 1;
max-width: 700px;
margin: 3rem auto 2rem;
padding: 0 1rem;
}

/* Intro text */
.contact-intro {
text-align: center;
margin-bottom: 2rem;
}

.contact-intro h2 {
font-size: 2.5rem;
color: #316943;
margin-bottom: 0.5rem;
}

.contact-intro p {
font-size: 1.1rem;
color: #555;
}

/* Contact form section */
.contact-form-section {
background: #fffbe9;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(49, 105, 67, 0.15);
margin-bottom: 2.5rem;
}

.contact-form .form-group {
margin-bottom: 1.5rem;
}

.contact-form label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #316943;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
width: 100%;
padding: 0.8rem;
font-family: 'Georgia', serif;
font-size: 1rem;
border: 1.5px solid #ccc;
border-radius: 8px;
resize: vertical;
transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
border-color: #ffc43d;
outline: none;
}

/* Submit button */
.contact-form .btn {
background-color: #ffc43d;
color: #333;
font-weight: bold;
padding: 0.9rem 1.6rem;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 1.1rem;
transition: background-color 0.3s ease;
display: block;
margin: 0 auto;
width: 180px;
}

.contact-form .btn:hover {
background-color: #e0af2f;
}

/* Contact details */
.contact-details {
text-align: center;
max-width: 500px;
margin: 0 auto 3rem;
color: #333;
}

.contact-details h3 {
font-size: 1.8rem;
color: #316943;
margin-bottom: 1rem;
}

.contact-details p {
margin: 0.6rem 0;
font-size: 1rem;
}

.contact-details a {
color: #316943;
text-decoration: none;
font-weight: 600;
transition: color 0.3s ease;
}

.contact-details a:hover {
color: #ffc43d;
}

/* Footer */
footer {
  background: linear-gradient(to right, #316943, #ffc43d);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-content p {
  margin: 0.4rem 0;
}

.footer-content a {
  color: #ffc43d;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-content img {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 6px;
}


/* Desktop layout adjustment */
@media (min-width: 768px) {
.hero {
    flex-direction: row;
    text-align: left;
}

.nav-container {
    flex-wrap: nowrap;
    align-items: flex-start;
}

.navbar {
    justify-content: flex-end;
}
}