body {
  margin: 0;
  font-family: 'Georgia', serif;
  background: #F7F3E7 url('https://www.transparenttextures.com/patterns/linen.png');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
}

header, footer {
  padding: 20px 40px;
  background: linear-gradient(to right, #F7F3E7, #d1c29f), url('pictures/cream-paper.png');
  background-color: #EAE1C5;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo-header {
  font-family: 'Dancing Script';
  font-size: 3.5rem;
  font-weight: bold;
  color: #2c2c2c;
  line-height: 1;
  margin-bottom: 20px;
  margin-top: 7px;
  text-align: left;
  text-decoration: none;
  display: inline-block; /* ensures margin works inside nav/header */
  margin-bottom: 10px;    /* adjust the value as needed */
}

a.logo-header {
  text-decoration: none;
  color: inherit;
}

.logo-header span {
  display: block;
  font-size: 2.4rem;
  transform: scaleX(1.2);
  display: inline-block;
  margin-left: 15px;
}

nav {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #2c2c2c;
  font-weight: bold;
  font-family: 'Helvetica Neue', sans-serif;
  transition: color 0.3s ease;
 padding: 0px 1px; /* horizontal + vertical padding */
}

nav a:hover {
  color: #d1c29f;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Main dropdown label – make it behave like nav a */
.dropbtn {
  all: unset; /* resets button behavior */
  cursor: pointer;
  font-weight: bold;
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0 15px;
  transition: color 0.3s ease;
  color: #2c2c2c;
}

/* Hover behavior to match other nav links */
.dropdown:hover .dropbtn {
  color: #d1c29f;
}

.custom-link {
  text-decoration: underline;
  color: inherit; /* keeps the current font color */
  font-family: inherit; /* keeps the current font */
  border-bottom: 1px solid;
}

.custom-link:hover {
  text-decoration: underline;
  color: inherit;
  border-bottom: 1px solid;
}

/* Dropdown content styling */
.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 0px); /* moves dropdown 5px below the trigger */
  background-color: #d1c29f; /* Your desired color */
  min-width: 160px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 999;
  padding: 5px 0;
}

/* Links inside dropdown */
.dropdown-content a {
  color: #000;
  padding: 8px 8px;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', sans-serif;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  color: #fff; /* or any other hover color you prefer */
  background-color: transparent; /* keeps background the same */
}

/* Reveal dropdown */
.dropdown:hover .dropdown-content {
  display: block;
}

.hero-wrapper {
    position: relative;
    width: calc(100% - 80px);
    height: 500px;
    margin: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-text {
  padding: 40px 40px 20px 40px;
  margin: 0 auto 60px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* stronger than default */
}

.hero-text h1 {
  font-size: clamp(1.2rem, 1.8vw, 2.2rem);
  font-family: 'Georgia', serif;
  color: #2c2c2c;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 10px;
}

.hero-text h3 {
  font-size: clamp(1.1rem, 1.25vw, 1.5rem);
  font-family: 'Georgia', serif;
  color: #2c2c2c;
  text-align: left;
  margin-bottom: 0px;
}

.hero-text p {
  font-size: 1.1rem;
  font-family: 'Georgia', serif;
  color: #2c2c2c;
  line-height: 1.6;
  text-align: left;
}

 main h1 {
  font-size: clamp(1.5rem, 2.2vw, 2.3rem); /* Responsive size */
  font-family: 'Georgia', serif;
  color: #2c2c2c;
  margin-top: 0;
  margin-bottom: 30px;
  text-align: left;
  text-transform: uppercase;
}

main {
  padding: 40px 60px ;
  align-items: stretch;
  background-color: transparent;
  padding-top: 40px;
  margin-top: 0px;
}

.main-no-hero {
  padding: 60px 40px;
  margin-top: 0;
}

.home-main {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.card-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;            /* Center horizontally */
  gap: min(3vw, 30px);                /* Responsive minimum gap */
  z-index: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 20px;                    /* Keeps margin from sides */
}

.card-link a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
  transition: transform 0.3s ease, background-color 0.3s ease;
  
  /* Responsive sizing with limits */
width: 18vw;
aspect-ratio: 1 / 1;
  min-width: 100px;
  min-height: 100px;
  max-width: 250px;
  max-height: 250px;
  flex-grow: 1;
  flex-shrink: 1;
  padding: 1.5vw;  /* Scales with screen */
}


.card-link a section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}


.card-link a:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.5); /* 50% on hover */
}


section {
  background: transparent;
  padding: 30px;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #2c2c2c;

}

