/*----------------------------------------------------
  Root Variables (Sample NorthShore Colors)
-----------------------------------------------------*/
:root {
  --primary-color: #1F4795;  /* Dark blue from your logo */
  --accent-color: #2A71D0;   /* Lighter blue accent */
  --white-color: #ffffff;
  --bg-color: #f9f9f9;
  --font-family: 'Roboto', sans-serif;
  --header-height: 60px;
}

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

/*----------------------------------------------------
  Global Base
-----------------------------------------------------*/
body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--primary-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/*----------------------------------------------------
  Header: Fixed top bar with large company name
-----------------------------------------------------*/
.site-header {
  background-color: var(--primary-color);
  color: var(--white-color);
  width: 100%;
  padding: 15px 0;
  position: relative;        /* Stays at the top on scroll */
  top: 0;
  left: 0;
  z-index: 3000;          /* Above other elements so it remains visible */
}

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

.company-name {
  font-size: 1.8rem;      /* Large text for company name */
  font-weight: 700;
  margin: 0;
  color: var(--white-color);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--white-color);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent-color);
}

/*----------------------------------------------------
  Hero Section: Full-width background image
-----------------------------------------------------*/
.hero-section {
  /* Full viewport height so that it spans the screen */
  height: 100vh;
  width: 100%;
  background: url('../../images/hero-bg.jpg') no-repeat center center/cover;
  position: relative;
  margin-top: 0px;  /* Offset for the fixed header's height */
}

/* Optional overlay if you want to darken/lighten the hero background. 
   Adjust the 'rgba' values or remove if you want the image unobstructed. */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  text-align: center;
  color: var(--white-color);
  padding: 20px;
}

.hero-logo {
  max-width: 600px;  /* Adjust the logo size over the hero image */
  margin-bottom: 15px;
}

.hero-tagline {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #2a71d0; /* Brighter blue base */
  color: var(--white-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-align: center;
  border: none;
}

.button:hover {
  background-color: #1565C0; /* Deeper blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/*----------------------------------------------------
  Preview / Main Content Section
-----------------------------------------------------*/
.previews-section {
  background-color: var(--white-color);
  padding: 80px 0;
}

/* Ensure main content is displayed below the fixed header */
.content {
  margin-top: 0px; /* Adjust this value to match the height of your header */
}

.previews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.preview {
  background-color: var(--bg-color);
  padding: 20px;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  text-align: center;
}

.preview img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.preview h2 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.preview p {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 15px;
}

.preview-btn {
  background-color: var(--accent-color);
  color: var(--white-color);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
}

.preview-btn:hover {
  background-color: #1B60AA;
}

/*------------------------------------------------
  About Us Section Styling
-------------------------------------------------*/
.about-section {
  background-color: #ffffff;  /* Blue background – adjust hex if needed */
  color: #2a71d0;             /* White text for contrast */
  padding: 3rem 1rem;         /* Adequate padding for spacing */
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1F4795;             /* Heading text remains white */
}

.about-section p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #1F4795;             /* Light grey for paragraph text (adjust to your taste) */
}

/* Optional: Adjust container width for inner content */
.about-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

/*------------------------------------------------
  Contact Section Layout & Styling (Blue Background)
-------------------------------------------------*/
.contact-section {
  background-color: #2a71d0; /* Blue background */
  color: #ffffff;            /* White text */
  padding: 3rem 1rem;
}

.contact-section h2,
.contact-section h3,
.contact-section p,
.contact-section a {
  color: #ffffff;
}

/* Two-Column Layout for Contact Section */
.contact-grid {
  display: flex;
  flex-wrap: wrap;      /* Stacks columns on smaller screens */
  gap: 2rem;            /* Spacing between columns */
  margin-top: 2rem;
}

/* Columns common styling */
.contact-column {
  flex: 1 1 300px;      /* Minimum width of 300px, grows as needed */
  display: flex;
  flex-direction: column;
}

/* Left Column: Form Container styling */
.contact-form-container {
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent dark overlay */
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Right Column: Address / Info Container styling */
.contact-info {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/*------------------------------------------------
  Contact Form Styling (Within Dark Overlay)
-------------------------------------------------*/

/* Base margin for the form – using a transparent background because the container is styled */
form {
  margin: 0 0 2em 0;
  background-color: transparent;
  padding: 1em;
  border-radius: 4px;
}

/* Labels above inputs (keep labels white) */
form label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #ffffff;
}

/* Remove bottom margin from the last child in the form */
form > :last-child {
  margin-bottom: 0;
}

/* Container for all form fields */
form > .fields {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% + 3em);
  margin: -1.5em 0 2em -1.5em;
}

/* Base style for each individual field */
form > .fields > .field {
  flex-grow: 0;
  flex-shrink: 0;
  padding: 1.5em 0 0 1.5em;
  width: calc(100% - 1.5em);
}

/* Half-width fields (e.g., Name & Email side by side) */
form > .fields > .field.half {
  width: calc(50% - 0.75em);
}

/* Third-width fields (if needed) */
form > .fields > .field.third {
  width: calc(100%/3 - 0.5em);
}

/* Quarter-width fields (if needed) */
form > .fields > .field.quarter {
  width: calc(25% - 0.375em);
}

/* Input & Textarea Styling: maintain usability on white backgrounds */
form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #000;  /* Input text (black) for readability */
  background-color: #ffffff; /* White input backgrounds */
}

