/*
 Theme Name: GeneratePress Child
 Theme URI: https://generatepress.com
 Description: Default GeneratePress child theme
 Author: Tom Usborne
 Author URI: https://tomusborne.com
 Template: generatepress
 Version: 0.1
*/

/* =========================================================
   AKS PEST CONTROL
   PREMIUM LIGHTWEIGHT HEADER
========================================================= */

:root {
    --aks-forest: #1f4632;
    --aks-forest-dark: #163524;
    --aks-canopy: #2f6a47;
    --aks-amber: #d98e2b;
    --aks-amber-dark: #b8741c;
    --aks-bone: #faf8f3;
    --aks-ink: #202821;
    --aks-mist: #e7e2d6;
    --aks-white: #ffffff;
    --aks-header-height: 72px;
}

.aks-site-header,
.aks-site-header * {
    box-sizing: border-box;
}

.aks-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.aks-skip-link:focus {
    left: 0;
    padding: 10px 16px;
    background: var(--aks-forest);
    color: #fff;
    z-index: 99999;
}

.aks-top-rail {
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--aks-forest),
        var(--aks-canopy) 55%,
        var(--aks-amber)
    );
}

.aks-site-header {
    width: 100%;
    background: var(--aks-white);
    border-bottom: 1px solid var(--aks-mist);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.admin-bar .aks-site-header {
    top: 32px;
}

.aks-header-inner {
    width: 100%;
    max-width: 1400px;
    min-height: var(--aks-header-height);
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ---------- LOGO (70px size) ---------- */
.aks-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    max-width: 180px;           /* tighter container */
    color: var(--aks-forest);
    text-decoration: none;
}

.aks-logo:hover {
    color: var(--aks-forest);
}

.aks-logo-img {
    display: block;
    height: 70px;               /* Fixed logo height as requested */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

/* Old text‑based logo elements (kept for compatibility) */
.aks-logo-mark {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--aks-forest);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

}

.aks-logo-text small {
    display: block;
    margin-top: 4px;
    color: var(--aks-canopy);
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ---------- NAVIGATION ---------- */
.aks-primary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.aks-nav-list {
    list-style: none;
    display: flex;
    align-items: stretch;
    gap: 1px;
    margin: 0;
    padding: 0;
}

.aks-nav-list > li {
    position: relative;
    display: flex;
    margin: 0;
}

.aks-nav-link,
.aks-nav-summary {
    height: var(--aks-header-height);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-bottom: 3px solid transparent;
    color: var(--aks-ink);
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
}

.aks-nav-summary::-webkit-details-marker {
    display: none;
}

.aks-nav-link:hover,
.aks-nav-summary:hover,
.aks-nav-link:focus-visible,
.aks-nav-summary:focus-visible {
    color: var(--aks-forest);
    border-bottom-color: var(--aks-amber);
}

.aks-chevron {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

.aks-nav-dropdown[open] > .aks-nav-summary .aks-chevron {
    transform: rotate(180deg);
}

.aks-nav-dropdown {
    position: relative;
}

.aks-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 14px;
    background: var(--aks-bone);
    border: 1px solid var(--aks-mist);
    border-top: 3px solid var(--aks-amber);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 24px -8px rgba(20, 30, 20, .18);
    z-index: 100;
}

.aks-dropdown-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aks-dropdown-panel li {
    margin: 0;
}

.aks-dropdown-panel a {
    display: block;
    padding: 7px 9px;
    border-radius: 5px;
    color: var(--aks-ink);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    text-decoration: none;
}

.aks-dropdown-panel a:hover,
.aks-dropdown-panel a:focus-visible {
    background: #fff;
    color: var(--aks-forest);
}

.aks-simple {
    min-width: 220px;
}

.aks-mega {
    min-width: 520px;
    display: flex;
    gap: 28px;
    padding: 22px;
}

.aks-commercial-menu {
    left: auto;
    right: 0;
}

.aks-dropdown-col {
    flex: 1;
    min-width: 210px;
}

.aks-dropdown-col h3 {
    margin: 0 0 9px;
    color: var(--aks-amber-dark);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- CALL BUTTON ---------- */
.aks-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--aks-amber);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
}

.aks-header-cta:hover,
.aks-header-cta:focus {
    background: var(--aks-amber-dark);
    color: #fff;
}

.aks-header-cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.aks-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--aks-mist);
    border-radius: 8px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.aks-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--aks-forest);
}

.aks-mobile-panel {
    display: none;
}

.aks-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    background: var(--aks-amber);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* =========================================================
   TABLET & MOBILE
========================================================= */

