:root {
  --bg: #ffffff;
  --surface: #fbfbfb;
  --text: #222222;
  --muted: #666666;
  --accent: #c0392b;
  --accent-2: #f1c40f;
  --max-width: 1540px;
  --radius: 8px;
  --gap: 1rem;
}

/* Reset & box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Varela Round', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover, a:focus {
  text-decoration: underline;
}

/* Layout container */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header */
header.site-header {
  background: var(--surface);
  border-bottom: 1px solid #eee;
}

.site-header .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 1rem 0;
}

.site-title {
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  margin: 0;
}

/* Logo image styles */
.logo {
  display: inline-block;
  line-height: 1;
}

.logo-img, .logo img {
  height: 157px !important;
  width: auto !important;
  display: block !important;
  max-width: 612px !important;
}

@media (max-width: 600px) {
  .logo-img, .logo img { height: 130px !important; max-width: 450px !important; }
}

nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}

nav.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.6rem;
  color: var(--text);
}

nav.site-nav a.active {
  color: #fff;
  background: var(--accent);
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
}

/* Main content */
main {
  padding: 1.25rem 0 2rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.card h3 {
  margin-top: 0;
}

/* Typography helpers */
h1, h2, h3, h4 {
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

p { margin: 0 0 1rem 0; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
}

.btn.secondary { background: var(--accent-2); color: #111; }

/* Footer */
footer.site-footer {
  border-top: 1px solid #eee;
  padding: 1rem 0;
  color: var(--muted);
}

/* Forms */
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

label { display: block; margin-bottom: 0.25rem; color: var(--text); }

/* Utilities */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.text-center { text-align: center; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header .top { flex-direction: column; align-items: flex-start; }
  nav.site-nav ul { flex-wrap: wrap; gap: 0.4rem; }
  .grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  nav, .site-header, .site-footer { display: none; }
  .container { padding: 0; }
}

/* Small accessibility improvement for focus */
:focus { outline: 3px solid rgba(192,57,43,0.18); outline-offset: 2px; }

/* End of stylesheet */
/* ── Footer search ── */
footer {
  text-align: center;
  font-size: 0.85rem;
  color: #62634E;
  padding: 2rem 0 1rem;
  background: transparent;
}
.footer-search {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.footer-search-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 480px;
}
.footer-search-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #62634E;
  font-family: "Varela Round", sans-serif;
  display: block;
  opacity: 0.7;
}
.footer-search-row {
  display: flex;
  width: 100%;
}
.footer-search-input {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-family: "Varela Round", sans-serif;
  border: 1.5px solid #9C7A61;
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: white;
  color: #62634E;
  outline: none;
  width: auto;
  box-shadow: none;
}
.footer-search-input::placeholder {
  color: rgba(98,99,78,0.4);
}
.footer-search-input:focus {
  border-color: #62634E;
  background: white;
}
.footer-search-btn {
  padding: 0.65rem 1.1rem;
  background: #9C7A61;
  color: white;
  border: 1.5px solid #9C7A61;
  border-left: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1rem;
  font-family: "Varela Round", sans-serif;
  transition: background 0.2s;
  box-shadow: none;
}
.footer-search-btn:hover {
  background: #62634E;
  border-color: #62634E;
}
.footer-divider {
  height: 1px;
  background: #9C7A61;
  opacity: 0.25;
  margin: 0 0 1.2rem 0;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
footer .footer-links a {
  color: #62634E;
  text-decoration: none;
}
footer .footer-links a:hover {
  color: #9C7A61;
}
footer > p {
  font-size: 0.85rem;
  color: #62634E;
  margin: 0;
}
