/* ==========================================================
EM ELECTRICAL
MASTER SERVICE PAGE STYLESHEET
Version 1.0
Covers:

- Residential Services
- Commercial Services
- Repairs & Maintenance
- Lighting
- Powerpoints
- Security & Communications
- Fit-Outs
- General Electrical
  ========================================================== */

/* ==========================================================
DESIGN TOKENS
========================================================== */

:root {

--em-black: #000000;

--em-white: #ffffff;



--em-text: #222222;

--em-text-light: #666666;



--em-border: #e6e6e6;



--em-bg-light: #f8f8f8;

--em-bg-lighter: #fafafa;



--em-accent: #f4b400;



--em-shadow-sm: 0 4px 12px rgba(0,0,0,.05);

--em-shadow-md: 0 8px 24px rgba(0,0,0,.08);

--em-shadow-lg: 0 12px 40px rgba(0,0,0,.12);



--em-radius-sm: 12px;

--em-radius-md: 16px;

--em-radius-lg: 24px;



--em-max-width: 1280px;



--em-transition: .25s ease;



}

/* ==========================================================
GLOBAL
========================================================== */

.service-hero,
.intro-section,
.content-section,
.services-grid-section,
.lighting-grid-section,
.smart-home-section,
.smart-lighting-section,
.energy-efficiency-section,
.inspection-section,
.safety-section,
.emergency-section,
.maintenance-section,
.maintenance-programs-section,
.specialised-repairs-section,
.industry-lighting-section,
.outdoor-lighting-section,
.designer-lighting-section,
.motion-lighting-section,
.electrical-security-section,
.solar-security-section,
.industrial-section,
.retail-section,
.restaurant-section,
.eeat-section,
.related-content-section,
.internal-links-section,
.faq-section,
.final-cta-section,
.cta-banner {

font-family: var(--body-font-font-family, inherit);

color: var(--em-text);



}

.container {

max-width: var(--em-max-width);

margin: 0 auto;

padding-left: 2rem;

padding-right: 2rem;



}

/* ==========================================================
TYPOGRAPHY
========================================================== */

h1,
h2,
h3 {

color: var(--em-black);

margin-top: 0;



}

h1 {

font-size: clamp(2.8rem, 5vw, 4.8rem);

line-height: 1.1;

margin-bottom: 1.5rem;



}

h2 {

font-size: clamp(2rem, 3vw, 3.25rem);

line-height: 1.2;

margin-bottom: 1rem;



}

h3 {

font-size: 1.35rem;

line-height: 1.3;

margin-bottom: 1rem;



}

p,
li {

color: var(--em-text);

line-height: 1.8;



}

ul {

padding-left: 1.2rem;



}

li {

margin-bottom: .5rem;



}

.section-intro,
.hero-intro {

max-width: 900px;

font-size: 1.1rem;



}

.section-intro {

margin-bottom: 3rem;



}

/* ==========================================================
EYEBROW
========================================================== */

.eyebrow {

display: inline-block;



margin-bottom: 1rem;



text-transform: uppercase;

letter-spacing: .14em;

font-size: .85rem;

font-weight: 700;



color: var(--em-accent);



}

/* ==========================================================
LINKS
========================================================== */

a {

transition: var(--em-transition);



}

.content-text a,
.related-links a,
.service-tile a {

text-decoration: underline;

text-decoration-thickness: 1px;

text-underline-offset: .2em;



}

.content-text a:hover,
.related-links a:hover,
.service-tile a:hover {

opacity: .7;



}

/* ==========================================================
SECTION SPACING
========================================================== */

.intro-section,
.content-section,
.services-grid-section,
.lighting-grid-section,
.smart-home-section,
.smart-lighting-section,
.energy-efficiency-section,
.inspection-section,
.safety-section,
.emergency-section,
.maintenance-section,
.maintenance-programs-section,
.specialised-repairs-section,
.industry-lighting-section,
.outdoor-lighting-section,
.designer-lighting-section,
.motion-lighting-section,
.electrical-security-section,
.solar-security-section,
.industrial-section,
.retail-section,
.restaurant-section,
.eeat-section,
.related-content-section,
.internal-links-section,
.faq-section,
.final-cta-section {

padding: 90px 0;



}

/* ==========================================================
HERO
========================================================== */

