/* ===== EMERALD CREATIVE — GLOBAL STYLES ===== */
/* Single CSS for all pages. Edit here to affect entire site. */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette */
  --emerald-900: #062e21;
  --emerald-800: #094031;
  --emerald-700: #0d6b4e;
  --emerald-600: #11845e;
  --emerald-100: #d1faeb;
  --emerald-50:  #eaf8f2;
  --red:         #c41e3a;
  --red-hover:   #a51830;
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-500:    #6b7280;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-800:    #1f2937;
  --gray-900:    #111827;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w:       1120px;
  --nav-h:       64px;
  /* Spacing */
  --sec-py:      80px;
  --pad:         24px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body { font-family: var(--font); color: var(--gray-700); line-height: 1.65; background: var(--white); font-size: 0.95rem; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Container ---------- */
.shell { width: 91%; max-width: var(--max-w); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--emerald-900); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

/* Label above section headings */
.kicker { display: inline-block; color: var(--red); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }

/* Centre header */
.centre-text { text-align: center; }
.centre-text p { max-width: 580px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-size: .92rem; font-weight: 600; text-align: center;
  transition: background .15s, box-shadow .15s, transform .1s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 4px 14px rgba(196,30,58,.25); }
.btn--primary:hover { background: var(--red-hover); box-shadow: 0 6px 18px rgba(196,30,58,.3); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.35); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--emerald { background: var(--emerald-700); color: var(--white); }
.btn--emerald:hover { background: var(--emerald-800); }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
/* Micro-copy under buttons */
.btn-micro { font-size: .8rem; color: var(--gray-500); margin-top: 10px; }
.btn-micro--light { color: rgba(255,255,255,.6); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h); background: var(--emerald-800);
  display: flex; align-items: center;
  box-shadow: 0 2px 14px rgba(0,0,0,.1);
}
.nav .shell { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { font-size: 1.2rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 8px; }
.nav__logo span {
  display: inline-block; width: 30px; height: 30px; border-radius: 6px;
  background: var(--red); line-height: 30px; text-align: center;
  font-size: .85rem; color: var(--white); font-weight: 800;
}
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { color: rgba(255,255,255,.82); font-size: .88rem; font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: var(--white); }
.nav__cta-top {
  background: var(--red); color: var(--white); padding: 7px 18px;
  border-radius: 6px; font-size: .84rem; font-weight: 600;
  transition: background .15s;
}
.nav__cta-top:hover { background: var(--red-hover); }

/* Hamburger */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; width: 32px; height: 32px; padding: 4px; }
.nav__toggle svg { width: 26px; height: 26px; stroke: var(--white); fill: none; stroke-width: 2; }

