/*
Theme Name: Astra Child - Cementchamber
Template: astra
Description: Child theme for cementchamber.com carrying the Terracotta Modern design system.
Version: 1.1.0
*/

:root {
  --cc-bg: #F7F4EF;
  --cc-surface: #FFFFFF;
  --cc-ink: #221F1D;
  --cc-accent: #C1502E;
  --cc-accent-dark: #A6431F;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cc-bg);
  color: var(--cc-ink);
  font-family: 'General Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: var(--cc-accent); transition: color 0.2s ease; }
a:hover { color: var(--cc-accent-dark); }

/* Elementor container polish: smooth transitions on any interactive container/card */
.e-con, .elementor-widget-container {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Card lift-on-hover: applies to containers that already carry a shadow (our listing/service cards) */
.e-con[style*='box-shadow']:hover {
  transform: translateY(-4px);
}

/* Button polish: smooth hover, subtle lift, no harsh jump */
.elementor-button, .elementor-widget-button a.elementor-button {
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}
.elementor-button:hover, .elementor-widget-button a.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(193,80,46,0.25);
}

/* Image polish: subtle zoom on hover inside cards, clipped by the parent's overflow:hidden */
.elementor-widget-image img {
  transition: transform 0.4s ease;
}
.e-con:hover > .e-con-inner .elementor-widget-image img,
.e-con:hover .elementor-widget-image img {
  transform: scale(1.03);
}

/* Nav polish: smooth underline-style hover on primary menu */
.main-header-menu .menu-item > a {
  position: relative;
  transition: color 0.2s ease;
}
.main-header-menu .menu-item > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--cc-accent);
  transition: width 0.25s ease;
}
.main-header-menu .menu-item > a:hover::after { width: 100%; }

/* Footer polish */
footer, .site-footer, .ast-small-footer {
  background-color: var(--cc-ink) !important;
  color: var(--cc-bg) !important;
}
footer a, .site-footer a, .ast-small-footer a { color: var(--cc-bg) !important; opacity: 0.85; }
footer a:hover, .site-footer a:hover { opacity: 1; color: var(--cc-bg) !important; }

/* Form field polish (SureForms) */
input[type='text'], input[type='email'], textarea, select {
  border-radius: 8px !important;
  border: 1px solid rgba(34,31,29,0.15) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: 'General Sans', sans-serif !important;
}
input[type='text']:focus, input[type='email']:focus, textarea:focus {
  border-color: var(--cc-accent) !important;
  box-shadow: 0 0 0 3px rgba(193,80,46,0.12) !important;
  outline: none !important;
}
