/*
Theme Name: Cornwell Associates Child
Theme URI: https://cornwell-assoc.com
Description: Custom child theme for The Cornwell Associates, Accountants, Inc. Built on GeneratePress with accessible Gutenberg blocks.
Author: Cornwell Associates
Author URI: https://cornwell-assoc.com
Template: generatepress
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cornwell-child
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  --cw-navy: #000081;
  --cw-navy-hover: #0000a8;
  --cw-gray: #818181;
  --cw-white: #ffffff;
  --cw-off-white: #f7f7f9;
  --cw-light-gray: #e8e8ec;
  --cw-dark: #0a0a1a;
  --cw-text-body: #3a3a4a;
  --cw-navy-light: rgba(0, 0, 129, 0.06);
  --cw-focus-ring: 0 0 0 3px rgba(0, 0, 129, 0.4);
  --cw-font-heading: 'Raleway', 'Century Gothic', sans-serif;
  --cw-font-body: 'Outfit', system-ui, sans-serif;
}

/* ==========================================================================
   BASE / GLOBAL
   ========================================================================== */

body {
  font-family: var(--cw-font-body);
  color: var(--cw-dark);
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ADA: Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--cw-navy);
  outline-offset: 3px;
}

/* ADA: Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--cw-navy);
  color: var(--cw-white);
  padding: 12px 24px;
  z-index: 10000;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: none;
  box-shadow: var(--cw-focus-ring);
}

/* ADA: Reduced motion */
@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;
  }
  .cw-reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   SHARED COMPONENTS
   ========================================================================== */

.cw-section-tag {
  font-family: var(--cw-font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cw-gray);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cw-section-tag::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--cw-navy);
}

.cw-section-title {
  font-family: var(--cw-font-heading);
  font-weight: 600;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.18;
  color: var(--cw-navy);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.cw-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--cw-font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 40px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s;
  border: 2px solid transparent;
}
.cw-btn::after {
  content: '\2192';
  transition: transform 0.3s;
}
.cw-btn:hover::after {
  transform: translateX(4px);
}

.cw-btn-primary {
  color: var(--cw-white);
  background: var(--cw-navy);
  border-color: var(--cw-navy);
}
.cw-btn-primary:hover {
  background: var(--cw-navy-hover);
  border-color: var(--cw-navy-hover);
  box-shadow: 0 8px 32px rgba(0,0,129,0.35);
  color: var(--cw-white);
}

.cw-btn-white {
  color: var(--cw-navy);
  background: var(--cw-white);
  border-color: var(--cw-white);
}
.cw-btn-white:hover {
  background: transparent;
  color: var(--cw-white);
  box-shadow: 0 8px 32px rgba(255,255,255,0.1);
}

.cw-btn-outline {
  color: var(--cw-navy);
  background: transparent;
  border-color: var(--cw-navy);
}
.cw-btn-outline:hover {
  background: var(--cw-navy);
  color: var(--cw-white);
}

/* Reveal animation */
.cw-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.cw-reveal.cw-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   BLOCK 1: HERO
   ========================================================================== */

.cw-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.cw-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cw-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.cw-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,40,0.6) 0%, rgba(0,0,60,0.75) 40%, rgba(0,0,70,0.93) 100%);
}
.cw-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 48px 80px;
  max-width: 860px;
  animation: cwFadeUp 1s ease-out 0.3s both;
}
.cw-hero__tag {
  font-family: var(--cw-font-body);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cw-hero__tag::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.6);
}
.cw-hero__heading {
  font-family: var(--cw-font-heading);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.12;
  color: var(--cw-white);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.cw-hero__text {
  font-weight: 300;
  font-size: 20px;
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin-bottom: 40px;
}
.cw-hero__text p { margin: 0 0 16px; color: inherit; font-size: inherit; line-height: inherit; }
.cw-hero__text p:last-child { margin-bottom: 0; }
.cw-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@keyframes cwFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BLOCK 2: ABOUT / WHO WE ARE
   ========================================================================== */

.cw-about {
  padding: 120px 48px;
}
.cw-about__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.cw-about__left {
  position: sticky;
  top: 120px;
}
.cw-about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--cw-light-gray);
}
.cw-about__stat-number {
  font-family: var(--cw-font-heading);
  font-weight: 700;
  font-size: 42px;
  color: var(--cw-navy);
  line-height: 1;
}
.cw-about__stat-label {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cw-gray);
  margin-top: 6px;
  display: block;
}
.cw-about__text {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.9;
  color: var(--cw-text-body);
}
.cw-about__text p { margin: 0 0 24px; }
.cw-about__text p:last-child { margin-bottom: 0; }

