/*
Theme Name: Ayub Endpoint Consulting
Theme URI: https://example.com/
Author: Rizwan Ayub
Description: Lightweight consultancy theme for endpoint, cloud and infrastructure services. Everything is editable from wp-admin: homepage text and colours in Customize > Site Content, plus Services, Experience, Case Studies and Enquiries in the dashboard sidebar. Activating it creates the pages, menus and starter content automatically.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ayub
*/

:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --teal: #12b3a8;
  --teal-dark: #0c8f86;
  --ink: #1b2430;
  --muted: #5b6776;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, .08);
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #d6e0ee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 12px;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--teal); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.section--dark .lead { color: #b9c8dc; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.1rem; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--teal); font-weight: 800; font-size: 1rem;
}
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.main-nav a { display: block; padding: 8px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--teal-dark); background: var(--bg-soft); }
.main-nav .menu-cta > a { background: var(--teal); color: #fff; }
.main-nav .menu-cta > a:hover { background: var(--teal-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-weight: 700; color: var(--navy); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(18,179,168,.25), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #d6e0ee; padding: 96px 0 72px;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 span { color: var(--teal); }
.hero .lead { color: #b9c8dc; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 56px; }
.stat { border-top: 2px solid var(--teal); padding-top: 14px; }
.stat strong { display: block; font-size: 2rem; color: #fff; line-height: 1.1; }
.stat span { font-size: .92rem; color: #b9c8dc; }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; margin: .6em 0 0; color: var(--muted); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(18,179,168,.12); color: var(--teal-dark);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}
.result { text-align: left; }
.result strong { display: block; font-size: 2.2rem; color: var(--teal-dark); line-height: 1.1; margin-bottom: 6px; }
.section--dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.section--dark .card p, .section--dark .card li { color: #b9c8dc; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px;
  border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--navy); font-weight: 600; }

.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 28px; }
.timeline__item { position: relative; margin-bottom: 34px; }
.timeline__item::before { content: ""; position: absolute; left: -37px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal); }
.timeline__meta { color: var(--muted); font-size: .9rem; font-weight: 600; }
.timeline ul { color: var(--ink); padding-left: 1.1em; }

.cta-band { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band .btn--primary { background: var(--navy); }
.cta-band .btn--primary:hover { background: #000; }

/* Page content */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #d6e0ee; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: #b9c8dc; max-width: 700px; margin: 12px 0 0; font-size: 1.1rem; }
.entry { padding: 56px 0 80px; }
.entry .container > *:first-child { margin-top: 0; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { font-weight: 600; font-size: .92rem; color: var(--navy); display: block; margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd4df; border-radius: 10px; font: inherit; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; max-width: 640px; }
.notice--ok { background: #e6f7f5; color: #09645d; border: 1px solid #b6e6e1; }
.notice--err { background: #fdeeee; color: #8c1d1d; border: 1px solid #f3c4c4; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }

/* Footer */
.site-footer { background: #07142a; color: #9fb1c9; padding: 56px 0 24px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #9fb1c9; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
}


/* ---- v2: editable-content additions ---- */
.muted { color: var(--muted); }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content .lead { margin-bottom: 1.2em; }
.entry-content .wp-block-columns { gap: 32px; margin-bottom: 0; }
.entry-content .wp-block-group.card { padding: 28px; }
.entry-content .wp-block-group.card > * + * { margin-top: .8em; }
.entry-content .wp-block-group.card > :first-child { margin-top: 0; }
.entry-content .grid { margin: 1.5em 0; }
.entry-content .timeline { margin-top: 1.5em; }
.wp-block-buttons { gap: 14px; }
.wp-block-button__link {
  background: var(--teal); color: #fff; border: 2px solid var(--teal); border-radius: 10px;
  padding: 14px 26px; font-weight: 700; text-decoration: none; font-size: 1rem;
}
.wp-block-button__link:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--navy); border-color: var(--navy); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.result-card .metric { font-size: 2.2rem; font-weight: 800; color: var(--teal-dark); line-height: 1.1; }
.result-card .metric-label { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.result-card h3 a { color: var(--navy); text-decoration: none; }
.result-card h3 a:hover { color: var(--teal-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-menu { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-menu li { margin: 0; }
.main-nav a { padding: 8px 10px; }
.page-hero .eyebrow { margin-bottom: 8px; }
