:root {
  /* Primary Colors */
  --color-primary-text: #ffffff;
  --color-secondary-text: #000000;
  --color-tertiary-text: #abc4f6;
  --color-main-bg: #064b9a;
  --color-secondary-bg: #f0f0f0;
  --color-hyperlink: #4a90e2;
  --color-hyperlink-hover: #2f6fb5;

  /* Font Stack */
  --font-stack-header: Georgia, Arial, sans-serif;
  --font-stack-primary: Verdana, Geneva, sans-serif;

  /* Font weights */
  --font-extra-light: 200;
  --font-light: 300;
  --font-weight-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-weight-bold: 700;

  /* Font sizes */
  --font-size-x-small: 0.7rem;
  --font-size-small: 0.8rem;
  --font-size-normal: 1rem;
  --font-size-large: 1.25rem;
  --font-size-x-large: 1.5rem;
  --font-size-xx-large: 1.85rem;
  --font-size-xxx-large: 2.25rem;
}

/* Global Styles */
body {
  font-family: var(--font-stack-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0; /* helps prevent odd white gaps */
}

main {
  flex: 1;
  padding-bottom: 2rem;
}

/* Header Styles */

/*******
TODO: 
- Change active link color for list items in the header
********/

header {
  font-family: var(--font-stack-header);
}

.navbar-icon {
  width: 32px;         /* Adjust size */
  height: auto;        /* Keep proportions */
  margin-left: 0.5rem; /* Space between text and icon */
}

.custom-navbar {
  background-color: var(--color-main-bg);
}

.custom-navbar a:hover {
  color: var(--color-tertiary-text);
}

.navbar-brand {
  color: var(--color-primary-text);
}

.navbar .nav-link {
  color: var(--color-primary-text);
}

.navbar-toggler {
  border-color: var(--color-secondary-bg);
  background-color: var(--color-primary-text);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.1rem rgb(196, 196, 196);
}

/* Get a quote styling */
#get-quote .nav-link {
  background-color: #f6b73c; /* warm gold */
  color: #000000;           /* black text for contrast */
  border-radius: 0.375rem;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#get-quote .nav-link:hover,
#get-quote .nav-link:focus {
  background-color: #e59a0f; /* darker gold hover */
  color: #ffffff;           /* white text on hover */
  transform: translateY(-1px);
  text-decoration: none;
}

#get-quote .nav-link.active {
  background-color: #d48c0e; /* muted gold for active */
  color: #ffffff;
}

/* Container (controls size + alignment) */
.form-container {
  max-width: 420px; /* adjust size here */
  margin: 0 auto;   /* center horizontally */
  padding-bottom: 20px;
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Row for first + last name */
.form-row {
  display: flex;
  gap: 12px;
}

/* Open rectangle inputs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 12px;
  background: transparent;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-secondary-text);
}

/* Placeholder style */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.form-response {
  max-width: 420px; /* adjust size here */
  margin: 0 auto;   /* center horizontally */
  padding: 20px;
  font-size: 15px;
}

/* Button */
.contact-form button {
  margin-top: 10px;
  padding: 14px;
  background: var(--color-main-bg);
  color: var(--color-primary-text);
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

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

/* Hours block */
.hours-container {
  max-width: 420px; /* match form width */
  margin: 24px auto 0;
  padding: 16px 20px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  background: var(--color-primary-text);
}

.hours-container h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.hours-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-container li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.hours-container li:last-child {
  border-bottom: none;
}

.facebook-contact {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

/* =========================================================
   Shared typography helpers (single source of truth)
========================================================= */
.intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-secondary-text);
  margin-bottom: 1.2rem;
  text-align: center;
}

.intro.emphasis {
  font-weight: var(--font-semibold);
  margin-top: 2rem;
}

/* =========================================================
   Home / Index
========================================================= */
.hero {
  padding: 3.25rem 1.5rem 2.25rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-stack-header);
  font-size: var(--font-size-xxx-large);
  margin: 0 auto 0.75rem;
  letter-spacing: -0.4px;
  display: inline-block;
  padding-bottom: 0.6rem;
  border-bottom: 4px solid var(--color-main-bg);
}