/* ==========================================================================
   BLOCK 3: SERVICES
   ========================================================================== */

.cw-services {
  padding: 120px 48px;
  background: var(--cw-off-white);
}
.cw-services__header {
  max-width: 1200px;
  margin: 0 auto 64px;
}
.cw-services__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.cw-services__grid--cols-1 { grid-template-columns: 1fr; }
.cw-services__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }

.cw-service-card {
  background: var(--cw-white);
  padding: 56px 48px;
  border: 1px solid var(--cw-light-gray);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.cw-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--cw-navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.cw-service-card:hover::before { transform: scaleX(1); }
.cw-service-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,129,0.06);
  border-color: transparent;
}
.cw-service-card__icon {
  width: 52px; height: 52px;
  background: var(--cw-navy-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  color: var(--cw-navy);
  font-size: 24px;
}
.cw-service-card__icon img {
  width: 24px; height: 24px;
  object-fit: contain;
}
.cw-service-card__icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: var(--cw-navy);
}
.cw-service-card__title {
  font-family: var(--cw-font-heading);
  font-weight: 600;
  font-size: 30px;
  color: var(--cw-navy);
  margin: 0 0 12px;
}
.cw-service-card__desc {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--cw-gray);
  margin-bottom: 28px;
}
.cw-service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cw-service-card__list li {
  font-weight: 400;
  font-size: 16px;
  color: var(--cw-text-body);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}
.cw-service-card__list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--cw-navy);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
}
.cw-service-card__footer {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--cw-gray);
  padding-top: 20px;
  border-top: 1px solid var(--cw-light-gray);
}

/* ==========================================================================
   BLOCK 4: CTA BANNER
   ========================================================================== */

.cw-cta {
  background: var(--cw-navy);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 100px 48px;
}
.cw-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
}
.cw-cta__inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.cw-cta__heading {
  font-family: var(--cw-font-heading);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--cw-white);
  margin: 0 0 16px;
  line-height: 1.2;
}
.cw-cta__text {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
}
.cw-cta__text p { margin: 0 0 12px; color: inherit; font-size: inherit; line-height: inherit; }
.cw-cta__text p:last-child { margin-bottom: 0; }
.cw-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

/* ==========================================================================
   BLOCK 5: PAGE HEADER
   ========================================================================== */

.cw-page-header {
  background: var(--cw-navy);
  padding: 80px 48px 64px;
  position: relative;
  overflow: hidden;
}
.cw-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
}
.cw-page-header__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.cw-page-header .cw-section-tag {
  color: rgba(255,255,255,0.5);
}
.cw-page-header .cw-section-tag::before {
  background: rgba(255,255,255,0.35);
}
.cw-page-header__heading {
  font-family: var(--cw-font-heading);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--cw-white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ==========================================================================
   BLOCK 6: CONTACT INFO
   ========================================================================== */

.cw-contact {
  padding: 100px 48px 120px;
}
.cw-contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.cw-contact__col-title {
  font-family: var(--cw-font-heading);
  font-weight: 600;
  font-size: 30px;
  color: var(--cw-navy);
  margin: 0 0 36px;
  line-height: 1.2;
}

.cw-contact-item {
  margin-bottom: 28px;
}
.cw-contact-item__label {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cw-gray);
  margin-bottom: 8px;
}
.cw-contact-item__value {
  font-weight: 400;
  font-size: 18px;
  color: var(--cw-dark);
  line-height: 1.6;
  font-style: normal;
}
.cw-contact-item__value a {
  color: var(--cw-navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.cw-contact-item__value a:hover { border-bottom-color: var(--cw-navy); }

/* Staff cards */
.cw-staff-card {
  background: var(--cw-off-white);
  padding: 32px 36px;
  margin-bottom: 16px;
  border-left: 3px solid var(--cw-navy);
  transition: box-shadow 0.3s;
}
.cw-staff-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,129,0.06);
}
.cw-staff-card__role {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cw-gray);
  margin-bottom: 4px;
}
.cw-staff-card__content {
  font-family: var(--cw-font-heading);
  font-weight: 600;
  font-size: 22px;
  color: var(--cw-dark);
  line-height: 1.4;
}
.cw-staff-card__content p { margin: 0; }

/* ==========================================================================
   FOOTER (LIGHT VERSION)
   ========================================================================== */

