/* Desire3D — Professional site styling
   Refined for a cleaner premium product / workshop brand feel.
   Replaces the older parchment/large-drop-cap look.
*/

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #f5f1e8;
  --paper: rgba(255, 252, 245, 0.92);
  --paper-solid: #fffaf1;
  --ink: #2e2a24;
  --muted: #686057;
  --heading: #1f1a14;
  --gold: #b7892f;
  --gold-soft: #d7b36a;
  --line: rgba(80, 64, 40, 0.18);
  --nav: rgba(22, 20, 18, 0.96);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background-color: var(--bg);
  position: relative;
}

/* Subtle site background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  opacity: 0.55;
  z-index: -1;
  filter: grayscale(12%) brightness(0.9);
}

/* Legacy pages can keep a darker archival feel */
body.legacy-page {
  background-image: url("../images/legacy-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-color: #1c1c1c;
  color: #f2e3c6;
}

body.legacy-page main {
  background: rgba(28, 24, 20, 0.84);
  color: #f2e3c6;
}

body.legacy-page h1,
body.legacy-page h2,
body.legacy-page h3 {
  color: #f4d08c;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--heading);
  text-shadow: none;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1.1rem;
}

a {
  color: #8a641e;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: #5f4212;
}

/* Removed the large first-letter/drop-cap treatment for a cleaner product-site feel. */

/* Nav Bar */
nav {
  background-color: var(--nav);
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.35rem;
}

nav ul li a {
  color: #f4f0e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
}

nav ul li a:hover,
nav ul li a:focus,
nav ul li a.active {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
  outline: none;
}

/* Main content */
main {
  max-width: 980px;
  margin: 2.25rem auto 5rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 1rem;
  text-align: left;
}

main > :last-child {
  margin-bottom: 0;
}

main > p,
main > ul,
main > ol {
  max-width: 760px;
}

main strong {
  color: #1f1a14;
}

/* Secondary nav groups inside page content */
main nav {
  position: static;
  margin: 2rem 0 0;
  padding: 0;
  background: transparent;
  border: 0;
}

main nav ul {
  justify-content: flex-start;
  gap: 0.75rem;
}

main nav ul li a {
  display: inline-block;
  color: #1f1a14;
  background: #efe2c5;
  border: 1px solid rgba(120, 88, 35, 0.25);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}

main nav ul li a:hover,
main nav ul li a:focus,
main nav ul li a.active {
  color: #111;
  background: #e1bd67;
  border-color: #b7892f;
}

/* Button Styling */
.button {
  display: inline-block;
  background-color: #b7892f;
  color: #111;
  padding: 0.72rem 1.35rem;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(74, 49, 12, 0.18);
  margin-top: 1rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button:focus {
  background-color: #d7b36a;
  box-shadow: 0 8px 20px rgba(74, 49, 12, 0.22);
  transform: translateY(-1px);
  outline: none;
}

/* Project / feature lists */
.project-list {
  padding-left: 1.2rem;
  margin-top: 1.2rem;
}

.project-list li {
  margin-bottom: 0.65rem;
}

.project-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  padding: 1.5rem 0;
}

.project-column {
  max-width: none;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.project-column p {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.project-column img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

/* Gallery Grid */
.grid-2col,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  padding: 1rem 0;
}

.gallery-grid figure {
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  padding: 0.85rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.gallery-grid figcaption {
  color: var(--muted);
  font-size: 0.92rem;
}

/* General images */
main img {
  max-width: 100%;
  height: auto;
}

/* Contact Form */
.contact-container {
  max-width: 720px;
  margin: 3rem auto;
  background: var(--paper-solid);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-top: 1em;
  font-weight: 700;
  font-family: 'Open Sans', Tahoma, sans-serif;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8em;
  margin-top: 0.3em;
  border: 1px solid rgba(90, 72, 42, 0.35);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(183, 137, 47, 0.28);
  border-color: #b7892f;
}

.contact-form button {
  margin-top: 1.5em;
  padding: 0.8em 1.35em;
  background-color: #2b2418;
  color: #f9f6f0;
  border: none;
  border-radius: 999px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  font-weight: 700;
}

.contact-form button:hover {
  background-color: #b7892f;
  color: #111;
  transform: translateY(-1px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #777;
}

/* Mobile polish */
@media (max-width: 700px) {
  nav {
    padding: 0.8rem 1rem;
  }

  nav ul {
    gap: 0.85rem;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  main {
    margin: 1rem;
  }

  main nav ul {
    justify-content: flex-start;
  }
}
