/* Welsh Telecom - static rebuild of the Zerif Lite WordPress theme look */
:root {
  --red: #e96656;
  --red-dark: #cb4332;
  --green: #1e9e6b;
  --green-dark: #14a168;
  --ribbon: rgba(52, 210, 147, 0.8);
  --blue: #3ab0e2;
  --yellow: #f7d861;
  --dark: #272727;
  --darker: #171717;
  --text: #404040;
  --muted: #808080;
  --footer-text: #939393;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  background: #1b1b1b;
  text-align: center;
  overflow-x: hidden;
}
/* Fixed photo behind the transparent home sections (works on iOS, unlike background-attachment: fixed) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: url("../images/bg-patch-panel.jpg") center / cover no-repeat;
}
h1, h2, h3, h4 { font-family: "Montserrat", Helvetica, Arial, sans-serif; color: var(--text); margin: 0 0 .6em; line-height: 1.25; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; width: auto; height: auto; clip: auto; padding: 8px 14px; background: #fff; color: var(--text); }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 5px 11px 0 rgba(50, 50, 50, .08);
  text-align: left;
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); }
.brand img { display: block; height: 56px; width: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav-list a { color: var(--text); font-size: 15px; line-height: 35px; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--red); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 3px; margin: 4px 0; background: var(--text); border-radius: 2px; }
.nav-toggle:hover, .nav-toggle:focus-visible { background: var(--red); }
.nav-toggle:hover span, .nav-toggle:focus-visible span { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 200px) 0 190px;
  background: rgba(0, 0, 0, .5);
}
.intro-text {
  color: #fff; font-size: 52px; line-height: 1.2; text-transform: uppercase; font-weight: 700;
  max-width: 1000px; margin: 0 auto 30px;
}
.btn {
  display: inline-block; margin: 10px; padding: 13px 35px; border: 0; border-radius: 4px;
  color: #fff !important; font-family: inherit; font-size: 14px; text-transform: uppercase; cursor: pointer;
  transition: background .3s;
}
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-dark); }
.btn-green { background: var(--green); }
.btn-green:hover { background: #127a51; }

/* ---------- Focus (services) ---------- */
.focus { background: #fff; padding: 90px 0 70px; }
.focus-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.focus-box { width: 25%; padding: 0 15px 35px; }
.service-icon {
  display: block; width: 145px; height: 145px; margin: 0 auto 20px;
  border: 10px solid #ececec; border-radius: 50%; overflow: hidden;
  background: #fff center / cover no-repeat; transition: border-color .2s;
}
.service-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.focus-box h3 {
  display: inline-block; position: relative; margin-bottom: 30px;
  font-size: 17px; font-weight: 700; text-transform: uppercase;
}
.focus-box p { font-size: 14px; color: var(--muted); }
.accent-line::before {
  content: ""; position: absolute; left: 12.5%; bottom: -9px; width: 75%; height: 2px; background: var(--red);
}
.focus-box:nth-child(4n+1) .service-icon:hover { border-color: var(--red); }
.focus-box:nth-child(4n+2) .service-icon:hover { border-color: #34d293; }
.focus-box:nth-child(4n+2) .accent-line::before { background: #34d293; }
.focus-box:nth-child(4n+3) .service-icon:hover { border-color: var(--blue); }
.focus-box:nth-child(4n+3) .accent-line::before { background: var(--blue); }
.focus-box:nth-child(4n+4) .service-icon:hover { border-color: var(--yellow); }
.focus-box:nth-child(4n+4) .accent-line::before { background: var(--yellow); }

/* ---------- Ribbon ---------- */
.ribbon { background: var(--ribbon); padding: 90px 0; }
.ribbon h3 { color: #fff; font-size: 26px; font-weight: 400; line-height: 1.4; margin: 0 auto; max-width: 800px; }
.ribbon a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .6); }
.ribbon a:hover { color: var(--darker); }

/* ---------- About ---------- */
.about-us { background: var(--dark); color: #fff; padding: 90px 0 60px; }
.about-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 30px; }
.about-grid > div { flex: 1 1 400px; }
.big-intro { font-size: 52px; font-weight: 300; line-height: 1.2; color: #fff; font-family: "Lato", sans-serif; }
.about-text h2 { color: #fff; font-size: 30px; }
.about-text p { color: var(--footer-text); text-align: center; }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-top: 50px; }
.partner-logos img { max-height: 160px; width: auto; opacity: .85; transition: opacity .5s; background: #fff; border-radius: 3px; }
.partner-logos img:hover { opacity: 1; }

/* ---------- Team ---------- */
.our-team { background: #fff; padding: 90px 0 50px; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.team-box { width: 25%; padding: 0 15px 35px; }
.profile-pic { width: 128px; height: 128px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; }
.profile-pic.initials {
  display: flex; align-items: center; justify-content: center;
  background: #ececec; color: var(--text); font-family: "Montserrat", sans-serif; font-size: 36px; font-weight: 700;
}
.team-box h3 { display: inline-block; position: relative; margin-top: 10px; margin-bottom: 20px; font-size: 17px; font-weight: 700; text-transform: uppercase; }
.team-box:nth-child(4n+2) .accent-line::before { background: #34d293; }
.team-box:nth-child(4n+3) .accent-line::before { background: var(--blue); }
.team-box:nth-child(4n+4) .accent-line::before { background: var(--yellow); }
.position { font-size: 13px; }
.team-social { margin-top: 10px; }
.team-social a { color: var(--muted); }
.team-social a:hover { color: var(--red); }

/* ---------- Contact ---------- */
.contact-us { background: rgba(0, 0, 0, .5); padding: 90px 0; color: #fff; }
.contact-us .legend { color: #fff; font-size: 17px; margin-bottom: 40px; }
.contact-direct { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 36px; }
.contact-form { max-width: 760px; margin: 0 auto; text-align: left; }
.form-row { display: flex; gap: 16px; }
.form-row > .field { flex: 1; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; color: rgba(255, 255, 255, .95); }
.field .req { color: var(--red); }
.field input, .field textarea {
  width: 100%; padding: 10px 12px 10px 15px; border: 1px solid transparent; border-radius: 4px;
  font: inherit; font-size: 14px; color: var(--text); background: rgba(255, 255, 255, .95);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.form-actions { text-align: right; }
.form-note { font-size: 13px; color: rgba(255, 255, 255, .75); margin-top: 12px; text-align: right; }
.light .field label { color: var(--text); }
.light .field input, .light .field textarea { border-color: #d6d6d6; background: #fff; }
.light .form-note { color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-wrap { background: #fff; padding: calc(var(--nav-h) + 50px) 0 70px; text-align: left; }
.page-wrap .container { max-width: 960px; }
.entry-title { font-size: 34px; margin-bottom: 8px; }
.entry-meta { font-size: 13px; color: #999; margin-bottom: 26px; }
.entry-content { color: #555; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2 { font-size: 20px; margin: 1.6em 0 .5em; }
.entry-content figure { margin: 30px 0 0; }
.entry-content figure img { display: block; width: 100%; border-radius: 3px; }
.entry-content ul { padding-left: 1.2em; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.entry-content table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid #e3e3e3; padding: 10px 12px; vertical-align: top; text-align: left; }
.entry-content th { background: #f6f6f6; color: var(--text); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: flex; gap: 24px; align-items: flex-start; padding: 0 0 30px; border-bottom: 1px solid #eee; }
.post-list img { width: 200px; height: 200px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.post-list h2 { font-size: 24px; margin-bottom: 4px; }
.post-list h2 a { color: var(--text); }
.post-list h2 a:hover { color: var(--red); }
.cta-box { margin-top: 40px; padding: 26px; background: #f6f6f6; border-left: 4px solid var(--red); border-radius: 3px; }
.cta-box p { margin: 0 0 12px; }
.cta-box .btn { margin: 4px 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); line-height: 1.6; }
.footer-grid { display: flex; flex-wrap: wrap; }
.company-details { flex: 1 1 25%; padding: 60px 15px 30px; color: var(--footer-text); }
.company-details a { color: var(--footer-text); }
.company-details a:hover { color: var(--red); }
.company-details svg { display: block; width: 34px; height: 34px; margin: 0 auto 14px; }
.company-details:nth-child(1) svg { fill: var(--red); }
.company-details:nth-child(2) svg { fill: #34d293; }
.company-details:nth-child(3) svg { fill: var(--blue); }
.copyright { flex: 1 1 25%; padding: 56px 15px; background: var(--darker); color: var(--footer-text); }
.social { list-style: none; margin: 0 0 14px; padding: 0; display: flex; justify-content: center; gap: 14px; }
.social a { color: var(--footer-text); }
.social a:hover { color: var(--red); }
.social svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.copyright p { margin: 0; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .focus-box, .team-box { width: 50%; }
  .intro-text { font-size: 40px; }
  .big-intro { font-size: 40px; }
  .company-details, .copyright { flex-basis: 50%; }
}
@media (max-width: 767px) {
  :root { --nav-h: 66px; }
  .brand img { height: 46px; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 6px 16px 14px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, .08);
  }
  .nav-list.open { display: flex; }
  .nav-list a { display: block; padding: 6px 0; }
  .hero { padding: calc(var(--nav-h) + 90px) 0 90px; }
  .intro-text { font-size: 28px; }
  .focus-box, .team-box { width: 100%; }
  .ribbon { padding: 60px 0; }
  .ribbon h3 { font-size: 21px; }
  .big-intro { font-size: 32px; }
  .about-grid > div { flex-basis: 100%; }
  .form-row { flex-direction: column; gap: 0; }
  .form-actions, .form-note { text-align: center; }
  .company-details, .copyright { flex-basis: 100%; padding-top: 36px; padding-bottom: 20px; }
  .copyright { padding-bottom: 36px; }
  .post-list li { flex-direction: column; }
  .post-list img { width: 100%; height: 200px; }
  .entry-title { font-size: 28px; }
}
