/* TPL Communications — inspired by former Websplanet static site */
:root {
  --tpl-bg: #231f20;
  --tpl-bg-deep: #1a1614;
  --tpl-panel: #272727;
  --tpl-brown: #4f3527;
  --tpl-brown-dark: #341606;
  --tpl-tan: #756156;
  --tpl-muted: #b7b6b6;
  --tpl-gray: #999;
  --tpl-light: #f0efef;
  --tpl-white: #ffffff;
  --tpl-accent: #c4a574;
  --tpl-max: 1080px;
  --tpl-font-serif: "Domine", Georgia, "Times New Roman", serif;
  --tpl-font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--tpl-font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tpl-light);
  background: linear-gradient(180deg, var(--tpl-bg) 0%, var(--tpl-bg-deep) 100%);
}

a {
  color: var(--tpl-accent);
  text-decoration: none;
}
a:hover,
a:focus {
  color: var(--tpl-white);
  text-decoration: underline;
}

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

.tpl-wrap {
  width: min(100% - 2rem, var(--tpl-max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, #2e2420 0%, var(--tpl-brown-dark) 100%);
  border-bottom: 3px solid var(--tpl-brown);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--tpl-white);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--tpl-white);
}
.brand img {
  height: 56px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.brand-name {
  font-family: var(--tpl-font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  font-style: italic;
}
.brand-tag {
  font-size: 0.78rem;
  color: var(--tpl-muted);
  max-width: 16rem;
}

.nav-toggle {
  display: none;
  background: var(--tpl-brown);
  color: var(--tpl-white);
  border: 1px solid var(--tpl-tan);
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}
.primary-nav a {
  color: var(--tpl-light);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--tpl-accent);
  text-decoration: none;
}

/* Quick actions (old "Call us / email / map" bar) */
.quick-bar {
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(117, 97, 86, 0.45);
}
.quick-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0.55rem 0;
  font-size: 0.92rem;
}
.quick-bar a {
  color: var(--tpl-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.quick-bar a:hover {
  color: var(--tpl-white);
}

/* Hero / home */
.hero {
  position: relative;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--tpl-brown);
  border-radius: 6px;
  overflow: hidden;
  background: var(--tpl-panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.hero-media {
  min-height: 260px;
  background: center / cover no-repeat;
  filter: saturate(0.95);
}
.hero-body {
  padding: 1.5rem 1.5rem 1.75rem;
  background: linear-gradient(180deg, rgba(52, 22, 6, 0.55) 0%, var(--tpl-panel) 100%);
}
.hero h1 {
  font-family: var(--tpl-font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.4rem;
  color: var(--tpl-white);
}
.hero .lead {
  margin: 0 0 1rem;
  color: var(--tpl-muted);
  font-size: 1.05rem;
}
.hero-meta {
  display: grid;
  gap: 0.35rem;
  color: var(--tpl-light);
  font-family: var(--tpl-font-serif);
  font-style: italic;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--tpl-brown);
  color: var(--tpl-white) !important;
  border-color: var(--tpl-tan);
}
.btn-primary:hover {
  background: var(--tpl-tan);
  color: var(--tpl-white) !important;
}
.btn-ghost {
  background: transparent;
  color: var(--tpl-light) !important;
  border-color: var(--tpl-tan);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Cards / panels */
.panel {
  background: var(--tpl-panel);
  border: 1px solid rgba(117, 97, 86, 0.5);
  border-radius: 6px;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.panel h2,
.page-title {
  font-family: var(--tpl-font-serif);
  font-style: italic;
  color: var(--tpl-white);
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
}
.panel p {
  margin: 0 0 0.75rem;
  color: var(--tpl-muted);
}
.panel p:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.feature {
  background: rgba(79, 53, 39, 0.35);
  border: 1px solid var(--tpl-brown);
  border-radius: 6px;
  padding: 1.1rem;
}
.feature h3 {
  margin: 0 0 0.4rem;
  font-family: var(--tpl-font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--tpl-white);
}
.feature p {
  margin: 0;
  color: var(--tpl-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-details address {
  font-style: italic;
  font-family: var(--tpl-font-serif);
  line-height: 1.7;
  color: var(--tpl-light);
  margin: 0 0 1rem;
}
.contact-details .phone a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tpl-accent);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin: 0.65rem 0 0.3rem;
  color: var(--tpl-light);
  font-size: 0.92rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--tpl-tan);
  background: #1c1918;
  color: var(--tpl-white);
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--tpl-accent);
  outline-offset: 1px;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.form-note {
  font-size: 0.85rem;
  color: var(--tpl-gray);
  margin-top: 0.75rem;
}
.form-alert {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.form-alert.ok {
  background: rgba(46, 125, 50, 0.25);
  border: 1px solid #4caf50;
  color: #c8e6c9;
}
.form-alert.err {
  background: rgba(120, 40, 40, 0.35);
  border: 1px solid #e57373;
  color: #ffcdd2;
}

/* Brochure gallery */
.brochure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 2.5rem;
}
.brochure-grid a {
  display: block;
  border: 1px solid var(--tpl-brown);
  border-radius: 4px;
  overflow: hidden;
  background: #111;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.brochure-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}
.brochure-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}
.brochure-cap {
  padding: 0.4rem 0.55rem;
  font-size: 0.8rem;
  color: var(--tpl-muted);
  background: var(--tpl-panel);
}

/* Content area default */
.site-main {
  padding-bottom: 2rem;
}
.entry-content {
  color: var(--tpl-muted);
}
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: var(--tpl-white);
  font-family: var(--tpl-font-serif);
  font-style: italic;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 2px solid var(--tpl-brown);
  background: #140f0d;
  padding: 1.4rem 0 1.75rem;
  color: var(--tpl-gray);
  font-size: 0.9rem;
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.site-footer strong {
  color: var(--tpl-muted);
  font-family: var(--tpl-font-serif);
  font-style: italic;
}

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }
  .primary-nav {
    width: 100%;
    display: none;
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0 0.75rem;
  }
  .brand img {
    height: 46px;
  }
}
