/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant', serif;
  background-color: #e0dace;
  color: black;
  line-height: 1.6;
  font-weight: 500;
  font-size: 18px;
  /* Optional: uncomment if you want the page content constrained */
  /* max-width: 1200px;
  margin: 0 auto; */
}

/* === HERO SECTION === */
.hero {
  position: relative;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  height: 600px;
  color: white;
  padding: 20px;
  text-align: center;
}

.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo img {
  height: 80px;
}

.hero-text {
  padding: 320px 0 20px 60px;
}

.hero-text h1 {
  font-size: 4rem;
  letter-spacing: 1.5px;
  line-height: 1.1;
}

.hero-text h2 {
  font-style: italic;
  font-size: 2rem;
  margin-top: 10px;
}

/* === COPY SECTION === */
.copy {
  padding: 30px 20px;
  text-align: center;
}

.copy hr {
  width: 100%;
  height: 1px;
  border: none;
  border-top: 1px solid #1f2b28;
  margin: 20px 0;
}

.copy p {
  width: 70%;
  max-width: 900px;
  padding: 30px;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.5rem;
}

/* === SERVICES SECTION === */
.services {
  background-color: #394440;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.services h2 {
  font-family: 'Cormorant';
  font-style: italic;
  margin-bottom: 20px;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  font-size: 1.5rem;
  font-family: 'Crimson Pro';
  font-weight: 400;
}

.columns h3 {
  margin-bottom: 10px;
  font-size: 1.75rem;
}

.columns ul {
  list-style: none;
  padding-left: 0;
}

/* === VALUES SECTION === */
.values {
  padding: 30px 20px;
  font-style: italic;
  text-align: center;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

/* === CONTACT SECTION === */
.contact {
  background-color: #394440;
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  align-items: flex-start;
}

.contact-right {
  width: 100%;
  padding-left: 20px;
  padding-right: 10px;
}

.contact-left {
  font-family: 'Cormorant', serif;
}

.contact-left p {
  font-style: italic;
  margin-bottom: 10px;
}

.contact-left h2 {
  font-size: 2rem;
  font-weight: 500;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-grid label {
  display: block;
  font-weight: 400;
  font-family: 'Cormorant', serif;
  color: white;
  font-size: 1rem;
}

.contact-form-grid input,
.contact-form-grid textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: none;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
}

.full-width {
  grid-column: span 2;
}

.submit-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 20px;
}

button {
  background-color: #e0dace;
  color: black;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  font-weight: 400;
}

.thank-you {
  display: none;
  color: white;
  font-family: 'Cormorant', serif;
  font-size: 1rem;
  margin-top: 10px;
}

/* === FOOTER SECTION === */
.site-footer {
  background-color: #f9f6e7;
  color: #1f2b28;
  padding: 30px 20px;
  text-align: center;
  font-family: 'Cormorant', serif;
  font-weight: 500;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  flex: 1 1 200px;
  text-align: center;
  font-size: 1.1rem;
}

.footer-logo {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1rem;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3.25rem;
  }

  .hero-text {
    padding: 300px 0 20px 40px;
  }
}

@media (max-width: 768px) {
  .logo {
    position: static;
    align-items: center;
    margin: 0 auto 20px;
  }

  .logo img {
    height: 60px;
  }

  .hero {
    height: 420px;
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .hero-text {
    padding-top: 160px;
    padding-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-text h2 {
    font-size: 1.125rem;
  }

  .copy p {
      width: 90%;
      padding: 20px;
  }
  
  .columns {
    flex-direction: column;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-right {
    padding-left: 0;
  }

  .contact-left {
    text-align: center;
    margin-bottom: 20px;
  }

  .contact-left h2 {
    font-size: 1.5rem;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1;
  }

  .submit-wrapper {
    align-items: center;
  }

  button {
    width: 100%;
  }
  
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    gap: 0;
  }
  
  .footer-left {
    display: none;
  }
  
  .footer-logo,
  .footer-right {
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
    height: auto;
  }
  
  .footer-logo img {
    height: 40px;
    margin: 0;
  }
  
  .site-footer {
    padding: 0px 10px;
  }  
}

@media (max-width: 480px) {
  .logo img {
    height: 30px;
  }

  .hero {
    height: 320px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .hero-text {
    padding: 140px 10px 20px;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text h2 {
    font-size: 1.125rem;
  }

  .values {
    font-size: 1rem;
  }
}

/* TODO:
   - Some fonts too small -- done
   - Check non cormorant fonts -- done
   - Double check background colors -- done
   - Submit button text font is wrong -- done
   - Contact form should be in two columns -- revised layout done
   - Logo is too big on phone -- done
   - Copy too small but huge margin?
   - "Software Solutions" too small
   - "Contact" too small
   - Test all layout on phone
   - Inital caps
 */
