@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond&display=swap');

/* Reserve scrollbar space to prevent horizontal layout shift between pages */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

body,
ul,
li,
h1,
h2,
a {
  margin: 0;
  padding: 0;
  font-family: 'Cormorant Garamond', serif;
}

p {
  font-size: 19px;
}

header {
  background-color: #AD9B86;
  padding: 24px 30px;
  text-align: left;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.banner {
  position: relative;
}

.banner img {
  max-width: 100%
}

.banner .aboutUs {
  color: #675347;
  font-size: 60px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

nav {
  position: initial;
  top: 50px;
  z-index: 1;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  white-space: nowrap;
  max-width: 1300px;
  margin: 0px auto;
}

nav li {
  display: block;
  font-size: 30px;
  font-weight: normal; /* match Home page to avoid width shift */
}

/* Push logo to the far left */
nav li:first-child {
  margin-right: auto;
}

/* Flex-based alignment; remove hard offsets */
nav li a.aboutUs,
nav li a.home,
nav li a.blog,
nav li a.logo {
  position: static;
  color: #675347;
}

nav li a {
  text-decoration: none;
  color: #675347;
}

nav li a:hover {
  text-decoration: underline;
}

nav li a.logo:hover {
  text-decoration: none;
}

/* Active link for About Us page */
nav li a.aboutUs {
  text-decoration: underline;
}

/* Team member name links */
.team .team_member h3 a { color: #492D18; text-decoration: none; }
.team .team_member h3 a:visited { color: #492D18; }
.team .team_member h3 a:hover,
.team .team_member h3 a:focus,
.team .team_member h3 a:active { color: #492D18; text-decoration: underline; }


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

body{
  background: #E5DBCD;
  font-family: 'Cormorant Garamond', serif;
}

.wrapper{
  margin-top: 4%;
}

.wrapper h1{
  font-family: 'Cormorant Garamond', serif;
  font-size: 50px;
  color: #675347;
  margin-bottom: 85px;
  text-align: center;
}

.team{
  display: flex;
  justify-content: center;
  width: auto;
  flex-wrap: wrap;
  text-align: justify;
  text-justify: inter-word;
}

.team .team_member{
  background: #F9F4EC;
  margin: 25px;
  margin-bottom: 50px;
  width: 490px;
  padding: 20px;
  line-height: 25px;
  color: #795f4b;  
  position: relative;
}

.team .team_member h3{
  color: #492D18;
  font-size: 26px;
  margin-top: 50px;
  text-align: center;
}

.team .team_member p.role{
  color: #492D18;
  margin: 12px 0;
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
}

.team .team_member .team_img{
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #E5DBCD;
}

.team .team_member .team_img img{
  width: 100px;
  height: 100px;
  padding: 0;
}

section.query {
  background: #F7F2E9;
  text-align: center;
  padding: 60px 20px;
  color: #4b4b4b;
}

section.query h2 {
  font-size: 36px;
}

.cta-container { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.cta-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  background: #E5DBCD;
  color: #675347;
  text-decoration: none;
  border: 1px solid #D2C6B9;
}
.cta-btn:hover, .cta-btn:focus { text-decoration: underline; color: #675347; }

form input {
  margin: 20px 0;
  padding: 10px 20px;
  font-size: 20px;
  border-radius: 28px;
  border: 4px solid white;
}

form input:focus {
  border: 4px dashed #4b4b4b;
  outline: none;
}

form input:valid {
  border: 4px solid #71d300;
}

footer {
  background: #AD9B86;
  color: #391F0F;
  padding: 13px;
  text-align: center;
}

footer p.copyright{
  font-size: 20px;
  padding: 14px;
}

/* responsive styles */

@media screen and (max-width: 1400px) {
  .banner .aboutUs {
    font-size: 40px;
}

@media screen and (max-width: 960px) {
  .banner .aboutUs {
    font-size: 35px;
  }
  nav li {
    font-size: 18px;
  }
}

@media screen and (max-width: 700px) {
  .banner .aboutUs {
    font-size: 30px;
    position: absolute;
    text-align: center;
  }
  nav li {
    font-size: 18px;
  }
  .wrapper h1{
    font-size: 32px;
  }
}

@media screen and (max-width: 560px) {
  nav ul { flex-direction: column; align-items: center; gap: 12px; }
  .banner .aboutUs {
    font-size: 25px;
    position: absolute;
    text-align: center;
  }
  nav li {
    display: block;
    width: 100%;
    margin: 12px 0;
  }
  .wrapper h1{
    font-size: 30px;
  }
  header,
  nav {
    position: relative;
    top: 0;
  }
}
}
