/* ===== CSS Variables & Color Palette ===== */
:root {
  --terracotta: #C17B5D;
  --terracotta-dark: #A3614A;
  --sage: #8A9A7B;
  --sage-light: #A8B89A;
  --cream: #F5F0E8;
  --stone: #B8A99A;
  --stone-light: #D4C9BC;
  --charcoal: #3D3D3D;
  --warm-white: #FDFBF7;
  --text-dark: #2E2E2E;
  --text-medium: #5A5A5A;
  --text-light: #7A7A7A;

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

  --max-width: 1100px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--warm-white);
  line-height: 1.7;
}

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--terracotta-dark);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 400;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-medium);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--stone-light);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--sage));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-brand-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--warm-white);
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--text-dark);
}

.nav-brand-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-medium);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--terracotta);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta);
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.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 Section ===== */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(170deg, var(--cream) 0%, var(--warm-white) 100%);
  text-align: center;
  margin-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/Utah.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.65) brightness(1.05);
  opacity: 0.625;
  z-index: 0;
}

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

.hero h1 {
  margin-bottom: 1.25rem;
  color: var(--cream);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--cream);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-decorative {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: var(--stone);
}

.hero-decorative .line {
  width: 60px;
  height: 1px;
  background-color: var(--stone-light);
}

.hero-decorative .circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--terracotta);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--terracotta);
  color: var(--warm-white);
}

.btn-primary:hover {
  background-color: var(--terracotta-dark);
  color: var(--warm-white);
}

.btn-outline {
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--terracotta);
  color: var(--warm-white);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* ===== Services Preview (Home Page) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--warm-white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--stone-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

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

.service-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--terracotta);
  fill: none;
  stroke-width: 1.5;
}

.service-card h3 {
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== About Preview (Home Page) ===== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-image {
  aspect-ratio: 4/5;
  background-color: var(--stone-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.about-preview-content h2 {
  margin-bottom: 1.25rem;
}

/* ===== Values / Approach Section ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.value-item {
  padding: 1.5rem;
}

.value-item .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--sage));
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-item .icon-circle svg {
  width: 28px;
  height: 28px;
  stroke: var(--warm-white);
  fill: none;
  stroke-width: 1.5;
}

/* ===== About Page ===== */
.about-hero {
  padding: 6rem 0 3rem;
  background-color: var(--cream);
  text-align: center;
  margin-top: var(--nav-height);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  aspect-ratio: 3/4;
  background-color: var(--stone-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

/* ===== Services Page ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--stone-light);
}

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

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail-image {
  aspect-ratio: 4/3;
  background-color: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.service-detail-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-detail-content ul {
  list-style: none;
  margin: 1rem 0;
}

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

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

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

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

.contact-info-item .icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--terracotta);
  fill: none;
  stroke-width: 1.5;
}

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

.contact-info-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== Contact Form ===== */
.contact-form {
  background-color: var(--cream);
  padding: 2.5rem;
  border-radius: 8px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--stone-light);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--warm-white);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--warm-white);
}

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

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

.cta-banner .btn-outline {
  border-color: var(--warm-white);
  color: var(--warm-white);
}

.cta-banner .btn-outline:hover {
  background-color: var(--warm-white);
  color: var(--terracotta);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--warm-white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--warm-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--stone-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

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

  .hero {
    padding: 5rem 0 3rem;
  }

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

  .about-preview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-preview-image {
    aspect-ratio: 16/9;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-photo {
    position: static;
    aspect-ratio: 16/9;
  }

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

  .service-detail:nth-child(even) {
    direction: ltr;
  }

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

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

  .section {
    padding: 3rem 0;
  }
}
