/* Hughes Dirt Work LLC — shared styles */

:root {
  --bg: #f6f5ee;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --accent: #c45a2c;
  --border: #e5e3d8;
  --max-width: 720px;
  --max-width-wide: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  width: 100%;
  flex: 1;
}

.container-wide {
  max-width: var(--max-width-wide);
}

/* Site header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.site-header-logo {
  height: 48px;
  width: auto;
}

.site-header-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.current {
  color: var(--accent);
}

/* Eyebrow & headings */
.eyebrow {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.eyebrow a {
  color: var(--accent);
  text-decoration: none;
}

.eyebrow a:hover {
  text-decoration: underline;
}

h1 {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 3rem;
}

/* Hero with photo */
.hero {
  margin-bottom: 3rem;
}

.hero-logo {
  display: block;
  margin: 0 auto 2rem;
  max-width: 320px;
  width: 100%;
  height: auto;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 2.5rem;
  display: block;
}

.hero-image-full {
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
}

/* Primary CTA buttons */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* App card (landing page) */
.app-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease;
}

.app-card:hover {
  border-color: var(--accent);
}

.app-card .eyebrow {
  text-align: left;
  margin-bottom: 0.75rem;
}

.app-card h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.app-card p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.app-card p:last-child {
  margin-bottom: 0;
}

.card-cta {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Service card (services on home + services page) */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-muted);
}

.service-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  display: block;
}

/* App detail page */
.app-detail h1 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.app-detail .tagline {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2.5rem;
}

.app-store-badge {
  display: flex;
  justify-content: center;
  margin: 2rem 0 3rem;
}

.app-store-badge a {
  display: inline-block;
  transition: opacity 0.15s ease;
}

.app-store-badge a:hover {
  opacity: 0.85;
}

.app-store-badge img {
  display: block;
  height: 56px;
  width: auto;
}

.app-store-badge .coming-soon {
  display: inline-block;
  background: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-style: italic;
}

.section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.section .lead {
  font-size: 1.1rem;
  color: var(--text);
}

.features {
  list-style: none;
  padding: 0;
}

.features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

.features li:last-child {
  margin-bottom: 0;
}

.features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.features strong {
  color: var(--text);
  font-weight: 700;
}

.price-note {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

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

/* Contact info block */
.contact-block {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  margin: 2rem 0;
}

.contact-block .contact-item {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.contact-block .contact-item:hover {
  color: var(--accent);
}

.contact-block .contact-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Back link */
.back-link {
  display: block;
  text-align: center;
  margin-top: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.back-link:hover {
  color: var(--accent);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--accent);
  text-decoration: underline;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
}

footer a:hover {
  text-decoration: none;
}

.footer-tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* Mobile */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .container { padding: 2.5rem 1.25rem 1.5rem; }
  h1 { font-size: 2.2rem; }
  .app-detail h1 { font-size: 2rem; }
  .subtitle { font-size: 1.1rem; margin-bottom: 2rem; }
  .app-card, .section, .service-card { padding: 1.75rem 1.5rem; }
  footer nav { gap: 1.5rem; }
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-nav { gap: 1.25rem; }
  .hero-logo { max-width: 240px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 180px; }
}
