/*
 * Contigoo brand override — cream editorial palette.
 *
 * Loaded last on the contigooltd.com and contigoo-co.com static mirror sites
 * so it wins over the Elementor/hello-biz defaults without touching the
 * underlying WordPress export. All rules use !important sparingly — only where
 * the Elementor inline style or a theme utility would otherwise override.
 *
 * Palette (source: /home/islam/contigoo-brand):
 *   cream      #EDE8E2
 *   cream-soft #F6F2EC
 *   ink        #1F1B16
 *   charcoal   #2A2420
 *   tan        #C4A882
 *   brown      #7A5C3E
 *   sand       #B8A284
 */

:root {
  --cg-cream: #EDE8E2;
  --cg-cream-soft: #F6F2EC;
  --cg-ink: #1F1B16;
  --cg-charcoal: #2A2420;
  --cg-tan: #C4A882;
  --cg-brown: #7A5C3E;
  --cg-sand: #B8A284;
}

/* -------- Page canvas ------------------------------------------------- */
html,
body {
  background: var(--cg-cream) !important;
  color: var(--cg-ink);
}

body,
p,
li,
td,
th,
.elementor-widget-container,
.elementor-text-editor {
  color: var(--cg-ink);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
}

/* -------- Editorial serif for headlines ------------------------------ */
h1,
h2,
h3,
.elementor-heading-title,
.elementor-heading-title a {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif !important;
  color: var(--cg-charcoal) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1;
}

/* -------- Section backgrounds ---------------------------------------- */
.elementor-section,
.e-con,
.elementor-container,
section {
  background-color: transparent !important;
}

/* First hero section gets the warm-cream canvas */
.elementor-top-section:first-of-type,
.e-con.e-parent:first-of-type {
  background: linear-gradient(180deg, var(--cg-cream-soft) 0%, var(--cg-cream) 100%) !important;
}

/* Alternating cream-soft panels for section rhythm */
.elementor-top-section:nth-of-type(even),
.e-con.e-parent:nth-of-type(even) {
  background: var(--cg-cream-soft) !important;
}

/* -------- Buttons ---------------------------------------------------- */
.elementor-button,
.elementor-button-link,
a.elementor-button,
button {
  background: var(--cg-charcoal) !important;
  color: var(--cg-cream) !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.85rem 1.6rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.18s ease;
  box-shadow: 0 4px 18px rgba(31, 27, 22, 0.12);
}

.elementor-button:hover,
a.elementor-button:hover,
button:hover {
  background: var(--cg-brown) !important;
  transform: translateY(-1px);
}

/* Secondary / ghost buttons (when theme exposes them) */
.elementor-button.elementor-button-secondary,
.elementor-button[class*="outline"] {
  background: transparent !important;
  color: var(--cg-charcoal) !important;
  border: 1.5px solid var(--cg-tan) !important;
  box-shadow: none;
}

/* -------- Links ------------------------------------------------------ */
a {
  color: var(--cg-brown);
}

a:hover {
  color: var(--cg-charcoal);
}

/* -------- Nav --------------------------------------------------------- */
header,
.site-header,
.ehbiz-site-header,
.elementor-location-header {
  background: rgba(237, 232, 226, 0.86) !important;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(122, 92, 62, 0.12);
}

nav a,
.elementor-nav-menu a,
.ehbiz-site-header a {
  color: var(--cg-charcoal) !important;
  font-weight: 600;
}

nav a:hover,
.elementor-nav-menu a:hover {
  color: var(--cg-brown) !important;
}

/* -------- Cards / form controls --------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  background: var(--cg-cream-soft) !important;
  border: 1px solid rgba(122, 92, 62, 0.25) !important;
  color: var(--cg-ink) !important;
  border-radius: 0.6rem !important;
  padding: 0.75rem 1rem !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--cg-tan) !important;
  outline-offset: 1px;
}

/* -------- Footer ------------------------------------------------------ */
footer,
.site-footer,
.elementor-location-footer {
  background: var(--cg-charcoal) !important;
  color: var(--cg-cream) !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer .elementor-heading-title {
  color: var(--cg-cream) !important;
}

footer a {
  color: var(--cg-tan) !important;
}

/* -------- Eliminate purple/cyan Elementor preset colors --------------- */
[class*="has-vivid-purple"],
[class*="has-vivid-cyan"],
[class*="has-vivid-green"],
[class*="has-luminous-vivid-orange"] {
  color: var(--cg-brown) !important;
  background-color: transparent !important;
}

/* -------- Small refinement: tighten WP emoji + loose icon tints ------- */
.elementor-icon svg path,
.elementor-icon svg {
  fill: var(--cg-tan) !important;
}

/* Contact call-to-action chips */
.elementor-widget-icon-list .elementor-icon-list-icon i,
.elementor-widget-icon-list .elementor-icon-list-icon svg {
  color: var(--cg-tan) !important;
  fill: var(--cg-tan) !important;
}

/* -------- Subtle grain + texture on the canvas ------------------------ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(196, 168, 130, 0.08) 0%, transparent 40%),
                    radial-gradient(circle at 85% 80%, rgba(122, 92, 62, 0.07) 0%, transparent 45%);
  mix-blend-mode: multiply;
}

/* -------- Responsive polish ------------------------------------------- */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .elementor-button {
    padding: 0.8rem 1.3rem !important;
  }
}
