/*
Theme Name:   Blocksy Child - eNotary One
Theme URI:    https://enotaryone.com
Description:  Blocksy child theme for eNotary One
Author:       eNotary One
Author URI:   https://enotaryone.com
Template:     blocksy
Version:      1.1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  blocksy-child
*/

:root {
  --enotary-primary: #4F57D8;
  --enotary-primary-hover: #2A338F;
  --enotary-navy: #152536;
  --enotary-navy-soft: #1E3348;
  --enotary-orange: #F06A2F;
  --enotary-orange-btn: #E25A1C;
  --enotary-text: #2C3540;
  --enotary-muted: #66707C;
  --enotary-light: #F3F5F8;
  --enotary-wash: #F7F8FB;
  --enotary-white: #ffffff;
  --enotary-footer-bg: #101827;
  --enotary-footer-mid: #162033;
  --enotary-font: "Outfit", system-ui, sans-serif;
  --enotary-heading: "Outfit", system-ui, sans-serif;
  --enotary-display: "Fraunces", Georgia, serif;
  --enotary-max: 1140px;
  --enotary-radius: 12px;
  --enotary-section-y: 3.75rem;
  --enotary-hero-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Reset Blocksy chrome interference */
.enotary-site .ct-header,
.enotary-site header#header,
.enotary-site .ct-footer,
.enotary-site footer#footer,
.enotary-site .hero-section,
.enotary-site .ct-container > .entry-header {
  display: none !important;
}

.enotary-site #main-container,
.enotary-site main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  background: var(--enotary-wash);
}

.enotary-site .entry-content {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.enotary-site,
.enotary-site body,
.enotary-site p,
.enotary-site a,
.enotary-site li,
.enotary-site input,
.enotary-site textarea,
.enotary-site button {
  font-family: var(--enotary-font);
  color: var(--enotary-text);
}

.enotary-site h1,
.enotary-site h2,
.enotary-site h3,
.enotary-site h4 {
  font-family: var(--enotary-heading);
  color: var(--enotary-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Force readable white titles on photographic heroes */
.enotary-site .enotary-page-hero h1,
.enotary-site h1.enotary-home-hero-title,
.enotary-site .enotary-home-hero-title,
.enotary-site .enotary-contact-hero h1,
.enotary-site .enotary-video-panel h3 {
  color: #fff !important;
  text-shadow: var(--enotary-hero-shadow);
}

/* Beat .enotary-site p dark text on hero subcopy */
.enotary-site p.enotary-home-hero-sub,
.enotary-site .enotary-home-hero-sub {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.enotary-display {
  font-family: var(--enotary-display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ========== HEADER ========== */
.enotary-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(21, 37, 54, 0.08);
}

.enotary-header-inner {
  max-width: var(--enotary-max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.enotary-logo img {
  display: block;
  height: 50px;
  width: auto;
}

.enotary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
}

.enotary-nav > a,
.enotary-nav-item > a {
  color: var(--enotary-navy-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.enotary-nav > a::after,
.enotary-nav-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--enotary-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.enotary-nav > a.is-active,
.enotary-nav > a:hover,
.enotary-nav-item > a.is-active,
.enotary-nav-item > a:hover {
  color: var(--enotary-primary);
}

.enotary-nav > a.is-active::after,
.enotary-nav > a:hover::after,
.enotary-nav-item > a.is-active::after,
.enotary-nav-item > a:hover::after {
  transform: scaleX(1);
}

.enotary-nav-item {
  position: relative;
}

.enotary-caret {
  font-size: 0.7em;
  opacity: 0.7;
}

.enotary-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  min-width: 230px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(21, 37, 54, 0.14);
  border: 1px solid rgba(21, 37, 54, 0.06);
  border-radius: 10px;
  padding: 0.45rem 0;
  z-index: 20;
}

.enotary-nav-item:hover .enotary-dropdown,
.enotary-nav-item:focus-within .enotary-dropdown {
  display: block;
}

.enotary-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  white-space: nowrap;
  color: var(--enotary-navy);
  text-decoration: none;
  font-size: 0.92rem;
}

.enotary-dropdown a:hover {
  background: var(--enotary-light);
  color: var(--enotary-primary);
}

.enotary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--enotary-primary);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(79, 87, 216, 0.28);
}

.enotary-cta:hover {
  background: var(--enotary-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(42, 51, 143, 0.28);
}

.enotary-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
  padding: 0.35rem;
}

.enotary-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--enotary-navy);
}

.enotary-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.25rem 1.35rem;
  background: #fff;
  border-top: 1px solid rgba(21, 37, 54, 0.08);
}

.enotary-mobile-menu a {
  color: var(--enotary-navy);
  text-decoration: none;
  font-weight: 500;
}

.enotary-mobile-menu[hidden] {
  display: none !important;
}

/* ========== FOOTER ========== */
.enotary-footer {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(79, 87, 216, 0.22), transparent 55%),
    linear-gradient(165deg, var(--enotary-footer-mid) 0%, var(--enotary-footer-bg) 55%, #0B1220 100%);
  color: #c8d0dc;
  margin-top: 0;
}

.enotary-footer a {
  color: #e8edf5;
  text-decoration: none;
}

.enotary-footer a:hover {
  color: #fff;
}

.enotary-footer-inner {
  max-width: var(--enotary-max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 2.25rem;
}

.enotary-footer h3 {
  color: #fff !important;
  font-size: 1rem;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.enotary-footer-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 0.85rem;
}

.enotary-footer-brand p {
  color: #aeb8c7;
  line-height: 1.55;
}

.enotary-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.enotary-footer li {
  margin-bottom: 0.5rem;
}

.enotary-footer-meta {
  margin: 0.4rem 0;
  color: #aeb8c7;
}

.enotary-footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.enotary-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.enotary-footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.enotary-footer-cta {
  display: inline-block;
  background: var(--enotary-primary);
  color: #fff !important;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.enotary-footer-cta:hover {
  background: var(--enotary-primary-hover);
  transform: translateY(-1px);
}

.enotary-footer-note {
  color: #8f9aab;
  font-size: 0.88rem;
}

.enotary-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: var(--enotary-max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8f9aab;
}

.enotary-footer-review-label {
  margin: 1rem 0 0.35rem;
  font-size: 0.85rem;
  color: #aeb8c7;
}

/* ========== SHARED PAGE HELPERS ========== */
.enotary-page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
}

.enotary-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 22, 40, 0.55) 0%,
    rgba(12, 22, 40, 0.42) 45%,
    rgba(12, 22, 40, 0.68) 100%
  );
}

