/* Root Colors */
:root {
    --green-primary: #2f4f3e;
    --cream-bg: #f6f4ef;
    --blush-accent: #e6bfb9;
    --golden-accent: #c9b28a;
    --sage-support: #8fae9e;
    --charcoal-text: #3a3a38;
    --light-brown-accent: #E5D8BC;
}


/* Body Styling*/
* {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: var(--charcoal-text);

}

*,
*::before,
*::after {
  box-sizing: border-box;
}


body{
    padding: 0;
    background-color: var(--cream-bg);
}

h1, h2, h3, a {
    font-family: 'Raleway', sans-serif;
    color: var(--charcoal-text);
}

p {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
}

.btn {
    font-family: 'Raleway', sans-serif;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 20px 0 20px 0;
    border: 2px solid var(--green-primary);  
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.btn.primary {
    background: var(--green-primary);
    color: var(--cream-bg);
}

.btn.secondary {
    color:var(--green-primary);
}

.btn.primary:hover {
    background: var(--sage-support);
    color: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn.secondary:hover {
    background-color: var(--sage-support);
    color: var(--green-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.no-scroll {
  overflow: hidden;
}

/*Navigation */
#page-nav { position: sticky; top: -1px; z-index: 9; }

.site-header {
    width: 100%;
    position: relative;
    z-index: 10;
    background: var(--cream-bg);
    border-bottom: 1px solid var(--green-primary);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 1rem;
    text-decoration: none;  
    position: relative;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* Hide hamburger on desktop */
.nav-toggle {
  display: none;
}


/*Hero*/
.hero {
    background: var(--blush-accent);
    width: 100%;
    padding-bottom: 0;
    padding-top: 0;
}

.hero-grid {
    width: 100%;
    max-width: 1140px;
    max-height: 700px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    position: relative;
    gap: 2rem;
}

.hero-image {
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    height: 700px;
}


.hero-image.left {
    width: calc(60% - 3rem);
}

.hero-image.right{
    width: calc(40% - 3rem);
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.hero-image.left img {
    height: 100%;
}

.hero-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--cream-bg);
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.hero-card p {
    font-size: 1.1rem;
}

.eyebrow {
    display: block;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    margin: 1rem auto;
    width: fit-content;
}

.eyebrow h1 {
    margin: 0 auto;
    font-size: 4rem;
}

.hero-logo {
  width: 180px;
}
.eyebrow h1.logo-line-1 {
    width: fit-content;
    font-weight: 300;
}

.brand-line {
  width: 100%;
  height: 1px;
  background: var(--charcoal-text);
  margin: 0.3rem auto;
  opacity: 0.6;
}

.eyebrow h1.logo-line-2{
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
    font-weight: 300;
}

.hero-buttons{
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    background-color: var(--light-brown-accent);
    border-bottom: 1px solid var(--charcoal-text);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 22px;
    width: 640px;

}

/* Section Styling */
section{
    padding-top: 3rem;
    padding-bottom: 2rem;

}

section:not(.hero) {
    padding-left: 2rem;
    padding-right: 2rem;
    margin: 0 auto;
        margin-top: 2rem;
}

.section-container{
    max-width: 900px;
    margin: 0 auto;
}

.section-header{
    text-align: center;
    font-size: 2rem;
    margin: 1rem;
}

.section-sub-header{
    text-align: center;
    font-family: 'Raleway', sans-serif;
    max-width: 600px;
    font-weight: 400;
    margin: 0 auto;
}

/* About */

.about-container > p {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}


/* Services */
#services {
    background-color: var(--sage-support);
    border-top: 1px solid var(--green-primary);
    border-bottom: 1px solid var(--green-primary);
}

.services-section{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
}

.service-header{
    height: calc(25% - 1rem);
}

.service-card{
    display: flex;
    flex: 1 1 250px;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--cream-bg);
    padding: 1rem;
    border-radius: 20px 0 20px 0;
    border: 2px solid var(--green-primary);  
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Work Section */
.work-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    align-items: flex-start;
}

.work-item {
    background-color: var(--cream-bg);
    display: flex;
    flex: 1 1 250px;
    max-width: 400px;
    border-radius: 20px 0 20px 0;
    flex-direction: column;
    overflow: hidden;
    text-align: center;
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    }


.work-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.work-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.work-header img {
    width: 120px;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.work-header-sub-section{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.work-header-sub-section h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2F4F3E;
} 

/* Case Study Expandable */
.case-study {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 1rem;
    background-color: var(--light-brown-accent);
    color: var(--charcoal-text)
}

.case-study p {
    margin: 1rem 0;
}

/* Contact Form */
#contact {
    background-color: var(--blush-accent);
}

#userCode {
    position:absolute;
    left: -50000px;
}

#contactForm {
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--green-primary);
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
}

#submitBtn {
  margin-top: 1rem;
}


/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: var(--charcoal-text);
    font-family: 'Raleway', sans-serif;
}

@media (max-width: 1024px) {

  .hero-grid {
    max-height: none;
    padding: 2rem 1rem;
  }

  .hero-image {
    height: 500px;
  }

  .hero-card {
    padding: 2rem;
    max-width: 90%;
  }

  .eyebrow h1 {
    font-size: 3rem;
  }

  .service-grid,
  .work-grid {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
    /* Navigation */
  /* Show hamburger */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--green-primary);
    transition: all .3s ease;
  }

  /* Hamburger animation */
.nav-toggle span {
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* When menu is open */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}



  /* Hide desktop nav layout */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--cream-bg);
    border-top: 1px solid var(--green-primary);

    /* CLOSED STATE */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: var(--cream-bg);
  }

  .main-nav a {
    display: block;
    padding: 1rem 2rem;
    background-color: var(--cream-bg);
  }

  /* OPEN STATE */
  .main-nav.open {
    max-height: 500px;
  }

  /* Hero */
.hero {
    padding: 0;
}

  .hero-grid {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
  }

  .hero-image {
    width: 100% !important;
    height: 280px;
  }

  .hero-image.right, .hero-image.left{
    display: none;
  }

  .hero-image img {
    object-fit: cover;
  }

  /* Remove absolute positioning on mobile */
  .hero-card {
    position: static;
    transform: none;
    max-width: 100%;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    z-index: 2;
  }

  .eyebrow h1 {
    font-size: 2.5rem;
  }

  .hero-card h2 {
    font-size: 1.4rem;
  }

  .hero-card p {
    font-size: 1rem;
  }

  /* Hero buttons */

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 50%;
    text-align: center;
    margin: 0 auto;
  }

  /* Sections */
  section:not(.hero) {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-header {
    font-size: 1.6rem;
  }

  /* Services & Work cards */
  .service-card,
  .work-item {
    flex: 1 1 100%;
  }

  .work-header {
    flex-direction: column-reverse;
    text-align: center;
  }

  .work-header img {
    width: 100%;
    max-width: 240px;
    height: auto;
  }

  #contact-btn {
    border: 0;
    font-size: 1rem;
    color: var(--charcoal-text);
    font-weight: 400;
  }
}

@media (max-width: 480px) {

  .eyebrow h1 {
    font-size: 2.1rem;
  }

  .hero-card {
    padding: 1.5rem 1.25rem;
  }

  .hero-card h2 {
    font-size: 1.25rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
  }

  .hero-actions.btn{
    width: 340px;
    margin: 0;
  }
}
