/*
 Theme Name: Hello Elementor Child
 Description: CDG custom child theme — navy/red design system
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: hello-elementor-child
*/

:root {
  --cdg-navy:   #0B1929;
  --cdg-navy-2: #112439;
  --cdg-red:    #C0392B;
  --cdg-red-h:  #a93226;
  --cdg-white:  #ffffff;
  --cdg-light:  #f4f6f8;
  --cdg-radius: 4px;
  --cdg-font-body: 'Inter', system-ui, sans-serif;
  --cdg-font-head: 'Playfair Display', Georgia, serif;
}

body { font-family: var(--cdg-font-body); color: var(--cdg-navy); margin: 0; padding-top: 72px; }
h1, h2, h3 { font-family: var(--cdg-font-head); }

/* Header */
.cdg-header { position: fixed; top: 0; left: 0; right: 0; height: 72px; background: var(--cdg-navy); z-index: 9999; display: flex; align-items: center; }
.cdg-header-inner { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 40px; }
.cdg-logo img { height: 44px; width: auto; display: block; }
.cdg-nav { flex: 1; }
.cdg-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; justify-content: flex-end; }
.cdg-nav > ul > li { position: relative; }
.cdg-nav a { display: block; padding: 8px 14px; color: var(--cdg-white); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; border-radius: var(--cdg-radius); transition: background 0.15s; }
.cdg-nav a:hover { background: rgba(255,255,255,0.1); }
.cdg-nav .dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--cdg-navy); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--cdg-radius); min-width: 220px; list-style: none; margin: 4px 0 0; padding: 4px 0; z-index: 10000; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.cdg-nav .has-dropdown:hover .dropdown,
.cdg-nav .has-dropdown:focus-within .dropdown { display: block; }
.cdg-nav .dropdown li a { padding: 10px 16px; border-radius: 0; font-size: 14px; }
.cdg-cta-btn { flex-shrink: 0; background: var(--cdg-red); color: var(--cdg-white) !important; padding: 10px 20px; border-radius: var(--cdg-radius); font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.15s; white-space: nowrap; }
.cdg-cta-btn:hover { background: var(--cdg-red-h); }
.cdg-mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.cdg-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--cdg-white); }

/* Footer */
.cdg-footer { background: var(--cdg-navy); color: var(--cdg-white); padding: 64px 0 0; }
.cdg-footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.cdg-footer h4 { font-family: var(--cdg-font-body); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 16px; }
.cdg-footer ul { list-style: none; margin: 0; padding: 0; }
.cdg-footer ul li + li { margin-top: 10px; }
.cdg-footer a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; }
.cdg-footer a:hover { color: var(--cdg-white); }
.cdg-footer-tagline { color: rgba(255,255,255,0.6); font-size: 14px; margin: 12px 0; }
.cdg-footer-brand p { font-size: 14px; color: rgba(255,255,255,0.8); margin: 6px 0; }
.cdg-footer-brand a { color: rgba(255,255,255,0.8); }
.cdg-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 20px 24px; }
.cdg-footer-bottom p { color: rgba(255,255,255,0.4); font-size: 13px; margin: 0; }
.cdg-main { min-height: 60vh; }

/* Responsive */
@media (max-width: 900px) {
  .cdg-nav { display: none; }
  .cdg-mobile-toggle { display: flex; }
  .cdg-nav.open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--cdg-navy); padding: 16px; }
  .cdg-nav.open > ul { flex-direction: column; }
  .cdg-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .cdg-footer-inner { grid-template-columns: 1fr; }
}


/* Hide WP page title */
.page-id-620 .entry-title,
.home .entry-title{display:none}


/* Hide WordPress page title H1 on specific pages */
.page-id-620 .entry-title,
.home .entry-title,
.page-id-39 .entry-title { display: none !important; }
.page-id-27 .entry-title { display: none !important; }
