/* ============================================================
   Skylir Partners — design tokens (measured from skylir.com)
   Fonts: Rubik (headings) · Roboto (body) · Roboto Slab (loaded)
   WordPress/Elementor parity — hand-written static rebuild
   ============================================================ */
:root {
  --ink:        #333333;  /* base body text (html default) */
  --grey-text:  #7a7a7a;  /* Elementor global "text" colour — paragraphs */
  --grey-nav:   #737373;  /* nav links */
  --heading:    #000000;  /* section headings */
  --h3-ink:     #2c2c2c;  /* TowerCo H3 titles */
  --white:      #ffffff;
  --cyan:       #e9fcff;  /* light section band + form fields */
  --dark:       #383838;  /* footer band + submit button */
  --icon-line:  #707070;  /* icon-box circle border + glyph */
  --line:       #000000;  /* form input border */

  --radius:    3px;
  --container: 1140px;
  --shadow:    0 14px 40px rgba(0,0,0,.12);

  --rubik:  "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --roboto: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --slab:   "Roboto Slab", Georgia, serif;
}

/* ---- Reset-ish ---- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--roboto);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; width: 100%; }

h1,h2,h3,h4,h5,h6 { font-family: var(--rubik); margin: 0; color: var(--heading); }
p { margin: 0 0 1em; }

/* ---- Skip link ---- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--dark); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip:focus { left: 12px; top: 12px; }

/* ============================================================
   Header  (transparent bar over white page, logo + right nav)
   ============================================================ */
.site-header {
  position: relative; z-index: 50;
  background: transparent;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0 15px; gap: 20px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 175px; height: 175px; object-fit: contain; }

