html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

section[id] {
    scroll-margin-top: 30px;
}

.site-header {
    width: 100%;
    height: 75px;
    background-color: #0B1F33;
    box-sizing: border-box;
    border-bottom: 0.25px solid #d3d3d322;

    position: sticky;
    top: 0;
    z-index: 1000;

}

.header-container {
    max-width: 1400px;
    height: 73px;
    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box
}

@media (max-width: 1000px) {
    .header-container {
        padding: 0px 20px;
    }
}

/* Pickering Electrical logo */

.site-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    flex-shrink: 0;
    height: 60px;
    padding: 0 8px 0 0;
}

/* Large red P */
.logo-mark {
    color: #F21D4B;
    font-family: Arial, sans-serif;
    font-size: 45px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.8;
    letter-spacing: -4px;
    transform: scaleX(2.70);
    transform-origin: left center;
    margin-right: 1px;
    margin-bottom: 6px;
}

/* Text alongside the P */
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    line-height: 1;
}

.logo-name {
    color: #D3D3D3;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    font-style: italic;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.logo-limited {
    color: #D3D3D3;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    gap: 80px;
}

.main-nav a {
    text-decoration: none;
    color: #D3D3D3;
    font-size: 12px;
    font-weight: 800;
}

.main-nav a:hover {
    color: white;
}

.header-buttons {
    display: flex;
    gap: 10px;
    padding: 0 0 0 20px;
}

.header-buttons a {
    text-decoration: none;
    padding: 12px 12px;
    border-radius: 25px;
    color: white;
    font-size: 8px;
    font-weight: 900;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

.call-button {
    background-color: #cb0c36;
    border: 1px solid #cb0c36;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.call-button i {
    margin-right: 5px;
    font-size: 0.85em;
    color: white;
}

.call-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0px 20px rgba(255, 0, 0, 0.381);
}

.quote-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0B1F33;
    border: 1px solid #D3D3D3;

    transition: all 0.3s ease;
}

.quote-button:hover {
    background-color: #112b45;
    border: 1px solid white;
}

.arrow{
    display: inline-block;
    transition: transform 0.3s ease;
}

.quote-button:hover .arrow {
    transform: translateX(4px);
}

/* Mobile Menu Button */

.mobile-menu-button {
    display: none;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid aliceblue;
    background: transparent;
    border-radius: 30px;


    align-items: center;
    justify-content: center;
}

.mobile-menu-buttons {
    display: none;
}

/* Small Version */

