/*
Theme Name: Anchor Line
Theme URI: https://anchorline.co.uk
Author: Anchor Line
Author URI: https://anchorline.co.uk
Description: Professional out-of-hours safeguarding support for care providers, charities, and services supporting vulnerable people.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: anchor-line
*/

/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
  --color-bg:         #f2eee7;
  --color-navy:       #252b50;
  --color-navy-mid:   #2c3054;
  --color-coral:      #ef775d;
  --color-sage:       #6ea291;
  --color-sage-dark:  #68a691;
  --color-sage-light: #a7cbbb;
  --color-sage-link:  #8ec4b3;
  --color-gold:       rgba(202, 164, 63, 0.08);
  --color-gold-border:rgba(202, 164, 63, 0.28);
  --color-gold-text:  rgba(234, 213, 156, 0.74);
  --color-text-dark:  #1d1a17;
  --color-text-grey:  #6f6a63;
  --color-text-grey2: #7a746c;
  --color-blue-accent:#34396b;
  --color-red-danger: #bb5146;
  --color-red-bg:     #fff4f1;
  --color-red-border: #ebc7c2;
  --color-white-65:   rgba(255,255,255,0.65);
  --color-white-86:   rgba(255,255,255,0.86);
  --color-white-94:   rgba(255,255,255,0.94);

  --font-body:        'Inter', sans-serif;
  --font-heading:     'Be Vietnam Pro', sans-serif;
  --font-serif:       'Cormorant Garamond', serif;

  --container-width:  1200px;
  --container-pad:    clamp(20px, 5vw, 60px);
  --radius-sm:        24px;
  --radius-md:        32px;
  --radius-lg:        36px;
  --radius-pill:      999px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.9;
  color: var(--color-text-dark);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─── Typography helpers ─────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.125;
  letter-spacing: -0.5px;
  color: var(--color-text-dark);
}

.section-title em {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: italic;
  color: var(--color-sage);
  text-transform: capitalize;
}

.section-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.9;
  color: var(--color-text-grey);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .2s, transform .15s;
  text-align: center;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }

.btn-primary {
  background: var(--color-coral);
  color: #fff;
  box-shadow: 0 16px 40px rgba(11,90,67,.18);
}

.btn-secondary {
  background: var(--color-white-65);
  color: var(--color-text-dark);
  border-color: rgba(29,26,23,.08);
  backdrop-filter: blur(6px);
}

.btn-white {
  background: #fff;
  color: var(--color-navy);
}

/* ─── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }

/* ─── Internal Page Components ───────────────────────────────── */
/* Hero Section */
.editorial-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  background-color: var(--color-navy);
}
.editorial-hero__bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.editorial-hero__overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(37, 43, 80, 0.9) 0%, rgba(37, 43, 80, 0.4) 100%);
  z-index: 2;
}
.editorial-hero__content {
  color: #fff;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.inner-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.inner-hero__title em {
  font-style: italic;
  font-weight: 600;
  color: var(--color-sage-light);
}
.inner-hero__desc {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.9;
  font-family: var(--font-body);
}

/* Sections */
.section-standard {
  padding: 100px 0;
  position: relative;
}
.section-standard--white { background-color: #fff; }
.section-standard--cream { background-color: var(--color-bg); }
.section-standard--navy { background-color: var(--color-navy); color: #fff; }
.section-standard--navy .section-title { color: #fff; }

/* Grids */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 992px) {
  .content-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}
.staggered-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.staggered-grid-2 > *:nth-child(even) {
  transform: translateY(40px);
}

/* Images & Cards */
.image-mask-round {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.image-mask-round img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.image-mask-round:hover img {
  transform: scale(1.05);
}

.hover-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(37,43,80,0.04);
  border: 1px solid rgba(37,43,80,0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(37,43,80,0.08);
}

.quote-block {
  background: var(--color-navy);
  color: #fff;
  padding: 60px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.quote-block::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: var(--font-serif);
  font-size: 200px;
  color: rgba(255,255,255,0.05);
  line-height: 1;
}

/* Lists */
.standard-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.standard-list__item {
  display: flex;
  align-items: flex-start;
  font-size: 17px;
  color: var(--color-text-grey);
}
.standard-list__item--white {
  color: rgba(255,255,255,0.85);
}
.standard-list__dot {
  display: inline-block;
  min-width: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-coral);
  margin-top: 8px;
  margin-right: 16px;
}
.standard-list__dot--sage { background-color: var(--color-sage); }
.standard-list__dot--white { background-color: #fff; opacity: 0.5; }
.risk-card__dot--red { background-color: var(--color-red-danger); }


/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.process-step {
  text-align: left;
}
.scenario-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}
.scenario-card__body {
  font-size: 16px;
  color: var(--color-text-grey);
  line-height: 1.6;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 32px;
  border: 1px solid rgba(37,43,80,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: all 0.3s;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.news-card__category { color: var(--color-coral); }
.news-card__date { color: var(--color-text-grey2); }
.news-card__title {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--color-navy);
}
.news-card__body {
  font-size: 16px;
  color: var(--color-text-grey);
  margin-bottom: 24px;
  line-height: 1.6;
}
.news-card__link {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-sage);
  text-decoration: none;
  transition: color 0.2s;
}
.news-card__link:hover { color: var(--color-navy); }

.news-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
}
.news-empty__icon {
  margin-bottom: 24px;
}
.news-empty__title {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-navy);
  margin-bottom: 16px;
}
.news-empty__body {
  max-width: 500px;
  margin: 0 auto 32px;
  color: var(--color-text-grey);
}

/* Animations */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Fix logo PNG transparent padding gap ─────── */
.site-header__logo img,
.site-footer__logo img {
  margin-left: -14px;
}

