/* Waghela Associates – site styles.
   Brand taken from the original site: Roboto, wide-spaced capital headings,
   sky blue, deep red and charcoal, slanted section bands.
   --blue is decorative only (bands, icons, stars); text and buttons use --blue-ink for contrast. */

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #252e33;
  --text: #3a4449;
  --muted: #5b666c;
  --blue: #38b6ff;
  --blue-ink: #0b72b5;
  --blue-ink-dark: #085a8f;
  --red: #bb1414;
  --slate: #5e8aa6;
  --grey: #eeeeee;
  --grey-2: #f6f7f7;
  --line: #dde2e4;
  --white: #ffffff;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --radius: 4px;
  --shadow: 0 6px 18px rgba(37, 46, 51, 0.12);
  --track: 0.32em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-ink-dark); }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: var(--white); }

/* Wide-spaced capital headings, the site's signature */
.caps { text-transform: uppercase; letter-spacing: var(--track); font-weight: 500; }
.title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; }
.title--blue { color: var(--blue-ink); }
.title--center { text-align: center; }
.eyebrow { display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--red); margin-bottom: 0.75rem; }
.lead { font-size: 1.15rem; color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.85em 1.5em; border-radius: var(--radius); border: 2px solid transparent; font: 500 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; background: var(--blue-ink); color: var(--white); }
.btn:hover { background: var(--blue-ink-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--grey); color: var(--ink); }
.btn--sm { padding: 0.6em 1.1em; font-size: 0.95rem; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); box-shadow: 0 2px 10px rgba(37, 46, 51, 0.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.brand img { width: 230px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a { display: block; padding: 10px 12px; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue-ink); border-bottom-color: var(--blue); }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: 500 0.9rem var(--font); color: var(--ink); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
@media (max-width: 860px) {
  .site-header__inner { min-height: 72px; }
  .brand img { width: 180px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: 0 10px 20px rgba(37, 46, 51, 0.12); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; gap: 0; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
}

/* Announcement bar */
.announce { background: var(--ink); color: var(--white); font-size: 0.95rem; }
.announce__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.announce__tag { background: var(--blue); color: var(--ink); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; padding: 2px 8px; border-radius: 2px; }
.announce a { color: #8fd3ff; font-weight: 500; text-decoration: none; }
.announce a:hover { color: var(--white); text-decoration: underline; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--ink) url("/assets/img/hero-towers.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 28, 33, 0.86) 0%, rgba(20, 28, 33, 0.62) 55%, rgba(20, 28, 33, 0.25) 100%); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 32px; padding-top: clamp(64px, 11vw, 140px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; margin-bottom: 0.4em; }
.hero p { font-size: 1.15rem; max-width: 46ch; color: #eef3f6; }
.hero__badges { display: flex; gap: 18px; justify-content: flex-end; align-items: flex-end; }
.hero__badges img { width: 96px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.page-hero { position: relative; color: var(--white); background: var(--ink) var(--hero-img, url("/assets/img/resources-street.jpg")) center / cover no-repeat; }
.page-hero--services { --hero-img: url("/assets/img/services-laptop.jpg"); }
.page-hero--cloud { --hero-img: url("/assets/img/cloud-laptop.jpg"); }
.page-hero--about { --hero-img: url("/assets/img/hero-towers.jpg"); }
.page-hero--contact { --hero-img: url("/assets/img/contact-dashboard.jpg"); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20, 28, 33, 0.78); }
.page-hero__inner { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4.2vw, 2.8rem); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; margin: 0; }
.page-hero .eyebrow { color: #8fd3ff; margin: 0 0 0.75rem; }
.page-hero p { margin: 0.8em 0 0; max-width: 60ch; color: #e6edf1; font-size: 1.1rem; }
@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__badges { justify-content: flex-start; }
  .hero__badges img { width: 76px; }
}

/* Sections */
.section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.section--grey { background: var(--grey); }
.section--tight { padding-top: 40px; padding-bottom: 40px; }
.section__head { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.band { position: relative; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: polygon(0 18%, 100% 0, 100% 82%, 0 100%); }
.band--blue::before { background: var(--blue); }
.band--slate::before { background: var(--slate); }

/* About values: dark cards over a photo */
.values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: center; }
.values__photo { grid-column: 2; grid-row: 1; border-radius: var(--radius); min-height: 100%; background: url("/assets/img/about-workspace.jpg") center / cover no-repeat; }
.values__list { grid-column: 1 / span 2; grid-row: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 520px; position: relative; z-index: 1; margin-block: 40px; }
.value { display: grid; grid-template-columns: 44px 1fr; gap: 18px; background: #454c50; color: #f1f4f5; padding: 22px 24px; border: 6px solid var(--white); box-shadow: var(--shadow); }
.value svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2; }
.value h3 { color: var(--blue); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.24em; font-weight: 500; margin: 0 0 0.35em; }
.value p { margin: 0; font-size: 0.97rem; }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; }
  .values__photo { grid-column: 1; grid-row: 1; min-height: 260px; }
  .values__list { grid-column: 1; grid-row: 2; margin-top: -40px; max-width: none; padding: 0 12px; }
}

/* Image + text card */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split__card { background: var(--white); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); margin-left: -48px; position: relative; }
.split--reverse .split__img { order: 2; }
.split--reverse .split__card { margin-left: 0; margin-right: -48px; background: var(--grey); }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split__card, .split--reverse .split__card { margin: -32px 12px 0; }
  .split--reverse .split__img { order: 0; }
}

/* Service tiles (home) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tile a { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 100%; padding: 18px 20px; background: var(--white); border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.95rem; font-weight: 500; }
.tile a:hover { background: var(--ink); color: var(--white); }
.tile svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* Accordion (services page) */
.acc { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.acc details { scroll-margin-top: 112px; background: var(--grey); border: 1px solid var(--ink); border-radius: var(--radius); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.24em; font-size: clamp(1rem, 2.2vw, 1.3rem); font-weight: 400; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform 0.2s; }
.acc details[open] summary::after { transform: rotate(90deg); }
.acc__body { background: var(--white); padding: 18px 24px 8px 44px; border-top: 1px solid var(--line); }
.acc__body ul { margin: 0 0 12px; }
.acc__body li { margin-bottom: 4px; }

/* Cloud feature cards */
.features { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 18px; max-width: 760px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start; background: var(--grey); padding: 22px 26px; box-shadow: var(--shadow); }
.feature svg { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 2; }
.feature h3 { color: var(--red); text-transform: uppercase; letter-spacing: 0.24em; font-size: 1.05rem; font-weight: 500; margin: 0 0 0.3em; }
.feature p { margin: 0; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.quote { margin: 0; background: var(--white); box-shadow: var(--shadow); padding: 28px 28px 24px; text-align: center; }
.stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 12px; }
.stars svg { width: 20px; height: 20px; fill: var(--blue); }
.quote figcaption { color: var(--red); font-size: 1.5rem; font-weight: 500; margin-bottom: 8px; }
.quote blockquote { margin: 0; }

/* Resources */
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.resource { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); padding: 22px 26px; }
.resource__title { font-size: 1.3rem; margin: 0 0 0.3em; }
.resource__title a { color: var(--ink); text-decoration: none; }
.resource__title a:hover { color: var(--blue-ink); text-decoration: underline; }
.resource p { margin: 0; color: var(--muted); }
.meta-line { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); font-weight: 500; margin-bottom: 6px; }
@media (max-width: 640px) { .resource { grid-template-columns: 1fr; } }

