/* =================================
   Global Styles & Variables
   ================================= */
:root {
     --primary-color: #0056b3;
     --secondary-color: #007bff;
     --dark-color: #212529;
     --light-color: #f8f9fa;
     --text-color: #333;
     --body-font: 'Arial', sans-serif;
     --dark-blue-bg: #1a2533;
}

body {
     font-family: var(--body-font);
     margin: 0 auto;
     line-height: 1.6;
     background-color: #f8f9fa;
     color: var(--text-color);
     width: 1440px;
}

.container {
     max-width: 1100px;
     margin: 0 auto;
     padding: 0 20px;
}

h1, h2, h3 {
     color: var(--dark-color);
}

a {
     color: var(--secondary-color);
     text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
     display: inline-block;
     padding: 10px 20px;
     background-color: var(--primary-color);
     color: #fff;
     text-decoration: none;
     border-radius: 5px;
     transition: background-color 0.3s ease;
}

.btn:hover {
     background-color: var(--secondary-color);
     text-decoration: none;
}

.btn-secondary {
     background-color: #6c757d;
}

.btn-secondary:hover {
     background-color: #5a6268;
}

/* =================================
   Header & Footer
   ================================= */
.main-header {
     background-color: var(--dark-blue-bg);
     padding: 10px 0;
     box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-header .container {
     display: flex;
     justify-content: space-between;
     align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 45px;
}

.main-nav ul {
     list-style-type: none;
     margin: 0;
     padding: 0;
     display: flex;
}

.main-nav li {
     margin-left: 30px;
}

.main-nav a {
     text-decoration: none;
     color: #ffffff;
     font-weight: bold;
     padding-bottom: 5px;
     border-bottom: 2px solid transparent;
     transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
     color: var(--secondary-color);
     border-bottom-color: var(--secondary-color);
     text-decoration: none;
}

.main-footer {
     background-color: var(--dark-blue-bg);
     color: #ccc;
     text-align: center;
     padding: 25px 0;
     margin-top: 40px;
}
.main-footer a {
    color: #fff;
    font-weight: bold;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.footer-copy {
    margin: 0;
}
.footer-chat {
    position: relative;
    display: inline-flex;
    align-items: center;
    --chat--toggle--size: 40px;
}
#n8n-chat-footer .chat-window-wrapper {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: none;
    max-height: none;
    display: inline-flex;
    align-items: center;
}
#n8n-chat-footer .chat-window-toggle {
    width: 40px;
    height: 40px;
    margin: 0;
}
#n8n-chat-footer .chat-window {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    z-index: 9999;
    margin-bottom: 0;
    width: 400px;
    height: 600px;
    max-width: 90vw;
    max-height: 80vh;
}

/* =================================
   Main Banner
   ================================= */
.main-banner {
    height: 300px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.main-banner .container {
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.4;
    max-width: 800px;
}

/* =================================
   Homepage Sections
   ================================= */
.page-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

.feature-buttons-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-button-card {
    position: relative;
    display: block;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.feature-button-card:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.feature-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    transition: background-color 0.3s ease;
}

.feature-button-card:hover .feature-button-overlay {
    background-color: rgba(0,0,0,0.3);
}

.feature-button-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    font-size: 1.8rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    margin: 0;
}

.core-services-section {
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--dark-blue-bg);
}

.service-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.homepage-service-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.homepage-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-decoration: none;
}
.homepage-service-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.homepage-service-card span {
    display: block;
    padding: 20px 15px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

/* =================================
   General Service Page Styles
   ================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding-top: 40px;
}

.service-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.service-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-content h3 {
    margin-top: 0;
}

.service-card-content p {
    flex-grow: 1;
    color: #666;
    margin-bottom: 20px;
}

/* =================================
   Service Detail Page Styles
   ================================= */
.service-details-content {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-details-content .service-detail-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 30px;
}

.service-details-content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
}
.service-details-content h2:first-of-type {
    margin-top: 0;
}

.service-navigation {
    padding: 40px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.service-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-navigation a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.service-navigation a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
}

.service-navigation .prev-service i {
    margin-right: 8px;
}

.service-navigation .next-service i {
    margin-left: 8px;
}

/* =================================
   Responsive Styles
   ================================= */
@media (max-width: 992px) {
    .banner-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .feature-buttons-section {
        grid-template-columns: 1fr;
    }
    .main-nav ul {
        display: none;
    }
    .service-details-content {
        margin-top: 40px;
        padding: 20px;
    }
}

@media screen and (max-width: 600px) {
  body {
    width: inherit;
  }
}

/* =============================================
   Contact Form Styles
   ============================================= */

/* Style the container for the form */
.contact-form {
  max-width: 700px; /* Or whatever width fits your site's layout */
  margin: 2rem auto; /* Use your site's standard spacing */
  padding: 2rem;
  background-color: #f9f9f9; /* Or transparent, or a card background color you use elsewhere */
  border: 1px solid #e0e0e0; /* Your site's standard border color */
  border-radius: 8px; /* Your site's standard border-radius */
}

/* Style the labels for each form field */
.form-group label {
  display: block;
  font-family: inherit; /* This will use your site's main font */
  font-weight: bold;  /* Or whatever weight you use for labels */
  color: #333; /* Your site's primary text color */
  margin-bottom: 0.5rem;
}

/* General styles for both input fields and the textarea */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit; /* Ensures form fields use your site's font */
  font-size: 1rem;
  color: #222; /* Text color for typing */
  background-color: #fff;
  border: 1px solid #ccc; /* A standard border color */
  border-radius: 4px; /* A subtle rounding */
  box-sizing: border-box; /* Important for consistent sizing */
  transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition for focus */
}

/* Style for when a user clicks into a form field */
.form-group input:focus,
.form-group textarea:focus {
  outline: none; /* Removes the default browser outline */
  border-color: #007bff; /* CHANGE THIS to your site's primary accent color */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* CHANGE THIS to match your accent color */
}

/* --- The Most Important Part: The Button --- */

/* OPTION A (Recommended): Use your existing button class.
  If your site has a class for buttons (e.g., .btn, .button-primary),
  simply add it to the button in contact.ejs:
  <button type="submit" class="btn">Send Message</button>
*/

/* OPTION B: Style it from scratch to match.
  If you don't have a reusable class, use this as a guide.
*/
.contact-form button {
  display: inline-block;
  width: 100%; /* Or 'auto' if you prefer smaller buttons */
  padding: 0.8rem 1.5rem;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px; /* Match your other buttons */
  border: none;

  /* CHANGE THESE to match your primary button style */
  background-color: #007bff;
  color: #ffffff;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  /* CHANGE THIS to a slightly darker shade for the hover effect */
  background-color: #0056b3;
}

/* Styles for the success/error alerts */
.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px; /* Match other elements */
  font-size: 1rem;
}

.alert.success {
  background-color: #d4edda; /* A light green, adjust if needed */
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background-color: #f8d7da; /* A light red, adjust if needed */
  color: #721c24;
  border: 1px solid #f5c6cb;
}
