/* ElmenTex - Rustic Western Theme */
:root {
  --parchment: #f3e8d4;
  --parchment-dark: #e6d5b8;
  --deep-brown: #2c1810;
  --oak: #7a5c3e;
  --oak-light: #9a7b5c;
  --brass: #d4a84b;
  --brass-dark: #b8903a;
  --text: #3e2723;
  --text-light: #5d4037;
  --white: #faf6ef;
  --shadow: rgba(44, 24, 16, 0.18);
  --wood-warm: #c9a87c;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background-color: #1a120b;
  color: var(--text);
  line-height: 1.6;
  background-image: 
    linear-gradient(rgba(20, 12, 8, 0.55), rgba(20, 12, 8, 0.65)),
    url("../images/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

header {
  background: var(--deep-brown);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow);
}

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

.logo img {
  height: 48px;
  width: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.logo h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

nav a {
  color: var(--parchment);
  text-decoration: none;
  margin-left: 1.5rem;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--brass);
}

.hero {
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.85) 0%, rgba(26, 12, 8, 0.9) 100%);
  color: #f5e6c8;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
}

.hero h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
  color: #f8e8c8;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: linear-gradient(180deg, #c4a36a 0%, #8b6914 100%);
  color: #2c1810;
  padding: 0.75rem 1.8rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  border: 2px solid #5c4030;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.25),
    0 3px 6px rgba(0,0,0,0.3);
  transition: all 0.15s;
  font-family: 'Source Serif 4', serif;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  font-size: 0.95rem;
}

.btn:hover {
  background: linear-gradient(180deg, #d4b37a 0%, #9a7918 100%);
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    0 4px 8px rgba(0,0,0,0.35);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #c4a36a;
  color: #f5e6c8;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.btn-secondary:hover {
  background: rgba(196, 163, 106, 0.2);
  color: #fff;
  border-color: #d4b37a;
}

/* Lighten standalone page text over the dark background */
section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

section > p,
section > div > p {
  color: #f0e0c0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  color: #f5e6c8;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.75);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.service-card {
  background: rgba(250, 246, 239, 0.95);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
  border-top: 4px solid var(--oak);
  border: 1px solid rgba(122, 92, 62, 0.15);
}

.service-card h3 {
  font-family: 'Cinzel', serif;
  color: var(--oak);
  margin-bottom: 0.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto 0;
  max-width: 1000px;
  justify-items: center;
}

.gallery-item {
  background: rgba(250, 246, 239, 0.95);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.2s;
  border: 1px solid rgba(122, 92, 62, 0.15);
}

.gallery-item:hover {
  transform: translateY(-4px);
}

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

.gallery-item p {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

form {
  background: rgba(250, 246, 239, 0.97);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow);
  max-width: 700px;
  margin: 2rem auto;
  border: 1px solid rgba(122, 92, 62, 0.2);
}

label {
  display: block;
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--deep-brown);
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.4rem;
  border: 1px solid #d7ccc8;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--parchment);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--oak);
  border-color: var(--oak);
}

button[type="submit"] {
  margin-top: 1.5rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(180deg, #c4a36a 0%, #8b6914 100%);
  color: #2c1810;
  border: 2px solid #5c4030;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.25),
    0 3px 6px rgba(0,0,0,0.3);
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.15s;
}

button[type="submit"]:hover {
  background: linear-gradient(180deg, #d4b37a 0%, #9a7918 100%);
  transform: translateY(-1px);
}

footer {
  background: var(--deep-brown);
  color: var(--parchment);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--brass);
  text-decoration: none;
}

.note {
  background: var(--parchment-dark);
  padding: 1rem;
  border-left: 4px solid var(--brass);
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  nav a {
    margin: 0 0.75rem;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .btn-secondary {
    margin-left: 0;
    margin-top: 1rem;
    display: block;
  }
}