.service-hero {

text-align: center;

padding: 120px 0 90px;

background: var(--em-white);



}

.hero-intro {

margin-left: auto;

margin-right: auto;



}

.hero-buttons {

display: flex;

justify-content: center;

gap: 1rem;

flex-wrap: wrap;



margin-top: 2rem;



}

/* ==========================================================
BUTTONS
========================================================== */

.primary-button,
.secondary-button,
.cta-button,
.final-cta-button {

display: inline-flex;

align-items: center;

justify-content: center;



min-height: 56px;



padding: 0 32px;



border-radius: 999px;



text-decoration: none;

font-weight: 600;



transition: var(--em-transition);



}

.primary-button,
.cta-button {

background: var(--em-black);

color: var(--em-white);



border: 2px solid var(--em-black);



}

.primary-button:hover,
.cta-button:hover {

background: transparent;

color: var(--em-black);



}

.secondary-button {

background: transparent;

color: var(--em-black);



border: 2px solid var(--em-black);



}

.secondary-button:hover {

background: var(--em-black);

color: var(--em-white);



}

/* ==========================================================
CONTENT GRID
========================================================== */

.content-grid {

display: grid;

gap: 4rem;

align-items: center;



}

.content-grid.two-column {

grid-template-columns: repeat(2, minmax(0,1fr));



}

.content-image img {

width: 100%;

display: block;



border-radius: var(--em-radius-md);



box-shadow: var(--em-shadow-md);



}

/* ==========================================================
ALTERNATE BACKGROUND
========================================================== */

.alt-bg {

background: var(--em-bg-light);



}

/* ==========================================================
TILE GRIDS
========================================================== */

.tile-grid {

display: grid;

gap: 2rem;



}

.tile-grid.three-column {

grid-template-columns: repeat(3,minmax(0,1fr));



}

.tile-grid.four-column {

grid-template-columns: repeat(4,minmax(0,1fr));



}

/* ==========================================================
SERVICE TILES
========================================================== */

.service-tile {

background: var(--em-white);



border: 1px solid var(--em-border);



border-radius: var(--em-radius-md);



padding: 2rem;



box-shadow: var(--em-shadow-sm);



transition: var(--em-transition);



height: 100%;



}

.service-tile:hover {

transform: translateY(-4px);



box-shadow: var(--em-shadow-md);



}

.service-tile h3 {

margin-top: 0;



}

/* ==========================================================
CTA BANNER
========================================================== */

.cta-banner {

padding: 90px 0;



}

.cta-box {

display: flex;

justify-content: space-between;

align-items: center;

gap: 2rem;



background: var(--em-black);



padding: 3rem;



border-radius: var(--em-radius-lg);



}

.cta-box h2,
.cta-box p {

color: var(--em-white);



}

.cta-box .cta-button {

background: var(--em-white);

color: var(--em-black);

border-color: var(--em-white);



}

.cta-box .cta-button:hover {

background: transparent;

color: var(--em-white);



}

/* ==========================================================
RELATED LINKS
========================================================== */

.related-links {

margin-top: 2rem;

font-size: .95rem;



}

/* ==========================================================
FAQS
========================================================== */

.faq-item {

background: var(--em-white);



border: 1px solid var(--em-border);



border-radius: var(--em-radius-md);



padding: 2rem;



margin-bottom: 1.5rem;



box-shadow: var(--em-shadow-sm);



}

.faq-item:last-child {

margin-bottom: 0;



}

/* ==========================================================
EEAT / TRUST BLOCKS
========================================================== */

.eeat-section .service-tile {

text-align: center;



}

/* ==========================================================
FINAL CTA
========================================================== */

.final-cta-section {

background: var(--em-black);



}

.final-cta-box {

max-width: 900px;

margin: 0 auto;



text-align: center;



}

.final-cta-box h2,
.final-cta-box p {

color: var(--em-white);



}

.final-cta-button {

margin-top: 2rem;



background: var(--em-white);

color: var(--em-black);



border: 2px solid var(--em-white);



}

.final-cta-button:hover {

background: transparent;

color: var(--em-white);



}

/* ==========================================================
IMAGES
========================================================== */

.content-image {

overflow: hidden;

border-radius: var(--em-radius-md);



}

