/* =====================================================
   Flex Finishing Solutions — Main Stylesheet
   ===================================================== */

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

:root {
  --navy:    #1a3a5c;
  --blue:    #2563a8;
  --blue-lt: #3a7bc8;
  --gold:    #e8a020;
  --gold-lt: #f5c060;
  --gray-dk: #2d2d2d;
  --gray-md: #555;
  --gray-lt: #f4f6f9;
  --border:  #d0d8e4;
  --white:   #ffffff;
  --radius:  6px;
  --shadow:  0 2px 12px rgba(0,0,0,0.12);
}

html { font-size: 16px; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.9375rem;
  color: var(--gray-dk);
  background: var(--gray-lt);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---- Page wrapper ---- */
#page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

/* =====================================================
   HEADER
   ===================================================== */
#site-header {
  background: var(--navy);
  padding: 0;
}

#site-header img.logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
#nav-bar {
  background: var(--blue);
  position: relative;
  z-index: 200;
}

#nav-bar ul { list-style: none; }

/* Top level */
#nav-bar > ul {
  display: flex;
  flex-wrap: wrap;
}

#nav-bar > ul > li {
  position: relative;
}

#nav-bar > ul > li > a {
  display: block;
  padding: 11px 14px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: background 0.15s;
}

#nav-bar > ul > li > a:hover,
#nav-bar > ul > li:hover > a {
  background: var(--navy);
  color: var(--gold-lt);
  text-decoration: none;
}

/* Dropdown panel */
#nav-bar > ul > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 200px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 300;
}

#nav-bar > ul > li:hover > ul {
  display: block;
}

/* Section label (non-linked grouping header) */
#nav-bar > ul > li > ul > li > span.nav-section {
  display: block;
  padding: 6px 14px 4px;
  color: var(--gold-lt);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4px;
}

#nav-bar > ul > li > ul > li:first-child > span.nav-section {
  border-top: none;
  margin-top: 0;
}

/* Sub-links */
#nav-bar > ul > li > ul > li > a,
#nav-bar > ul > li > ul > li > ul > li > a {
  display: block;
  padding: 5px 14px 5px 22px;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

#nav-bar > ul > li > ul > li > a:hover,
#nav-bar > ul > li > ul > li > ul > li > a:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

/* Third-level flyout */
#nav-bar > ul > li > ul > li {
  position: relative;
}

#nav-bar > ul > li > ul > li > ul {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--navy);
  min-width: 180px;
  border-top: 3px solid var(--gold);
  box-shadow: 4px 4px 14px rgba(0,0,0,0.2);
  z-index: 400;
}

#nav-bar > ul > li > ul > li:hover > ul {
  display: block;
}

/* =====================================================
   LAYOUT: two-column inner pages / single col home
   ===================================================== */
#content-area {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* Left sidebar */
#sidebar {
  width: 200px;
  min-width: 200px;
  background: #eef2f8;
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  font-size: 0.85rem;
}

#sidebar .sidebar-section {
  margin-bottom: 20px;
}

#sidebar .sidebar-section h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  font-weight: 700;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 8px;
}

#sidebar .sidebar-section ul {
  list-style: none;
  padding: 0;
}

#sidebar .sidebar-section ul li {
  padding: 2px 0;
}

#sidebar .sidebar-section ul li a {
  color: var(--blue);
  font-size: 0.83rem;
  display: block;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
}

#sidebar .sidebar-section ul li a:hover {
  background: var(--border);
  text-decoration: none;
}

#sidebar .sidebar-section ul li a.active {
  color: var(--navy);
  font-weight: 700;
}

#sidebar .spot-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

#sidebar .section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

/* Main content */
#main-content {
  flex: 1;
  padding: 24px 28px;
  min-width: 0;
}

/* Home page: no sidebar */
#main-content.full-width {
  padding: 0;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--gray-md);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: var(--gray-md); margin: 0 5px; }

/* =====================================================
   PAGE TITLE
   ===================================================== */
.page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

/* =====================================================
   SERVICE LIST (used on Services pages)
   ===================================================== */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li .svc-bullet {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 8px;
}

