*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f5f2;
  color: #2c2c2c;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #8b4513;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e4df;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c2c2c;
  text-decoration: none;
}

.logo span {
  color: #8b4513;
}

.logo:hover {
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.main-nav a {
  color: #2c2c2c;
  font-size: 0.9rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: #8b4513;
}

/* Hero */
.hero {
  background: #fff;
  padding: 3.5rem 0;
  border-bottom: 1px solid #e8e4df;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  max-width: 640px;
}

.hero .tagline {
  font-size: 1.125rem;
  color: #5a5a5a;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: #8b4513;
  color: #fff;
}

.btn-primary:hover {
  background: #723a10;
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #8b4513;
  border: 1px solid #8b4513;
}

.btn-secondary:hover {
  background: #8b4513;
  color: #fff;
  text-decoration: none;
}

/* Main content */
main {
  flex: 1;
  padding: 2.5rem 0;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #5a5a5a;
  max-width: 600px;
}

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c2c2c;
}

section p {
  margin-bottom: 1rem;
  color: #444;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-top: 3px solid #8b4513;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.card .price {
  font-weight: 600;
  color: #8b4513;
  font-size: 1.05rem;
}

.card a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Lists */
.content-list {
  list-style: none;
  margin-bottom: 1rem;
}

.content-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: #444;
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  background: #8b4513;
  border-radius: 50%;
}

/* FAQ */
.faq-item {
  background: #fff;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  border-top: 3px solid #8b4513;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* Contact form */
.contact-form {
  background: #fff;
  padding: 1.75rem;
  border-top: 3px solid #8b4513;
  max-width: 560px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fafafa;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info {
  margin-top: 2rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* Tables */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 1.5rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e8e4df;
}

.pricing-table th {
  background: #faf8f5;
  font-weight: 600;
  font-size: 0.9rem;
}

.pricing-table td:last-child {
  font-weight: 600;
  color: #8b4513;
  white-space: nowrap;
}

/* Process steps */
.process-steps {
  counter-reset: step;
}

.process-step {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-top: 3px solid #8b4513;
  position: relative;
  padding-left: 3.5rem;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  width: 1.75rem;
  height: 1.75rem;
  background: #8b4513;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* Portfolio / project items */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-item {
  background: #fff;
  border-top: 3px solid #8b4513;
  overflow: hidden;
}

.project-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #e8e0d8 0%, #d4c8bc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b4513;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-item .project-body {
  padding: 1.25rem;
}

.project-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.project-item p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Sitemap */
.sitemap-list {
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}

.sitemap-list li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

/* Legal pages */
.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: #444;
}

.legal-content ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

/* CTA banner */
.cta-banner {
  background: #fff;
  padding: 2rem;
  text-align: center;
  border-top: 3px solid #8b4513;
  margin-top: 2rem;
}

.cta-banner h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: #555;
  margin-bottom: 1.25rem;
}

.cta-banner .hero-actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid #e8e4df;
  padding: 2rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b4513;
  margin-bottom: 0.75rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: #555;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-col a:hover {
  color: #8b4513;
}

.footer-bottom {
  border-top: 1px solid #e8e4df;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-legal a {
  color: #888;
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: #8b4513;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .sitemap-list {
    columns: 1;
  }

  .main-nav ul {
    gap: 0.5rem 0.85rem;
  }
}
