/* ===================================================
   Hanna Construction - Arkansas Contractor Website
   Earth tones, mobile-first, trust-first design
   =================================================== */

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

:root {
  --green-dark: #3B5C3B;
  --green-medium: #4A7A4A;
  --green-light: #6B9B6B;
  --brown-dark: #5C4033;
  --brown-medium: #7A5C3E;
  --brown-light: #C4956A;
  --charcoal: #2B2B2B;
  --text: #333333;
  --text-light: #6B6B6B;
  --cream: #F7F4F0;
  --white: #FFFFFF;
  --gray-light: #E8E4DF;
  --gray-medium: #B5B0AA;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
  --radius: 4px;
  --radius-lg: 8px;
  --max-width: 1140px;
  --header-height: 80px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--green-medium);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--charcoal);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section--cream {
  background-color: var(--cream);
}

.section--green {
  background-color: var(--green-dark);
  color: var(--white);
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--white);
}

.section--green a {
  color: var(--brown-light);
}

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

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 640px;
}

.section-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 60px;
  height: 3px;
  background-color: var(--brown-light);
  border: none;
  margin: 1rem 0;
}

.text-center .divider {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  line-height: 1.2;
  font-family: inherit;
}

.btn--primary {
  background-color: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

.btn--primary:hover {
  background-color: var(--green-medium);
  border-color: var(--green-medium);
  color: var(--white);
}

.btn--secondary {
  background-color: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.btn--secondary:hover {
  background-color: var(--green-dark);
  color: var(--white);
}

.btn--white {
  background-color: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

.btn--white:hover {
  background-color: var(--cream);
  border-color: var(--cream);
  color: var(--green-dark);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-white:hover {
  background-color: var(--white);
  color: var(--green-dark);
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-group--center {
  justify-content: center;
}

/* --- Top Bar --- */
.top-bar {
  background-color: var(--charcoal);
  color: var(--gray-light);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a {
  color: var(--brown-light);
  font-weight: 600;
}

.top-bar a:hover {
  color: var(--white);
}

/* --- Header / Navigation --- */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background-color: var(--green-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.logo-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
}

.logo-text small {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--green-dark);
  background-color: var(--cream);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-cta .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  background-color: var(--green-dark);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(43, 43, 43, 0.6) 0%, rgba(59, 92, 59, 0.8) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  max-width: 640px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gray-light);
  max-width: 540px;
}

.hero .btn-group {
  margin-bottom: 2.5rem;
}

/* Hero trust badges */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--gray-light);
}

.hero-trust-item svg {
  width: 20px;
  height: 20px;
  fill: var(--brown-light);
  flex-shrink: 0;
}

/* --- Page Hero (interior pages) --- */
.page-hero {
  background-color: var(--green-dark);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--gray-light);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Services Grid (Home Page) --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--green-dark);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-card ul {
  margin-bottom: 1.5rem;
}

.service-card ul li {
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-light);
}

.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background-color: var(--green-dark);
  border-radius: 50%;
}

.service-card .btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
}

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-item-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--brown-light);
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.why-item p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* --- CTA Banner --- */
.cta-banner {
  background-color: var(--brown-dark);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* --- Service Detail Page --- */
.service-detail {
  padding: 4rem 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.service-detail-content h2 {
  margin-bottom: 1rem;
}

.service-detail-content p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.service-list {
  margin: 2rem 0;
}

.service-list-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-light);
  align-items: flex-start;
}

.service-list-item:first-child {
  padding-top: 0;
}

.service-list-item:last-child {
  border-bottom: none;
}

.service-list-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background-color: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-list-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--green-dark);
}

.service-list-item h4 {
  margin-bottom: 0.3rem;
}

.service-list-item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Sidebar on service pages */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background-color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.sidebar-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background-color: var(--green-dark);
  color: var(--white);
}

.sidebar-cta {
  background-color: var(--green-dark);
  color: var(--white);
}

.sidebar-cta h3 {
  color: var(--white);
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.sidebar-cta .btn {
  width: 100%;
}

.sidebar-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--brown-light);
  font-size: 1.1rem;
  font-weight: 600;
}

.sidebar-phone svg {
  width: 18px;
  height: 18px;
  fill: var(--brown-light);
}

/* --- About Page --- */
.about-content {
  max-width: 720px;
}

.about-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

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

.about-content p {
  font-size: 1.05rem;
  color: var(--text-light);
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-value {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about-value-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-value-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--green-dark);
}

.about-value h4 {
  margin-bottom: 0.25rem;
}

.about-value p {
  font-size: 0.95rem;
}

/* --- Service Area --- */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.area-card {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.area-card h3 {
  margin-bottom: 0.5rem;
}

.area-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.area-note {
  background-color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
  text-align: center;
}

.area-note p {
  font-size: 1.05rem;
  color: var(--text-light);
}

.area-note strong {
  color: var(--text);
}

/* --- Contact / Estimate Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background-color: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--green-dark);
}

.contact-info-item h4 {
  margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 1rem;
  color: var(--text-light);
}

.contact-info-item a:hover {
  color: var(--green-dark);
}

/* Form */
.form {
  background-color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form h3 {
  margin-bottom: 0.5rem;
}

.form > p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background-color: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(59, 92, 59, 0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--charcoal);
  color: var(--gray-medium);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-brand p {
  margin-top: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
}

.footer-logo .logo-icon svg {
  width: 22px;
  height: 22px;
}

.footer-logo .logo-text {
  color: var(--white);
  font-size: 1.15rem;
}

.footer-logo .logo-text small {
  color: var(--gray-medium);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-medium);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-areas li {
  display: inline;
  font-size: 0.9rem;
}

.footer-areas li:not(:last-child)::after {
  content: ' \2022 ';
  color: var(--text-light);
  margin: 0 0.25rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--brown-light);
  flex-shrink: 0;
}

.footer-contact-item a {
  color: var(--gray-medium);
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-trust span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-trust svg {
  width: 14px;
  height: 14px;
  fill: var(--brown-light);
}

/* --- Responsive --- */

/* Tablet */
@media (min-width: 640px) {
  h1 { font-size: 2.75rem; }

  .hero { padding: 6rem 0; }
  .hero h1 { font-size: 3rem; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .area-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 960px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-list {
    display: flex !important;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-detail-grid {
    grid-template-columns: 1fr 320px;
  }

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

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* Mobile nav */
@media (max-width: 959px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

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

  .nav-list a {
    padding: 0.75rem;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: var(--cream);
    border-radius: var(--radius);
    margin-top: 0.25rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero { padding: 3.5rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }

  .section { padding: 3rem 0; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
}