@media (max-width: 1100px) {

    .header-buttons {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .nav-wrapper{
        top: 75px;
        left: 0;
        width: 100%;
        height: 300px;
        background-color:#0B1F33;

        overflow: hidden;
        visibility: hidden;
        position: absolute;

        /* Closed position */
        clip-path: inset(0 0 100% 0);

        transition:
            clip-path 1s ease,
            visibility 0s linear 1s;

            display: flex;
            flex-direction: column;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        opacity: 0;

        transform: translateY(-100%);
        transition: transform 1s ease,
                    opacity 0.3s ease;
        
       flex-shrink: 0;             

    }

    /*Open state */
    .nav-wrapper.open {
        visibility: visible;
        clip-path: inset(0 0 0 0);
        transition: clip-path 0.5s ease,
                    visibility 0s linear 0s;
    }

    .nav-wrapper.open .main-nav {
        opacity: 1;
        transform: translateY(0);
        transition: transform 0.5s ease,
                    opacity 0.3s ease;
    }
  
    /* Links */
    .main-nav a {
        width: calc(100% - 40px);
        padding: 15px 0;
        margin: 0 20px;

        position: relative;
        box-sizing: border-box;

        font-size: 10px;
        border-bottom: 0.5px solid #d3d3d357;
    }

    /* mobile menu buttons */

    .mobile-menu-buttons {
        gap: 15px;
        padding: 20px;
    }

    .nav-wrapper.open .mobile-menu-buttons {
        display: flex;
    }

    .mobile-menu-buttons a {
        margin: 0;
        width: auto;

        text-decoration: none;
        border-radius: 25px;
        color: white;
        font-size: 8px;
        font-weight: 900;
    }

    .mobile-menu-buttons .call-button, .mobile-menu-buttons .quote-button {
        flex: 1;
        min-width: 80px;
        padding: 12px 12px;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Arrows */
    .main-nav a::before {
        content: '→';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);

        font-size: 15px;
        color: #D3D3D3;

    }

    .main-nav a:hover::before {
        transform: translateY(-50%) translateX(4px);
        transition: transform 0.9s ease;
    }

    /* main-section-one on mobile */
    .main-section-one-content {
        width: calc(100% - 40px);
        max-width: 500px;
    }

    .main-section-one h1 {
        font-size: 40px;
    }

    .niceic-p {
        font-size: 15px;
    }

    /* main-section-2 */

    .services-wrap-box {
        grid-template-columns: repeat(2, 1fr);
    }

    /* footer on mobile */
    .footer-wrap-1-2-3 {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }

    .footer-section-1, .footer-section-2, .footer-section-3 {
        width: 100%;
    }

    .footer-napit {
        max-width: 100%
    }

    .footer-section-4 {
        padding: 20px;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-15px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hamburger icon */

.hamburger-icon, .hamburger-icon::before, .hamburger-icon::after {
    display: block;
    width: 12px;
    height: 0.5px;
    background-color: #D3D3D3;
    transition: transform 0.3s ease, top 0.3s ease, background-color 0.3s ease;
}

.hamburger-icon {
    position: relative;
}

.hamburger-icon::before, .hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger-icon::before {
    top: -4px;
}

.hamburger-icon::after {
    top: 4px;
}

/* Hamburger - X when menu is open */
.nav-wrapper.open ~ .mobile-menu-button .hamburger-icon {
    background-color: transparent;
}

.nav-wrapper.open ~ .mobile-menu-button .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-wrapper.open ~ .mobile-menu-button .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

main {
    transition: margin-top 0.5s ease;
}

body.menu-open main {
    margin-top: 270px;
}

/* home page */

.main-section-one {
    height: 850px;
    background-image: url("images/chris-pickering-png.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.main-section-one::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35)
}

.main-section-one-content {
    position: absolute;
    z-index: 1;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    max-width: 1400px;
    width: calc(100% - 60px);
    padding-left: 100px;
    box-sizing: border-box;
}

.main-section-one-content > * {
    max-width: 650px;
}

.yellow-dot {
    width: 7px;
    height: 7px;
    background-color: #F4C542;
    border-radius: 50%;
    margin: auto;
}

.main-section-one h1 {
    color: white;
    font-size: 56px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
    line-height: 1.05;
    margin: 20px 0;
}

.bridlington {
    display: block;
}

.niceic-p {
    color:#ffffff;
    font-size: 18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}

.bigger-buttons {
    width: 120px;
    height: 25px;
}

.main-section-one-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.main-section-one-buttons a {
    text-decoration: none;
    padding: 12px 18px;
    margin: 0;
    border-radius: 25px;
    color: white;
    font-size: 10px;
    font-weight: 900;
    min-width: 100px;
    text-align: center;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 25px;
}

.years-experience, .availability {
    margin-top: 25px;
    min-width: 120px;
}

.years-experience p, .availability p {
    margin: 0;
    color: white;
}

.years-experience p:last-child, .availability p:last-child {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.emergency-box {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: none;
    box-sizing: border-box;
    height: 50px;

    background-color: #0B1F33;
    padding: 0 25px;
    border-top: 0.25px solid #d3d3d31b;
    border-bottom: 0.25px solid #d3d3d30d;
    font-size: 13px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.emergency-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.emergency-box span {
    font-weight: 600;
    color: #D3D3D3;
}

.emergency-box a {
    color: #cb0c36;
    font-weight: 700;
    text-decoration: none;
}

.emergency-box a:hover {
    color:#f0345c;
    transform: scale(1.03);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .main-section-one-content {
        width: calc(100% - 40px);
        max-width: 600px;
        padding-left: 0;

        text-align: center;
    }

    .main-section-one-content > * {
        margin-left: auto;
        margin-right: auto;
    }

    .main-section-one h1 {
        font-size: 48px;
    }

    .niceic-p {
        font-size: 16px;
    }

    .main-section-one-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

/* main-section-2 */
.main-section-2 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 30px;
    box-sizing: border-box;
}

.main-section-2-b1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    max-width: 650px;
    margin-bottom: 35px;
}

.services-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
}

.main-section-2-b1 h2 {
    font-size: 10px;
    font-weight: 800;
    color: #fa3560 ;
    letter-spacing: 1px;
    margin: 0 0 15px;
}

.main-section-2-b1 h3 {
    font-size: 36px;
    line-height: 1.15;
    color:#0B1F33;
    margin: 0 0 20px;
}

.main-section-2-b1 p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    max-width: 550px;
}

.services-wrap-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.services-box {
    min-height: 220px;
    width: 100%;
    min-width: 0;
    background-color: #f4f6f8;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 30px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    border: 1px solid #e1e5e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-box h4 {
    margin: 0 0 12px;
    font-size: 18px;
    color:#0B1F33
}

.services-box p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    overflow-wrap: anywhere;
}

.service-icon {
    font-size: 30px;
    color:#1479FF;
    margin-bottom: auto;
    padding-bottom: 10px;
}

.services-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(11,31,51,0.08);
    border:1px solid #14b8ff4e;
}

.main-section-2-b1 h2 i, .main-section-3-b1 h2 i {
    margin-right: 10px;
    font-size: 8px;
 }

.main-section-2-b2, .main-section-3-b2 {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding-top: 50px;
} 

.main-section-2-b2 p, .main-section-3-b2 p {
    font-size: 12px;
    font-weight: 600;
    color: #4e4d4d;
}

.main-section-2-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.main-section-2-buttons a {
    text-decoration: none;
    padding: 12px 18px;
    margin: 0;
    border-radius: 25px;
    color: white;
    font-size: 10px;
    font-weight: 900;
    min-width: 100px;
    text-align: center;
    justify-content: center;
}


@media (max-width: 600px) {
    .services-wrap-box {
        grid-template-columns: 1fr;
    }

    .services-heading {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .main-section-2, .main-section-3 {
        padding: 60px 20px;
    }

    .main-section-2-b1 h3, .main-section-3-b1 h3 {
        font-size: 35px;
    }

    .main-section-2-b1 {
        align-items: center;
        text-align: center;
    }

    .main-section-2-b1 h2, .main-section-2-b1 h3, .main-section-2-b1 p, .main-section-3-b1 h3, .main-section-3-b1 p {
        text-align: center;
    }

    .about-heading {
    justify-content: center;
    align-items: center;
    width: 100%;
    }

    .main-section-3-b1 {
    width: 100%;
    align-items: center;
    text-align: center;
    }

    .main-section-3-b1 h2 {
    width: 100%;
    text-align: center;
    }
}

/* main-section-3 */
.main-section-3 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 30px;
    box-sizing: border-box;
    background-color: rgba(215, 215, 215, 0.315);
}

.main-section-3-b1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    max-width: 650px;
    margin-bottom: 15px;
    gap: 30px;
}