/* Placeholder styling for inputs */
form input::placeholder,
form textarea::placeholder {
  color: #999;
}

/* Submit Button Styling */
form .actions {
  margin-top: 1rem;
}

form .button {
  background-color: #1f4795; /* Dark blue button */
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Hover effect on the button */
form .button:hover {
  background-color: #163a73;
}

/*----------------------------------------------------
  Footer
-----------------------------------------------------*/
.site-footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 20px 0;
  text-align: center;
}

/*----------------------------------------------------
  Media Queries for Responsiveness
-----------------------------------------------------*/
@media (max-width: 768px) {
  .header-content {
    flex-direction: row !important;
    align-items: center;      /* vertically align them */
    justify-content: space-between;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .hero-section {
    margin-top: 0px; /* Slightly adjust for smaller header height */
    height: 400px;
    padding: 40px 20px; /* Enough to give breathing room around logo */
    background-size: cover;
    background-position: center;
  }

  .previews-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    flex-direction: column;
  }
  
  /* On smaller screens, half-width fields stack vertically */
  form > .fields > .field.half {
    width: 100%;
  }
  
  .menu-toggle { display: block;}

  .product-title {
    font-size: 1.4rem;
  }

  .carousel {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .company-name {
    font-size: 1.4rem;
  }

  .hero-logo {
    max-width: 300px;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .previews-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle { display: block;}

  .product-title {
    font-size: 1.2rem;
    padding: 0 10px;
  }

  .carousel {
    padding: 0;
  }

  .gallery-section {
    padding: 40px 0;
  }
}

/*----------------------------------------------------
  Mobile Off-Canvas Menu
-----------------------------------------------------*/

/* Animation keyframes */
@keyframes slideInRightFade {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* 1. Hide burger by default, style it for mobile */
.menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  position: fixed; /* 🔥 make it fixed instead of relative */
  top: 1.5rem; /* Push it down a bit nicely */
  right: 1.5rem; /* Push it inward from right */
  background: none;
  border: none;
  cursor: pointer;
  z-index: 4000; /* 🔥 Much higher than side-nav (1001) and overlay (1000) */
}

/* Span lines */
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white-color);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 10px;
}
.menu-toggle span:nth-child(3) {
  top: 20px;
}

/* When menu is open: animate to X */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}


/* 2. Off-canvas nav starts hidden off to the right */
.side-nav {
  position: fixed;
  top: var(--header-height); right: -260px;           /* off-screen */
  width: 260px; height: calc(100vh - var(--header-height));
  background-color: var(--primary-color);
  padding: 2rem 1rem;
  transition: right 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
}

/* 3. When open, slide into view */
.side-nav.open {
  right: 0;
}

/* 4. Side-nav list styling */
.side-nav ul {
  list-style: none;
  padding: 0;
}
.side-nav li {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.side-nav.open li {
  animation: slideInRightFade 0.4s ease forwards;
}
.side-nav.open li:nth-child(1) {
  animation-delay: 0.1s;
}
.side-nav.open li:nth-child(2) {
  animation-delay: 0.2s;
}
.side-nav.open li:nth-child(3) {
  animation-delay: 0.3s;
}
.side-nav.open li:nth-child(4) {
  animation-delay: 0.4s;
}
.side-nav:not(.open) li {
  opacity: 0;
  transform: translateX(40px);
  animation: none;
}

.side-nav li + li {
  margin-top: 1rem;
}
.side-nav a {
  color: var(--white-color);
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
}
.side-nav a:hover {
  color: var(--accent-color);
}

/* 5. Overlay behind the menu */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.overlay.show {
  display: block;
}

/* 6. Hide desktop links, show burger on mobile */
@media (max-width: 768px) {
  .main-nav { display: none !important; }
  .menu-toggle { 
    display: block !important; 
    margin-top: 0 !important; /* kill any extra top-margin */
    margin-left: auto;        /* push it to the far right */
  }
}


/*————————————————————————————————————————————
  Sticky footer when content is short
————————————————————————————————————————————*/

/* 1. Make the page a column flex-container that fills the viewport */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}

/* 2. Let your main content area grow to fill available space */
main.content {
  flex: 1;
}

/* 3. Push the footer down when there’s extra space */
.site-footer {
  margin-top: auto;
}

/* Gallery section consistent with other sections */
.gallery-section {
  background-color: var(--white-color);
  padding: 80px 0;
}

/* Carousel responsiveness */
.carousel {
  width: 100%;
  max-width: 700px;
  height: 400px; /* 🔥 Fixed height for all carousels */
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills frame without distortion */
  display: block;
  border-radius: 8px;
}

/* Product title spacing */
.product-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--accent-color);
}

/* Optional spacing between stacked carousels */
.product-section {
  margin-bottom: 4rem;
}

