/*
Theme Name:        NWD
Theme URI:         https://northwoodswebsitedesign.com
Description:       Lightweight theme
Author:            Jes C.
Author URI:        https://northwoodswebsitedesign.com
Version:           1.0.0
Text Domain:       nwd
*/

/*
==========================================================
	COLORS AND FONTS
========================================================== 
*/
	
	 :root {
  /* Assign your Google Fonts to easy-to-remember variables */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  /* Your theme colors */
  --primary-color: #60038B;
  --secondary-color: white;
  --alert-color: red;
  --pretty-color: #FBDEEB;
  --hover-color: #F52AC1;
  --link-color: #6ec1e4;
  --text-dark: #222222;
}

/* Apply them globally */
body {
	background: var(--secondary-color);
  font-family: var(--font-body);
  color: var(--text-dark);
  font-size: 1em;
  line-height: 1.4em;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  
}

h2, h3, h4, h5, h6 {
	color: var(--primary-color);
}

button {
	background: var(--primary-color);
	color: var(--secondary-color);
	font-family: var(--font-heading);
	font-size: 1.5em;
	font-weight: 600;
}

button:hover {
	background: var(--hover-color);
	
}

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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
	height: 100%;
}

body {
    line-height: 1.4;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

li {
	margin: 0 0 10px 25px;
}

input,
textarea {
    font: inherit;
}

button {
	display: block;
	margin: 20px auto;
    padding: 12px 24px;
    border: 0;
	border-radius: 20px;
    cursor: pointer;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}
h3 {
margin-bottom: 20px;
font-size: 1.75em;
font-weight: 700;
}

h4 {
margin-bottom: 20px;
font-size: 1.5em;
font-weight: 700;
}

p {
    margin-bottom: 20px;
	font-size: 14px;
}

li {
	font-size: 14px;
}


/*
==========================================================
	HEADER
========================================================== 
*/
	
.site-header {
	/*position: fixed;*/
	background: var(--secondary-color);
    display: grid;
    grid-template-columns: 30% 70%;
    align-items: center;
    min-height: 50px;
    padding: 5px 35px;
	width: 100%;

}

.header-logo {
	font-family: var(--font-heading);
	display: flex;
	justify-content: left;
	align-items: center;
	
}

.header-logo h4 {
	margin-bottom: 0 !important;
}

.main-navigation ul {
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 15px;
	margin-right: 25px;
}

.main-navigation a {
    display: block;
    padding: 10px;
	color: var(--text-dark);
	font-size: 1em;
	font-weight: 400;
}

.menu-toggle {
    display: none;
}
	
/*
==========================================================
	SECTIONS
========================================================== 
*/
	
.section {
	 width: 100%;
    padding: 30px 5%;
}
.page {
	min-height: 50vh;
}

#hero {
	display: grid;
    grid-template-columns: 60% 40%;
    min-height: 500px;
	background-image: url('images/hero.webp');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

.hero-headline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 8%;
}

.hero-headline h1 {
    max-width: 900px;
    margin-bottom: 25px;
	color: var(--secondary-color);
	
}

.hero-headline p {
    max-width: 650px;
}

.hero-form {
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    padding: 25px 5%;
    background: #f8f8ff;
	border-radius: 15px;
	margin: 20px;
}

.hero-content h2 {
    font-size: 2rem;
	text-align: center;
}

.hero-content p {
text-align: left;	
margin-left: 20%;
}

#about {
	display: grid;
    grid-template-columns: 40% 60%;
    min-height: 500px;
	background-repeat: no-repeat;
	background-size: cover;
}
.about-image img {
    max-width: 100%;
    object-fit: contain;
}

.about-content {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
	 max-width: 700px;
	
}



#services {
	display: grid;
    grid-template-columns: 30% 70%;
    min-height: 500px;
	background: var(--pretty-color);
	
}

.services-content{
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 35px 8%;
	
}

h1.svcs {
	color: var(--primary-color)  !important;
	font-style: italic;
	line-height: 1em !important;
	margin-bottom: 25px;
}

.services-cards {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}


#contact {
    display: grid;
    grid-template-columns: 40% 60%;
	min-height: 400px;
    background: var(--pretty-color);
}

.contact-text {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-form {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
	padding: 15px 8%;
}

#portfolio {
	 width: 100%;
    text-align: center;
	
	
}

#faq {
	 width: 100%;
    text-align: left;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	
}
	
.faq-content {
	width: 70%;
}
	
.faq-content h2 {
	text-align: center;
}

.psection {
	display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
	background: var(--secondary-color);
}

.inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
/*
==========================================================
	FLIPCARDS
==========================================================
*/

