/* === Emerald Letter Editorial :Style Sheet === */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #163A16;
  --cream: #FFF8E8;
  --olive: #8F9E29;
  --blue: #3B778F;
  --brown-dark: #7B3501;
  --brown: #B55C1F;
  --lime: #D9DE7A;
  --white: #FFFFFF;
  --black: #000000;

  --font-heading: 'Aleo', Georgia, 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-width: 960px;
  --gap: 2rem;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--green);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 900; }
h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; line-height: 1.25; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; line-height: 1.3; margin-top: 2rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 2.5rem; }
li { margin-bottom: 0.4rem; }

.subheading {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--olive);
}

.label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--olive);
}

/* --- Layout helpers --- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section--green { background: var(--green); color: var(--cream); }
.section--green a { color: var(--lime); }
.section--green h2, .section--green h3 { color: var(--cream); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 680px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

/* --- Header / Nav --- */
.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--olive);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-header__logo img {
  height: 48px;
  width: auto;
}

.site-header__title {
  font-family: 'Aleo', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.site-nav a {
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 248, 232, 0.15);
  text-decoration: none;
}

/* mobile menu toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--green);
    padding: 1rem 1.5rem;
    border-bottom: 3px solid var(--olive);
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.6rem 0; width: 100%; }
}

/* --- Hero --- */
.hero {
  background: var(--green);
  color: var(--cream);
  text-align: center;
  padding: 5rem 1.5rem;
}

.hero__logo {
  width: 140px;
  margin: 0 auto 1.5rem;
}

.hero h1 { font-size: 2.8rem; margin-bottom: 0.5rem; }

.hero__tagline {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--lime);
  margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--cream);
  color: var(--green);
}
.btn--primary:hover { background: var(--lime); color: var(--green); text-decoration: none; }

.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover { background: var(--green); color: var(--cream); text-decoration: none; }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 6px;
  padding: 1.5rem;
}

.card h3 { color: var(--green); }

/* --- Testimonial --- */
.testimonial {
  border-left: 4px solid var(--olive);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--brown);
}

/* --- FAQ Accordion --- */
.faq-item { border-bottom: 1px solid rgba(22,58,22,0.2); }
.faq-item:first-child { border-top: 1px solid rgba(22,58,22,0.2); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-question[aria-expanded="true"]::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 0 0 0;
}

.faq-answer__inner { padding: 0 0 1rem 0; }

/* --- Blog list --- */
.blog-list { list-style: none; }

.blog-post {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(22,58,22,0.15);
}

.blog-post__date {
  font-size: 0.8rem;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-post h3 { margin: 0.25rem 0 0.5rem; }
.blog-post h3 a { color: var(--green); }
.blog-post h3 a:hover { color: var(--brown); }

/* --- Contact form --- */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--green);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--green);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(143,158,41,0.25);
}

/* --- Rate Calculator --- */
.calculator {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.calculator__result {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green);
  margin-top: 1rem;
}

/* --- About photo --- */
.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green);
  margin: 0 auto 1.5rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--green);
  color: var(--cream);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}

.site-footer a { color: var(--lime); }
.site-footer p { margin-bottom: 0.5rem; }

/* --- Misc --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
