/* ==== RESET / BASE ==== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #020617;
    background-color: #f5f6fb;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    font-family: inherit;
}

/* ==== LAYOUT HELPERS ==== */

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: #f9fafb;
}

.section-contact {
    background-color: #f9fafb;
}

.section-process {
    background: linear-gradient(135deg, #020617, #111827);
    color: #e5e7eb;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px auto;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.section-header p {
    color: #4b5563;
    margin: 0;
}

.section-header-light h2 {
    color: #fefce8;
}

.section-header-light p {
    color: #facc15;
}

/* ==== GRID ==== */

.grid {
    display: grid;
    gap: 24px;
}

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

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ==== BUTTONS ==== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.btn-lg {
    padding: 12px 26px;
    font-size: 15px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(135deg, #fb7185, #c084fc);
    color: #0b1220;
    box-shadow: 0 8px 18px rgba(251, 113, 133, 0.30);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c, #eab308);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(248, 113, 22, 0.45);
}

.btn-ghost {
    background-color: rgba(15, 23, 42, 0.36);
    color: #fefce8;
    border: 1px solid rgba(248, 250, 252, 0.7);
}

.btn-ghost:hover {
    background-color: rgba(15, 23, 42, 0.55);
}

.btn-outline-light {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.btn-accent {
    background: #c084fc;
    color: #0b1220;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #ea580c, #eab308);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==== HEADER ==== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #facc15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-weight: 700;
    font-size: 14px;
}

.logo-text {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 15px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.main-nav a {
    color: #e5edff;
    position: relative;
    padding-bottom: 2px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #f97316;
    transform: translateX(-50%);
    transition: width 0.18s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 18px;
}

.header-cta {
    margin-left: 20px;
}

/* Nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 22px;
    height: 18px;
    background: none;
    border: none;
    padding: 0;
}

.nav-toggle span {
    height: 2px;
    width: 100%;
    border-radius: 999px;
    background-color: #ffffff;
}

/* ==== HERO ==== */

.hero {
    position: relative;
    color: #ffffff;
    padding: 120px 0 90px 0;
    overflow: hidden;
}

.offpage-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../../../../images/banners/desktop/off-page-seo-services-in-uk.webp"); 
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -2;
}
@media (max-width: 768px) {
.offpage-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../../../../images/banners/mobile/off-page-seo-services-in-uk.webp"); 
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -2;
}
}

.offpage-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #020617, #111827);
    opacity: 0.96;
    z-index: -3;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 16px 0;
}

.hero-subtitle {
    color: #fef9c3;
    max-width: 620px;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-ghost-light {
    border-color: rgba(248, 250, 252, 0.8);
}

/* Hero side panel */

.hero-panel {
    display: flex;
    justify-content: flex-end;
}

.hero-panel-inner {
    width: 100%;
    max-width: 360px;
    background: radial-gradient(circle at top left, #0f172a, #020617);
    border-radius: 24px;
    padding: 22px 22px 20px 22px;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.hero-panel-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #fed7aa;
    margin: 0 0 8px 0;
}

.hero-panel-text {
    font-size: 14px;
    color: #e5e7eb;
    margin: 0 0 10px 0;
}

.hero-panel-list {
    margin: 0;
}

.hero-panel-list li {
    font-size: 13px;
    color: #e5e7eb;
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
}

.hero-panel-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #facc15);
}

/* ==== CARDS ==== */

.card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 20px 20px 22px 20px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.card h3 {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

/* Why cards */

.why-grid .why-card {
    padding-top: 18px;
}

.why-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* Icon palette */

.icon-quality {
    background: linear-gradient(135deg, #f97316, #facc15);
}
.icon-keyword {
    background: linear-gradient(135deg, #22d3ee, #0ea5e9);
}
.icon-engagement {
    background: linear-gradient(135deg, #fb7185, #f97316);
}
.icon-authority {
    background: linear-gradient(135deg, #6366f1, #f97316);
}

/* Content types */

.types-grid .type-card ul {
    margin-top: 10px;
}

.types-grid .type-card li {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 4px;
    padding-left: 14px;
    position: relative;
}

.types-grid .type-card li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #f97316;
}

.type-subtitle {
    font-size: 13px;
    color: #6b7280;
}

/* ==== SERVICES SECTION ==== */

.section-services {
    background-color: #111827;
    color: #e5e7eb;
}

.services-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.4fr);
    gap: 32px;
    align-items: flex-start;
}

.services-copy h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 16px;
}

.services-intro {
    font-size: 14px;
    color: #000000;
    margin-bottom: 14px;
}

.services-list li {
    font-size: 14px;
    color: #000000;
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}

.services-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #facc15);
}

.services-panel-inner {
    background: radial-gradient(circle at top left, #020617, #030712);
    border-radius: 24px;
    padding: 22px 22px 20px 22px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
}

.services-label {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fed7aa;
    margin: 0 0 8px 0;
}

.services-text {
    font-size: 14px;
    margin: 0 0 10px 0;
}

.services-meta {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* ==== PROCESS ==== */

.section-process .card {
    background-color: #020617;
    border-color: #1f2937;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
    text-align: left;
}

.section-process .card h3 {
    color: #fefce8;
}

.section-process .card p {
    color: #fef9c3;
}

.process-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    margin-bottom: 10px;
    background: radial-gradient(circle at top left, #f97316, #facc15);
}

/* ==== CTA ==== */

.offpage-cta {
    background: linear-gradient(135deg, #020617, #111827);
    color: #ffffff;
}

.offpage-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.offpage-cta-inner h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
}

.offpage-cta-inner p {
    margin: 0;
    color: #fef9c3;
}

.offpage-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==== CONTACT FORM ==== */

.contact-form {
    max-width: 720px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 24px 22px 26px 22px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-field {
    flex: 1 1 0;
    min-width: 200px;
}

.form-field-full {
    flex-basis: 100%;
}

.form-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #111827;
    font-weight: 500;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5e4;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #f9fafb;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25);
    background-color: #ffffff;
}

/* ==== FOOTER ==== */

.site-footer {
    background-color: #020617;
    color: #9ca3c9;
    padding-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 2fr);
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-about p {
    font-size: 13px;
    max-width: 420px;
    margin-top: 10px;
}

.footer-logo .logo-mark {
    background: linear-gradient(135deg, #f97316, #facc15);
}

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

.footer-column h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #e5e7ff;
}

.footer-column li {
    margin-bottom: 4px;
}

.footer-column a {
    font-size: 13px;
    color: #a5b0e5;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 10px 0 14px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7287;
}

/* ==== RESPONSIVE ==== */

@media (max-width: 1200px) {
    .services-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.4fr);
    }
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-layout {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 2fr);
    }

    .hero-panel {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .header-inner {
        gap: 10px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }

    .main-nav.open {
        max-height: 260px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 20px 14px 20px;
        align-items: flex-start;
    }

    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 110px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .services-layout {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .offpage-cta-inner {
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
}



/* ============================
   Content Types We Optimize
   ============================ */
.content-types {
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(44px, 6vw, 72px);
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(22px, 3vw, 34px);
}

.ct-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: clamp(18px, 2.2vw, 26px);
  box-shadow:
    0 10px 22px rgba(2, 6, 23, 0.06),
    0 1px 0 rgba(2, 6, 23, 0.04);
}

.ct-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
}

.ct-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #6b7280; /* neutral icon block like design */
}

.ct-title h3 {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0f172a;
  font-weight: 700;
}

.ct-title p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  max-width: 58ch;
}

/* points list: 2 columns like screenshot */
.ct-points {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.ct-points li {
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
  padding-left: 18px;
  position: relative;
}

.ct-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  transform: translateY(-50%);
}

/* Hover micro-interaction (transform/opacity only) */
@media (hover:hover) and (pointer:fine) {
  .ct-card {
    transition: transform 220ms ease, opacity 220ms ease;
    will-change: transform;
  }
  .ct-card:hover {
    transform: translateY(-4px);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .ct-head {
    grid-template-columns: 52px 1fr;
  }
  .ct-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .ct-grid {
    grid-template-columns: 1fr;
  }
  .ct-points {
    grid-template-columns: 1fr 1fr; /* keep 2 columns on mid mobiles if space allows */
  }
}

@media (max-width: 480px) {
  .ct-head {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .ct-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .ct-points {
    grid-template-columns: 1fr; /* single column on small screens */
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ct-card {
    transition: none !important;
  }
}
