/* ==========================================================================
   1. Reset
   (Tokens live in tokens.css, loaded before this file.)
   ========================================================================== */

/* Box sizing reset */
html {
  box-sizing: border-box;
  font-size: 16px; /* Establishes 1rem = 16px */
}

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

/* ==========================================================================
   2. Base Elements
   ========================================================================== */

/* Body */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 18px; /* 18px */
  line-height: var(--line-height-base);
  color: var(--gray-900);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
    font-weight: 500;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0.5rem;
  margin-bottom: 0.5em;
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--heading-color);
  font-weight: 700;
	letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-top: 0;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.75rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

b, strong {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Lists */
ul, ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

ul li::marker {
  color: var(--heading-color);
}

ol li::marker {
  color: var(--heading-color);
}

li {
  margin-bottom: 0.5rem;
}

li:last-child {
  margin-bottom: 0;
}

/* Nested lists */
li > ul,
li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Tables */
table {
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  width: 100%;
}

thead th {
  border-bottom: 2px solid var(--gray-500);
  padding-bottom: 0.5rem;
  font-weight: 600;
  text-align: left;
}

th, td {
  padding: 0.75rem;
  text-align: left;
}

tr {
  border-bottom: 1px solid var(--gray-100);
}

tbody tr:last-child {
  border-bottom: none;
}

/* Forms - Basic resets only (detailed styles in forms.css) */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/* Blockquote */
blockquote {
  margin: 2rem 0;
  padding: 1rem 0 1rem 2rem;
  border-left: 4px solid var(--accent-color);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--gray-700);
}

blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Horizontal Rule */
hr {
  border: 0;
  height: 1px;
  background: var(--gray-100);
  margin: 2rem 0;
}

/* ==========================================================================
   3. Layout & Utilities
   ========================================================================== */

/* Container */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Page wrapper */
#page {
  position: relative;
  word-wrap: break-word;
  overflow-x: hidden;
}

/* Content layout with sidebar*/
.has-sidebar #primary {
  float: left;
  width: 65%;
}
.has-sidebar #secondary {
  float: right;
  width: 30%;
}

/* Alignments */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Screen reader text (accessibility) */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* ==========================================================================
   4. Components
   ========================================================================== */

