/* Monte Sano Fence Co — template #14 (putty + oxblood wine + wheat, Constantia display over Optima body, side-rule section titles, alternating service rows, chip row hero) */
:root {
  --wine: #722f37;
  --wine-dk: #571f26;
  --putty: #f4f1ea;
  --putty-dk: #e9e4d7;
  --steel: #5c625e;
  --wheat: #c9a24b;
  --ink2: #33302b;
  --mut: #6f6a60;
  --ln: #dcd6c6;
}

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

body {
  font-family: Optima, Seravek, "Segoe UI", sans-serif;
  color: var(--ink2);
  background: #fff;
  font-size: 17px;
  line-height: 1.66;
}

h1, h2, h3, h4 {
  font-family: Constantia, "Times New Roman", Georgia, serif;
  color: var(--wine-dk);
  line-height: 1.22;
}
a { color: var(--wine); }

/* Header */
.ms-hd { background: #fff; border-bottom: 4px solid var(--wine); }
.ms-hd-in { max-width: 1030px; margin: 0 auto; padding: 17px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ms-mark { text-decoration: none; }
.ms-mark b { font-family: Constantia, Georgia, serif; font-size: 24px; color: var(--wine-dk); display: block; line-height: 1.05; }
.ms-mark small { font-size: 12.5px; color: var(--mut); letter-spacing: .6px; }
.ms-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ms-links nav { display: flex; gap: 15px; }
.ms-links nav a { color: var(--ink2); text-decoration: none; font-size: 15px; }
.ms-links nav a:hover { color: var(--wine); text-decoration: underline; }
.ms-callbtn {
  background: var(--wine); color: #fff; text-decoration: none; font-weight: bold;
  padding: 10px 18px; border-radius: 2px; font-size: 15.5px;
}
.ms-callbtn:hover { background: var(--wine-dk); }

/* Section title with side rules — template signature */
.ms-title { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.ms-title::before, .ms-title::after { content: ""; flex: 1; height: 1px; background: var(--ln); }
.ms-title h2 { font-size: 27px; white-space: normal; font-variant: small-caps; letter-spacing: 1px; }

/* Hero with chip row */
.ms-hero { background: var(--putty); padding: 52px 22px 46px; text-align: center; }
.ms-hero-in { max-width: 780px; margin: 0 auto; }
.ms-hero h1 { font-size: 38px; margin-bottom: 14px; }
.ms-hero .ms-lede { font-size: 18px; color: var(--mut); margin-bottom: 20px; }
.ms-chips { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; }
.ms-chips span { background: #fff; border: 1px solid var(--ln); color: var(--steel); font-size: 13.5px; padding: 6px 14px; border-radius: 999px; }
.ms-hero-acts { display: flex; justify-content: center; gap: 13px; flex-wrap: wrap; }
.ms-btn {
  background: var(--wine); color: #fff; text-decoration: none; font-weight: bold;
  padding: 14px 27px; border-radius: 2px; font-size: 16px; display: inline-block;
  border: 2px solid var(--wine);
}
.ms-btn:hover { background: var(--wine-dk); border-color: var(--wine-dk); }
.ms-btn.open { background: transparent; color: var(--wine-dk); }
.ms-btn.open:hover { background: var(--wine); color: #fff; }

/* Sections */
.ms-sec { max-width: 1030px; margin: 0 auto; padding: 46px 22px; }
.ms-sec > .ms-intro { text-align: center; color: var(--mut); max-width: 620px; margin: 0 auto 30px; }

/* Alternating service rows — template signature */
.ms-alt { display: grid; gap: 26px; }
.ms-svc { display: grid; grid-template-columns: 5fr 4fr; gap: 0; border: 1px solid var(--ln); }
.ms-svc:nth-child(even) { grid-template-columns: 4fr 5fr; }
.ms-svc:nth-child(even) .ms-svc-txt { order: 2; }
.ms-svc:nth-child(even) .ms-svc-side { order: 1; }
.ms-svc-txt { padding: 24px 26px; }
.ms-svc-txt h3 { font-size: 21px; margin-bottom: 7px; }
.ms-svc-txt h3 a { color: var(--wine-dk); text-decoration: none; }
.ms-svc-txt h3 a:hover { color: var(--wine); text-decoration: underline; }
.ms-svc-txt p { font-size: 15px; color: var(--mut); margin-bottom: 10px; }
.ms-svc-txt .ms-jump { font-weight: bold; font-size: 14.5px; }
.ms-svc-side { background: var(--putty); padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; gap: 8px; border-left: 1px solid var(--ln); }
.ms-svc:nth-child(even) .ms-svc-side { border-left: none; border-right: 1px solid var(--ln); }
.ms-svc-side b { font-family: Constantia, Georgia, serif; color: var(--wine-dk); font-size: 15.5px; }
.ms-svc-side span { font-size: 13.5px; color: var(--mut); line-height: 1.5; }

/* Prose */
.ms-prose { max-width: 730px; margin: 0 auto; }
.ms-prose h2 { font-size: 24px; margin: 28px 0 10px; }
.ms-prose p, .ms-prose li { margin-bottom: 13px; }
.ms-prose ul, .ms-prose ol { padding-left: 25px; }
.ms-where { font-size: 13.5px; color: var(--mut); margin-bottom: 20px; text-align: left; }
.ms-where a { color: var(--mut); }

/* Price table */
.ms-tbl { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 15px; }
.ms-tbl th { font-family: Constantia, Georgia, serif; text-align: left; background: var(--putty); color: var(--wine-dk); padding: 10px 13px; border-bottom: 2px solid var(--wine); }
.ms-tbl td { padding: 10px 13px; border-bottom: 1px solid var(--ln); }

/* Aside */
.ms-aside { border: 1px solid var(--ln); border-top: 4px solid var(--wheat); background: #fff; padding: 15px 18px; margin: 18px 0; font-size: 15px; }
.ms-aside b { color: var(--wine-dk); }

/* Town links */
.ms-townrow { display: flex; justify-content: center; gap: 9px 13px; flex-wrap: wrap; }
.ms-townrow a { color: var(--wine-dk); font-weight: bold; font-size: 15px; text-decoration: none; border: 1px solid var(--ln); background: #fff; padding: 8px 16px; }
.ms-townrow a:hover { border-color: var(--wine); color: var(--wine); }

/* FAQ */
.ms-faq { max-width: 800px; margin: 0 auto; }
.ms-faq details { border: 1px solid var(--ln); margin-bottom: 10px; padding: 3px 16px; background: #fff; }
.ms-faq summary { cursor: pointer; font-family: Constantia, Georgia, serif; font-weight: bold; font-size: 17px; color: var(--wine-dk); padding: 11px 0; }
.ms-faq .ms-ansr { padding: 0 0 13px; color: var(--mut); font-size: 15px; }

/* CTA band */
.ms-band { background: var(--wine-dk); text-align: center; padding: 44px 22px; }
.ms-band h2 { color: var(--putty); font-size: 27px; margin-bottom: 8px; }
.ms-band p { color: #cfb3b7; margin-bottom: 20px; }
.ms-band .ms-btn { background: var(--wheat); border-color: var(--wheat); color: var(--wine-dk); }
.ms-band .ms-btn:hover { background: #d8b45e; border-color: #d8b45e; }

/* Form */
.ms-form { max-width: 600px; margin: 0 auto; display: grid; gap: 15px; }
.ms-form label { font-weight: bold; font-size: 14px; display: block; margin-bottom: 4px; color: var(--wine-dk); }
.ms-form input, .ms-form select, .ms-form textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #c8c1ae; border-radius: 2px;
  background: #fff; font-family: inherit; font-size: 15.5px;
}
.ms-form input:focus, .ms-form select:focus, .ms-form textarea:focus { border-color: var(--wine); outline: none; }
.ms-form button {
  background: var(--wine); color: #fff; border: 2px solid var(--wine); border-radius: 2px; padding: 15px;
  font-family: inherit; font-weight: bold; font-size: 16px; cursor: pointer;
}
.ms-form button:hover { background: var(--wine-dk); }

/* Footer: light putty, centered stacked */
.ms-ft { background: var(--putty); border-top: 4px solid var(--wine); margin-top: 32px; text-align: center; }
.ms-ft-in { max-width: 800px; margin: 0 auto; padding: 36px 22px 24px; font-size: 14.5px; color: var(--mut); }
.ms-ft-in h4 { font-size: 18px; margin-bottom: 6px; }
.ms-ft-tel2 { font-family: Constantia, Georgia, serif; font-weight: bold; font-size: 21px; color: var(--wine); text-decoration: none; display: inline-block; margin: 8px 0 4px; }
.ms-ft-nav { margin: 14px 0 4px; }
.ms-ft-nav a { color: var(--ink2); text-decoration: none; margin: 0 9px; line-height: 2; }
.ms-ft-nav a:hover { color: var(--wine); text-decoration: underline; }
.ms-ft-base { font-size: 12.5px; color: var(--mut); border-top: 1px solid var(--ln); padding: 13px; }

/* Mobile bar */
.ms-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--wine); color: #fff; text-align: center; text-decoration: none;
  font-weight: bold; font-size: 16px; padding: 15px; z-index: 55;
}

@media (max-width: 850px) {
  .ms-links nav { display: none; }
  .ms-hd-in { justify-content: center; }
  .ms-svc, .ms-svc:nth-child(even) { grid-template-columns: 1fr; }
  .ms-svc:nth-child(even) .ms-svc-txt { order: 1; }
  .ms-svc:nth-child(even) .ms-svc-side { order: 2; border-right: none; }
  .ms-svc-side { border-left: none; border-top: 1px solid var(--ln); }
  .ms-hero h1 { font-size: 30px; }
  .ms-bar { display: block; }
  body { padding-bottom: 53px; }
}

/* Photos */
.ms-photo { margin: 22px 0 26px; }
.ms-photo img { width: 100%; height: auto; display: block; border: 1px solid var(--ln); border-bottom: 4px solid var(--wine); border-radius: 2px; }
.ms-photo figcaption { font-variant: small-caps; letter-spacing: .6px; font-size: 14px; color: var(--mut); padding: 8px 2px 0; }