.card-link a h2 {
  font-size: clamp(0.8rem, 1.8vw, 1.5rem);
  text-align: center;
  margin: 0.5em 0 0 0;
  color: #2c2c2c;
  text-transform: uppercase;
}


.card-icon {
  width: 50%;
  height: auto;
  max-height: 50%;
  object-fit: contain;
  margin: 0 auto 10px auto;
  align-self: center;
  background: transparent;
  display: block;
}


.icon-inline {
  width: 35px;
  height: 35px;
  vertical-align: none;
  margin-right: 10px;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 30px;
  padding-bottom: 45px; /* adjust if cookie bar is taller */

}

.floating-cta {
  position: fixed;
  bottom: 50px;
  right: 20px;
  background-color: #2c2c2c;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}

.floating-cta:hover {
  background-color: #8a6f4d;
}

.project-thumb {
  width: auto;
  height: 135px;
  object-fit: cover;
  margin: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-thumb:hover {
  transform: scale(1.05);
}

.project {
  margin-bottom: 60px;
}

.project h2 {
  font-size: clamp(1.2rem, 1.4vw, 1.7rem);
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #2c2c2c;
  font-family: 'Georgia', serif;
}


.credit-label {
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #2c2c2c;
}

.project p {
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  color: #2c2c2c;
}

.contact-section form {
  margin: 0;
  text-align: left;
  width: 600px
}

form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  box-sizing: border-box;
}

form button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #d1c29f;
  color: #000;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

form button:hover {
  background-color: #bfa676; /* darker version of #d1c29f for hover */
  color: white;
}

.portfolio-button-wrapper {
  text-align: center;
  margin-top: 30px;
}

.portfolio-button-wrapper p {
  font-size: 1.1rem;
  font-family: 'Helvetica Neue', sans-serif;
  color: #2c2c2c;
}

.portfolio-button {
  padding: 4px 7px;
  background-color: #d1c29f;
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Helvetica Neue', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-left: 10px;
}

.portfolio-button:hover {
  background-color: #bfa676;
  color: white;
}

/* Styling for Serivces and Privacy pages */
.spacing-fix h3 {
  margin-bottom: 4px;
}

.spacing-fix p {
  margin-top: 4px;
}


#back-to-top {
  position: fixed;
  bottom: 100px;
  left: 40%;
  transform: translateX(-50%);
  z-index: 100;
  background-color: #d1c29f;
  color: #fff;
  padding: 10px 18px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  font-size: 24px;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#back-to-top:hover {
  background-color: #555;
}



@media (max-width: 768px) {
  /* Navigation layout */
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    margin: 10px 0;
  }

nav a, .dropbtn {
  display: block;
  margin: 6px 0;
  padding: 2px 0;
  line-height: 1.4;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  color: #2c2c2c;
  text-align: left;
}

.dropdown-content a:hover {
  color: #fff; /* or any other hover color you prefer */
  background-color: transparent; /* keeps background the same */
}

  .dropdown {
    position: relative;
    display: block;
    width: 100%;
  }

  .dropdown-content {
    position: absolute;
    background-color: #d1c29f;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 0;
    white-space: nowrap;
    margin-left: 0;
    padding: 0;
    top: 100%;
    left: calc(5% + 20px); /* shifts it 10px to the right of "Projects" */
  }

  .dropdown-content a {
    font-family: 'Helvetica Neue', sans-serif;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #000;
 }

  .dropdown:hover .dropdown-content {
    display: block;

  }

.card-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  width: 90%;
  max-width: 400px;          /* Optional: keeps grid from stretching */
  padding: 0;
  z-index: 2;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

  .card-link a {
    width: 35vw;
    height: 35vw;
    max-width: 200px;
    max-height: 200px;
    min-width: 120px;
    min-height: 120px;
    transition: all 0.3s ease;
    padding: 2vw;
  }

  .card-link a:hover {
    background-color: rgba(255, 255, 255, 0.5);
  }

  .card-icon {
    width: 60%;
    height: auto;
  }

  .card-link a h2 {
 font-size: clamp(0.8rem, 3vw, 1.0rem);
  text-align: center;
  }

  .project h2 {
    font-size: clamp(1.2rem, 3vw, 1.3rem); /* Smaller title for small screens */
  }
  .contact-section form {
    width: 90%;           /* Allow it to fill most of the width */
    max-width: none;      /* Remove fixed width */
    margin: 0 auto;       /* Center it */
  }

  .floating-cta {
    font-size: 13px;
    padding: 8px 12px;
  }

}