.enotary-page-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
  padding: 2.5rem 1rem;
  text-shadow: var(--enotary-hero-shadow);
}

.enotary-section {
  max-width: var(--enotary-max);
  margin: 0 auto;
  padding: var(--enotary-section-y) 1.25rem;
}

.enotary-two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.enotary-two-col-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.enotary-rounded-img {
  width: 100%;
  height: auto;
  border-radius: var(--enotary-radius);
  display: block;
}

.enotary-sidebar-card {
  background: linear-gradient(180deg, #fff 0%, var(--enotary-light) 100%);
  border: 1px solid rgba(21, 37, 54, 0.08);
  border-radius: 18px;
  padding: 1.85rem;
  box-shadow: 0 10px 28px rgba(21, 37, 54, 0.05);
}

.enotary-sidebar-card > p:first-child {
  margin-top: 0;
  color: var(--enotary-muted);
}

.enotary-sidebar-phone {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--enotary-navy);
  margin: 0.75rem 0 1rem;
  letter-spacing: -0.02em;
}

.enotary-sidebar-phone a {
  color: inherit;
  text-decoration: none;
}

.enotary-btn-orange {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--enotary-orange-btn);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.98rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.enotary-btn-orange:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.enotary-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.enotary-step img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.enotary-step h4 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.enotary-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--enotary-muted);
}

.enotary-btn-primary {
  display: inline-flex;
  background: var(--enotary-primary);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(79, 87, 216, 0.22);
}

.enotary-btn-primary:hover {
  background: var(--enotary-primary-hover);
  transform: translateY(-1px);
}

/* Contact form */
.enotary-cf7-mount .wpcf7-form label,
.enotary-cf7-mount .wpcf7-form p {
  display: block;
  margin-bottom: 0.85rem;
}

.enotary-cf7-mount input[type="text"],
.enotary-cf7-mount input[type="email"],
.enotary-cf7-mount textarea {
  width: 100%;
  background: var(--enotary-light);
  border: 1px solid rgba(21, 37, 54, 0.1);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: var(--enotary-font);
}

.enotary-cf7-mount input[type="submit"] {
  width: 100%;
  background: var(--enotary-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.98rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--enotary-font);
  transition: background 0.2s ease;
}

.enotary-cf7-mount input[type="submit"]:hover {
  background: var(--enotary-primary-hover);
}

@media (prefers-reduced-motion: reduce) {
  .enotary-cta,
  .enotary-btn-primary,
  .enotary-btn-orange,
  .enotary-nav > a::after,
  .enotary-nav-item > a::after {
    transition: none !important;
  }

  .enotary-cta:hover,
  .enotary-btn-primary:hover,
  .enotary-btn-orange:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .enotary-nav,
  .enotary-header-inner > .enotary-cta {
    display: none;
  }

  .enotary-mobile-toggle {
    display: flex;
  }

  .enotary-footer-inner,
  .enotary-two-col,
  .enotary-two-col-equal {
    grid-template-columns: 1fr;
  }

  .enotary-page-hero {
    min-height: 240px;
  }
}
