/* Friargreen Construction — static rebuild
   Brand colours: blue #1639A1 / #17399D, dark blue footer #0D2C8D, accent green #82C92D
   Fonts: Fira Sans Condensed (headings), Fira Sans (buttons), Roboto (body) */

:root {
  --blue: #1639a1;
  --blue-dark: #0d2c8d;
  --green: #82c92d;
  --text: #5b5b5b;
  --link: #21759b;
  --h3: #39465d;
  --border: #e5e5e5;
}

* { box-sizing: border-box; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.form-banner {
  padding: 16px 20px;
  text-align: center;
  font-weight: 700;
}
.form-banner-ok { background: var(--green); color: #fff; }
.form-banner-error { background: #c0392b; color: #fff; }

body {
  margin: 0;
  font-family: Roboto, Helvetica, Arial, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

h1, h2, h3, h4 {
  font-family: "Fira Sans Condensed", Helvetica, Arial, Verdana, sans-serif;
  font-weight: 400;
  color: var(--blue);
  margin: 0 0 10px;
}

h2 { font-size: 40px; line-height: 1.25; }
h3 { font-weight: 400; color: var(--h3); font-size: 24px; }
h4 { font-size: 18px; }

/* Card / list titles use a smaller, bold variant of h3 */
.card h3, .case-box .case-item h4 { font-size: 18px; font-weight: 700; }

p { margin: 0 0 16px; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Divider bars used under headings */
.divider { display: flex; gap: 6px; margin: 14px 0 26px; }
.divider.center { justify-content: center; }
.divider span { display: block; height: 3px; width: 34px; }
.divider span.blue { background: var(--blue); }
.divider span.green { background: var(--green); }

/* Top info bar */
.topbar {
  background: #fff;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar .contact-line { display: flex; gap: 24px; color: var(--text); flex-wrap: wrap; }
.topbar .contact-line i { color: #8a8a8a; margin-right: 4px; }
.topbar .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--green);
  color: #fff;
  border-radius: 3px;
  margin-left: 6px;
  font-size: 13px;
}
.topbar .socials a:hover { text-decoration: none; opacity: .85; }

/* Header / nav */
.site-header { padding: 18px 0; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }

.nav-group {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  flex-wrap: wrap;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav { position: relative; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav a {
  color: #333;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: 14px;
}
nav.main-nav a:hover, nav.main-nav li.active > a { color: var(--blue); text-decoration: none; }
nav.main-nav .submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  min-width: 180px;
  display: none;
  z-index: 50;
}
nav.main-nav li:hover .submenu { display: block; }
nav.main-nav .submenu a { display: block; padding: 8px 18px; text-transform: none; font-size: 14px; }

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-contact:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* Mobile nav toggle (kept simple / always visible nav for lightweight build) */
.menu-toggle { display: none; }

/* Page header banner (inner pages) */
.page-banner {
  background: url('../images/page-banner-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}
.page-banner h1 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 40px;
  line-height: 1.25;
  margin: 0;
}

/* Home hero */
.hero {
  background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)), url('../images/hero-home.jpg') center/cover no-repeat;
  color: var(--text);
  text-align: center;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.hero h1 { color: var(--blue); font-weight: 700; font-size: 54px; line-height: 1.15; margin-bottom: 18px; }
.hero p { font-size: 19px; max-width: 620px; margin: 0 auto 34px; color: #6b6b6b; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  color: #fff;
  background: var(--green);
  padding: 15px 34px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(130,201,45,.35);
}
.btn-cta:hover { background: #74b526; color: #fff; text-decoration: none; }

/* Sections */
section { padding: 60px 0; }
section.grey { background: #f7f8fa; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head.left { text-align: left; }
.section-head p.lead { max-width: 700px; margin: 0 auto; }

/* Two-column layout */
.row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.col { flex: 1 1 320px; }
.col-wide { flex: 2 1 420px; }
.col-narrow { flex: 1 1 320px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) {
  .card-grid.cols-2 { grid-template-columns: 1fr; }
}
.card {
  border: 1px solid var(--border);
}
.card img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.card .card-body { padding: 20px; }
.card .meta { font-size: 12px; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: 8px; }
.card h3 a { color: var(--h3); }
.card .excerpt { font-size: 14px; margin: 10px 0 14px; }
.card .read-more { font-weight: 600; font-size: 14px; }

/* Case studies box (About Us section) */
.case-box {
  background: #0f2c8d;
  padding: 24px;
  color: #fff;
}
.case-box h2 { color: #fff; font-size: 32px; margin-bottom: 18px; }
.case-box .case-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.case-box .case-item:last-child { margin-bottom: 0; }
.case-box .case-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
}
.case-box .case-item h4 { color: #fff; font-size: 15px; margin: 0 0 6px; font-weight: 700; }
.case-box .case-item h4 a { color: #fff; }
.case-box .case-item a.case-link { color: var(--green); font-size: 13px; font-weight: 600; }

/* Service cards with icon (homepage) */
.service-card { padding: 0 10px; display: flex; flex-direction: column; height: 100%; }
.service-card p { flex: 1; }
.service-card .icon-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.service-card .icon-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.service-card .icon-row h3 { margin: 0; }

/* Service cards with circular photo (services page) */
.service-card.photo-card { text-align: center; padding: 0 10px; }
.service-card.photo-card .circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.service-card.photo-card .circle img { width: 100%; height: 100%; object-fit: cover; }
.service-card.photo-card h3 { text-align: center; }
.service-card.photo-card p { text-align: center; }

/* Testimonial */
.testimonial { max-width: 960px; margin: 0 auto; display: flex; align-items: flex-start; gap: 20px; }
.testimonial .quote-mark { font-family: Georgia, serif; font-size: 80px; line-height: 1; color: #d8dbe2; flex-shrink: 0; }
.testimonial .quote-mark.right { align-self: flex-end; }
.testimonial .body { text-align: center; flex: 1; }
.testimonial blockquote { font-style: italic; font-size: 17px; margin: 0 0 20px; }
.testimonial .who { font-size: 24px; font-weight: 700; color: var(--h3); }
@media (max-width: 700px) {
  .testimonial .quote-mark { display: none; }
}

/* Buttons generic */
.btn-outline {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}
.btn-outline:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* CTA band (simple, full-width blue — used on inner pages) */
.cta-band {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--blue); }

/* Let's Talk split section (homepage) */
.talk-split {
  display: flex;
  flex-wrap: wrap;
  min-height: 460px;
}
.talk-split .photo {
  flex: 1 1 420px;
  min-height: 460px;
  background-size: cover;
  background-position: center;
}
.talk-split .content {
  flex: 1 1 420px;
  background: var(--green);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 75px 30px;
}
.talk-split .content .eyebrow {
  color: var(--blue);
  font-size: 32px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 26px;
}
.talk-split .content h2 { color: #fff; font-size: 42px; font-weight: 400; max-width: 460px; }
.talk-split .content .btn-outline { border-color: var(--blue); color: var(--blue); margin-top: 20px; padding: 14px 26px; }
.talk-split .content .btn-outline:hover { background: var(--blue); color: #fff; }

/* Contact Info band (homepage, green) */
.contact-info-band { background: var(--green); padding: 70px 40px; color: #fff; }
.contact-info-band .divider span.green { background: #fff; }
.contact-info-band .row { align-items: center; }
.contact-info-band h3 { color: var(--blue); font-weight: 400; font-size: 32px; margin-bottom: 20px; }
.contact-info-band .info-list li strong {
  display: inline;
  color: var(--blue);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
}
.contact-info-band .info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-left: 0;
  margin-bottom: 22px;
}
.contact-info-band .info-list .ico {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.contact-info-band .info-list div div { color: #fff; }
.contact-info-band .map-frame iframe { width: 100%; height: 340px; border: 0; }

/* Case study / article detail content */
.post-content h2 { font-size: 32px; color: var(--h3); margin-top: 34px; }
.post-content ul { padding-left: 20px; }
.post-content img { margin: 20px 0; border-radius: 4px; }

/* Quote / director section */
.quote-block {
  background: #f7f8fa;
  padding: 40px;
  border-left: 4px solid var(--green);
}
.quote-block blockquote { font-style: italic; font-size: 17px; margin: 0 0 14px; }

/* Contact / footer info list */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { margin-bottom: 14px; padding-left: 28px; position: relative; }
.info-list li strong { display: block; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; opacity: .8; }

/* Footer */
footer.site-footer {
  background: linear-gradient(rgba(13,44,141,.55), rgba(13,44,141,.55)), url('../images/footer-bg.jpg') center/cover no-repeat;
  color: #cfd6ee;
}
.footer-top { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.footer-grid h3, .footer-grid h4 { color: var(--green); }
.footer-grid .info-list li strong { color: var(--green); opacity: 1; }
footer.site-footer a { color: #cfd6ee; }
footer.site-footer a:hover { color: #fff; }
.footer-form input, .footer-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: none;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
}
.footer-form textarea { min-height: 90px; resize: vertical; }
.footer-form button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom img { height: 70px; width: auto; }

/* Contact / recruitment page */
.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 34px; }
.icon-list li:last-child { margin-bottom: 0; }
.icon-list .ico {
  margin-top: 6px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.icon-list h4 { margin: 0 0 4px; color: var(--h3); font-weight: 400; font-size: 24px; }
.icon-list div div { color: var(--text); }

/* Green form box (contact / recruitment) */
.green-form-box { background: var(--green); padding: 40px; color: #fff; }
.green-form-box .form-title { text-align: center; margin-bottom: 24px; }
.green-form-box .form-title h2 { color: var(--blue); font-size: 30px; margin-bottom: 8px; }
.green-form-box .form-title .divider { justify-content: center; }
.green-form-box .form-title .divider span.green { background: #fff; }
.green-form-box input,
.green-form-box textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: none;
  font-family: inherit;
  font-size: 15px;
}
.green-form-box textarea { min-height: 120px; resize: vertical; }
.green-form-box .agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin-bottom: 20px; }
.green-form-box .agree input { width: auto; margin: 3px 0 0; }
.green-form-box button {
  background: transparent;
  color: #fff;
  border: 2px solid var(--blue);
  padding: 12px 30px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
  font-size: 15px;
}
.green-form-box button:hover { background: var(--blue); }

.location-heading { margin-bottom: 20px; }
.location-heading h2 { font-size: 30px; }
.location-heading .divider { width: 60px; }
.map-embed { border: 0; width: 100%; height: 420px; display: block; }
.map-frame img { width: 100%; border-radius: 4px; }

/* About Us — intro / approach photo sections */
.about-photo { border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.about-photo img { width: 100%; }
.about-photo.square { aspect-ratio: 1 / 1; }
.about-photo.square img { width: 100%; height: 100%; object-fit: cover; }

/* Director quote band */
.director-band { background: var(--blue-dark); color: #fff; padding: 60px 0; }
.director-band .row { align-items: center; }
.director-band .photo { flex: 0 1 260px; max-width: 260px; border-radius: 4px; overflow: hidden; }
.director-band .text { flex: 1 1 420px; }
.director-band h2 { color: var(--green); font-size: 30px; }
.director-band blockquote { font-style: italic; font-size: 18px; color: #fff; margin: 20px 0; }
.director-band .who { color: var(--green); font-weight: 700; }
.director-band .role { color: #cfd6ee; font-size: 14px; }

/* Blog / case-study detail layout with sidebar */
.post-layout { display: flex; gap: 50px; align-items: flex-start; flex-wrap: wrap; }
.post-layout .post-main { flex: 1 1 620px; min-width: 0; }
.post-layout .post-sidebar { flex: 0 1 280px; }
.post-featured { margin-bottom: 30px; border-radius: 4px; overflow: hidden; }
.post-featured img { width: 100%; }
.sidebar-search { display: flex; border: 1px solid var(--border); margin-bottom: 34px; }
.sidebar-search input { flex: 1; border: none; padding: 10px 12px; font-family: inherit; font-size: 14px; }
.sidebar-search button { border: none; background: #f2f2f2; padding: 0 16px; cursor: pointer; }
.sidebar-heading { font-size: 18px; color: var(--h3); font-weight: 400; margin-bottom: 18px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.recent-posts { list-style: none; margin: 0; padding: 0; }
.recent-posts li { display: flex; gap: 12px; margin-bottom: 18px; }
.recent-posts img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.recent-posts .rp-title { font-size: 13.5px; font-weight: 600; color: var(--h3); line-height: 1.4; }
.recent-posts .rp-date { font-size: 12px; color: #999; margin-top: 4px; }

@media (max-width: 780px) {
  nav.main-nav ul { gap: 16px; }
  .hero { padding: 80px 16px; }
  .hero h1 { font-size: 30px; }
}

@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .nav-group { margin-left: 0; }
  nav.main-nav ul { flex-wrap: wrap; gap: 12px 18px; }
}

@media (max-width: 900px) {
  .post-layout { flex-direction: column; }
  .post-layout .post-sidebar { flex: 1 1 auto; width: 100%; }
  .director-band .photo { order: -1; }
}
