/* Power Oriented Systems — site-wide styles */

:root {
  --color-primary: #1134e1;
  --color-primary-dark: #0d2880;
  --color-primary-light: #1a4aff;
  --color-text: #1a1a2e;
  --color-text-muted: #5c5c78;
  --color-bg: #f4f5f8;
  --color-bg-muted: #767676;
  --color-surface: #ffffff;
  --color-border: #e2e4ec;
  --color-header: #0a0a0a;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1080px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(17, 52, 225, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body.site {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
}

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* —— Header —— */
.header-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: var(--color-header);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

#logoFixed {
  flex: 0 0 auto;
  width: 130px;
  max-width: 28vw;
  padding: 0.4rem 0.5rem 0.4rem 0.85rem;
}

#logoFixed a {
  display: block;
  line-height: 0;
}

#logoFixed img {
  width: 100%;
  height: auto;
}

.header-bar .navbar {
  flex: 1 1 200px;
  background: transparent;
  padding: 0.35rem 0.75rem 0.35rem 0;
  min-width: 0;
}

.navbar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.15rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.navbar li {
  margin: 0;
  padding: 0;
  text-shadow: none;
  display: block;
}

.navbar a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.navbar a[aria-current="page"] {
  color: #fff;
  background: var(--color-primary);
}

/* Font Awesome */
.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* —— Page hero —— */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 2.75rem 1.25rem 3rem;
}

.page-hero-compact {
  padding: 2rem 1.25rem 2.25rem;
}

.page-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.page-eyebrow a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.page-eyebrow a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.page-lead {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.05rem;
  opacity: 0.95;
  line-height: 1.65;
}

/* —— Buttons —— */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-dark {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* —— Sections —— */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

/* —— Home —— */
.home-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--color-primary-dark) center / cover no-repeat;
  background-image: linear-gradient(135deg, rgba(13, 40, 128, 0.88) 0%, rgba(17, 52, 225, 0.75) 100%),
    url("../images/cover.a88eea4e.jpg");
}

.home-hero-inner {
  padding: 3rem 1.25rem;
  max-width: 42rem;
}

.home-hero h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.home-hero .page-lead {
  font-size: 1.15rem;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.home-about-grid h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.home-about-grid p {
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.7;
}

.home-highlight {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.home-highlight h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.home-highlight ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-highlight li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  margin: 0;
  text-shadow: none;
}

.home-highlight .fa {
  color: var(--color-primary);
  margin-top: 0.2rem;
}

.action-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem 1.1rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #c5cdf5;
}

.action-card img {
  width: 100%;
  max-width: 260px;
  margin-bottom: 0.75rem;
}

.action-card p {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0;
}

/* —— Services index —— */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, #eef1f8 0%, #f8f9fc 100%);
}

.service-card-thumb img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}

.service-card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  border-top: 3px solid var(--color-primary);
  background: var(--color-surface);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.service-card-body p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0 0 0.75rem;
  flex: 1;
}

.service-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.service-card:hover .service-card-link {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .services-list {
    grid-template-columns: 1fr;
  }

  .service-card-thumb {
    min-height: 200px;
  }
}

/* —— Service detail —— */
.service-article {
  padding: 2.5rem 0 3rem;
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.service-block {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 1.75rem;
  align-items: center;
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.service-block:nth-child(even) {
  grid-template-columns: 1fr minmax(240px, 340px);
}

.service-block:nth-child(even) .service-block-media {
  order: 2;
}

.service-block-media img {
  border-radius: 8px;
  width: 100%;
}

.service-block-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #333;
}

.service-block-text p:last-child {
  margin-bottom: 0;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.service-gallery img {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-content > p {
  background: var(--color-surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  line-height: 1.7;
  color: #333;
}

.service-content--simple {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-content--simple img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.service-content--simple p {
  background: var(--color-surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  line-height: 1.7;
  color: #333;
}

/* —— Contact —— */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table th,
.hours-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: inherit;
  font-weight: normal;
}

.hours-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  width: 40%;
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: none;
}

.contact-detail {
  margin-top: 1.25rem;
  font-size: 1rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-detail a {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.contact-map-intro {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

#map {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-top: 0.5rem;
}

/* —— CTA banner —— */
.cta-banner {
  background: var(--color-bg-muted);
  padding: 2.5rem 0;
}

.cta-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
}

.cta-banner p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: 1rem 0 0.85rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}

.footer-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.footer-content > p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-menu {
  margin: 0.15rem 0;
}

.footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.9rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin: 0;
  padding: 0;
  display: block;
  text-shadow: none;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-menu a:hover {
  color: #fff;
  text-decoration: underline;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}

.socials li {
  margin: 0;
  padding: 0;
  display: block;
  text-shadow: none;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .home-about-grid {
    grid-template-columns: 1fr;
  }

  .action-card-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-block,
  .service-block:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-block:nth-child(even) .service-block-media {
    order: 0;
  }

  .navbar ul {
    justify-content: center;
    padding-bottom: 0.35rem;
  }
}

@media (max-width: 600px) {
  #logoFixed {
    width: 100px;
  }

  .home-hero {
    min-height: 320px;
    background-image: linear-gradient(135deg, rgba(13, 40, 128, 0.9) 0%, rgba(17, 52, 225, 0.8) 100%),
      url("../images/mobilecover3.9acf0b8a.png");
    background-size: cover;
  }

  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}