.service-list li .svc-name {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.service-list li .svc-desc {
  color: var(--gray-md);
  font-size: 0.875rem;
}

/* =====================================================
   HOME PAGE HERO
   ===================================================== */
.home-hero {
  position: relative;
  background: var(--navy);
  padding: 42px 40px;
  color: var(--white);
  overflow: hidden;
}

.home-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.home-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.home-hero h1 span {
  color: var(--gold-lt);
}

.home-hero p {
  font-size: 1rem;
  max-width: 520px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.home-hero .hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  transition: background 0.15s;
}

.home-hero .hero-cta:hover {
  background: var(--gold-lt);
  text-decoration: none;
  color: var(--navy);
}

/* =====================================================
   HOME PAGE — SERVICE CARDS GRID
   ===================================================== */
.services-intro {
  padding: 30px 28px;
  background: var(--white);
}

.services-intro h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.svc-card {
  background: var(--gray-lt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  transition: box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.svc-card:hover {
  box-shadow: 0 4px 16px rgba(37,99,168,0.15);
  border-color: var(--blue-lt);
  text-decoration: none;
  color: inherit;
}

.svc-card .svc-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  line-height: 1;
}

.svc-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}

.svc-card p {
  font-size: 0.78rem;
  color: var(--gray-md);
  line-height: 1.4;
}

/* =====================================================
   HOME PAGE — FEATURED + REQUEST ROW
   ===================================================== */
.home-featured {
  padding: 24px 28px;
  background: #f0f4fa;
  border-top: 1px solid var(--border);
}

.home-featured h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
  margin-bottom: 14px;
}

.featured-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.featured-img-link {
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}

.featured-img-link:hover {
  border-color: var(--gold);
}

.featured-img-link img {
  display: block;
}

/* =====================================================
   HOME PAGE — TESTIMONIALS STRIP
   ===================================================== */
.testimonials-strip {
  background: var(--navy);
  padding: 22px 28px;
  color: rgba(255,255,255,0.9);
}

.testimonials-strip h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-lt);
  margin-bottom: 14px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.testimonial-item {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.875rem;
  font-style: italic;
}

.testimonial-item .attribution {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--gold-lt);
  margin-top: 6px;
}

/* =====================================================
   REQUEST INFO SECTION
   ===================================================== */
.request-section {
  padding: 20px 28px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
}

.request-section img {
  border-radius: var(--radius);
}

.request-section .request-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.request-section .request-text p {
  font-size: 0.85rem;
  color: var(--gray-md);
}

.request-section .request-text a.btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 7px 18px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.15s;
}

.request-section .request-text a.btn:hover {
  background: var(--navy);
  text-decoration: none;
}

/* =====================================================
   GENERIC CONTENT STYLES
   ===================================================== */
.content-body h2 {
  font-size: 1rem;
  color: var(--navy);
  margin: 18px 0 8px;
  font-weight: 700;
}

.content-body p {
  margin-bottom: 12px;
  color: var(--gray-md);
  font-size: 0.9rem;
}

.content-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--gray-md);
  font-size: 0.9rem;
}

.content-body ul li {
  margin-bottom: 4px;
}

/* Link list used on Estimates, Orders, etc. */
.link-list {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.link-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.link-list li:last-child {
  border-bottom: none;
}

.link-list li a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.link-list li a:hover {
  color: var(--gold);
}

/* =====================================================
   FOOTER
   ===================================================== */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#site-footer a {
  color: rgba(255,255,255,0.65);
  margin: 0 6px;
  text-decoration: none;
}

#site-footer a:hover {
  color: var(--gold-lt);
}

#site-footer .footer-copy {
  color: rgba(255,255,255,0.45);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 800px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  #content-area { flex-direction: column; }
  #sidebar { width: 100%; min-width: 0; border-right: none; border-bottom: 1px solid var(--border); }
  #nav-bar > ul { flex-direction: column; }
  #nav-bar > ul > li > ul { position: static; display: none; }
  #nav-bar > ul > li:hover > ul { display: block; }
}

@media (max-width: 500px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .home-hero { padding: 26px 18px; }
  .home-hero h1 { font-size: 1.4rem; }
}
