/*
Theme Name:   Happysmile Child
Template:     happysmile
Description:  Glasgow Cosmetic Dentist brand layer for glasgowcosmeticdentist.com. Keep the name "Happysmile Child": happysmile-addon only loads for that exact theme name.
Version:      0.3.0
Text Domain:  gcd
*/

/* Brand tokens. Layout and components follow the HappySmile demo; only colours change. */
:root {
	--gcd-navy: #173441;
	--gcd-teal: #008F95;
	--gcd-teal-dark: #00757A;
	--gcd-mint: #E8F4F3;
	--gcd-white: #FFFFFF;
	--gcd-charcoal: #333333;
	--gcd-text-2: #52656B;
	--gcd-bg: #F6F8F9;
	--gcd-border: #E3EAEC;
	--gcd-font: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body, h1, h2, h3, h4, h5, h6, .btn, button, input, select, textarea { font-family: var(--gcd-font); }
a { color: var(--gcd-teal-dark); }
a:hover, a:focus { color: var(--gcd-navy); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible {
	outline: 3px solid var(--gcd-teal);
	outline-offset: 2px;
}

/* ---------- Header: white floating bar, as the demo ---------- */
.header-logobar { border-radius: 0 0 22px 22px; box-shadow: 0 8px 30px rgba(23, 52, 65, .08); padding-left: 0 !important; padding-right: 0 !important; }
/* Align header contents with the 1200px Elementor content box (container 1240 - 2 x 20 padding) */
.header-logobar > .container-fluid, .header-logobar > .container { max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.header-logobar .primary-menu > li > a { font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
/* Logo and actions take their natural width; the menu gets the rest and never wraps */
.header-logobar > div { display: flex; align-items: center; flex-wrap: nowrap; }
.header-logobar .logobar-ul.element-left, .header-logobar .logobar-ul.pull-right { flex: 0 0 auto; width: auto; max-width: none; }
.header-logobar .logobar-ul.pull-center { flex: 1 1 auto; width: auto; max-width: none; justify-content: center; }
.header-logobar .primary-menu { flex-wrap: nowrap; }
.header-logobar .primary-menu > li { padding-left: 0 !important; padding-right: 0 !important; margin: 0 !important; }
.header-logobar .primary-menu > li > a { padding-left: 14px !important; padding-right: 14px !important; }
@media (max-width: 1199px) { .header-logobar .primary-menu > li > a { padding-left: 8px !important; padding-right: 8px !important; font-size: 14px; } }
.gcd-header-cta.btn { padding: 11px 24px; font-size: 14px; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.site-header .btn.btn-primary .btn-text { color: var(--gcd-teal-dark); }
.site-header .btn.btn-primary:hover .btn-text { color: #fff; }

/* In-page buttons: same offset style the theme uses in its header and CEA button widget */
.btn.gcd-btn { position: relative; z-index: 1; display: inline-block; padding: 15px 30px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; background: var(--gcd-teal); border: 1px solid var(--gcd-teal); border-radius: 10px 10px 0 10px; line-height: 1.2; margin: 7px 0 0 7px; }
.btn.gcd-btn::before { content: ""; position: absolute; inset: 0; background: #fff; border-radius: inherit; z-index: -1; transition: opacity .3s; }
.btn.gcd-btn::after { content: ""; position: absolute; top: -7px; left: -7px; width: 100%; height: 100%; background: var(--gcd-teal); border-radius: inherit; z-index: -2; transition: all .4s ease-in-out; }
.btn.gcd-btn .btn-text { color: var(--gcd-teal-dark); transition: color .3s; }
.btn.gcd-btn:hover::before { opacity: 0; }
.btn.gcd-btn:hover::after { top: 0; left: 0; }
.btn.gcd-btn:hover .btn-text { color: #fff; }
.gcd-on-dark .btn.gcd-btn::after { background: var(--gcd-mint); }
.site-logo img, .custom-logo, .sticky-logo img, .mobile-logo img { height: auto; max-width: 100%; object-fit: contain; }

/* ---------- Title bars ---------- */
.breadcrumb-wrap, .breadcrumb-wrap a, .breadcrumb-wrap li { color: var(--gcd-white); }

/* ---------- Demo-style building blocks used on Elementor pages ---------- */
.gcd-eyebrow { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.5; font-size: 14px; font-weight: 600; color: var(--gcd-navy); margin: 0 0 14px; }
.gcd-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gcd-teal); box-shadow: 12px 0 0 var(--gcd-teal); margin-right: 14px; margin-top: 7px; flex: 0 0 8px; }
.gcd-on-dark .gcd-eyebrow, .gcd-on-dark .gcd-section-title { color: #fff; }
.gcd-on-dark .gcd-lead { color: rgba(255, 255, 255, .85); }
.gcd-on-dark .gmde-tiles a { background: rgba(255, 255, 255, .96); }
.gcd-sponsored { margin-top: 40px; }

/* Tiles: equal heights, no ragged wrapping */
.gmde-tiles li { display: flex; }
.gmde-tiles li a { flex: 1; display: flex; align-items: center; }
.gcd-loc-band .gmde-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1000px; margin: 8px auto 12px; }
.gcd-loc-band .gmde-tiles li { flex: 0 0 auto; }
.gcd-loc-band .gmde-tiles a { white-space: nowrap; padding: 14px 22px; }
.elementor .gmde-tiles-compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gcd-section-title { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.12; font-weight: 700; color: var(--gcd-navy); margin: 0 0 18px; letter-spacing: -0.5px; }
.gcd-center { text-align: center; }
.gcd-center .gcd-lead, .gcd-center h1 { margin-left: auto; margin-right: auto; }

/* Centred hero: search card centred under the text */
.gcd-hero-section .gmde-search { max-width: 1000px; margin: 8px auto 0; width: 100%; }
.gcd-hero.gcd-center .gcd-lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.gcd-hero.gcd-center h1 { margin-left: auto; margin-right: auto; text-align: center; }
.gcd-hero.gcd-center .gcd-eyebrow { justify-content: center; }

/* Centred blocks */
.gcd-infobar > div { text-align: center; }
.gcd-step { text-align: center; }
.gcd-step b { margin-left: auto; margin-right: auto; }
.gcd-form-section .wpcf7 { max-width: 760px; margin: 10px auto 0; background: #fff; border-radius: 22px; padding: 34px 36px; }
.gcd-form label { display: block; font-weight: 600; color: var(--gcd-navy); font-size: 15px; }
.gcd-form input[type=text], .gcd-form input[type=url], .gcd-form input[type=email], .gcd-form select, .gcd-form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--gcd-border); border-radius: 10px; font: inherit; font-weight: 400; }
.gcd-form .wpcf7-acceptance label { font-weight: 400; color: var(--gcd-text-2); display: inline; }
.gcd-form p:last-child { text-align: center; margin-bottom: 0; }
@media (max-width: 767px) { .gcd-form-section .wpcf7 { padding: 22px 18px; } }
.gcd-lead { font-size: 17px; line-height: 1.7; color: var(--gcd-text-2); max-width: 720px; }

/* Hero */
.gcd-hero { position: relative; }
.gcd-hero h1 { color: #fff; font-size: clamp(38px, 6vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -1px; margin: 0 0 20px; max-width: 900px; }
.gcd-hero .gcd-lead { color: rgba(255, 255, 255, .88); font-size: 18px; }
.gcd-hero .gcd-eyebrow { color: #fff; }

/* Info bar under hero (demo "working hours" strip) */
.gcd-infobar { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--gcd-navy); border-radius: 0 0 22px 22px; overflow: hidden; }
.gcd-infobar > div { padding: 26px 30px; color: #DCE7E7; border-right: 1px solid rgba(255, 255, 255, .12); }
.gcd-infobar > div:first-child { background: var(--gcd-teal); color: #fff; }
.gcd-infobar strong { display: block; color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
@media (max-width: 767px) { .gcd-infobar { grid-template-columns: 1fr; } }

/* Treatment cards (demo service cards) */
.gcd-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.gcd-card { background: #fff; border: 1px solid var(--gcd-border); border-radius: 22px; padding: 26px 24px 24px; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.gcd-card:hover { box-shadow: 0 18px 40px rgba(23, 52, 65, .1); transform: translateY(-3px); }
.gcd-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.gcd-card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gcd-mint); color: var(--gcd-teal); display: grid; place-items: center; font-size: 22px; }
.gcd-pill { font-size: 13px; padding: 4px 12px; border: 1px solid var(--gcd-border); border-radius: 8px; color: var(--gcd-navy); }
.gcd-card h3 { font-size: 23px; line-height: 1.25; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--gcd-border); }
.gcd-card h3 a { color: var(--gcd-navy); }
.gcd-card p { color: var(--gcd-text-2); font-size: 15px; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.gcd-card-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--gcd-mint); }
.gcd-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gcd-card:hover .gcd-card-img img { transform: scale(1.04); }

/* Steps (how it works) */
.gcd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.gcd-step { background: #fff; border-radius: 22px; padding: 30px 26px; position: relative; }
.gcd-step b { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--gcd-teal); color: #fff; font-size: 22px; margin-bottom: 18px; }
.gcd-step h3 { font-size: 22px; margin: 0 0 10px; }
.gcd-step p { margin: 0; color: var(--gcd-text-2); }
@media (max-width: 900px) { .gcd-steps { grid-template-columns: 1fr; } }

/* Check list (demo arrow list) */
.gcd-checks { list-style: none; padding: 0; margin: 0 0 24px; }
.gcd-checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--gcd-navy); font-weight: 500; }
.gcd-checks li::before { content: "\2197"; position: absolute; left: 0; color: var(--gcd-teal); font-weight: 700; }

.gcd-round-img img { border-radius: 26px; width: 100%; height: auto; display: block; }
.gcd-sponsored-label { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gcd-navy); background: var(--gcd-mint); border: 1px solid var(--gcd-border); border-radius: 6px; padding: 2px 8px; }

/* NeuronWriter copy block on Elementor pages */
.gcd-page-copy { max-width: 900px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer, .footer-widgets-wrap, .footer-bottom-wrap { background-color: var(--gcd-navy); }
.site-footer .container { max-width: 1240px; padding-left: 20px; padding-right: 20px; }
.site-footer .widget, .gcd-footer-about, .gcd-footer-logo { text-align: left; }
.site-footer .footer-copyright { text-align: left; }
.gcd-footer-logo { margin-bottom: 14px; }
.gcd-footer-logo img { width: 220px; height: auto; display: block; margin: 0 !important; }
.gcd-footer-about p { color: #DCE7E7; max-width: 520px; }
.gcd-footer-links h3 { color: #fff; font-size: 18px; margin: 0 0 10px; letter-spacing: 0; }
.gcd-footer-links ul { list-style: none; margin: 0; padding: 0; }
.gcd-footer-links li { margin: 0 0 6px; }
.gcd-footer-links a { color: #DCE7E7; }
.gcd-footer-links a:hover { color: #fff; }