/* ---------- HERO ---------- */
.hero {
  margin-top: var(--nav-h);
  background: linear-gradient(140deg, var(--emerald-900) 0%, var(--emerald-700) 100%);
  padding: 100px 0 90px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; top: -40%; right: -18%;
  width: 560px; height: 560px; border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.hero .shell { position: relative; z-index: 1; }
.hero__inner { max-width: 680px; }
.hero__badge {
  display: inline-block; background: rgba(255,255,255,.1);
  color: var(--emerald-100); padding: 5px 14px; border-radius: 20px;
  font-size: .78rem; font-weight: 600; margin-bottom: 22px;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero__sub { font-size: 1.08rem; color: rgba(255,255,255,.78); margin-bottom: 32px; line-height: 1.7; }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px;
  background: rgba(255,255,255,.06); padding: 16px 22px; border-radius: 10px;
}
.hero__proof span { font-size: .85rem; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 6px; }
.hero__proof span::before { content: '✓'; color: var(--emerald-100); font-weight: 700; }

/* ---------- SECTIONS ---------- */
.section { padding: var(--sec-py) 0; }
.section--alt { background: var(--emerald-50); }
.section__header { margin-bottom: 52px; }

/* ---------- CARDS GRID ---------- */
.cards { display: grid; gap: 26px; }
.cards--2col { grid-template-columns: repeat(2, 1fr); }
.cards--3col { grid-template-columns: repeat(3, 1fr); }

/* Service card */
.card {
  background: var(--white); border-radius: 12px; padding: 34px;
  box-shadow: 0 2px 14px rgba(0,0,0,.055); border: 1px solid var(--gray-200);
  transition: box-shadow .2s, transform .15s; position: relative; overflow: hidden;
}
.card::before {
  content: ''; display: block; height: 3px;
  background: var(--emerald-700); transform: scaleX(0); transform-origin: left;
  transition: transform .25s; position: absolute; top: 0; left: 0; right: 0;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 50px; height: 50px; border-radius: 10px; background: var(--emerald-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.3rem;
}
.card p { font-size: .9rem; color: var(--gray-600); margin-bottom: 14px; }
.card__link { font-size: .88rem; font-weight: 600; color: var(--emerald-700); display: inline-flex; align-items: center; gap: 4px; }
.card__link:hover { color: var(--red); }

/* ---------- PROCESS STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { text-align: center; }
.step__num {
  width: 54px; height: 54px; border-radius: 50%; background: var(--emerald-700);
  color: var(--white); font-size: 1.2rem; font-weight: 800;
  line-height: 54px; margin: 0 auto 14px;
}
.step p { font-size: .87rem; color: var(--gray-500); }

/* ---------- WHY / FEATURES ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.feature { padding: 10px 0; }
.feature__icon { color: var(--emerald-700); margin-bottom: 8px; }
.feature__icon svg { width: 26px; height: 26px; stroke: var(--emerald-700); fill: none; stroke-width: 2; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { font-size: .88rem; color: var(--gray-500); }

/* ---------- TESTIMONIALS ---------- */
.testimonial { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.05); border: 1px solid var(--gray-200); }
.testimonial__q { font-style: italic; font-size: .92rem; margin-bottom: 18px; }
.testimonial__author { display: flex; align-items: center; gap: 10px; }
.testimonial__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--emerald-100); color: var(--emerald-700); font-size: .8rem; font-weight: 700; line-height: 38px; text-align: center; flex-shrink: 0; }
.testimonial__name { font-size: .88rem; font-weight: 700; color: var(--emerald-900); }
.testimonial__role { font-size: .76rem; color: var(--gray-500); }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 28px; }
.stats__num { font-size: 2rem; font-weight: 800; color: var(--emerald-700); line-height: 1; }
.stats__label { font-size: .84rem; color: var(--gray-500); margin-top: 4px; }

/* ---------- PAIN / SOLUTION BLOCKS ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 28px 0; }
.pain-item { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; }
.pain-item .x { color: var(--red); font-weight: 700; font-size: 1.1rem; line-height: 1.4; }
.pain-item .tick { color: var(--emerald-700); font-weight: 700; font-size: 1.1rem; line-height: 1.4; }

/* ---------- COMPARISON TABLE ---------- */
.compare { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .9rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); text-align: left; }
.compare th { background: var(--emerald-700); color: var(--white); font-weight: 600; }
.compare tr:last-child td { border-bottom: none; }
.compare .good { color: var(--emerald-700); font-weight: 600; }
.compare .bad { color: var(--red); }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(140deg, var(--emerald-800), var(--emerald-700));
  color: var(--white); padding: 64px 0; text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.75); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ---------- LANDING (PPC) SPECIFIC ---------- */
.landing-hero { margin-top: 0; padding-top: var(--nav-h); background: linear-gradient(160deg, var(--emerald-900) 0%, var(--emerald-700) 100%); }
.landing-hero .shell { display: flex; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.landing-hero__text { flex: 1; }
.landing-hero__form {
  flex: 0 0 360px; background: var(--white); border-radius: 14px; padding: 32px;
  box-shadow: 0 12px 36px rgba(0,0,0,.15);
}
.landing-hero__form h3 { color: var(--emerald-900); text-align: center; margin-bottom: 20px; font-size: 1.15rem; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 5px; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 13px; border-radius: 8px; border: 1px solid var(--gray-200);
  font-size: .9rem; font-family: var(--font); transition: border-color .15s; background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--emerald-700); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ---------- CONTENT PAGE (service, about, blog post) ---------- */
.page-header { margin-top: var(--nav-h); background: linear-gradient(135deg, var(--emerald-800), var(--emerald-700)); padding: 64px 0 52px; }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,.75); font-size: 1.02rem; max-width: 600px; }

