/* ============================================================
   custom.css — High Desert Comfort HVAC Demo
   ============================================================ */

:root {
  --color-header-bg:  #1a3a4a;   /* Deep slate blue              */
  --color-header-text:#f0f4f8;   /* Off-white                    */
  --color-nav-bg:     #12293a;   /* Darker slate                 */
  --color-nav-text:   #d0dce6;   /* Soft blue-gray               */
  --color-nav-border: #B95606;   /* Warm orange accent           */
  --color-accent:     #B95606;   /* Orange — energy, warmth      */
  --color-accent-dark:#c46018;   /* Darker orange for hover      */
  --color-footer-bg:  #12293A;   /* Matches header               */
  --color-footer-text:#a0b8c8;   /* Muted blue-gray              */
  --color-surface:    #f5f7f9;   /* Very light cool gray         */
  --color-border:     #d0dce6;   /* Soft blue-gray border        */
  --color-muted:      #354953;   /* Muted slate for labels       */
}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
body > header {
  background-color: var(--color-header-bg);
  color: var(--color-header-text);
  grid-column: 1 / -1;
}

body > header a,
body > header a:visited {
  color: var(--color-header-text);
  text-decoration: none;
}

/* ------------------------------------------------------------
   STICKY NAV
   ------------------------------------------------------------ */
body > nav {
  grid-column: 1 / -1;
  background-color: var(--color-nav-bg);
  border-bottom: 2px solid var(--color-nav-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

body > nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  max-width: 45rem;
  gap: 0.25rem;
}

body > nav ul li {
  display: inline-block;
}

body > nav ul li a,
body > nav ul li a:visited {
  color: var(--color-nav-text);
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-size: 0.95rem;
  display: inline-block;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body > nav ul li a:hover,
body > nav ul li a.current {
  background-color: var(--color-accent);
  color: #ffffff;
}

@media only screen and (max-width: 720px) {
  body > nav ul {
    gap: 0.1rem;
    padding: 0.4rem 0.5rem;
  }
  body > nav ul li a {
    font-size: 0.875rem;
    padding: 0.3rem 0.6rem;
  }
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
body > footer {
  grid-column: 1 / -1;
  background-color: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.55);
  border-top: none;
  font-size: 0.85rem;
  padding: 1rem 1rem;
  text-align: center;
  margin-top: 0;
}

body > footer a,
body > footer a:visited {
  color: var(--color-footer-text);
  text-decoration: underline;
}

body > footer a:hover {
  text-decoration: none;
}

body > main {
    padding-bottom: 3rem;
}

/* ------------------------------------------------------------
   COMPONENTS
   ------------------------------------------------------------ */

.sb-hero {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.sb-hero h2 {
  margin-top: 0;
}

.sb-hero p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.sb-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem 2rem;
}

.sb-card h3 {
  margin-top: 0;
}

.sb-card ul {
    padding-bottom: 2.5rem;
}

.sb-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.sb-pricing {
  margin: 1.5rem 0;
}

.sb-pricing table {
  width: 100%;
}

.sb-pricing th {
  background-color: var(--color-accent);
  color: #ffffff;
}

.sb-plan {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.sb-plan h3 {
  margin-top: 0;
  color: var(--color-accent);
}

.sb-plan .sb-plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.sb-plan ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.sb-contact-info {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.sb-contact-info h3 {
  margin-top: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  font-weight: 600;
}

.sb-contact-info h3 + h3 {
  margin-top: 1.5rem;
}

.sb-contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.sb-contact-info ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.05rem;
}

.sb-contact-info ul li:last-child {
  border-bottom: none;
}

.sb-contact-info .label {
  font-weight: 600;
  display: inline-block;
  min-width: 6rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sb-contact-info table {
  margin: 0.5rem 0 0;
  width: 100%;
  border-collapse: collapse;
}

.sb-contact-info td {
  border: none;
  padding: 0.3rem 0;
  font-size: 1rem;
}

.sb-contact-info tr:nth-child(even) {
  background-color: transparent;
}

.sb-contact-info .day {
  font-weight: 600;
  width: 9rem;
}

.sb-contact-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.sb-contact-form h3 {
  margin-top: 0;
}

.required {
  color: var(--color-accent);
}


/* ------------------------------------------------------------
   GALLERY PAGE
   ------------------------------------------------------------ */

.sb-gallery-section {
  margin: 2rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.sb-gallery-section:last-of-type {
  border-bottom: none;
}

.sb-gallery-section h3 {
  margin-top: 0;
}

.sb-gallery-section > p {
  color: var(--color-muted);
  margin-top: 0;
}

.sb-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

figure.sb-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

figure.sb-gallery-item figcaption {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0.4rem 0 0;
}

@media only screen and (max-width: 720px) {
  .sb-gallery-grid {
    grid-template-columns: 1fr;
  }
}


button, .button, a.button, input[type="submit"], input[type="reset"], input[type="button"] {
    border: var(--border-width) solid var(--color-footer-bg);
    background-color: var(--color-footer-bg);
}

button:enabled:hover,
.button:not([aria-disabled="true"]):hover,
input[type="submit"]:enabled:hover,
input[type="reset"]:enabled:hover,
input[type="button"]:enabled:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}