/*
|--------------------------------------------------------------------------
| Flip Cards
|--------------------------------------------------------------------------
*/

.nwd-flipcards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    width: 100%;
}

.nwd-flipcard {
    perspective: 1000px;
    height: 250px;
}

.nwd-flipcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.nwd-flipcard:hover .nwd-flipcard-inner {
    transform: rotateY(180deg);
}

.nwd-flipcard-front,
.nwd-flipcard-back {
    position: absolute;
    inset: 0;
    display: flex;
	flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    backface-visibility: hidden;
}

.nwd-flipcard-front {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.5em;
    font-weight: 700;
}

.nwd-flipcard-front::before {
	display: block !important;
    font-family: 'Dashicons';
    font-size: 48px;
	font-weight: 500;
	margin-bottom: 10px;
}

.nwd-flipcard:nth-child(1) .nwd-flipcard-front::before {
    content: "\f472";
}

.nwd-flipcard:nth-child(2) .nwd-flipcard-front::before {
    content: "\f107";
}

.nwd-flipcard:nth-child(3) .nwd-flipcard-front::before {
    content: "\f179";
}

.nwd-flipcard:nth-child(4) .nwd-flipcard-front::before {
    content: "\f11f";
}

.nwd-flipcard-back {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: rotateY(180deg);
}
	
/*
==========================================================
	FOOTER
========================================================== 
*/

.site-footer, .footer-bottom {
	background: var(--primary-color);
	color: var(--secondary-color);
}

.site-footer {
    display: grid;
    grid-template-columns: 25% 25% 50%;
    gap: 40px;
    padding: 30px 5%;
	background: var(--primary-color);
	color: var(--secondary-color);
}

.site-footer h3 {
	color: var(--pretty-color);
	font-size: 1.25em;
}

.site-footer a {
	color: var(--link-color);
	font-weight: 600;
}

.footer-bottom {
    padding: 20px 5%;
    text-align: center;
	background: var(--primary-color);
	color: var(--secondary-color);
	font-size: 12px;
}
.blue-butterfly {
    display: inline-block;
    filter: hue-rotate(-90deg) saturate(4000%) brightness(100%);
}
/*
|--------------------------------------------------------------------------
| Lightbox
|--------------------------------------------------------------------------
*/

#nwd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

#nwd-lightbox.is-open {
    display: flex;
}

#nwd-lightbox .nwd-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

#nwd-lightbox .nwd-lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px;
}

#nwd-lightbox .nwd-lightbox-image {
    display: block;
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

#nwd-lightbox button {
    position: absolute;
    z-index: 3;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    line-height: 1;
}

#nwd-lightbox button:hover {
    background: transparent;
}

#nwd-lightbox .nwd-lightbox-close {
    top: 20px;
    right: 25px;
    font-size: 42px;
}

#nwd-lightbox .nwd-lightbox-prev,
#nwd-lightbox .nwd-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
    font-size: 48px;
}

#nwd-lightbox .nwd-lightbox-prev {
    left: 15px;
}

#nwd-lightbox .nwd-lightbox-next {
    right: 15px;
}

#nwd-lightbox .nwd-lightbox-close:hover,
#nwd-lightbox .nwd-lightbox-prev:hover,
#nwd-lightbox .nwd-lightbox-next:hover {
    opacity: 0.7;
}

body.nwd-lightbox-open {
    overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| Lightbox Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    #nwd-lightbox .nwd-lightbox-content {
        padding: 50px 45px;
    }

    #nwd-lightbox .nwd-lightbox-image {
        max-width: 95vw;
        max-height: 80vh;
    }

    #nwd-lightbox .nwd-lightbox-prev,
    #nwd-lightbox .nwd-lightbox-next {
        padding: 10px;
        font-size: 32px;
    }

    #nwd-lightbox .nwd-lightbox-prev {
        left: 5px;
    }

    #nwd-lightbox .nwd-lightbox-next {
        right: 5px;
    }

    #nwd-lightbox .nwd-lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 36px;
    }

}
/*
|--------------------------------------------------------------------------
| Gallery
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| Gallery Slider
|--------------------------------------------------------------------------
*/

.nwd-gallery {
    position: relative;
    width: 100%;
    padding: 30px 70px;
    overflow: hidden;
}

.nwd-gallery-viewport {
    width: 100%;
    overflow: hidden;
}

.nwd-gallery-track {
    display: flex;
    align-items: center;
    transition: transform 0.6s ease;
    will-change: transform;
}

.nwd-gallery-item {
    flex: 0 0 33.333333%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    transition:
        transform 0.6s ease,
        opacity 0.6s ease;
}