.content-image img {

transition: .5s ease;



}

.content-image:hover img {

transform: scale(1.03);



}

/* ==========================================================
ACCESSIBILITY
========================================================== */

a:focus,
button:focus {

outline: 2px solid var(--em-accent);

outline-offset: 4px;



}

/* ==========================================================
TABLET
========================================================== */

@media (max-width: 1024px) {

.tile-grid.four-column {



    grid-template-columns: repeat(2,minmax(0,1fr));



}



.tile-grid.three-column {



    grid-template-columns: repeat(2,minmax(0,1fr));



}



.content-grid.two-column {



    grid-template-columns: 1fr;



}



.cta-box {



    flex-direction: column;

    text-align: center;



}



}

/* ==========================================================
MOBILE
========================================================== */

@media (max-width: 767px) {

.service-hero {



    padding: 80px 0 60px;



}



.intro-section,

.content-section,

.services-grid-section,

.lighting-grid-section,

.smart-home-section,

.smart-lighting-section,

.energy-efficiency-section,

.inspection-section,

.safety-section,

.emergency-section,

.maintenance-section,

.maintenance-programs-section,

.specialised-repairs-section,

.industry-lighting-section,

.outdoor-lighting-section,

.designer-lighting-section,

.motion-lighting-section,

.electrical-security-section,

.solar-security-section,

.industrial-section,

.retail-section,

.restaurant-section,

.eeat-section,

.related-content-section,

.internal-links-section,

.faq-section,

.final-cta-section,

.cta-banner {



    padding: 60px 0;



}



.tile-grid.four-column,

.tile-grid.three-column {



    grid-template-columns: 1fr;



}



.hero-buttons {



    flex-direction: column;



}



.primary-button,

.secondary-button,

.cta-button,

.final-cta-button {



    width: 100%;



}



.container {



    padding-left: 1.25rem;

    padding-right: 1.25rem;



}



.cta-box {



    padding: 2rem;



}



}

.google-map{

    margin:3rem 0;

    overflow:hidden;

    border-radius:var(--em-radius-md);

    box-shadow:var(--em-shadow-sm);

}



.google-map iframe{

    display:block;

    width:100%;

    height:450px;

    border:0;

}

.intro-section h3{

    margin-top:2rem;

}



.intro-section h3:first-of-type{

    margin-top:1rem;

}

@media (max-width:767px){



.cta-box .cta-button{

    width:100%;

}



}

.intro-section ul{ margin:2rem 0; }

/* ==========================================================
   EM ELECTRICAL - WPBAKERY COMPATIBILITY AND MISSING COMPONENTS
   Additive rules: original design tokens and layout rules retained.
========================================================== */

/* WPBakery wrappers should not introduce horizontal gutters around the custom layout. */
.em-electrical-page-row,
.vc_row.em-electrical-page-row {
    margin-left: 0;
    margin-right: 0;
}

.em-electrical-page-row > .vc_column_container > .vc_column-inner {
    padding-left: 0;
    padding-right: 0;
}

.em-electrical-page-content,
.em-electrical-page-content.wpb_content_element {
    margin-bottom: 0 !important;
}

.em-electrical-page-content > .wpb_wrapper {
    width: 100%;
}

/* Service tiles containing images. */
.service-tile.with-image {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.service-tile-content {
    flex: 1 1 auto;
    min-width: 0;
}

.service-image {
    width: 100%;
    overflow: hidden;
    border-radius: var(--em-radius-sm);
}

.service-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--em-radius-sm);
}

/* CTA inner layout. */
.cta-content {
    flex: 1 1 auto;
    min-width: 0;
}

.cta-action {
    flex: 0 0 auto;
}

/* Page-specific hero classes share the common hero design unless a future variant is added. */
.commercial-lighting-hero,
.commercial-maintenance-hero,
.commercial-power-hero,
.commercial-fitouts-hero,
.commercial-security-hero,
.lighting-hero,
.powerpoints-hero,
.repairs-hero,
.general-electrical-hero,
.security-hero {
    position: relative;
    width: 100%;
}

/* Consistent image sizing without cropping source photography. */
.content-image img,
.service-image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .service-tile.with-image,
    .service-tile-content,
    .service-image,
    .cta-content,
    .cta-action {
        width: 100%;
    }
}