.about-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.main-section-3-b1 h2 {
    font-size: 10px;
    font-weight: 800;
    color: #fa3560 ;
    letter-spacing: 1px;
    margin: 0 0 15px;
}

.main-section-3-b1 h3 {
    font-size: 36px;
    line-height: 1.15;
    color:#0B1F33;
    margin: 0 0 20px;
}

.main-section-3-b1 p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    max-width: 1400px;
    padding-bottom: 10px;
}

.certifications {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    margin: 20px 0 35px;
    flex-shrink: 0;
}

.certifications img {
   width: 85px;
    height: 65px;
    object-fit: contain;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .certifications {
        justify-content: center;
        width: 100%
    }

    .certifications img {
        margin: 0;
    }
}


/* main-section-4 */
.main-section-4 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 30px;
    box-sizing: border-box;

    background-color: rgba(215, 215, 215, 0.315);
}

.gallery-heading {
    margin-bottom: 35px;
}

.gallery-heading h2 {
    font-size: 10px;
    font-weight: 800;
    color: #fa3560;
    letter-spacing: 1px;
    margin: 0 0 15px;
}

.gallery-heading h2 i {
    font-size: 8px;
    margin-right: 10px;
}

.gallery-heading h3 {
    font-size: 36px;
    line-height: 1.15;
    color: #0B1F33;
    margin: 0 0 15px;
}

