/* ==========================================================================
   PE Telcom — petelcom.com
   Brand colour taken from the original logo: #4E91AD (steel blue).
   ========================================================================== */

:root {
  --brand:        #4E91AD;
  --brand-dark:   #3B7590;
  --brand-darker: #2C5A70;
  --brand-tint:   #EEF5F8;
  --ink:          #14232B;
  --body:         #4A5F6B;
  --line:         #DCE6EB;
  --paper:        #FFFFFF;
  --paper-alt:    #F7FAFC;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(20,35,43,.05), 0 10px 30px rgba(20,35,43,.07);
  --shadow-lg:    0 2px 4px rgba(20,35,43,.06), 0 24px 60px rgba(20,35,43,.12);
  --wrap:         1140px;
  --font:         "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif:        "Playfair Display", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.16rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.muted { color: #6C8290; }
.small { font-size: .82rem; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand-darker);
  color: #fff; padding: 12px 18px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }

.brand { display: flex; flex-direction: column; gap: 1px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.6rem; line-height: 1;
  letter-spacing: .07em;
  color: var(--brand);
  font-weight: 700;
}
.brand-tag {
  font-size: .62rem; letter-spacing: .13em; text-transform: uppercase;
  color: #7E93A0; font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--brand-dark); text-decoration: none; }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 10px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--brand-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--brand-darker); }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("assets/photo-hero.jpg");
  background-size: cover; background-position: center 32%;
  filter: saturate(.85);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28,64,80,.94) 0%, rgba(34,78,96,.86) 42%, rgba(40,90,110,.62) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 108px 22px 96px; max-width: var(--wrap); }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  font-weight: 700; color: #BEE0EC; margin-bottom: 14px;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: #CDE7F1; display: block; }
.hero .lede { max-width: 60ch; font-size: 1.1rem; color: #E4F0F5; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 42px; }

.btn {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-primary:hover { background: #5AA0BD; color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }

.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; }
.trust li { font-size: .92rem; color: #D5E8EF; }
.trust strong { color: #fff; }

/* ---------- bands & sections ---------- */
.band { padding: 84px 0; }
.band-alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #C6D8E0; }
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; font-size: .96rem; }
.icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-tint); color: var(--brand-dark);
}
.icon svg { width: 24px; height: 24px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; counter-reset: s; }
.steps li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps h3 { margin-bottom: .4em; }
.steps p { margin: 0; font-size: .96rem; }
.steps li::after {
  content: ""; position: absolute; top: 44px; right: -13px; width: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.steps li:last-child::after { display: none; }

/* about */
.about { display: grid; grid-template-columns: 1.35fr .95fr; gap: 48px; align-items: start; }
.pillars { margin: 0; }
.pillars dt { font-weight: 700; color: var(--ink); font-size: 1.08rem; margin-top: 22px; }
.pillars dt:first-child { margin-top: 0; }
.pillars dd { margin: 6px 0 0; font-size: .98rem; }

.about-aside {
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.about-aside img { width: 230px; margin-bottom: 16px; }
.aside-note { font-size: .95rem; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* cta band */
.cta-band { background: linear-gradient(105deg, var(--brand-darker), var(--brand-dark)); color: #fff; padding: 62px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta-band h2 { color: #fff; margin: 0; max-width: 26ch; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* contact */
.contact { display: grid; grid-template-columns: 1.25fr .8fr; gap: 46px; align-items: start; }
form { margin-top: 22px; }
.row { margin-bottom: 16px; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; color: var(--ink); font-size: .88rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #C9D8E0; border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(78,145,173,.18);
}
textarea { resize: vertical; min-height: 120px; }
.form-status { font-size: .92rem; font-weight: 600; min-height: 1.2em; margin: 4px 0 12px; }
.form-status.err { color: #B3261E; }
.form-status.ok  { color: #1B6B4A; }
.fineprint { font-size: .86rem; margin-top: 14px; color: #6C8290; }

.contact-details { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-details .big { font-size: 1.5rem; font-weight: 700; margin: 4px 0 2px; }
.contact-details .big a { color: var(--brand-dark); }
.contact-details hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.contact-details h3 { font-size: 1rem; margin-bottom: .3em; }

/* footer */
.site-footer { background: #10222B; color: #9FB6C1; padding: 44px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; justify-content: space-between; }
.site-footer .brand-word { color: #7FB6CD; font-size: 1.25rem; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #C6DCE6; }
.site-footer .copy { margin: 0; width: 100%; color: #7C93A0; font-size: .84rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps li::after { display: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 34px; }
  .hero-inner { padding: 78px 22px 70px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px;
    box-shadow: 0 18px 30px rgba(20,35,43,.10);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 10px; border-radius: var(--radius-sm); }
  .brand-word { font-size: 1.35rem; }
  .brand-tag { font-size: .55rem; letter-spacing: .1em; }
  .grid-3, .steps, .row.two { grid-template-columns: 1fr; }
  .band { padding: 62px 0; }
  .trust { gap: 8px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