@media (max-width: 1100px) {
    .aks-header-inner {
        min-height: 68px;
        padding: 0 18px;
    }
    .aks-primary-nav {
        display: none;
    }
    .aks-header-cta {
        margin-left: auto;
    }
    .aks-menu-toggle {
        display: inline-flex;
    }
    .aks-mobile-panel {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 8px 18px 30px;
        background: #fff;
        overflow-y: auto;
        z-index: 9998;
    }
    .admin-bar .aks-mobile-panel {
        top: 104px;
    }
    .aks-mobile-panel.aks-is-open {
        display: block;
    }
    body.aks-menu-open {
        overflow: hidden;
    }
    .aks-mobile-panel .aks-nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .aks-mobile-panel .aks-nav-list > li {
        display: block;
        border-bottom: 1px solid var(--aks-mist);
    }
    .aks-mobile-panel .aks-nav-link,
    .aks-mobile-panel .aks-nav-summary {
        width: 100%;
        height: auto;
        min-height: 52px;
        padding: 15px 4px;
        justify-content: space-between;
        border: 0;
        font-size: 14px;
    }
    .aks-mobile-panel .aks-dropdown-panel {
        position: static;
        width: 100%;
        min-width: 0;
        padding: 5px 5px 15px 12px;
        border: 0;
        border-top: 1px solid var(--aks-mist);
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    .aks-mobile-panel .aks-mega {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    .aks-mobile-panel .aks-dropdown-col {
        min-width: 0;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {
    .aks-header-inner {
        padding: 0 14px;
    }
    .aks-logo-img {
        height: 58px;           /* slightly smaller on mobile */
    }
    .aks-logo-mark {
        width: 36px;
        height: 36px;
    }
    .aks-logo-text {
        font-size: 16px;
    }
    .aks-logo-text small {
        font-size: 8px;
    }
    .aks-header-cta {
        display: none;
    }
    .aks-menu-toggle {
        margin-left: auto;
    }
}

@media (max-width: 782px) {
    .admin-bar .aks-site-header {
        top: 46px;
    }
    .admin-bar .aks-mobile-panel {
        top: 118px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aks-site-header * {
        transition: none !important;
    }
}
/* =========================================================
   AKS Pest Control — Footer Styles
   Pairs with footer.php. Load this AFTER the theme's main
   stylesheet — either via the enqueue snippet provided in
   chat, or pasted into Appearance → Customize → Additional CSS.
   ========================================================= */

.aks-pest-footer,
.akspc-floating-contact {
	--akspc-bg: #10241b;
	--akspc-text: #f1ede4;
	--akspc-text-muted: #a8bdae;
	--akspc-gold: #d9a441;
	--akspc-call: #c1440e;
	--akspc-whatsapp: #25d366;
	--akspc-border: rgba(241, 237, 228, 0.12);
	--akspc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.aks-pest-footer *,
.akspc-floating-contact * {
	box-sizing: border-box;
}

/* ---------- Main footer ---------- */
.aks-pest-footer {
	background: var(--akspc-bg);
	color: var(--akspc-text);
	font-family: var(--akspc-font);
	padding: 56px 24px 28px;
}

.akspc-inner {
	max-width: 1180px;
	margin: 0 auto;
}

.akspc-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--akspc-border);
}

/* ---------- Brand column ---------- */
.akspc-logo {
	display: inline-block;
	margin-bottom: 14px;
}
.akspc-logo img {
	display: block;
	border-radius: 8px;
}
.akspc-brand-name {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 2px;
	color: #fff;
}
.akspc-tagline {
	font-size: 13px;
	color: var(--akspc-gold);
	margin: 0 0 14px;
	letter-spacing: 0.02em;
}
.akspc-desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--akspc-text-muted);
	margin: 0;
	max-width: 34ch;
}

/* ---------- Column titles ---------- */
.akspc-col-title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--akspc-gold);
	margin: 0 0 18px;
}

/* ---------- Offices ---------- */
.akspc-office {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
}
.akspc-office:last-child {
	margin-bottom: 0;
}
.akspc-office .akspc-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--akspc-gold);
}
.akspc-office-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 2px;
}
.akspc-office p {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--akspc-text-muted);
	margin: 0;
}

/* ---------- Contact links ---------- */
.akspc-contact-link {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--akspc-text);
	text-decoration: none;
	margin-bottom: 16px;
	transition: color 0.15s ease;
}
.akspc-contact-link:last-child {
	margin-bottom: 0;
}
.akspc-contact-link .akspc-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--akspc-gold);
}
.akspc-contact-link:hover,
.akspc-contact-link:focus-visible {
	color: var(--akspc-gold);
}

/* ---------- Bottom bar ---------- */
.akspc-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 20px;
	padding-top: 20px;
	font-size: 12.5px;
	color: var(--akspc-text-muted);
}
.akspc-bottom p {
	margin: 0;
}
.akspc-credit a {
	color: var(--akspc-text-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.akspc-credit a:hover,
.akspc-credit a:focus-visible {
	color: var(--akspc-gold);
}

/* ---------- Floating Call / WhatsApp buttons ---------- */
.akspc-floating-contact {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.akspc-float-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
	transition: transform 0.15s ease;
}
.akspc-float-btn:hover,
.akspc-float-btn:focus-visible {
	transform: scale(1.07);
}
.akspc-float-btn svg {
	width: 26px;
	height: 26px;
}
.akspc-float-label {
	display: none;
}

.akspc-float-whatsapp {
	background: var(--akspc-whatsapp);
	position: relative;
}
.akspc-float-whatsapp::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--akspc-whatsapp);
	animation: akspc-pulse 2.2s ease-out infinite;
}
.akspc-float-call {
	background: var(--akspc-call);
}

@keyframes akspc-pulse {
	0% {
		transform: scale(1);
		opacity: 0.7;
	}
	100% {
		transform: scale(1.7);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.akspc-float-whatsapp::after {
		animation: none;
	}
	.akspc-float-btn {
		transition: none;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.akspc-grid {
		grid-template-columns: 1fr 1fr;
	}
	.akspc-col-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.aks-pest-footer {
		padding: 40px 18px 100px;
	}
	.akspc-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.akspc-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Floating buttons become a full-width bottom bar on mobile */
	.akspc-floating-contact {
		left: 0;
		right: 0;
		bottom: 0;
		flex-direction: row;
		gap: 0;
	}
	.akspc-float-btn {
		flex: 1;
		width: auto;
		height: 56px;
		border-radius: 0;
		gap: 8px;
		box-shadow: none;
	}
	.akspc-float-whatsapp::after {
		display: none;
	}
	.akspc-float-label {
		display: inline-block;
		font-size: 14px;
		font-weight: 600;
	}
	.akspc-float-btn svg {
		width: 20px;
		height: 20px;
	}
}