/* Lisanti Painting - static site styles
   Layout, colours, fonts and spacing carried over from the previous WordPress (Divi) theme. */

/* ---------- Fonts (self-hosted, SIL Open Font License - see ../fonts/licenses) ---------- */
@font-face { font-family: "Crimson Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/crimson-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/crimson-text-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/crimson-text-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/bitter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bitter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/pt-serif-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Ledger"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ledger-latin-400-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --page-bg: #608296;                     /* colour behind the boxed page */
  --accent: #0c71c3;
  --heading: #478ec1;
  --text: #000;
  --topbar-bg: #0a6484;
  --header-bg: rgba(99, 142, 0, 0.35);
  --header-bg-stuck: rgba(149, 181, 193, 0.92);
  --header-bg-solid: #c8d7a6;             /* --header-bg flattened onto white, for the mobile menu */
  --nav-link: rgba(0, 0, 0, 0.6);
  --nav-active: #2ea3f2;
  --footer-bg: #222;
  --font-body: "Crimson Text", Georgia, "Times New Roman", serif;
  --font-heading: "Bitter", Georgia, "Times New Roman", serif;
  --font-nav: "PT Serif", Georgia, "Times New Roman", serif;
  --font-profile: "Ledger", Georgia, "Times New Roman", serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  margin: 0;
  padding-bottom: 10px;
  color: var(--heading);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1em;
}
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0; padding-bottom: 1em; }
a { color: var(--accent); text-decoration: none; }
strong { font-weight: 700; }
img { max-width: 100%; height: auto; border: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Boxed page: 90% wide up to 1200px, centred on the coloured background */
.page { width: 90%; max-width: 1200px; margin: 0 auto; background: #fff; box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2); }
.container { position: relative; width: 90%; max-width: 1200px; margin: 0 auto; }

/* ---------- Top bar + header ---------- */
.site-top { position: sticky; top: 0; z-index: 1000; }

.topbar { background: var(--topbar-bg); color: #fff; font-size: 12px; font-weight: 600; line-height: 13px; }
.topbar .container { height: 31px; padding: 9px 0; }
.topbar a { color: #fff; }
.topbar svg { position: relative; top: 2px; width: 11px; height: 11px; margin-right: 3px; fill: currentColor; }

.site-header {
  background: var(--header-bg);
  font-family: var(--font-nav);
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.4s;
}
.logo { display: none; }

.main-nav { padding-top: 15px; text-align: center; transition: padding 0.4s ease-in-out; }
.main-nav ul { display: inline-flex; align-items: flex-start; }
.main-nav li { padding-right: 22px; font-size: 14px; line-height: 1em; }
.main-nav li:last-child { padding-right: 0; }
.main-nav li:not(.nav-logo):not(:last-child) { margin-right: 3.8px; }
.main-nav a { display: block; padding-bottom: 15px; color: var(--nav-link); transition: opacity 0.4s ease-in-out, padding 0.4s ease-in-out; }
.main-nav a:hover { opacity: 0.7; }
.main-nav a[aria-current="page"] { color: var(--nav-active); }

/* Small logo that slides into the middle of the menu once the page is scrolled */
.main-nav .nav-logo { width: 0; height: 14px; padding: 0; opacity: 0; overflow: hidden; transition: all 0.4s ease-in-out; }
.main-nav .nav-logo a { display: flex; align-items: center; height: 100%; padding: 0; }
.main-nav .nav-logo img { display: block; width: auto; max-width: none; height: 30px; }

@media (min-width: 981px) {
  .is-stuck .site-header { background: var(--header-bg-stuck); }
  .is-stuck .main-nav { padding-top: 20px; }
  .is-stuck .main-nav a { padding-bottom: 20px; }
  .is-stuck .main-nav .nav-logo { width: 114px; height: 54px; margin: -20px 0; padding-right: 22px; opacity: 1; }
  .is-stuck .main-nav .nav-logo a { padding: 0; }
}

/* Mobile menu (no JavaScript needed) */
.mobile-nav { display: none; position: relative; margin-top: 20px; }
.mobile-nav summary {
  position: relative;
  display: block;
  padding: 9px 10px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { position: absolute; top: 0; right: 5px; width: 32px; height: 32px; fill: var(--accent); }
.mobile-nav ul {
  position: absolute;
  top: 53px;
  left: 0;
  width: 100%;
  padding: 5%;
  background: var(--header-bg-solid);
  border-top: 3px solid var(--accent);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}
.mobile-nav li a {
  display: block;
  padding: 10px 5%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  color: #666;
  font-size: 14px;
  line-height: 23px;
  transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.mobile-nav li a:hover { background: rgba(0, 0, 0, 0.03); opacity: 0.7; }
.mobile-nav li a[aria-current="page"] { color: var(--nav-active); }

/* ---------- Hero (large logo band) ---------- */
.hero {
  position: relative;
  z-index: 10;
  padding: 50px 0;
  background: #f2f2f2;
  box-shadow: 6px 6px 18px 0 rgba(0, 0, 0, 0.3);
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.77); pointer-events: none; }
.hero-inner { position: relative; width: 80%; max-width: 1080px; margin: 0 auto; }
.hero-content { width: 80%; max-width: 800px; margin: 20px auto; padding: 10px; text-align: center; }

/* ---------- Content sections ---------- */
.section { position: relative; padding: 4% 0; background: #fff; }
.row { display: flex; position: relative; width: 90%; max-width: 1200px; margin: 0 auto; padding: 2% 0; }
.col { min-width: 0; }
.col-full { width: 100%; }
.col-1-3 { width: 29.6667%; margin-right: 5.5%; }
.col-1-3 h2 { font-size: 23px; }
.col-1-3 h3 { font-size: 20px; }
.mod { margin-bottom: 9.27%; }
.col-full > .mod { margin-bottom: 2.75%; }
.mod:last-child { margin-bottom: 0; }
.mod p:last-of-type { padding-bottom: 0; }
.center { text-align: center; }

.divider { position: relative; box-sizing: content-box; height: 23px; }
.divider::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; border-top: 1px solid var(--accent); }
.divider::after { content: ""; display: table; }
.divider.dotted::before { border-top-style: dotted; }
.divider.flat { height: 0; }
.phone-only { display: none; }

/* Home: company profile column */
.profile .text { padding-left: 2px; font-family: var(--font-profile); }
.profile h2, .profile h3 { font-family: var(--font-profile); text-align: center; }
.profile .text.heading { padding-top: 10px; }
.profile .text.lead { padding-bottom: 10px; }

/* Contact */
.row-contact { margin-left: 60px; margin-right: auto; }
.contact h3 { margin-bottom: 38px; }
.contact h4 { margin-bottom: 14px; color: #000; }
.contact a[href^="tel:"] { color: inherit; }
.contact .mod p:last-of-type { padding-bottom: 1em; }

/* ---------- Buttons ---------- */
.btn-wrap { text-align: center; }
.profile .btn-wrap { margin-top: 10px; }
.btn {
  position: relative;
  display: inline-block;
  padding: 0.3em 1em;
  border: 2px solid;
  border-radius: 3px;
  background: transparent;
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7em;
  transition: all 0.3s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  margin-left: -1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.3 5.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 1 1-1.4-1.4l5.3-5.3-5.3-5.3a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.3 5.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 1 1-1.4-1.4l5.3-5.3-5.3-5.3a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transition: all 0.3s ease;
}
.btn:hover, .btn:focus-visible { padding: 0.3em 2em 0.3em 0.7em; border-color: transparent; background: rgba(0, 0, 0, 0.05); }
.btn:hover::after, .btn:focus-visible::after { margin-left: 0.3em; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); }
.footer-nav { background: rgba(255, 255, 255, 0.05); }
.footer-nav ul { display: flex; flex-wrap: wrap; padding: 15px 0; }
.footer-nav li { padding-right: 22px; font-size: 14px; font-weight: 600; }
.footer-nav li:last-child { padding-right: 0; }
.footer-nav a { color: #bbb; transition: opacity 0.4s ease-in-out; }
.footer-nav a:hover { opacity: 0.7; }
.footer-nav a[aria-current="page"] { color: var(--nav-active); }
.footer-bottom { height: 20px; background: rgba(0, 0, 0, 0.32); }

/* ---------- Breakpoints (same as the old theme: 1350 / 980 / 767) ---------- */
@media (min-width: 1350px) {
  .section { padding: 54px 0; }
  .row { padding: 27px 0; }
}

@media (max-width: 980px) {
  .site-top { position: static; }
  .site-header { padding: 20px 0; }
  .logo { display: block; text-align: center; }
  .logo img { display: inline-block; width: auto; max-width: 50%; max-height: 60px; vertical-align: middle; }
  .main-nav { display: none; }
  .mobile-nav { display: block; }

  .section { padding: 50px 0; }
  .row { display: block; padding: 30px 0; }
  .col-1-3 { width: 100%; margin-right: 0; }
  .mod, .col-full > .mod { margin-bottom: 30px; }
  .mod:last-child { margin-bottom: 0; }
}

@media (max-width: 767px) {
  .topbar .container { text-align: center; }
  .phone-only { display: block; }
  .profile h3 { font-size: 26px; }
  .profile p { text-align: center; }
  .profile .divider.dotted::before { border-top-style: solid; }
  .profile .divider.flat { height: 23px; }
  .row-contact { margin-left: auto; }
  .footer-nav ul { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