.cw-footer {
  background: var(--cw-off-white);
  padding: 64px 48px 40px;
  border-top: 1px solid var(--cw-light-gray);
  color: var(--cw-text-body);
}
.cw-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.cw-footer .footer-top {
  display: grid;
  grid-template-columns: 1fr 0.8fr 2.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--cw-light-gray);
}
.cw-footer .footer-brand-name {
  font-family: var(--cw-font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cw-navy);
  line-height: 1.2;
  margin-bottom: 4px;
}
.cw-footer .footer-brand-sub {
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cw-gray);
  margin-bottom: 20px;
}
.cw-footer .footer-address {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cw-gray);
  font-style: normal;
}
.cw-footer .footer-col-title {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cw-navy);
  margin-bottom: 16px;
}
.cw-footer .footer-contact-item {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--cw-gray);
}
.cw-footer .footer-contact-item a {
  color: var(--cw-navy);
  text-decoration: none;
  transition: color 0.3s;
}
.cw-footer .footer-contact-item a:hover { color: var(--cw-navy-hover); }
.cw-footer .footer-accessibility {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.8;
  color: var(--cw-gray);
}
.cw-footer .footer-accessibility strong {
  color: var(--cw-navy);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.cw-footer .footer-accessibility a {
  color: var(--cw-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s;
}
.cw-footer .footer-accessibility a:hover { color: var(--cw-navy-hover); }
.cw-footer .footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cw-footer .footer-copy {
  font-weight: 300;
  font-size: 13px;
  color: var(--cw-gray);
}

/* ==========================================================================
   GENERATEPRESS HEADER OVERRIDES
   ========================================================================== */

/* --- HERO PAGES: Transparent overlay header --- */
.cw-has-hero .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent !important;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Transparent state — ALL text/links white */
.cw-has-hero .site-header:not(.cw-scrolled),
.cw-has-hero .site-header:not(.cw-scrolled) .site-title,
.cw-has-hero .site-header:not(.cw-scrolled) .site-title a,
.cw-has-hero .site-header:not(.cw-scrolled) .site-description,
.cw-has-hero .site-header:not(.cw-scrolled) .main-navigation a,
.cw-has-hero .site-header:not(.cw-scrolled) .main-navigation .menu-toggle,
.cw-has-hero .site-header:not(.cw-scrolled) .navigation-search input,
.cw-has-hero .site-header:not(.cw-scrolled) .nav-search-enabled .main-nav > ul > li.search-item a,
.cw-has-hero .site-header:not(.cw-scrolled) #site-navigation a,
.cw-has-hero .site-header:not(.cw-scrolled) .inside-header,
.cw-has-hero .site-header:not(.cw-scrolled) .inside-header a {
  color: #ffffff !important;
}

.cw-has-hero .site-header:not(.cw-scrolled) .main-navigation a:hover,
.cw-has-hero .site-header:not(.cw-scrolled) .inside-header a:hover {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Remove any GP background color on the inside-header */
.cw-has-hero .site-header:not(.cw-scrolled) .inside-header {
  background: transparent !important;
}

/* Scrolled state — solid white header */
.site-header.cw-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 #e8e8ec;
}

.site-header.cw-scrolled .inside-header {
  background: transparent !important;
}

/* Scrolled state — navy text */
.site-header.cw-scrolled .site-title,
.site-header.cw-scrolled .site-title a,
.site-header.cw-scrolled .site-description,
.site-header.cw-scrolled .main-navigation a,
.site-header.cw-scrolled #site-navigation a,
.site-header.cw-scrolled .inside-header a {
  color: #000081 !important;
}
.site-header.cw-scrolled .main-navigation a:hover,
.site-header.cw-scrolled .inside-header a:hover {
  color: #0000a8 !important;
}

/* --- NON-HERO PAGES: Normal sticky white header (includes page-header pages) --- */
body:not(.cw-has-hero) .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff !important;
  border-bottom: 1px solid #e8e8ec;
}

body:not(.cw-has-hero) .site-header .inside-header {
  background: transparent !important;
}

body:not(.cw-has-hero) .site-header .main-navigation a,
body:not(.cw-has-hero) .site-header .site-title a,
body:not(.cw-has-hero) .site-header .site-description,
body:not(.cw-has-hero) .site-header #site-navigation a,
body:not(.cw-has-hero) .site-header .inside-header a {
  color: #000081 !important;
}
body:not(.cw-has-hero) .site-header .main-navigation a:hover,
body:not(.cw-has-hero) .site-header .inside-header a:hover {
  color: #0000a8 !important;
}

/* Page-header block pages: remove GP default title and spacing above block */
.cw-has-page-header .page-header,
.cw-has-page-header .entry-header {
  display: none;
}

/* ==========================================================================
   LAST NAV ITEM AS BUTTON
   ========================================================================== */

.main-navigation .main-nav > ul > li:last-child > a,
.main-navigation .main-nav > ul > li:last-child > a:visited,
#site-navigation .main-nav > ul > li:last-child > a,
.menu .menu-item:last-child > a {
  border: 1.5px solid currentColor !important;
  padding: 10px 28px !important;
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  transition: all 0.35s;
}

/* Button — transparent header (hero pages, not scrolled) */
.cw-has-hero .site-header:not(.cw-scrolled) .main-navigation .main-nav > ul > li:last-child > a,
.cw-has-hero .site-header:not(.cw-scrolled) .main-navigation .main-nav > ul > li:last-child > a:visited,
.cw-has-hero .site-header:not(.cw-scrolled) #site-navigation .main-nav > ul > li:last-child > a {
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  background: none !important;
  background-color: transparent !important;
}
.cw-has-hero .site-header:not(.cw-scrolled) .main-navigation .main-nav > ul > li:last-child > a:hover,
.cw-has-hero .site-header:not(.cw-scrolled) .main-navigation .main-nav > ul > li:last-child > a:focus,
.cw-has-hero .site-header:not(.cw-scrolled) .main-navigation .main-nav > ul > li:last-child > a:active,
.cw-has-hero .site-header:not(.cw-scrolled) #site-navigation .main-nav > ul > li:last-child > a:hover {
  background-color: #ffffff !important;
  color: #000081 !important;
  border-color: #ffffff !important;
}