.content-block { padding: var(--sec-py) 0; }
.content-block__inner { max-width: 760px; }
.content-block h2 { font-size: 1.45rem; margin-top: 40px; margin-bottom: 12px; }
.content-block h3 { font-size: 1.1rem; margin-top: 28px; }
.content-block ul { margin: 14px 0 14px 20px; list-style: disc; }
.content-block ul li { margin-bottom: 6px; font-size: .93rem; }

/* ---------- SIDEBAR (service pages) ---------- */
.service-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.sidebar { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }
.sidebar__card {
  background: var(--emerald-50); border-radius: 12px; padding: 28px; border: 1px solid var(--emerald-100);
}
.sidebar__card h4 { margin: 0 0 8px; font-size: 1rem; color: var(--emerald-900); }
.sidebar__card p { font-size: .85rem; color: var(--gray-500); margin-bottom: 16px; }

/* ---------- BLOG LIST ---------- */
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--gray-200); transition: box-shadow .2s; background: var(--white); }
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.09); }
.blog-card__body { padding: 24px; }
.blog-card__tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--red); background: rgba(196,30,58,.08); padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card p { font-size: .86rem; color: var(--gray-500); }
.blog-card__date { font-size: .76rem; color: var(--gray-500); margin-top: 12px; }

/* Categories filter */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.cat-filter button { padding: 6px 16px; border-radius: 20px; border: 1px solid var(--gray-300); background: var(--white); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.cat-filter button:hover, .cat-filter button.active { background: var(--emerald-700); color: var(--white); border-color: var(--emerald-700); }

/* ---------- CASE STUDIES ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.case-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--gray-200); background: var(--white); transition: transform .15s, box-shadow .2s; }
.case-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.09); }
.case-card__top { height: 180px; background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900)); display: flex; align-items: center; justify-content: center; }
.case-card__top .case-label { color: rgba(255,255,255,.2); font-size: 3rem; font-weight: 800; }
.case-card__body { padding: 24px; }
.case-card__body h3 { margin-bottom: 8px; }
.case-card__body p { font-size: .87rem; color: var(--gray-500); margin-bottom: 10px; }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.case-tags span { font-size: .74rem; padding: 3px 10px; border-radius: 4px; background: var(--emerald-100); color: var(--emerald-700); font-weight: 600; }

/* ---------- FOOTER ---------- */
.footer { background: var(--emerald-800); color: rgba(255,255,255,.6); padding: 48px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer__col h4 { color: var(--white); font-size: .9rem; margin-bottom: 10px; }
.footer__col a { display: block; font-size: .84rem; margin-bottom: 6px; transition: color .15s; }
.footer__col a:hover { color: var(--white); }
.footer__copy {
  width: 100%; text-align: center; margin-top: 36px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem;
}
/* Footer micro-keywords */
.footer__keywords { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; justify-content: center; }
.footer__keywords span { font-size: .72rem; color: rgba(255,255,255,.35); }

/* ---------- ANIMATIONS ---------- */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .45s ease, transform .45s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .04s; }
.delay-2 { transition-delay: .08s; }
.delay-3 { transition-delay: .12s; }
.delay-4 { transition-delay: .16s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .cards--2col, .cards--3col, .case-grid, .blog-list { grid-template-columns: 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .landing-hero .shell { flex-direction: column; }
  .landing-hero__form { flex: none; width: 100%; max-width: 400px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--emerald-800); padding: 18px 26px; gap: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
  }
  .nav__cta-top { display: none; }
  .section { padding: 52px 0; }
  .hero { padding: 52px 0; }
  .page-header { padding: 48px 0 40px; }
  .hero__proof { flex-direction: column; gap: 10px; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: column; }
  .compare { font-size: .8rem; }
  .compare th, .compare td { padding: 8px 10px; }
}
