/**
 * Pippa Toledo — editorial redesign system (staging).
 * Edit this file for global visual tokens. Prefix: pt-
 *
 * Colours, type, header/footer, Elementor page chrome, WooCommerce polish.
 */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Manrope:wght@400;500;600&display=swap");

:root {
  --pt-bg: #ffffff;
  --pt-bg-soft: #f6f3ee;
  --pt-text: #242321;
  --pt-text-muted: #65615b;
  --pt-line: #ded8cf;
  --pt-max: 1320px;
  --pt-gutter: clamp(20px, 4vw, 48px);
  --pt-space: clamp(40px, 8vw, 112px);
  --pt-space-sm: clamp(40px, 5vw, 64px);
  --pt-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --pt-sans: Manrope, "Helvetica Neue", Arial, sans-serif;
  --pt-radius: 2px;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.theme-pippa-toledo,
body.pt-editorial {
  background: var(--pt-bg);
  color: var(--pt-text);
  font-family: var(--pt-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
.pt-nav a:focus-visible,
.pt-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--pt-text);
  outline-offset: 3px;
}

/* Hide legacy oversized chrome when editorial header is active */
body.pt-editorial .headerDv,
body.pt-editorial .footerDv,
body.pt-editorial .mobileHeaderDv,
body.pt-editorial .mobileMenuDv {
  display: none !important;
}

body.pt-editorial .contentDv {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
}

/* Neutralise legacy Site.css constraints on Elementor canvas */
body.pt-editorial .pt-elementor-canvas,
body.pt-editorial .elementor {
  max-width: none;
  width: 100%;
}

body.pt-editorial .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--pt-max);
}

body.pt-editorial .elementor-widget-image-box .elementor-image-box-wrapper .elementor-image-box-img {
  width: 100% !important;
  max-width: 100%;
}

body.pt-editorial .elementor-widget-image-box .elementor-image-box-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.pt-editorial .elementor-section.elementor-section-height-default.pt-hero,
body.pt-editorial .elementor-top-section.pt-hero {
  min-height: 78vh;
}

body.pt-editorial .pt-hero .elementor-background-overlay {
  background-color: #242321;
  opacity: 0.38;
}

body.pt-editorial .goToTop {
  right: 20px;
  bottom: 20px;
  color: var(--pt-text-muted);
}

/* ---- Header ---- */
.pt-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pt-line);
}

.pt-site-header__inner {
  max-width: var(--pt-max);
  margin: 0 auto;
  padding: 14px var(--pt-gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.pt-site-header__logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
}

.pt-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 4px 18px;
  overflow: visible;
}

.pt-nav a {
  font-family: var(--pt-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pt-text);
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.pt-nav a:hover,
.pt-nav a.is-current,
.pt-nav .current-menu-item > a,
.pt-nav .menuItem {
  color: var(--pt-text);
  border-bottom-color: var(--pt-text);
}

.pt-nav .menuHideItem {
  border-bottom-color: transparent;
}

.pt-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pt-header-actions a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pt-text);
}

.pt-header-actions__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pt-header-actions__cart .pt-cart-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pt-text);
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

.pt-header-actions__enquire {
  border: 1px solid var(--pt-text);
  padding: 8px 12px;
}

.pt-header-actions__enquire:hover {
  background: var(--pt-text);
  color: #fff;
}

.pt-nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--pt-line);
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.pt-nav-toggle span,
.pt-nav-toggle span::before,
.pt-nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--pt-text);
  margin: 0 auto;
  position: relative;
}

.pt-nav-toggle span::before,
.pt-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.pt-nav-toggle span::before { top: -6px; }
.pt-nav-toggle span::after { top: 6px; }

.pt-mobile-panel {
  display: none;
  border-top: 1px solid var(--pt-line);
  background: var(--pt-bg);
  padding: 12px var(--pt-gutter) 24px;
}

.pt-mobile-panel.is-open { display: block; }

.pt-mobile-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--pt-line);
  text-decoration: none;
  color: var(--pt-text);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pt-mobile-meta {
  margin-top: 20px;
  color: var(--pt-text-muted);
  font-size: 14px;
}

.pt-mobile-meta a {
  border: 0;
  padding: 6px 0;
  text-transform: none;
  letter-spacing: 0;
  color: var(--pt-text-muted);
}

@media (max-width: 1024px) {
  .pt-site-header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .pt-nav { display: none; }
  .pt-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .pt-header-actions__enquire { display: none; }
  .pt-site-header__logo img { height: 40px; }
}

/* ---- Footer ---- */
.pt-site-footer {
  background: var(--pt-bg-soft);
  border-top: 1px solid var(--pt-line);
  margin-top: var(--pt-space);
  color: var(--pt-text-muted);
}