/* Button — scrolled state + all non-hero pages */
.site-header.cw-scrolled .main-navigation .main-nav > ul > li:last-child > a,
.site-header.cw-scrolled #site-navigation .main-nav > ul > li:last-child > a,
body:not(.cw-has-hero) .main-navigation .main-nav > ul > li:last-child > a,
body:not(.cw-has-hero) #site-navigation .main-nav > ul > li:last-child > a {
  border-color: #000081 !important;
  color: #000081 !important;
  background: none !important;
  background-color: transparent !important;
}
.site-header.cw-scrolled .main-navigation .main-nav > ul > li:last-child > a:hover,
.site-header.cw-scrolled .main-navigation .main-nav > ul > li:last-child > a:focus,
.site-header.cw-scrolled .main-navigation .main-nav > ul > li:last-child > a:active,
body:not(.cw-has-hero) .main-navigation .main-nav > ul > li:last-child > a:hover,
body:not(.cw-has-hero) .main-navigation .main-nav > ul > li:last-child > a:focus {
  background-color: #000081 !important;
  color: #ffffff !important;
  border-color: #000081 !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .cw-footer .footer-top { grid-template-columns: 1fr 1fr; }
  .cw-footer .footer-top > :last-child { grid-column: 1 / -1; }
  .cw-services__grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .cw-hero__content { padding: 0 24px 60px; }
  .cw-about { padding: 80px 24px; }
  .cw-about__inner { grid-template-columns: 1fr; gap: 40px; }
  .cw-about__left { position: static; }
  .cw-services { padding: 80px 24px; }
  .cw-services__grid { grid-template-columns: 1fr; }
  .cw-services__grid--cols-3 { grid-template-columns: 1fr; }
  .cw-service-card { padding: 40px 28px; }
  .cw-cta { padding: 80px 24px; }
  .cw-page-header { padding: 60px 24px 48px; }
  .cw-contact { padding: 60px 24px 80px; }
  .cw-contact__inner { grid-template-columns: 1fr; gap: 60px; }
  .cw-footer { padding: 48px 24px 32px; }
  .cw-footer .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .cw-footer .footer-top > :last-child { grid-column: auto; }
  .cw-footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Mobile nav: ensure button style is removed for hamburger menus */
  .main-navigation .main-nav > ul > li:last-child > a {
    border: none !important;
    padding: inherit !important;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .cw-about__stats { flex-direction: column; gap: 24px; }
  .cw-hero__heading { font-size: 32px; }
  .cw-hero__buttons { flex-direction: column; }
  .cw-cta__buttons { flex-direction: column; align-items: center; }
}
