/*
Theme Name: Cercana Corporate Theme
Theme URI: https://yourdomain.com/
Author: Bill Dollins
Author URI: https://cercanasystems.com/
Description: A modern, professional WordPress theme with a clean and corporate design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wta-inspired
Tags: corporate, business, clean, responsive, custom-theme
*/

/* Reset and base layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2e2e2e;
  background-color: #ffffff;
}

a {
  color: #0077b5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout structure */
header, footer {
  background-color: #f8f9fa;
  padding: 1.5rem 2rem;
}

header {
  border-bottom: 1px solid #dee2e6;
}

footer {
  border-top: 1px solid #dee2e6;
  font-size: 0.9rem;
  color: #6c757d;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: #333;
  font-weight: 500;
}

nav ul li a:hover {
  color: #0056b3;
}

/* Hero section */
.hero {
  color: white;
  text-align: center;
  padding: 0rem 0rem;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2rem 2rem;
  border-radius: 6px;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Section spacing */
section {
  padding: 1rem 1rem;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0077b5;
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #005fa3;
}

/* Responsive media queries */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .feature-row {
    flex-direction: column !important;
  }

  .feature-image, .feature-text {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 1rem 0;
  }
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  /*padding: 1.5rem 1rem 1.5rem 0.5rem;*/
  padding: 0.1rem 0.1rem 0.1rem 0.1rem;
}

.site-logo img {
  max-height: 60px;
  height: auto;
  width: auto;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: #333;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.main-navigation a:hover {
  color: #0077b5;
}

.services-promo {
  width: 100%;
  overflow: hidden;
}

.services-row {
  display: flex;
  flex-wrap: wrap;
}

.services-card {
  flex: 1 1 33.333%;
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.services-overlay {
  width: 100%;
  padding: 2rem;
  color: #fff;
  text-align: left;
}

.services-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.services-overlay p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Center only the Contact Us button (Chromium-safe) */
.services-overlay .button-wrapper {
  display: flex;              /* robust centering regardless of text-align */
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

.services-overlay .button {
  display: inline-block;      /* keep button sized to content */
  float: none;                /* guard against any stray float rules */
}

.learn-more-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 2px solid #fff;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.learn-more-btn:hover {
  background-color: #fff;
  color: #000;
}

/* Overlay color variants */
.overlay-blue {
  background-color: rgba(29, 122, 255, 0.9);
}

.overlay-green {
  background-color: rgba(0, 214, 144, 0.9);
}

.overlay-teal {
  background-color: rgba(0, 128, 143, 0.9);
}

@media (max-width: 768px) {
  .services-card {
    flex: 1 1 100%;
    height: auto;
    min-height: 400px;
  }
}

#site-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1 1 auto;
}

.footer-right {
  flex: 1 1 auto;
  text-align: right;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-menu li a {
  color: #6c757d;
  text-decoration: none;
}

.footer-menu li a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    margin-top: 1rem;
    text-align: center;
  }
}

.page-content {
  padding: 3rem 2rem;
  background-color: #ffffff;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0077b5;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.page-featured-image img {
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
}

.site-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  max-height: 100%;
  width: auto;
}

.service-features {
  padding: 4rem 2rem;
  background-color: #f5f5f5;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.feature-image, .feature-text {
  flex: 1 1 50%;
  max-width: 50%;
  box-sizing: border-box;
  padding: 1rem;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.feature-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #222;
}

.feature-text p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.learn-more-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background-color: #0077b5;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #005fa3;
}

.two-column-layout {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #ffffff;
  align-items: flex-start;
}

.feature-image-column {
  flex: 1 1 50%;
  max-width: 50%;
}

.page-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.feature-text-column {
  flex: 1 1 50%;
  max-width: 50%;
}

.feature-text-column .page-title {
  font-size: 2rem;
  color: #222;
  margin-bottom: 1.25rem;
}

.feature-text-column .page-body {
  font-size: 1rem;
  color: #444;
  line-height: 1.75;
}

/* Positioning for dropdowns */
.main-navigation ul ul {
  display: none;
  position: absolute;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
  list-style: none;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 1000;
}

.main-navigation li:hover > ul {
  display: block;
}

.main-navigation ul ul li {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.main-navigation ul ul li a {
  color: #333;
  text-decoration: none;
  display: block;
}

.main-navigation ul ul li a:hover {
  background-color: #f0f0f0;
  color: #0077b5;
}

.main-navigation li {
  position: relative;
}

/* Alternate layout logic */
.image-left .feature-image {
  order: 1;
}

.image-left .feature-text {
  order: 2;
}

.image-right .feature-image {
  order: 2;
}

.image-right .feature-text {
  order: 1;
}

/* Fixed layout alternation for home-page service features */

/* Existing styles */
.feature-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.feature-image, .feature-text {
  flex: 1 1 50%;
  max-width: 50%;
  box-sizing: border-box;
  padding: 1rem;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.feature-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #222;
}

.feature-text p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.post-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

.page-body p {
  margin-bottom: 1.25rem;
}

.entry-footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #666;
}

.entry-footer a {
  color: #0077b5;
  text-decoration: none;
  margin-right: 0.5rem;
}

.entry-footer a:hover {
  text-decoration: underline;
}

.single-post-container {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
}

.single-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.entry-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0077b5;
}

.entry-meta {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

.entry-content {
  font-size: 1rem;
  color: #333;
  line-height: 1.75;
}

.entry-footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.tag-links {
  display: block;
  margin-top: 1rem;
}

.page-featured-image img {
  display: block;
  max-width: 100%;
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto 2rem auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    z-index: 1100;
  }

  .main-navigation {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 1rem 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .main-navigation.open {
    display: flex;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation li {
    position: static;
  }

  .main-navigation ul ul {
    position: static;
    box-shadow: none;
    display: none;
  }

  .main-navigation ul li:hover > ul {
    display: none;
  }

  .main-navigation ul ul li {
    padding: 0.5rem 0;
  }
}