/*
Theme Name: Singlemorn UK Limited — Exact
Theme URI: https://singlemornuklimited.com/
Author: Singlemorn UK Limited
Description: WordPress port of the approved Singlemorn UK Limited website design.
Version: 4.0.0
Text Domain: singlemorn
*/
:root {
  --burgundy: #7f1825;
  --burgundy-dark: #54101a;
  --charcoal: #211615;
  --ink: #342624;
  --cream: #f7f0e6;
  --cream-deep: #eadfce;
  --gold: #c69a58;
  --green: #4f6449;
  --muted: #766a64;
  --white: #fffdf9;
  --border: #dfd3c3;
  --shadow: 0 18px 50px rgba(39, 22, 20, .12);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--charcoal); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; transform: translateY(-150%); background: var(--charcoal); color: white; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.top-note { background: var(--charcoal); color: #f7e9dc; font-size: .78rem; letter-spacing: .02em; }
.top-note-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.top-note a { color: #f4c682; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,253,249,.97); border-bottom: 1px solid rgba(127,24,37,.1); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand img { flex: 0 0 auto; }
.brand span { display: grid; line-height: 1; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.42rem; text-transform: uppercase; letter-spacing: .055em; color: var(--charcoal); }
.brand small { color: var(--burgundy); font-weight: 800; text-transform: uppercase; letter-spacing: .32em; font-size: .62rem; margin-top: 8px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a:not(.button) { padding: 11px 10px; border-radius: 10px; color: #534541; font-size: .91rem; font-weight: 700; }
.main-nav > a:not(.button):hover, .main-nav > a.active { color: var(--burgundy); background: #f8ecea; }
.menu-button { display: none; border: 0; background: transparent; color: var(--burgundy); padding: 8px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 1px solid var(--burgundy); border-radius: 999px; background: var(--burgundy); color: white; font-weight: 800; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { background: var(--burgundy-dark); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(127,24,37,.2); }
.button-small { min-height: 40px; padding: 8px 16px; font-size: .86rem; }
.button-ghost { background: rgba(255,255,255,.08); color: white; border-color: rgba(255,255,255,.55); }
.button-ghost:hover { background: white; color: var(--burgundy); }
.button:disabled { opacity: .65; cursor: wait; transform: none; }

.hero { position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden; background: var(--charcoal); }
.hero-compact { min-height: 420px; }
.hero-image { object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,13,13,.92) 0%, rgba(42,16,19,.72) 46%, rgba(42,16,19,.18) 80%); }
.hero-content { position: relative; z-index: 2; color: white; padding-block: 100px; }
.hero-content h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.2rem); line-height: .98; letter-spacing: -.045em; }
.hero-compact .hero-content h1 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
.hero-content > p:not(.eyebrow) { max-width: 650px; margin: 26px 0 0; color: #f3e5da; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.eyebrow { margin: 0 0 14px; color: var(--burgundy); font-size: .78rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow.light { color: #efc276; }

.section { padding-block: 92px; }
.section-soft { background: var(--cream); }
.section-dark { background: var(--charcoal); color: white; }
.section-heading { max-width: 740px; margin-bottom: 36px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading h2 { margin: 0; color: var(--charcoal); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.08; letter-spacing: -.035em; }
.section-dark .section-heading h2 { color: white; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-heading > p:last-child { color: #d7c7ba; }

.split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.split.reverse { grid-template-columns: .92fr 1.08fr; }
.split.reverse .split-image { order: 2; }
.split-image { position: relative; min-height: 480px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--cream-deep); }
.split-image img { object-fit: cover; }
.split-copy h2 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.1; color: var(--charcoal); }
.split-copy p { color: var(--muted); }
.split-copy .button { margin-top: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -54px; position: relative; z-index: 4; }
.stat { padding: 28px; background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.stat strong { display: block; color: var(--burgundy); font-family: Georgia, serif; font-size: 2rem; }
.stat span { color: var(--muted); font-size: .9rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.feature-card { padding: 30px; border: 1px solid var(--border); border-radius: 20px; background: white; box-shadow: 0 10px 34px rgba(39,22,20,.06); }
.feature-card .icon-box { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: #f8e9e7; color: var(--burgundy); }
.feature-card h3 { margin: 22px 0 8px; color: var(--charcoal); font-family: Georgia, serif; font-size: 1.42rem; }
.feature-card p { margin: 0; color: var(--muted); }

.image-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.image-card { overflow: hidden; border-radius: 22px; background: white; border: 1px solid var(--border); box-shadow: var(--shadow); }
.image-card-media { position: relative; min-height: 260px; background: var(--cream); }
.image-card-media img { object-fit: cover; }
.image-card-body { padding: 26px; }
.image-card-body h3 { margin: 0 0 8px; color: var(--charcoal); font-family: Georgia, serif; font-size: 1.55rem; }
.image-card-body p { margin: 0; color: var(--muted); }

.check-list { display: grid; gap: 14px; margin: 26px 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; color: var(--ink); }
.check-list svg { color: var(--green); margin-top: 2px; }

.callout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; padding: 46px; border-radius: 28px; background: linear-gradient(135deg, var(--burgundy), #4a0f16); color: white; box-shadow: var(--shadow); }
.callout h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; }
.callout p { margin-bottom: 0; color: #f0d8cf; }
.callout-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.callout .button { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.callout .button:hover { background: #d7ab6b; }

.timeline { display: grid; gap: 16px; }
.timeline-item { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: start; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: white; }
.timeline-item strong { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--burgundy); color: white; font-size: .9rem; }
.timeline-item h3 { margin: 4px 0 6px; font-family: Georgia, serif; font-size: 1.35rem; }
.timeline-item p { margin: 0; color: var(--muted); }

.notice { padding: 24px; border-left: 5px solid var(--gold); border-radius: 12px; background: #fbf3e7; color: #5c4a3f; }
.notice strong { color: var(--charcoal); }

.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: start; }
.contact-details { display: grid; gap: 18px; }
.contact-detail { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: white; }
.contact-detail svg { color: var(--burgundy); }
.contact-detail h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 1.24rem; }
.contact-detail p { margin: 0; color: var(--muted); }
.contact-form { padding: 34px; border-radius: 24px; background: var(--cream); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; margin-bottom: 18px; color: var(--charcoal); font-weight: 800; font-size: .9rem; }
.contact-form label span { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #cfc1af; border-radius: 12px; background: white; padding: 13px 14px; color: var(--ink); outline: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(127,24,37,.1); }
.contact-form .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.contact-form .consent input { width: 18px; height: 18px; margin-top: 4px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; }
.form-status.success { background: #e8f2e7; color: #2e5d2d; }
.form-status.error { background: #f8e5e5; color: #84222c; }

.legal-content { max-width: 860px; }
.legal-content h2 { margin-top: 42px; color: var(--charcoal); font-family: Georgia, serif; font-size: 2rem; }
.legal-content h3 { margin-top: 30px; color: var(--charcoal); }
.legal-content p, .legal-content li { color: #5f514d; }
.legal-content a { color: var(--burgundy); text-decoration: underline; }
.legal-content ul { padding-left: 22px; }

.site-footer { background: #1d1413; color: #e9ddd3; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .65fr 1fr; gap: 60px; padding-bottom: 54px; }
.footer-brand strong { color: white; }
.footer-brand small { color: #e9ad63; }
.site-footer h2 { margin: 0 0 18px; color: white; font-family: Georgia, serif; font-size: 1.3rem; }
.site-footer p { color: #bfaea4; }
.company-number { font-size: .84rem; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover, .footer-bottom a:hover, .site-footer a:hover { color: #f0bd78; }
.footer-contact { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.footer-contact svg { color: #e9ad63; margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #9f8f86; }
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 16px; }

.cookie-banner { position: fixed; z-index: 2000; left: 20px; right: 20px; bottom: 20px; max-width: 900px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid #d7c7b4; border-radius: 18px; background: white; box-shadow: 0 20px 60px rgba(20,10,10,.22); }
.cookie-banner p { margin: 0; font-size: .9rem; }
.cookie-banner a { color: var(--burgundy); text-decoration: underline; }

@media (max-width: 1050px) {
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 116px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: white; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav > a { text-align: center; }
  .split, .split.reverse, .contact-layout { grid-template-columns: 1fr; }
  .split.reverse .split-image { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .top-note { display: none; }
  .site-header { top: 0; }
  .nav-wrap { min-height: 72px; }
  .brand { min-width: 0; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 1.05rem; }
  .brand small { font-size: .5rem; }
  .main-nav { top: 78px; left: 14px; right: 14px; }
  .hero { min-height: 610px; }
  .hero-compact { min-height: 370px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(24,13,13,.94), rgba(42,16,19,.58)); }
  .hero-content { padding-block: 76px; }
  .hero-content h1 { font-size: clamp(2.7rem, 15vw, 4.3rem); }
  .hero-content > p:not(.eyebrow) { font-size: 1rem; }
  .section { padding-block: 66px; }
  .split-image { min-height: 340px; }
  .stats, .card-grid, .card-grid.four, .image-card-grid, .form-row { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; padding: 30px; }
  .callout-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .contact-form { padding: 22px; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Approved Singlemorn black-and-gold brand artwork */
.brand-approved {
  min-width: 210px;
  height: 82px;
  overflow: hidden;
}
.brand-approved img {
  width: 210px;
  height: 82px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

@media (max-width: 760px) {
  .brand-approved {
    min-width: 0;
    width: 176px;
    height: 64px;
  }
  .brand-approved img {
    width: 176px;
    height: 64px;
    object-fit: contain;
  }
}

/* Header palette matched to the approved black-and-gold logo */
.site-header {
  background: rgba(29, 20, 19, .98);
  border-bottom-color: rgba(198, 154, 88, .28);
}
.top-note {
  background: #100c0b;
  color: #dbc9b8;
  border-bottom: 1px solid rgba(198, 154, 88, .16);
}
.top-note a { color: #f1bd66; }
.main-nav > a:not(.button) { color: #f1e6dc; }
.main-nav > a:not(.button):hover,
.main-nav > a.active {
  color: #ffd17d;
  background: rgba(198, 154, 88, .13);
}
.site-header .menu-button { color: #f0bd67; }
.site-header .button {
  color: #1d1413;
  background: var(--gold);
  border-color: var(--gold);
}
.site-header .button:hover { background: #dfb873; }
.footer-brand { width: 230px; height: 188px; }
.footer-brand img { width: 230px; height: 188px; }

@media (max-width: 1050px) {
  .main-nav {
    background: #211615;
    border-color: rgba(198, 154, 88, .35);
  }
}

@media (max-width: 760px) {
  .nav-wrap { min-height: 82px; }
  .main-nav { top: 88px; }
  .footer-brand { width: 210px; height: 172px; }
  .footer-brand img { width: 210px; height: 172px; }
}

/* WordPress compatibility: recreate Next/Image fill behaviour exactly. */
.hero-image,
.split-image > img,
.image-card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Keep the public site visually identical even when WordPress adds defaults. */
body.singlemorn-theme { margin: 0; }
body.singlemorn-theme main { display: block; }
body.singlemorn-theme .site-header a,
body.singlemorn-theme .site-footer a { text-decoration: none; }
body.singlemorn-theme .contact-form p { margin-top: 0; }
body.singlemorn-theme.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.singlemorn-theme.admin-bar .site-header { top: 46px; }
}

/* Contact status when handled by WordPress. */
.contact-form .form-status { display: block; }

/* Prevent theme content from inheriting block-theme styles. */
.singlemorn-theme h1,.singlemorn-theme h2,.singlemorn-theme h3,
.singlemorn-theme p,.singlemorn-theme ul { max-width: none; }