/* Article layout (budget page) */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.article > * { min-width: 0; }
.article__body h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--blue-ink); font-weight: 500; margin-top: 2em; }
.article__body h3 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
.article__body ul { padding-left: 1.2em; }
.article__body li { margin-bottom: 0.5em; }
.article__aside { display: grid; gap: 20px; position: sticky; top: 112px; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .article__aside { position: static; } }
.keydates { background: var(--grey); border-left: 4px solid var(--red); padding: 18px 22px; margin: 0 0 1.5em; }
.keydates h2 { margin-top: 0 !important; color: var(--red) !important; }
.keydates dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.keydates dt { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.keydates dd { margin: 0; }
@media (max-width: 520px) { .keydates dl { grid-template-columns: 1fr; gap: 2px; } .keydates dd { margin-bottom: 10px; } }
.pdf-card { background: var(--ink); color: var(--white); padding: 22px; display: grid; gap: 14px; }
.pdf-card__doc { display: flex; gap: 14px; align-items: center; }
.pdf-card__icon { flex: none; width: 44px; height: 56px; background: var(--white); color: var(--red); font-size: 0.72rem; font-weight: 700; display: grid; place-items: end center; padding-bottom: 8px; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.pdf-card strong { display: block; font-weight: 500; font-size: 1.05rem; }
.pdf-card small { color: #b9c3c8; }
.pdf-card .btn { justify-content: center; }
.pdf-card .btn--ghost { color: var(--white); border-color: #8a979e; }
.pdf-card .btn--ghost:hover { background: var(--white); color: var(--ink); }
.numbers { border: 1px solid var(--ink); padding: 18px 20px; }
.numbers h2 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 4px; }
.numbers p { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.numbers table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.97rem; }
.numbers th { text-align: left; font-weight: 500; font-size: 0.8rem; color: var(--muted); border-bottom: 1px solid var(--ink); padding: 4px 0; }
.numbers td { padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.numbers th:last-child, .numbers td:last-child { text-align: right; }
.disclaimer { background: #fbe9e0; color: #5a4a42; font-size: 0.92rem; padding: 14px 18px; border-radius: var(--radius); margin-top: 2em; }

/* CTA band */
.cta { background: var(--blue-ink); color: var(--white); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 34px; padding-bottom: 34px; }
.cta p { margin: 0; font-size: 1.15rem; max-width: 60ch; }
.cta .btn { background: var(--white); color: var(--ink); }
.cta .btn:hover { background: var(--grey); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.contact__info img { border-radius: var(--radius); margin-bottom: 20px; box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1em; }
.contact-list li { margin-bottom: 6px; }
.form-card { background: var(--grey); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
label { font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.req { color: var(--red); }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid #9aa4a9; border-radius: var(--radius); padding: 10px 12px; }
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue-ink); }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-error { color: var(--red); font-weight: 500; }
.form-status { font-weight: 500; color: var(--ink); background: var(--white); border-left: 4px solid var(--blue); padding: 10px 14px; }
.hp { position: absolute; left: -5000px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }

/* Footer */
.site-footer { position: relative; isolation: isolate; color: #e6ebee; padding-top: 110px; margin-top: 0; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: polygon(0 0, 100% 70px, 100% 100%, 0 100%); }
.site-footer a { color: #e6ebee; }
.site-footer a:hover { color: var(--white); }
.site-footer .btn--light, .site-footer .btn--light:hover { color: var(--ink); }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding-bottom: 36px; }
.site-footer__name { font-size: 1.35rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.site-footer__tag { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 500; }
.site-footer__heading { color: var(--white); font-size: 1.35rem; font-weight: 700; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; }
.social a { display: inline-flex; padding: 4px; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.badges { display: flex; gap: 16px; align-items: flex-end; }
.badges img { height: 105px; width: auto; }
.newsletter label { color: var(--white); }
.newsletter input[type="text"], .newsletter input[type="email"] { margin: 6px 0 12px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-bottom: 14px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; }
.consent label { font-weight: 400; font-size: 0.88rem; color: #d3dadd; }
.site-footer .form-error { color: #ffb4a8; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #3d474c; padding-top: 18px; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); font-size: 0.92rem; }
.site-footer__bottom p { margin: 0; }
.legal { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { text-align: center; }
.notfound .title { margin-bottom: 0.4em; }