.primary-nav { display: flex; align-items: center; }
.primary-nav > ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a {
  font-family: var(--roboto); color: var(--grey-nav); font-size: 18px; font-weight: 500;
  line-height: 1.5; padding: 8px 0; display: inline-block; transition: color .15s;
}
.primary-nav a:hover { color: #000; }
.has-sub > a::after { content: " \25BE"; font-size: 11px; opacity: .7; margin-left: 4px; vertical-align: middle; }

/* dropdown */
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 280px;
  background: #fff; box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 6px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s; z-index: 60;
}
.has-sub:hover > .submenu, .has-sub.open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 20px; font-size: 16px; font-weight: 400; color: var(--grey-nav); white-space: nowrap; }
.submenu a:hover { background: var(--cyan); color: #000; }

.nav-toggle {
  display: none; width: 46px; height: 42px; background: transparent;
  border: 1px solid rgba(0,0,0,.25); border-radius: 6px; cursor: pointer; padding: 0;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #555; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero  (shared 637.jpg background, white logo mark + headings)
   ============================================================ */
.hero {
  position: relative;
  background: url("assets/hero-bg.jpg") top center / cover no-repeat;
  padding: 0 10px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 30px;
  min-height: 540px; padding: 60px 15px 90px;
}
.hero-mark { flex: 0 0 auto; width: 200px; }
.hero-mark img { width: 200px; height: auto; }
.hero-text { flex: 1; }
.hero-text .hero-title { font-family: var(--rubik); font-weight: 500; color: #fff; font-size: 75px; line-height: 1; margin: 0; }
.hero-text .hero-sub   { font-family: var(--rubik); font-weight: 400; color: #fff; font-size: 35px; line-height: 1; margin: 14px 0 0; }
/* Interior page hero: one title, sometimes two lines */
.hero.interior .hero-title { font-size: 50px; line-height: 1; }

/* opacity-tilt shape divider (white wedge at hero bottom) */
.hero-shape {
  position: absolute; bottom: -1px; left: 0; width: 100%; height: 150px;
  overflow: hidden; line-height: 0; transform: rotate(180deg); pointer-events: none;
}
.hero-shape svg { position: relative; display: block; width: calc(100% + 1.3px); height: 150px; }
.hero-shape .shape-fill { fill: #ffffff; }

/* ============================================================
   Sections / bands
   ============================================================ */
.section { padding: 60px 0; }
.section-cyan { background: var(--cyan); }
.section-dark { background: var(--dark); }

.lead {
  font-family: var(--roboto); font-size: 20px; line-height: 1.5; color: var(--grey-text);
  text-align: center; max-width: 1140px; margin: 0 auto;
}
.lead p { margin: 0 0 1em; }
.lead p:last-child { margin-bottom: 0; }

.section-title {
  font-family: var(--rubik); font-weight: 400; font-size: 35px; line-height: 1;
  color: var(--heading); text-align: center; margin: 0 0 30px;
}

/* body copy */
.copy { font-family: var(--roboto); font-size: 16px; line-height: 1.5; color: var(--grey-text); }
.copy p { margin: 0 0 1em; }
.copy p:last-child { margin-bottom: 0; }

/* H4 content heading (capitalised, centred) */
.feature-title {
  font-family: var(--rubik); font-weight: 500; font-size: 29px; line-height: 1.1;
  color: var(--heading); text-align: center; text-transform: capitalize; margin: 0 0 20px;
}
.feature-title small { display: block; }
.feature-title.fs-30 { font-size: 30px; }
.feature-title.fs-36 { font-size: 36px; }
.feature-title.fs-40 { font-size: 40px; }

/* ============================================================
   Two-column content rows  (image + text, alternating)
   ============================================================ */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: 1140px; margin: 0 auto;
}
.two-col.rev .two-col-media { order: 2; }
.two-col-media img { width: 100%; height: auto; border-radius: 4px; }
.two-col-media.stack { display: grid; gap: 20px; }

/* bullet lists */
.copy ul, .bullets { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.copy ul li, .bullets li { font-family: var(--roboto); font-size: 16px; line-height: 1.6; color: var(--grey-text); margin-bottom: .35em; }

/* ============================================================
   TowerCo Billing — alternating icon-box rows
   ============================================================ */
.icon-rows { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 34px; }
.icon-box { display: flex; align-items: center; gap: 30px; }
.icon-box.rev { flex-direction: row-reverse; text-align: right; }
.icon-circle {
  flex: 0 0 auto; width: 106px; height: 106px; border: 3px solid var(--icon-line);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.icon-circle svg { width: 50px; height: 50px; fill: var(--icon-line); }
.icon-box .icon-body { flex: 1; }
.icon-box h3 {
  font-family: var(--roboto); font-weight: 600; font-size: 28px; line-height: 1.2;
  color: var(--h3-ink); margin: 0 0 8px;
}
.icon-box p { font-family: var(--roboto); font-size: 16px; line-height: 1.5; color: var(--grey-text); margin: 0; }

/* ============================================================
   Team grid (about — hidden on live, kept for parity off)
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1140px; margin: 0 auto; }
.team-member { text-align: center; }
.team-member img { width: 100%; border-radius: 4px; margin-bottom: 12px; }
.team-member h6 { font-family: var(--rubik); font-size: 18px; font-weight: 500; margin: 0 0 4px; }
.team-member p { font-family: var(--roboto); font-size: 15px; color: var(--grey-text); margin: 0; }

/* ============================================================
   Contact form (static)
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; max-width: 1140px; margin: 0 auto; }
.contact-layout .contact-media img { width: 100%; height: auto; border-radius: 4px; }

.skylir-form { display: flex; flex-direction: column; gap: 14px; max-width: 550px; }
.skylir-form.narrow { margin: 0 auto; }
.skylir-form .field { display: flex; flex-direction: column; }
.skylir-form input,
.skylir-form textarea {
  font-family: var(--roboto); font-size: 16px; color: #000;
  background: var(--cyan); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; width: 100%;
}
.skylir-form input::placeholder,
.skylir-form textarea::placeholder { color: #555; opacity: 1; }
.skylir-form textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  align-self: flex-start; font-family: var(--roboto); font-size: 17px; font-weight: 500;
  color: #fff; background: var(--dark); border: 0; border-radius: var(--radius);
  padding: 12px 18px; cursor: pointer; transition: opacity .15s;
}
.btn-submit:hover { opacity: .88; }
.form-note { font-family: var(--roboto); font-size: 14px; color: var(--grey-text); margin: 4px 0 0; }

/* ============================================================
   Testimonials tabs (home — Elementor default demo content)
   ============================================================ */
.tabs { max-width: 1140px; margin: 0 auto; }
.tab-titles { display: flex; flex-wrap: wrap; border-bottom: 1px solid #d5d8dc; list-style: none; margin: 0; padding: 0; }
.tab-titles li {
  font-family: var(--roboto); font-size: 16px; color: var(--grey-text);
  padding: 14px 20px; cursor: pointer; border: 1px solid transparent; border-bottom: 0;
  margin-bottom: -1px;
}
.tab-titles li[aria-selected="true"] { color: #000; border-color: #d5d8dc; border-bottom-color: #fff; background: #fff; }
.tab-panel { display: none; padding: 20px; border: 1px solid #d5d8dc; border-top: 0; font-family: var(--roboto); font-size: 16px; color: var(--grey-text); }
.tab-panel.active { display: block; }

/* ============================================================
   Footer band  (dark — logo, address, contact, button)
   ============================================================ */
.footer-band { background: var(--dark); color: #fff; padding: 50px 0; }
.footer-grid {
  display: grid; grid-template-columns: 280px 1fr auto; gap: 40px; align-items: center;
  max-width: 1140px; margin: 0 auto;
}
.footer-logo img { width: 175px; height: auto; }
.footer-info { font-family: var(--roboto); font-size: 16px; line-height: 1.6; color: #fff; }
.footer-info p { margin: 0 0 1em; }
.footer-info strong { font-weight: 600; }
.footer-cta a { font-family: var(--roboto); font-size: 16px; color: #fff; }
.footer-cta a:hover { text-decoration: underline; }

/* 404 */
.page-404 { padding: 90px 0; text-align: center; }
.page-404 h1 { font-family: var(--rubik); font-weight: 500; font-size: 50px; color: #000; margin: 0 0 16px; }
.page-404 p { font-family: var(--roboto); font-size: 18px; color: var(--grey-text); margin: 0 0 24px; }
.page-404 a { color: #066aab; }

/* legal pages */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-family: var(--rubik); font-weight: 500; font-size: 40px; color: #000; margin: 0 0 24px; }
.legal h2 { font-family: var(--rubik); font-weight: 500; font-size: 26px; color: #000; margin: 32px 0 12px; }
.legal p, .legal li { font-family: var(--roboto); font-size: 16px; line-height: 1.6; color: var(--grey-text); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .primary-nav {
    position: absolute; top: 100%; right: 0; left: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 8px 0; display: none;
    box-shadow: var(--shadow); z-index: 70;
  }
  .primary-nav.open { display: flex; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .primary-nav > ul > li { border-bottom: 1px solid #eee; }
  .primary-nav > ul > li > a { padding: 12px 20px; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0; display: none; background: #f7f7f7; }
  .has-sub.open > .submenu { display: block; }
  .submenu a { padding-left: 36px; }
}
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; min-height: 0; padding: 50px 15px 80px; }
  .hero-mark { width: 150px; } .hero-mark img { width: 150px; }
  .hero-text .hero-title { font-size: 54px; }
  .hero.interior .hero-title { font-size: 40px; }
  .hero-text .hero-sub { font-size: 28px; }
  .two-col, .two-col.rev { grid-template-columns: 1fr; }
  .two-col.rev .two-col-media { order: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 24px; }
}
@media (max-width: 600px) {
  .hero-text .hero-title { font-size: 40px; }
  .hero.interior .hero-title { font-size: 32px; }
  .hero-text .hero-sub { font-size: 22px; }
  .lead { font-size: 18px; }
  .section-title { font-size: 30px; }
  .feature-title { font-size: 26px; }
  .icon-box, .icon-box.rev { flex-direction: column; text-align: center; gap: 16px; }
  .team-grid { grid-template-columns: 1fr; }
  .section { padding: 45px 0; }
}

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