/* Buttons */
.button, button, input[type="button"], input[type="submit"] {
  display: inline-block;
  padding: 15px 24px 16px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0.04em;
  color: #fff;
  background-color: var(--button-color);
  border-radius: var(--button-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  border:none;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Outline button */
.button-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0.04em;
  color: #fff;
  background-color: transparent;
  border: 2px solid #fff;
  border-radius:  var(--button-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-outline:hover {
  background-color: #0e2747;
  color: white;
  opacity: 1;
}

/* Light button */
.button-light {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--heading-color);
  background-color: var(--gray-100);
  border: 2px solid var(--gray-100);
  border-radius:  var(--button-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-light:hover {
  background-color: var(--gray-100);
}

.button-services {
	 background-color: var(--gray-100);
	 color: var(--heading-color);
	   font-size: .85rem;
  font-weight: 700;
    border-radius:  var(--button-radius);
      padding: 5px 12px;

}

/* Widget styles */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

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

.widget ul li {
  padding: 0.05rem 0;
}

.widget ul li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */

/* Main navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.main-navigation li {
  position: relative;
  margin: 0;
}

.main-navigation a {
  display: block;
  padding: 1rem .7rem;
  color: var(--heading-color);
  font-family: var(--font-body);
  text-transform: none;
  transition: color 0.2s ease;
  font-weight:600;
  font-size: 1rem;
}

.main-navigation a:hover {
  color: var(--accent-color);
  opacity: 1;
}

/* Dropdown menus */
.main-navigation ul ul,
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 99999;
  min-width: 200px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-navigation ul ul a {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  text-transform: none;
}

/* Menu button styling (for CTA buttons in nav) */
.menu-button a {
  margin: 24px 0 25px;
  padding: 11px 26px 13px;
  border-radius:  var(--button-radius);
  background: var(--button-color);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.menu-button a::after {
    content: '';
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    background-color: currentColor;
    mask-image: url('../icons/arrow_outward.svg');
    -webkit-mask-image: url('../icons/arrow_outward.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    margin-left: 0.75em;
    vertical-align: middle;
    margin-top: -1px;
}

.menu-button a:hover {
  opacity: 0.9;
  color: white;
}

.menu-button-light a {
  color: var(--heading-color);
  margin: 25px 0;
  line-height: 16px;
  padding: 11px 14px;
  border: 1px solid var(--accent-color);
  font-weight: 500;
  margin-right: 8px;
  font-size: 15px;
  border-radius:  var(--button-radius);
  background: transparent;
}

.menu-button-light a:hover {
  background: var(--accent-color);
  color: white;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle .ic-bars {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--heading-color);
  position: relative;
  transition: background 0.2s ease;
}

.menu-toggle .ic-bars:before,
.menu-toggle .ic-bars:after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2.5px;
  background: var(--heading-color);
  left: 0;
  transition: transform 0.2s ease;
}

.menu-toggle .ic-bars:before {
  top: -7px;
}

.menu-toggle .ic-bars:after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .ic-bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .ic-bars:before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle[aria-expanded="true"] .ic-bars:after {
  transform: rotate(-45deg);
  top: 0;
}

.main-navigation ul.menu li.menu-item-has-children > a.show-child {
  display: none;
}

/* ==========================================================================
   6. Page Sections
   ========================================================================== */

/* Site Header */
.site-header {
  /*! background: white; */
  padding: 0;
  /*! border-bottom: 1px solid var(--gray-100); */
}

.site-header.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding-top: 15px;
}


.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  display: block;
}


/* Page Header */
.page-header {
  background-color: var(--accent-color);
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.page-header .page-title {
  margin: 0;
  color: white;
  font-size: 3rem;
}

/* Entry/Article styles */
.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  margin-bottom: 0.5rem;
}

.entry-meta {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.entry-content {
  margin-bottom: 2rem;
}

.entry-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ==========================================================================
   7. Page-Specific Styles
   ========================================================================== */

/* 404 Page */
.error404 #primary {
  text-align: center;
  padding: 4rem 0;
}

.error404 .page-title {
  font-size: 8rem;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.error404 .page-content {
  max-width: 600px;
  margin: 0 auto;
}

/* Search results */
.search-results .page-header {
  background: var(--gray-100);
  color: var(--heading-color);
  margin-bottom: 2rem;
  padding: 2rem 0;
}

.search-results .page-title {
  color: var(--heading-color);
  font-size: 2rem;
}

/* ==========================================================================
   8. Clearfix
   ========================================================================== */
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.entry-footer:before,
.entry-footer:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after,
.nav-links:before,
.nav-links:after,
.pagination:before,
.pagination:after,
.comment-author:before,
.comment-author:after,
.widget-area:before,
.widget-area:after,
.widget:before,
.widget:after,
.comment-meta:before,
.comment-meta:after {
    content: "";
    display: table;
    table-layout: fixed;
}

.clear:after,
.entry-content:after,
.entry-footer:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after,
.nav-links:after,
.pagination:after,
.comment-author:after,
.widget-area:after,
.widget:after,
.comment-meta:after {
    clear: both;
}

/* ==========================================================================
   9. Accessibility
   ========================================================================== */

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1rem 2rem;
  background: var(--heading-color);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  position: absolute;
  left: 0;
  top: 0;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   10. Header Actions
   ========================================================================== */

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-heading);
}

.header-actions a {
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
}

.header-actions .icon-call,
.header-actions .icon-arrow-outward {
    width: 24px;
    height: 25px;
    margin-right: 2px;
    margin-top: 2px;
}

.header-phone {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.header-cta {
    background-color: var(--button-color);
    color: #fff;
    padding: 12px 21px 13px;
    border-radius:  var(--button-radius);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: .05rem;
    font-family: var(--font-body);
}

.header-cta::after {
  content: '';
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  mask-image: url('../icons/arrow_outward.svg');
  -webkit-mask-image: url('../icons/arrow_outward.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  margin-left: 0em;
  vertical-align: middle;
  margin-top: 3px;
  margin-right: -2px;
}

.button-outline::after {
  content: '';
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  background-color: currentColor;
  mask-image: url('../icons/arrow_outward.svg');
  -webkit-mask-image: url('../icons/arrow_outward.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  margin-left: 0.75em;
  vertical-align: middle;
  margin-top: 0px;
}

.header-cta:hover {
    opacity: 0.9;
}

/* Layout 0: Inline with Actions */
.header-inline .header-content-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 40px 25px;
}

.header-inline .main-menu {
    flex: 1;
    margin: 0 40px;
}

/* Layout 1: Stacked */
.header-stacked .header-top {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    /*! background: #f8fafb; */
}

.header-stacked .header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-stacked .header-nav .container {
    width: 100%;
}

.header-stacked .main-menu {
    width: 100%;
}

.header-stacked .main-navigation {
    width: 100%;
}

.header-stacked .menu-main-menu-container {
    width: 100%;
}

.header-stacked .main-navigation ul#main-menu {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
}

.header-stacked .main-navigation li {
    flex: 0 1 auto;
}

.header-stacked .main-navigation a {
    padding: 0.75rem 1.5rem; /* Reduced vertical padding */
}

/* Top Bar Updates */
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Footer Bar - Hidden on Desktop */
.mobile-footer-bar {
    display: none;
}

/* ==========================================================================
   11. Social Icons
   ========================================================================== */

/* Social Icons Base Styles */
.social-media ul.social-icons {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}

.social-media ul.social-icons li {
    margin: 0;
    padding: 0;
}

.social-media ul.social-icons a {
    display: block;
    color: var(--heading-color);
    text-decoration: none;
}

.social-media ul.social-icons i {
    width: 16px;
    height: 16px;
    display: block;
}

.social-media ul li a,  .social-media li a {
  line-height: 16px;
  display: inline-block;
  text-align: center;
  font-size: 16px;
  padding: 4px;
}

.site-info .social-media ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Top bar social alignment */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right .social-media {
    margin-left: auto;
}

/* Header inline social alignment */
.main-navigation .social-media {
    margin-left: auto;
}

.main-navigation .social-media ul.social-icons {
    margin-left: 20px;
}

/* ============================================
   Mobile baseline — single 1023px breakpoint
   Sidebar stacking, multi-column lists collapse, heading scale
   ============================================ */

@media screen and (max-width: 1023px) {
  .has-sidebar #primary,
  .has-sidebar #secondary {
    float: none;
    width: auto;
  }

  ul.col3 {
    columns: 1 !important;
    -webkit-columns: 1 !important;
    -moz-columns: 1 !important;
    list-style: disc;
    padding: 0;
  }

  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.3rem; line-height: 1em; }
  h3 { font-size: 2rem; }
}