.gallery-heading p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .main-section-4 {
        padding: 60px 20px;
    }

    .gallery-heading {
        text-align: center;
    }

    .gallery-heading h3 {
        font-size: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        border-radius: 14px;
    }
}

/* main-section-5 */
.main-section-5 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 30px;
    box-sizing: border-box;
}

.contact-heading {
    margin-bottom: 35px;
}

.contact-heading h2 {
    font-size: 10px;
    font-weight: 800;
    color: #fa3560;
    letter-spacing: 1px;
    margin: 0 0 15px;
}

.contact-heading h2 i {
    font-size: 8px;
    margin-right: 10px;
}

.contact-heading h3 {
    font-size: 36px;
    line-height: 1.15;
    color: #0B1F33;
    margin: 0 0 15px;
}

.contact-heading p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* contact section */

.contact-heading > p:last-child {
    color: #555555;
    font-size: 16px;
    line-height: 1.7;
}

/* FORM AND TALK BOX LAYOUT */
.contact-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px; 
}

.contact-form {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sixing: border-box;
}

.form-row {
    display: flex;
    gap: 0;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: 22px;
    min-width: 0;
}

.form-group label {
    color: #0B1F33;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #D3D3D3;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #0B1F33;
    font: inherit;
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #1479FF;
    outline-offset: 2px;
    border-color: #0B1F33;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    background-color: #0B1F33;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 15px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #173B5C;
}

.form-note {
    color: #666666;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 13px;
}

/* Prefer to talk it through box */
.talk-box {
    width: 100%;
    box-sizing: border-box;
    background-color: #0b1f33;
    color: #D3D3D3;
    padding: 25px;
    border-radius: 8px;
    border:0.5px solid #147aff56;
}

.talk-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 66, 113, 0.436);
    border:1px solid #14b8ff4e;  
}

.talk-box h3 {
    color: #FFFFFF;
    font-size: 24px;
    margin: 0 0 15px;
    line-height: 1.3;
    text-shadow: 0 1px 1px rgba(7, 218, 250, 0.349);
}

.talk-box p {
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 35px;
}

.talk-box a {
    display: inline-block;

    transition: background-color 0.2s ease;

    text-decoration: none;
    padding: 12px 18px;
    margin: 0;
    border-radius: 25px;
    color: white;
    font-size: 10px;
    font-weight: 900;
    min-width: 100px;
    text-align: center;
    justify-content: center;
}

.talk-button:hover {
    background-color: #FFFFFF;
}

/* Stack them on smaller screens */
@media (max-width: 1000px) {
     .contact-section {
        padding: 55px 20px;
    }

    .talk-box {
        padding: 28px;
    }

    .contact-layout {
        margin: 0 auto;
        align-items: center;
    }
    
    .contact-heading {
        margin: 0 auto;
        align-items: center;
    }
}

/* footer */
.footer-content {
    background-color:#0B1F33;
    width: 100%;
    color: #D3D3D3;
    font-size: 10px;
}

.footer-content a {
    color: #D3D3D3;
    text-decoration: none;
}

.footer-content a:hover {
    color: white;
}

.footer-wrap-1-2-3 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-section-1 {
    flex: 2;
}

.footer-section-2 {
    flex: 1;
}

.footer-section-3 {
    flex: 1;
}

.site-logo-footer {
    margin-bottom: 20px;
}

.footer-napit {
    max-width: 400px;
    line-height: 1.2;
    margin: 0;
}

.footer-section-2 h3, .footer-section-3, h3 {
    font-size: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1479FF;
}

.footer-section-2 ul, .footer-section-3 ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-section-2 li {
    margin-bottom: 6px;
    color: #D3D3D3;
}

.footer-section-3 li{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color:#D3D3D3;
}

.footer-section-3 li i {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #444;
    border-radius: 6px;

    color: #1479FF;
    flex-shrink: 0;
}

.footer-section-3 li p {
    margin: 0;
}

.footer-content hr{
    border: none;
    border-top: 1px solid #D3D3D3;
    margin: 0;
}

.footer-section-4 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
}

.footer-section-4 p {
    margin: 0;
    font-size: 10px;
}