/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Child theme of Hello Elementor
Author: iElecsSol
Template: hello-elementor
Version: 1.1.0
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
*/

/* ==========================================================================
   Brand tokens (from the iElecsSol logo)
   ========================================================================== */
:root {
	/* Palette: Navy + Solar Orange
	   Navy = brand base (topbar, headings, links). Orange (from the logo) = accent only. */
	--ies-navy:           #0B2E63; /* brand base: topbar, headings, links */
	--ies-navy-light:     #1E4A8F; /* link hover on light bg */
	--ies-dark:           #061A3A; /* header / footer / deepest navy */

	--ies-primary:        #F89F00; /* ACCENT: logo orange (buttons, highlights, hover) */
	--ies-primary-dark:   #D98700; /* accent hover / pressed */
	--ies-primary-light:  #FFB733; /* accent highlight */
	--ies-primary-tint:   #EAF0FA; /* soft blue section backgrounds */
	--ies-accent-tint:    #FFF4DE; /* soft orange tint */

	--ies-text:           #3D4A5F; /* body text */
	--ies-muted:          #6B778C;
	--ies-border:         #DDE4EE;
	--ies-bg:             #FFFFFF;
	--ies-bg-alt:         #F3F6FB;

	--ies-font-heading:   'Montserrat', 'Segoe UI', Arial, sans-serif;
	--ies-font-body:      'Open Sans', 'Segoe UI', Arial, sans-serif;

	/* Elementor global colour/typography hooks (used by widgets that read these) */
	--e-global-color-primary:   var(--ies-navy);
	--e-global-color-secondary: var(--ies-primary);
	--e-global-color-text:      var(--ies-text);
	--e-global-color-accent:    var(--ies-primary);
}

/* ==========================================================================
   Base typography
   ========================================================================== */
body {
	font-family: var(--ies-font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ies-text);
	background-color: var(--ies-bg);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.elementor-heading-title {
	font-family: var(--ies-font-heading);
	color: var(--ies-navy);
	font-weight: 800;
	line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1.1rem;  font-weight: 700; }
h6 { font-size: 1rem;    font-weight: 700; }

p { margin-bottom: 1em; }

/* ==========================================================================
   Links
   ========================================================================== */
a {
	color: var(--ies-navy);
	transition: color .2s ease;
}
a:hover,
a:focus {
	color: var(--ies-primary-dark);
}

/* ==========================================================================
   Buttons (dark text on orange keeps contrast readable)
   ========================================================================== */
button,
input[type="button"],
input[type="submit"],
.button,
.wp-block-button__link,
.elementor-button {
	font-family: var(--ies-font-heading);
	font-weight: 700;
	background-color: var(--ies-primary);
	color: var(--ies-dark);
	border: 2px solid var(--ies-primary);
	border-radius: 50px;
	padding: .75em 1.75em;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover,
.elementor-button:hover,
.elementor-button:focus {
	background-color: var(--ies-primary-dark);
	border-color: var(--ies-primary-dark);
	color: var(--ies-dark);
}

/* Outline button helper: add class "btn-outline" */
.btn-outline .elementor-button,
.btn-outline.button {
	background: transparent;
	color: var(--ies-navy);
}
.btn-outline .elementor-button:hover,
.btn-outline.button:hover {
	background: var(--ies-primary);
	color: var(--ies-dark);
}

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea {
	font-family: var(--ies-font-body);
	border: 1px solid var(--ies-border);
	border-radius: 8px;
	color: var(--ies-text);
}
input:focus,
select:focus,
textarea:focus {
	border-color: var(--ies-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(248, 159, 0, .2);
}

/* ==========================================================================
   Header / footer (logo has white text, so use dark backgrounds)
   ========================================================================== */
.site-header,
.site-footer {
	background-color: var(--ies-dark);
	color: #fff;
}
.site-header a,
.site-footer a { color: #fff; }
.site-header a:hover,
.site-footer a:hover { color: var(--ies-primary); }

/* ==========================================================================
   Utility classes
   ========================================================================== */
.bg-primary { background-color: var(--ies-primary); }
.bg-tint    { background-color: var(--ies-primary-tint); }
.bg-dark    { background-color: var(--ies-dark); color: #fff; }
.text-primary { color: var(--ies-primary); }
.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark h4, .bg-dark h5, .bg-dark h6 { color: #fff; }

::selection {
	background: var(--ies-primary);
	color: var(--ies-dark);
}