.nwd-gallery-item img {
    display: block;
    width: 300px;
    height: 200px;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    cursor: pointer;

    padding: 8px;
    background: #fff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.6s ease,
        box-shadow 0.6s ease;
}

/*
|--------------------------------------------------------------------------
| Slider Controls
|--------------------------------------------------------------------------
*/

.nwd-gallery-prev,
.nwd-gallery-next {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    margin: 0;
    padding: 10px 15px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.nwd-gallery-prev {
    left: 10px;
}

.nwd-gallery-next {
    right: 10px;
}

.nwd-gallery-prev:hover,
.nwd-gallery-next:hover {
    background: var(--hover-color);
}


/*
|--------------------------------------------------------------------------
| Slider States
|--------------------------------------------------------------------------
*/

.nwd-gallery-item.is-side {
    transform: scale(0.82);
}

.nwd-gallery-item.is-left {
    transform: perspective(800px) scale(0.82) rotateY(12deg);
    transform-origin: right center;
    z-index: 1;
}

.nwd-gallery-item.is-center {
    transform: scale(1);
    position: relative;
    z-index: 2;
}

.nwd-gallery-item.is-right {
    transform: perspective(800px) scale(0.82) rotateY(-12deg);
    transform-origin: left center;
    z-index: 1;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .nwd-gallery {
        padding: 20px 10px;
    }

    .nwd-gallery-item {
        flex: 0 0 100%;
        padding: 20px;
    }

    .nwd-gallery-item.is-left,
    .nwd-gallery-item.is-center,
    .nwd-gallery-item.is-right {
        transform: none;
        position: relative;
        z-index: 1;
    }

    .nwd-gallery-prev,
    .nwd-gallery-next {
        display: none;
    }

}

/*
|--------------------------------------------------------------------------
| FAQ Accordion
|--------------------------------------------------------------------------
*/

.nwd-accordion {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.nwd-accordion-item {
    border-bottom: 1px solid #ddd;
}

.nwd-accordion-item summary {
    position: relative;
    padding: 20px 0 20px 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
    list-style: none;
}

.nwd-accordion-item summary::-webkit-details-marker {
    display: none;
}

.nwd-accordion-item summary::before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 1.5em;
    font-weight: 400;
}

.nwd-accordion-item[open] summary::before {
    content: '−';
}

.nwd-accordion-content {
    padding: 0 0 20px 50px;
}

.nwd-accordion-content p:last-child {
    margin-bottom: 0;
}


/*
=====================================================================
|	FORMS
=====================================================================
*/

/* Theme Forms */

.theme-form {
    width: 100%;
}


.theme-form-field {
    margin-bottom: 10px;
}

.theme-form-field label {
    display: none;
    margin-bottom: 6px;
    font-weight: 600;
}

.theme-form-field input,
.theme-form-field textarea,
.theme-form-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font: inherit;
    box-sizing: border-box;
}

.theme-form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.theme-form-field input:focus,
.theme-form-field textarea:focus,
.theme-form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.theme-form-field-error {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #b00020;
}

.theme-form-field.has-error input,
.theme-form-field.has-error textarea,
.theme-form-field.has-error select {
    border-color: #b00020;
}

.theme-form-message {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 5px;
}

.theme-form-error {
    background: #fff0f0;
    color: #8b0000;
}

.theme-form button {
    display: block;
    margin: 10px auto 0;
    padding: 8px 18px;
    background: var(--primary-color);
    border: 0;
    border-radius: 15px;
    text-align: center;
    color: var(--secondary-color);
    font: inherit;
    font-size: 1.1rem;
    cursor: pointer;
}

.theme-form button:hover {
    opacity: 0.9;
}

.form-field {
    margin-bottom: 10px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
}

.form-field textarea {
    resize: vertical;
}

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

@media only screen and (max-width: 600px) {

.site-header {
grid-template-columns: 1fr;

}

#hero, #about, #services, #contact, .nwd-flipcards, .site-footer {
grid-template-columns: 1fr;

}

.hero-headline {
padding: 20px 8%;
align-items: center;

}

.hero-content p {
margin-left: 5%;

}

.services-content {
padding: 20px 8%;

}

/* ---------- MOBILE NAVIGATION ---------- */


    .main-navigation {
        width: auto;
        margin-left: auto;
        order: initial;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 8px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--text-dark);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 1000;
        min-width: 200px;
        padding: 10px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--secondary-color);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }

    .main-navigation.is-open ul {
        display: flex;
    }

    .main-navigation ul li {
        width: 100%;
    }

    .main-navigation ul a {
        display: block;
        padding: 12px 20px;
    }


    /* Hamburger becomes an X */

    .main-navigation.is-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .main-navigation.is-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .main-navigation.is-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

}