.pt-site-footer__inner {
  max-width: var(--pt-max);
  margin: 0 auto;
  padding: var(--pt-space) var(--pt-gutter) 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.pt-site-footer h3 {
  font-family: var(--pt-serif);
  font-size: 22px;
  color: var(--pt-text);
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: 0;
  text-transform: none;
}

.pt-site-footer a {
  color: var(--pt-text-muted);
  text-decoration: none;
}

.pt-site-footer a:hover { color: var(--pt-text); }

.pt-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pt-site-footer li { margin: 0 0 10px; }

.pt-site-footer__brand img {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.pt-site-footer__bottom {
  max-width: var(--pt-max);
  margin: 0 auto;
  padding: 18px var(--pt-gutter) 28px;
  border-top: 1px solid var(--pt-line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.pt-site-footer__social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.pt-site-footer__social a {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .pt-site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Buttons / Elementor polish ---- */
.pt-btn,
.elementor-widget-button .elementor-button {
  font-family: var(--pt-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: var(--pt-radius) !important;
  box-shadow: none !important;
  padding: 14px 22px !important;
}

.pt-btn--dark,
.elementor-widget-button.pt-btn-dark .elementor-button {
  background: var(--pt-text) !important;
  color: #fff !important;
  border: 1px solid var(--pt-text) !important;
}

.pt-btn--light,
.elementor-widget-button.pt-btn-light .elementor-button {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

.elementor-widget-heading .elementor-heading-title {
  font-family: var(--pt-serif) !important;
  font-weight: 500 !important;
  color: var(--pt-text);
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.elementor-widget-text-editor {
  font-family: var(--pt-sans);
  color: var(--pt-text-muted);
  font-size: 17px;
  line-height: 1.7;
}

.elementor-section.pt-soft-bg {
  background: var(--pt-bg-soft);
}

.elementor-widget-image-box .elementor-image-box-title {
  font-family: var(--pt-serif) !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--pt-text) !important;
}

.elementor-widget-image-box .elementor-image-box-description {
  font-family: var(--pt-sans);
  color: var(--pt-text-muted);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.elementor-widget-image img,
.elementor-widget-image-box img {
  border-radius: var(--pt-radius);
}

/* Forms */
.contactFormTable,
.pt-form {
  max-width: 640px;
}

.formLabel,
.contactFormCell .formLabel,
label.formLabel {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pt-text);
  margin-bottom: 6px;
}

.pt-form-success {
  color: #2f5d3a;
  margin-bottom: 16px;
}

.pt-form-error {
  color: #8a2e2e;
  margin-bottom: 16px;
}

.formTextbox,
.contactFormCell input,
.contactFormCell textarea {
  width: 100%;
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius);
  background: #fff;
  color: var(--pt-text);
  padding: 12px 14px;
  font-family: var(--pt-sans);
  font-size: 16px;
}

.contactButton,
button.contactButton {
  appearance: none;
  background: var(--pt-text);
  color: #fff;
  border: 1px solid var(--pt-text);
  border-radius: var(--pt-radius);
  padding: 14px 22px;
  font-family: var(--pt-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.contactFormRow {
  display: block;
  margin-bottom: 16px;
}

.contactFormCell { width: 100%; }

/* WooCommerce */
.woocommerce-pt,
.woocommerce {
  font-family: var(--pt-sans);
  color: var(--pt-text);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--pt-text) !important;
  color: #fff !important;
  border-radius: var(--pt-radius) !important;
  font-weight: 500 !important;
}

.woocommerce table.shop_table {
  border-color: var(--pt-line);
}

/* Hero text area contrast helper */
.pt-hero-copy {
  max-width: 640px;
  padding: 28px 28px 28px 0;
}

.pt-hero-copy .elementor-heading-title,
.pt-hero-copy h1,
.pt-hero-copy h2,
.pt-hero-copy .pt-kicker .elementor-heading-title {
  color: #fff !important;
}

.pt-hero-copy .pt-kicker .elementor-heading-title {
  opacity: 0.85;
  letter-spacing: 0.08em;
}

.pt-hero .elementor-container {
  max-width: var(--pt-max);
  margin-inline: auto;
}

.pt-kicker {
  font-family: var(--pt-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pt-text-muted);
  margin-bottom: 12px;
}

@media (max-width: 767px) {
  body.theme-pippa-toledo,
  body.pt-editorial {
    font-size: 16px;
  }
  .elementor-widget-heading .elementor-heading-title {
    line-height: 1.15;
  }
  body.pt-editorial .pt-hero .elementor-heading-title {
    font-size: clamp(34px, 9vw, 44px) !important;
  }
  body.pt-editorial .pt-site-header__inner {
    gap: 12px;
  }
  body.pt-editorial .elementor-section.pt-hero,
  body.pt-editorial .pt-hero {
    min-height: 70vh;
  }
  body.pt-editorial .pt-hero-copy {
    max-width: none;
    padding: 24px 0;
  }
}

/* Ensure Elementor pages never inherit legacy mosaic shell width */
body.pt-editorial.pt-elementor-page,
body.pt-editorial.elementor-page {
  overflow-x: clip;
}

body.pt-editorial .elementor-section,
body.pt-editorial .elementor-container,
body.pt-editorial .elementor-column,
body.pt-editorial .elementor-widget-wrap {
  max-width: none;
}

body.pt-editorial .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--pt-max);
  width: 100%;
}
