/*
Theme Name: Next Level Home Solutions (Split Templates)
Theme URI: https://nextlevelhomesolutionsllc.com/
Author: Fady
Author URI: https://nextlevelhomesolutionsllc.com/
Description: A custom WordPress theme for Next Level Home Solutions LLC using separate template files. This stylesheet defines the brand colours, typography and layout used throughout the site.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nextlevelhomesolutions
*/

/* CSS variables for brand colours and fonts */
:root {
  --primary-color: #1F4E79;    /* Deep blue for trust and professionalism */
  --accent-color: #4CAF50;    /* Green for growth and land */
  --teal-highlight: #3BB6B2;  /* Modern accent highlight */
  --dark-color: #2E2E2E;      /* Charcoal for contrast */
  --light-color: #F4F4F4;     /* Soft off‑white background */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Reset and global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--light-color);
  color: var(--dark-color);
}

/* Navigation */
header {
  background: var(--primary-color);
  color: white;
  padding: 20px;
  /* Add a subtle shadow and stick the header to the top for a more professional look */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

nav .logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

nav .logo img {
  height: 40px;
  margin-right: 10px;
}

nav ul {
  list-style: none;
}

nav ul li {
  display: inline-block;
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

nav ul li a:hover {
  text-decoration: none;
}

/* Add an animated underline to navigation links on hover */
nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta-btn {
  background-color: white;
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero .cta-btn:hover {
  background-color: #e2eaf3;
}

/* Section styling */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  flex: 1 1 250px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
}

.card .icon {
  font-size: 32px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

/* Steps grid */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.step {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.step .number {
  font-size: 28px;
  font-family: var(--font-heading);
  color: white;
  background: var(--accent-color);
  height: 50px;
  width: 50px;
  line-height: 50px;
  border-radius: 50%;
  margin: 0 auto 10px auto;
}

.step h4 {
  font-family: var(--font-heading);
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* About */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-content .text {
  flex: 1 1 400px;
}

.about-content .image {
  flex: 1 1 400px;
  min-height: 200px;
  background-color: var(--light-color);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.testimonial {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-style: italic;
}

.testimonial cite {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-style: normal;
  color: var(--primary-color);
}

/* FAQ */
/* FAQ items are displayed as cards with icons indicating expansion */
.faq-item {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.faq-question {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  padding-right: 25px; /* Space for icon */
}

/* Add plus/minus symbols to questions */
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: var(--accent-color);
  line-height: 1.5;
}

/* When active, the plus becomes a minus */
.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding-top: 10px;
  color: var(--dark-color);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact form */
.contact-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form form .full-width {
  grid-column: span 2;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--primary-color);
}

.contact-form input,
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  font-family: var(--font-body);
}

/* Remove default outline and add subtle shadow on focus for a polished look */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 182, 178, 0.2);
}

.contact-form button {
  background: var(--accent-color);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background: #3a9640;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

footer .footer-nav a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
}

footer .footer-nav a:hover {
  text-decoration: underline;
}

/* Mission, Story and Vision sections */
.mission-section,
.story-section,
.vision-section {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 40px;
  margin-bottom: 40px;
}

.mission-section p,
.story-section p,
.vision-section p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Offer form section styling */
.offer-form-section {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 40px;
  margin-bottom: 40px;
}

.quote-form {
  max-width: 600px;
  margin: 0 auto;
}