/* AVK Appraisal Services — Static Site Stylesheet */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans Condensed", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2c5f2d;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid #2c5f2d;
  outline-offset: 2px;
}

ul, ol {
  padding-left: 1.25em;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1em;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #2c5f2d;
  color: #fff;
  padding: 0.5em 1em;
  z-index: 1000;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

/* ===== Layout ===== */
.container {
  max-width: 62.5rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 62.5rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  gap: 0.5rem;
}

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

.tagline {
  display: none;
  font-size: 0.8rem;
  color: #555;
  max-width: 12rem;
  margin-bottom: 0;
}

.contact-bar {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
  font-size: 0.85rem;
}

.contact-bar a {
  color: #222;
  white-space: nowrap;
}

.contact-bar a:hover {
  color: #2c5f2d;
}

/* ===== Navigation ===== */
.main-nav {
  width: 100%;
  order: 10;
}

.nav-toggle {
  display: block;
  background: #2c5f2d;
  color: #fff;
  border: none;
  padding: 0.5em 1em;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.nav-toggle::after {
  content: " \25BC";
  font-size: 0.7em;
}

.nav-toggle[aria-expanded="true"]::after {
  content: " \25B2";
}

.nav-list {
  list-style: none;
  padding: 0;
  display: none;
  background: #f5f5f0;
}

.nav-list.open {
  display: block;
}

.nav-list li a {
  display: block;
  padding: 0.6em 1em;
  color: #222;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
}

.nav-list li a:hover,
.nav-list li a:focus,
.nav-list li a.active {
  background: #2c5f2d;
  color: #fff;
  text-decoration: none;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  overflow: hidden;
   max-height: 480px;        /* ← add this */
}

.hero img {
  width: 100%;
  height: 100%;             /* ← change from auto */
  object-fit: cover;        /* ← add this */
  object-position: center;  /* ← add this */
  display: block;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 40rem;
}

.hero-overlay p {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  margin-bottom: 0.5em;
}

.hero-overlay .hero-tagline {
  font-size: 1rem;
  font-family: "Open Sans Condensed", Arial, sans-serif;
}

/* Inner page header banner */
.page-banner {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
  background-image: url('images/header-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.page-banner h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 2rem;
  margin: 0;
}

/* ===== Content Sections ===== */
.content-section {
  padding: 2rem 1rem;
}

.content-section.alt {
  background: #f5f5f0;
}

.content-section .container {
  max-width: 50rem;
}

.content-section h2 {
  margin-top: 1.5em;
}

.content-section h2:first-child {
  margin-top: 0;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Service list with icons */
.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 0.35em 0 0.35em 1.5em;
  position: relative;
}

.service-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #2c5f2d;
}

/* ===== Testimonials ===== */
.testimonials {
  text-align: center;
  padding: 2rem 1rem;
  background: #f5f5f0;
}

.testimonials h2 {
  margin-bottom: 1.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 50rem;
  margin: 0 auto;
}

.testimonial-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.stars {
  color: #f5a623;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.testimonial-card em {
  display: block;
  margin-bottom: 0.75rem;
  font-style: italic;
  line-height: 1.5;
}

.testimonial-card strong {
  color: #555;
}

/* ===== FAQ (details/summary) ===== */
.faq-list {
  max-width: 50rem;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid #ddd;
}

.faq-list summary {
  padding: 1em 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  cursor: pointer;
  color: #1a1a1a;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "+ ";
  font-weight: bold;
  color: #2c5f2d;
  margin-right: 0.5em;
}

.faq-list details[open] summary::before {
  content: "\2212  ";
}

.faq-list details div {
  padding: 0 0 1.25em 1.5em;
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 36rem;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25em;
  font-weight: 400;
  font-size: 0.95rem;
  color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.6em 0.75em;
  margin-bottom: 1em;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-family: inherit;
  font-size: 1rem;
  color: #222;
  background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #2c5f2d;
  outline: 2px solid #2c5f2d;
  outline-offset: 1px;
}

.contact-form button {
  background: #2c5f2d;
  color: #fff;
  border: none;
  padding: 0.75em 2em;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
}

.contact-form button:hover,
.contact-form button:focus {
  background: #1e4320;
}

/* ===== CTA Button ===== */
.btn {
  display: inline-block;
  background: #2c5f2d;
  color: #fff;
  padding: 0.6em 1.5em;
  border-radius: 3px;
  font-size: 1rem;
  text-decoration: none;
}

.btn:hover,
.btn:focus {
  background: #1e4320;
  text-decoration: none;
  color: #fff;
}

/* ===== Utility ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.inline-img {
  display: inline-block;
  margin: 0 auto;
}

.mt-1 {
  margin-top: 1.5rem;
}

/* ===== Divider ===== */
.section-divider {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 1.5rem;
  color: #2c5f2d;
}

/* ===== Footer ===== */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #9fc59f;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  margin-bottom: 0.5em;
}

.site-footer img {
  display: inline-block;
  margin: 0.75rem auto;
}

/* ===== Responsive: Tablet (740px+) ===== */
@media (min-width: 46.25em) {
  h1 { font-size: 2.25rem; }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-overlay p {
    font-size: 1.75rem;
  }

  .page-banner {
    padding: 4rem 1rem;
  }

  .page-banner h1 {
    font-size: 2.25rem;
  }
}

/* ===== Responsive: Desktop (1025px+) ===== */
@media (min-width: 64.063em) {
  h1 { font-size: 2.5rem; }

  .tagline {
    display: block;
  }

  .contact-bar {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
    background: transparent;
    gap: 0;
  }

  .nav-list li a {
    border-bottom: none;
    padding: 0.5em 0.75em;
    font-size: 0.9rem;
    border-radius: 3px;
  }

  .main-nav {
    width: auto;
    order: 0;
  }

  .header-inner {
    flex-wrap: nowrap;
    padding: 0.5rem 1rem;
  }

  .hero-overlay p {
    font-size: 2.25rem;
  }

  .hero-overlay .hero-tagline {
    font-size: 1.25rem;
  }

  .page-banner {
    padding: 5rem 1rem;
  }

  .page-banner h1 {
    font-size: 2.5rem;
  }

  .content-section {
    padding: 3rem 1rem;
  }
}
