/*
Theme Name: CC&CO Revamp Landing Page
Theme URI: https://ccandco.co.za/
Author: CC&CO
Description: A lightweight temporary landing page for CC&CO while the full website is being revamped.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ccandco-revamp
*/

:root {
  /* Brand palette confirmed in the CC&CO SharePoint website brief. */
  --black: #000000;
  --white: #ffffff;
  --nude-pink: #e4ccc6;
  --grey: #d8d8d5;
  --ink-soft: #5f5957;
  --pink-deep: #8e6f68;
  --line: rgba(228, 204, 198, 0.72);
  --surface: rgba(255, 255, 255, 0.92);
  --shadow: 0 30px 90px rgba(64, 45, 40, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--black);
  background:
    radial-gradient(circle at 10% 12%, rgba(228, 204, 198, 0.48), transparent 29%),
    radial-gradient(circle at 88% 84%, rgba(216, 216, 213, 0.36), transparent 31%),
    linear-gradient(145deg, var(--white) 0%, #fbf7f6 52%, #f5e9e6 100%);
  font-family: Poppins, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(228, 204, 198, 0.54);
  border-radius: 50%;
  pointer-events: none;
}

.site-shell::before { top: -240px; right: -150px; }
.site-shell::after { bottom: -280px; left: -180px; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.company-logo-frame {
  width: min(460px, calc(100vw - 44px));
  padding: 10px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.built-in-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

main {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 24px 0 42px;
}

.landing-card {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(22px, 7vw, 72px);
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(228, 204, 198, 0.78);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--pink-deep);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0 auto;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.1rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.intro {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.brand-strip {
  width: calc(100% + clamp(44px, 14vw, 144px));
  margin: clamp(34px, 5vw, 54px) calc(clamp(22px, 7vw, 72px) * -1) 0;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.brand-track {
  display: flex;
  width: max-content;
  animation: brand-scroll 34s linear infinite;
  will-change: transform;
}

.brand-strip:hover .brand-track,
.brand-strip:focus-within .brand-track {
  animation-play-state: paused;
}

.brand-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-wrap {
  position: relative;
  width: 230px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 9px 34px;
}

.brand-logo-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--nude-pink);
  transform: translate(50%, -50%);
}

.brand-logo {
  display: block;
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo--tall { max-height: 82px; }
.brand-logo--medium { max-width: 150px; }

@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stockist {
  max-width: 700px;
  margin: clamp(34px, 5vw, 52px) auto 0;
}

.stockist h2 {
  margin: 0;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 400;
}

.stockist p {
  margin: 12px auto 0;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 25px;
}

.button {
  min-width: 210px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 22px;
  border: 1px solid var(--black);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .13);
}

.button-primary {
  color: var(--white);
  background: var(--black);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--white);
  background: #262626;
}

.button-secondary {
  color: var(--black);
  background: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--nude-pink);
}

.contact-line {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.contact-line a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 0 20px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-track { animation: none; }
  .button { transition: none; }
}

@media (max-width: 640px) {
  .site-header { padding-top: 21px; }
  .company-logo-frame {
    width: min(360px, calc(100vw - 30px));
    padding: 8px 10px 10px;
  }
  .built-in-logo { width: 100%; height: auto; }
  main { padding-top: 14px; }
  .landing-card { border-radius: 22px; }
  .brand-strip { padding: 12px 0; }
  .brand-logo-wrap { width: 170px; height: 78px; padding: 8px 24px; }
  .brand-logo { max-height: 58px; }
  .brand-logo--tall { max-height: 66px; }
  .brand-logo--medium { max-width: 118px; }
  .button { width: 100%; min-width: 0; }
}

/* Footer legal link */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 9px;
}

.site-footer a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--black);
}

/* Terms & Conditions page */
.legal-shell {
  overflow: visible;
}

.legal-header {
  padding-bottom: 2px;
}

.legal-logo-link {
  text-decoration: none;
}

.legal-main {
  display: block;
  padding: 24px 0 48px;
}

.legal-card {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(22px, 7vw, 72px);
  background: var(--surface);
  border: 1px solid rgba(228, 204, 198, 0.78);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-underline-offset: 4px;
}

.legal-title-wrap {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-title-wrap h1 {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.legal-content {
  max-width: 760px;
  margin: 38px auto 0;
  color: #393534;
  font-size: 1rem;
}

.legal-content h2 {
  margin: 36px 0 10px;
  color: var(--black);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content a {
  color: var(--pink-deep);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.terms-updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .legal-card {
    border-radius: 22px;
  }

  .legal-content {
    margin-top: 28px;
  }

  .footer-separator {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    gap: 3px;
  }
}