.tagline {
  margin: 0 auto;
  max-width: 60ch;
  font-size: var(--font-size-large);
  color: #444;
  font-style: italic;
}

.home-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--color-secondary-bg);
  font-family: var(--font-stack-primary);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.trust-item {
  padding: 1.6rem 1.4rem;
  border-radius: 12px;
  background: var(--color-primary-text);
  border: 1px solid #e2e2e2;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trust-item h3 {
  margin-bottom: 0.5rem;
  font-size: var(--font-size-large);
  font-weight: var(--font-semibold);
  color: var(--color-main-bg);
}

.trust-item p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

@media (hover: hover) {
  .trust-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  }
}

/* Responsive grid */
@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Renovation Process
========================================================= */
.renovation-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--color-secondary-bg);
  font-family: var(--font-stack-primary);
}

.h1-renovation-process h1 {
  text-align: center;
  font-family: var(--font-stack-header);
  font-size: var(--font-size-xxx-large);
  margin-bottom: 1.5rem;
  color: var(--color-secondary-text);
  text-decoration: underline;
}

.steps {
  margin-top: 3rem;
  text-align: left;
}

.step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fafafa;
}

.step-number {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-main-bg);
  color: var(--color-primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  font-size: 1.5rem;
}

.step h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  color: var(--color-secondary-text);
}

.step p {
  margin: 0;
  color: #444;
  line-height: 1.5;
  font-size: 1.2rem;
}

.step.highlight {
  background: #eef5ff;
  border-color: #cfe3ff;
}

/* =========================================================
   Gallery
========================================================= */
/* Thumbnail grid */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding-bottom: 16px;
}

.thumbnail {
  width: 100%;
  height: 160px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.thumbnail:hover {
  transform: scale(1.05);
}

/* Modal */
#image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#image-modal.open {
  display: flex;
}

#modal-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 48px;
  padding: 10px 16px;
  cursor: pointer;
  user-select: none;
}

#modal-prev {
  left: 20px;
}

#modal-next {
  right: 20px;
}

.modal-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Footer styles */
footer {
  position: static;   /* normal document flow */
  width: 100%;
  color: #666;
  line-height: 1.4;
}

footer a {
  color: var(--color-hyperlink);
  text-decoration: underline;
}

footer a:hover {
  color: var(--color-hyperlink-hover);
  text-decoration: underline;
}

#phone-number {
  color: var(--color-hyperlink);
}

/* Adjust styles for different screen sizes */
@media (max-width: 575.98px) {
  body {
    font-size: var(--font-size-normal);
  }

  #footer-content {
    font-size: var(--font-size-x-small);
  }
}

@media (min-width: 576px) {
  body {
    font-size: var(--font-size-large);
  }

  #footer-content {
    font-size: var(--font-size-small);
  }
}

@media (min-width: 768px) {
  body {
    font-size: var(--font-size-x-large);
  }

  #footer-content {
    font-size: var(--font-size-normal);
  }
}

@media (min-width: 992px) {
  body {
    font-size: var(--font-size-x-large);
  }

  #footer-content {
    font-size: var(--font-size-normal);
  }
}

@media (min-width: 1200px) {
  body {
    font-size: var(--font-size-x-large);
  }

  #footer-content {
    font-size: var(--font-size-normal);
  }
}

@media (min-width: 1400px) {
  body {
    font-size: var(--font-size-xx-large);
  }

  #footer-content {
    font-size: var(--font-size-normal);
  }
}

@media (min-width: 2160px) {
  body {
    font-size: var(--font-size-xx-large);
  }

  #footer-content {
    font-size: var(--font-size-large);
  }
}
