/* =========================
   ROOT
========================= */

:root {
  --bg: #f5f0e8;
  --bg-alt: #eee5d9;
  --text: #4f3928;
  --text-soft: #6a5140;
  --muted: #6a5140;
  --accent: #c6a383;
  --accent-dark: #ab8463;
  --accent-deep: #8f6a4e;
  --line: rgba(79, 57, 40, 0.12);
  --white: #ffffff;
  --max-width: 1180px;
  --content-width: 760px;
  --radius: 16px;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

/* =========================
   RESET
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
ul,
ol,
blockquote {
  margin: 0 0 1.2rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* =========================
   TYPE
========================= */

body,
p,
li,
a,
label,
input,
textarea,
button {
  font-size: 1.32rem;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.kicker {
  margin-bottom: 0.75rem;
  color: var(--accent-deep);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.45;
}

.intro-copy,
.section-intro,
.form-note,
.step p,
.pricing-note p,
.pricing-copy,
.proof-callout,
.cta-reassurance,
.page-intro,
.document-intro p {
  color: var(--text-soft);
}

.label {
  margin-top: 0.45rem;
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
}

/* =========================
   LAYOUT
========================= */

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-tight {
  padding: 4rem 0;
}

.section-soft {
  background: #faf8f3;
}

.section-heading {
  max-width: var(--content-width);
  margin-bottom: 2rem;
}

.section-heading-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-wrap {
  padding: 5rem 0 6rem;
}

.page-narrow {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: relative;
  background: rgba(243, 238, 229, 0.95);
  border-bottom: 1px solid rgba(75, 60, 50, 0.1);
}

.branding {
  display: flex;
  justify-content: center;
  padding: 2rem 0 1.35rem;
}

.brand img {
  width: clamp(220px, 22vw, 340px);
}

.main-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.main-nav .container {
  width: min(calc(100% - 1rem), 1320px);
}

.nav-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.nav-pill {
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: rgba(198, 163, 131, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.nav-pill.active,
.nav-pill[aria-current="page"] {
  background: var(--accent);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(36, 25, 18, 0.7) 0%,
    rgba(36, 25, 18, 0.5) 40%,
    rgba(36, 25, 18, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 6rem 0;
  color: var(--white);
}

.hero .lead,
.hero-points li {
  color: rgba(255, 255, 255, 0.94);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.4rem;
}

.hero-note {
  max-width: 40rem;
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.45;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 1rem;
  font-size: 1.15rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--white);
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1.18rem;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: #2f241c;
  border-color: var(--accent-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.9);
}

.page-hero .btn-secondary,
.section .btn-secondary,
.section-alt .btn-secondary,
.section-soft .btn-secondary,
.contact-section .btn-secondary,
.colour-page-hero .btn-secondary {
  color: var(--text);
  border-color: rgba(79, 57, 40, 0.24);
  background: transparent;
}

/* =========================
   TRUST STRIP
========================= */

.trust-strip {
  background: rgba(255, 255, 255, 0.18);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.trust-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
}

.trust-item span {
  color: var(--text-soft);
  font-size: 1.18rem;
}

/* =========================
   IMAGES
========================= */

.image-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
}

.before-after-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.before,
.after {
  text-align: center;
}

/* =========================
   LISTS / STEPS
========================= */

.feature-list li {
  margin-bottom: 0.85rem;
}

.feature-list-tight {
  margin-bottom: 0;
}

.feature-list-follow {
  margin-top: 1rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.step-number {
  margin-bottom: 0.6rem;
  color: var(--accent-deep);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* =========================
   PAGE / DOCUMENT CONTENT
========================= */

.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.page-hero h1 {
  margin-bottom: 0.8rem;
}

.page-hero p {
  max-width: 42rem;
  color: var(--text-soft);
}

.document-content h2 {
  clear: both;
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.document-content h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
}

.document-content p,
.document-content li {
  font-size: 1.28rem;
  line-height: 1.75;
}

.document-intro {
  padding-bottom: 1.4rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.document-content p {
  text-align: justify;
  hyphens: auto;
}

/* =========================
   ABOUT PAGE PHOTO
========================= */

.restorer-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.clear {
  clear: both;
}

/* =========================
   PRICING
========================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.2rem;
}

.pricing-card {
  padding: 2rem 1.5rem 1.7rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.pricing-card h3 {
  margin-bottom: 0.8rem;
}

.pricing-range {
  margin: 0 0 0.9rem;
  color: var(--accent-deep);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.pricing-copy {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.6;
}

.pricing-turnaround-heading {
  margin-top: 3rem;
}

.pricing-note {
  max-width: var(--content-width);
  margin: 2rem auto 0;
  text-align: center;
}

.pricing-note p {
  margin-bottom: 1rem;
}

.proof-callout {
  max-width: 760px;
  margin: 1.5rem auto 0;
  text-align: center;
}

/* =========================
   FAQ
========================= */

.faq-list {
  display: grid;
  gap: 1.35rem;
}

.faq-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.faq-item h3 {
  margin-bottom: 0.45rem;
}

/* =========================
   TESTIMONIAL
========================= */

.testimonial {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.testimonial p {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  line-height: 1.35;
}

.testimonial footer {
  color: var(--text-soft);
  font-size: 1.15rem;
}

/* =========================
   PORTFOLIO / EXAMPLES PAGE
========================= */

.portfolio-hero-copy,
.portfolio-intro,
.ai-intro {
  max-width: var(--content-width);
}

.portfolio-detail {
  margin-top: 3rem;
}

.portfolio-work-grid {
  display: grid;
  gap: 3rem;
  margin-top: 2.5rem;
}

.portfolio-work-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.portfolio-work-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.portfolio-card-pair {
  gap: 1.2rem;
}

.portfolio-copy p:last-child {
  margin-bottom: 0;
}

/* AI comparison trio */
.schoolboy-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.schoolboy-card {
  text-align: center;
}

.schoolboy-card .image-frame {
  width: 100%;
}

.schoolboy-card .image-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* =========================
   COLOURISATION PAGE
========================= */

.colourisation-page {
  color: var(--text);
}

.colour-page-hero {
  background: #f5f2eb;
}

.colour-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.colour-hero-copy h1 {
  line-height: 1.02;
}

.colour-hero-copy .lead,
.colour-hero-copy p {
  max-width: 38rem;
}

.compare-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.compare-image-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}

.compare-half {
  position: relative;
  overflow: hidden;
}

.compare-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
}

.compare-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  line-height: 1;
}

.colour-benefits-grid,
.colour-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.benefits-panel {
  background: #f1ece3;
  border-radius: 1rem;
  padding: 1.5rem;
}

.benefits-list {
  margin: 0;
  padding-left: 1.2rem;
}

.benefits-list li {
  margin-bottom: 0.9rem;
}

.colour-steps {
  grid-template-columns: repeat(4, 1fr);
}

/* Colourisation examples */
.colour-example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.example-card {
  background: #fff;
  border: 1px solid #e8e0d2;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.example-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.example-half {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.example-half img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.example-copy {
  padding: 1.2rem 1.2rem 1.4rem;
}

.example-copy h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

/* =========================
   CONTACT / FORM
========================= */

.contact-section {
  background: var(--bg-alt);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.contact-panel {
  padding-top: 1rem;
}

.contact-panel-emphasis,
.assessment-form {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.contact-panel-emphasis {
  padding: 1.4rem;
}

.assessment-form {
  margin: 2rem 0 3rem;
  padding: 1.4rem;
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--text);
}

.form-field label span {
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 400;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(79, 57, 40, 0.22);
  border-radius: 12px;
  background: #fffaf4;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(198, 163, 131, 0.28);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #c6a384;
  padding: 90px 20px 70px;
  text-align: center;
}

.footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  margin: 0 0 38px;
}

.footer-logo img {
  width: 220px;
  max-width: 70vw;
  height: auto;
}

.footer-phone {
  margin: 0 0 18px;
  line-height: 1.2;
  text-align: center;
}

.footer-email {
  margin: 0 0 24px;
  line-height: 1.2;
  text-align: center;
}

.footer-email a {
  color: inherit;
  text-decoration: none;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* =========================
   SUBFOOTER
========================= */

.subfooter {
  width: 100%;
  background: var(--bg);
  padding: 18px 20px 22px;

  display: grid;
  place-items: center;

  text-align: center;
}

.subfooter p {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;

  text-align: center;
  line-height: 1.4;
}

.subfooter a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .colour-hero-grid,
  .colour-benefits-grid,
  .colour-two-col {
    grid-template-columns: 1fr;
  }

  .compare-image-wrap {
    min-height: 420px;
  }

  .colour-example-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-work-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .trust-grid,
  .two-col,
  .steps,
  .pricing-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 66vh;
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    justify-content: flex-start;
    padding-inline: 0.25rem;
  }

  .nav-pill {
    padding: 0.5rem 0.8rem;
    font-size: 0.96rem;
  }

  .schoolboy-trio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body,
  p,
  li,
  a,
  label,
  input,
  textarea,
  button {
    font-size: 1.18rem;
  }

  .section {
    padding: 4.25rem 0;
  }

  .section-tight {
    padding: 3rem 0;
  }

  .branding {
    padding: 1.6rem 0 1rem;
  }

  .brand img {
    width: clamp(200px, 58vw, 280px);
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .before-after-pair {
    grid-template-columns: 1fr;
  }

  .colourisation-page .before-after-pair,
  .colourisation-page .example-compare,
  .colourisation-page .compare-image-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .compare-image-wrap {
    min-height: 260px;
  }

  .example-half img {
    aspect-ratio: 3 / 4;
  }

  .restorer-photo {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
  }

  .site-footer {
    padding: 70px 20px 55px;
  }

  .footer-logo {
    margin-bottom: 30px;
  }

  .footer-logo img {
    width: 180px;
  }

  .subfooter p {
    font-size: 1rem;
  }
}

/* =========================
   MOBILE FOOTER ICON FIX
========================= */

@media (max-width: 640px) {
  .footer-social {
    gap: 14px;
  }

  .footer-social img {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
  }

  .footer-social a {
    width: 32px;
    height: 32px;
  }
}

/* =========================
   SITEMAP PAGE
========================= */

.sitemap-hero {
  padding-bottom: 2rem;
}

.sitemap-section {
  padding-top: 0;
}

.sitemap-block {
  margin-bottom: 3rem;
}

.sitemap-block:last-child {
  margin-bottom: 0;
}

.sitemap-block h2 {
  margin-bottom: 1rem;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(79, 57, 40, 0.12);
}

.sitemap-list li:last-child {
  border-bottom: 0;
}

.sitemap-list a {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sitemap-list span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.6;
}

.sitemap-list a:hover {
  opacity: 0.75;
}

@media (max-width: 640px) {
  .sitemap-list a {
    font-size: 1.2rem;
  }
}

/* =========================
   FOOTER SOCIAL ICONS
   Safe override — footer only
========================= */

.site-footer .footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.site-footer .footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.site-footer .footer-social img {
  display: block;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

/* =========================
   MOBILE FOOTER ICON SCALE
========================= */

@media (max-width: 640px) {
  .site-footer .footer-social {
    gap: 14px;
  }

  .site-footer .footer-social img {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
  }
}

/* =========================
   FINAL FOOTER ICON OVERRIDE
   Put this at the very bottom of style.css
========================= */

footer.site-footer .footer-social,
.site-footer .footer-social {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}

footer.site-footer .footer-social a,
.site-footer .footer-social a {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  line-height: 0 !important;
}

footer.site-footer .footer-social a img,
.site-footer .footer-social a img,
img[src*="Instagram_Icon"],
img[src*="pinterest_icon"] {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Portfolio mockup layout */

.portfolio-mockup-layout .section {
  border-top: 1px solid rgba(61, 58, 54, 0.14);
}

.portfolio-case-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.portfolio-case-copy {
  display: grid;
  gap: 3rem;
  padding-top: 1rem;
}

.portfolio-featured-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ai-comparison-preview {
  background: #F3E8D8;
}

.ai-preview-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

.ai-preview-copy {
  max-width: 420px;
}

.ai-preview-copy h2 {
  margin-bottom: 1rem;
}

.ai-comparison-button {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.ai-preview-images.schoolboy-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.schoolboy-card h3 {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.schoolboy-card .intro-copy {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 0.75rem;
}

.portfolio-work-grid {
  display: grid;
  gap: 3rem;
  margin-top: 2rem;
}

.portfolio-work-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(61, 58, 54, 0.14);
}

.portfolio-work-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portfolio-card-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.portfolio-copy p {
  line-height: 1.65;
}

@media (max-width: 900px) {
  .portfolio-case-grid,
  .ai-preview-grid,
  .portfolio-work-card {
    grid-template-columns: 1fr;
  }

  .ai-preview-copy {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .portfolio-featured-pair,
  .portfolio-card-pair,
  .ai-preview-images.schoolboy-trio {
    grid-template-columns: 1fr;
  }

  .portfolio-case-grid,
  .ai-preview-grid,
  .portfolio-work-grid {
    gap: 2rem;
  }
}

/* AI vs Hand Restoration Page */

.ai-restoration-page .section {
  border-top: 1px solid rgba(61, 58, 54, 0.14);
}

.narrow-copy {
  max-width: 820px;
}

.ai-failure-grid {
  gap: 2rem;
  margin-top: 2rem;
}

.ai-feature-list {
  margin-top: 2rem;
}

.emphasis-line {
  margin-top: 2rem;
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
}

.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 2rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #F5EFE3;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border: 1px solid rgba(61, 58, 54, 0.14);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  background: rgba(61, 58, 54, 0.06);
}

.comparison-table td {
  line-height: 1.6;
}

@media (max-width: 700px) {

  .comparison-table th,
  .comparison-table td {
    padding: 0.8rem;
    font-size: 0.92rem;
  }

  .emphasis-line {
    font-size: 1.05rem;
  }

}

.ai-hero .container {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.section-heading-center .hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}