/*
Theme Name: ASGS
Description: Custom WordPress theme for Avaneesh Security & General Services.
Author: Designing Artz
Author URI: https://designingartz.com/
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: asgs
*/

body { margin: 0; background: white; }
.asgs-site {
  --navy: #122337;
  --ink: #182b3c;
  --muted: #4b5b66;
  --green: #175d4d;
  --mint: #bcf2cd;
  --line: #dce6e5;
  --content: 1180px;
  color: var(--ink);
  background: white;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.asgs-site *, .asgs-site *::before, .asgs-site *::after { box-sizing: border-box; }
.asgs-site h1, .asgs-site h2, .asgs-site h3, .asgs-site p, .asgs-site ul, .asgs-site ol { margin: 0; }
.asgs-site h1, .asgs-site h2, .asgs-site h3 {
  font-family: inherit; color: inherit; font-weight: 750; line-height: 1.08; letter-spacing: -.045em;
}
.asgs-site h1 { font-size: clamp(2.6rem, 5.15vw, 4.72rem); max-width: 14ch; }
.asgs-site h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); max-width: 19ch; }
.asgs-site h3 { font-size: 1.3rem; letter-spacing: -.025em; }
.asgs-site a { color: inherit; text-decoration: none; }
.asgs-site a:focus-visible { outline: 3px solid #36a881; outline-offset: 4px; }
.asgs-site img { display: block; max-width: 100%; }
.asgs-skip { position: absolute; z-index: 100; left: 1rem; top: 1rem; transform: translateY(-200%); background: white; padding: .6rem 1rem; }
.asgs-skip:focus { transform: none; }
.asgs-wrap { width: min(var(--content), calc(100% - 2 * clamp(20px, 5vw, 72px))); margin-inline: auto; }
.asgs-topline { background: #102033; color: #dce8ef; font-size: .8rem; font-weight: 550; }
.asgs-topline .asgs-wrap, .asgs-navbar .asgs-wrap, .asgs-footer .asgs-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.asgs-topline .asgs-wrap { min-height: 36px; }
.asgs-navbar { background: white; color: var(--ink); }
.asgs-navbar .asgs-wrap { min-height: 78px; }
.asgs-brand { display: flex; gap: 10px; align-items: center; font-size: 1.55rem; letter-spacing: .07em; white-space: nowrap; }
.asgs-brand img { object-fit: contain; width: 45px; height: 45px; }
.asgs-navbar nav, .asgs-navbar .asgs-menu { display: flex; flex-wrap: wrap; gap: clamp(15px, 3vw, 36px); font-size: .91rem; font-weight: 650; }
.asgs-navbar .asgs-menu { list-style: none; padding: 0; }
.asgs-site nav a:hover, .asgs-topline a:hover, .asgs-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.asgs-site:not(.asgs-home) .asgs-navbar [aria-current=page] { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.asgs-site .asgs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: 50px;
  padding: .75rem 1.12rem; background: var(--mint); color: #102a23; border: 1px solid transparent;
  border-radius: 7px; font-weight: 750; font-size: .92rem; line-height: 1.25; text-align: center;
}
.asgs-site .asgs-btn:hover { background: #a5e8ba; }
.asgs-site .asgs-nav-cta { background: var(--green); color: white; min-height: 42px; }
.asgs-site .asgs-nav-cta:hover { background: #134c40; }
.asgs-hero { color: white; background: var(--navy); }
.asgs-hero-grid { display: grid; grid-template-columns: 1fr .92fr; align-items: stretch; gap: clamp(18px, 4vw, 52px); padding-block: clamp(32px, 5vw, 68px); }
.asgs-hero-copy { align-self: center; padding-block: 14px; }
.asgs-site .asgs-kicker { font-size: .78rem; text-transform: uppercase; font-weight: 800; letter-spacing: .105em; color: var(--green); margin-bottom: 13px; }
.asgs-hero .asgs-kicker, .asgs-contact .asgs-kicker { color: var(--mint); }
.asgs-site .asgs-hero-desc { color: #deebee; font-size: clamp(1rem, 1.8vw, 1.18rem); margin-top: 22px; max-width: 43ch; }
.asgs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.asgs-site .asgs-outline { background: transparent; color: white; border-color: #8294a2; }
.asgs-site .asgs-outline:hover { background: #273e51; }
.asgs-hero-photo { position: relative; overflow: hidden; border-radius: 12px; min-height: 410px; background: #284356; }
.asgs-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 88% center; position: absolute; inset: 0; }
.asgs-proof { background: #e9f4ef; color: #15382c; border-bottom: 1px solid #dce9e4; }
.asgs-proof .asgs-wrap { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 21px; gap: 20px; }
.asgs-proof strong, .asgs-proof span { display: block; }
.asgs-proof strong { font-size: 1.02rem; }
.asgs-proof span { font-size: .85rem; color: #3e5b50; }
.asgs-section { padding-block: clamp(52px, 8vw, 96px); scroll-margin-top: 16px; }
.asgs-section-head { display: grid; grid-template-columns: 1.35fr .65fr; gap: 25px; align-items: end; margin-bottom: 32px; }
.asgs-section-head > p, .asgs-card p, .asgs-about p, .asgs-locations address { color: var(--muted); }
.asgs-cards, .asgs-location-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.asgs-card { min-height: 184px; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 9px; padding: clamp(16px, 2vw, 25px); background: white; }
.asgs-card p, .asgs-process p { margin-top: 10px; font-size: .94rem; }
.asgs-clients { background: #f2f6f7; padding-block: 30px; }
.asgs-clients h2 { font-size: .95rem; letter-spacing: 0; max-width: none; text-align: center; }
.asgs-clients ul { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin-top: 18px; }
.asgs-clients li { display: grid; place-items: center; background: white; border-radius: 7px; min-height: 78px; }
.asgs-clients img { width: min(70px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; }
.asgs-client-viewport { overflow: hidden; }
.asgs-clients.is-rotating ul { --asgs-visible: 7; display: flex; }
.asgs-clients.is-rotating li { flex: 0 0 calc((100% + 12px) / var(--asgs-visible) - 12px); min-width: 0; }
.asgs-client-pause { display: block; margin: 10px 0 0 auto; padding: 3px 9px; border: 1px solid #c5d1d5; border-radius: 5px; background: transparent; color: var(--ink); font: inherit; font-size: .76rem; cursor: pointer; }
.asgs-client-pause[hidden] { display: none; }
.asgs-client-pause:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.asgs-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 7vw, 100px); align-items: start; }
.asgs-about-grid > div > p:last-child { margin-top: 18px; max-width: 49ch; }
.asgs-process { list-style: none; padding: 0; }
.asgs-process li { border-top: 1px solid var(--line); padding: 15px 0 19px; }
.asgs-process li:last-child { border-bottom: 1px solid var(--line); }
.asgs-locations { background: #f2f8f5; }
.asgs-location-grid { margin-top: 28px; }
.asgs-location-grid article { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 20px; }
.asgs-site .asgs-city-label { font-size: .73rem; color: var(--green); font-weight: 750; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.asgs-locations address { font-style: normal; font-size: .9rem; margin-top: 9px; }
.asgs-contact { background: #174438; color: white; padding-block: clamp(42px, 6vw, 75px); scroll-margin-top: 16px; }
.asgs-contact .asgs-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.asgs-contact h2 { max-width: none; }
.asgs-contact h2 + p { margin-top: 12px; color: #ddede7; }
.asgs-contact-links { display: grid; gap: 10px; justify-items: center; flex: none; }
.asgs-contact-links > a:last-child { font-size: .91rem; text-decoration: underline; text-underline-offset: 4px; }
.asgs-footer { background: var(--navy); color: #dbe8ee; padding-block: 20px; font-size: .83rem; }
.asgs-standard article + article { margin-top: 32px; }
.asgs-standard p { margin-top: 1em; }
.asgs-standard a { text-decoration: underline; }

/* About Us */
.asgs-company-page .asgs-hero-photo { min-height: 350px; }
.asgs-company-page .asgs-hero-photo img, .asgs-service-page .asgs-hero-photo img { object-position: center; }
.asgs-company-page .asgs-hero-desc { max-width: 47ch; }
.asgs-company-purpose { background: #f2f8f5; }
.asgs-company-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 30px; }
.asgs-company-cards article { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 9px; background: white; }
.asgs-company-cards h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
.asgs-company-cards p { color: var(--muted); margin-top: 13px; max-width: 53ch; }
.asgs-company-sectors { padding-block: 32px; background: #e9f4ef; color: #15382c; }
.asgs-company-sectors .asgs-wrap { display: grid; grid-template-columns: minmax(180px, .75fr) 2fr; align-items: center; gap: 20px; }
.asgs-company-sectors h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); max-width: none; }
.asgs-company-sectors ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.asgs-company-sectors li { padding: 5px 12px; background: white; border-radius: 5px; font-size: .85rem; }

/* Services */
.asgs-service-page .asgs-hero-photo { min-height: 330px; }
.asgs-service-page .asgs-hero-desc { max-width: 49ch; }
.asgs-service-index { background: #e9f4ef; border-bottom: 1px solid #dce9e4; padding-block: 18px; }
.asgs-service-index .asgs-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.asgs-service-index a { display: inline-flex; align-items: center; min-height: 40px; border-radius: 6px; background: white; border: 1px solid var(--line); color: #15382c; padding: 5px 13px; font-size: .89rem; font-weight: 650; }
.asgs-service-index a:hover { border-color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.asgs-service-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.asgs-service-details article { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; scroll-margin-top: 54px; background: white; }
.asgs-service-details article:target { outline: 2px solid var(--green); outline-offset: 2px; }
.asgs-service-details article > img { width: 100%; height: auto; aspect-ratio: 2.15; object-fit: cover; background: #eef4f1; }
.asgs-service-detail { padding: clamp(17px, 2vw, 27px); border-top: 3px solid var(--green); }
.asgs-service-detail h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.18; }
.asgs-service-detail p { color: var(--muted); margin-top: 12px; }
.asgs-service-detail ul { padding-left: 1.1em; margin-top: 17px; font-size: .92rem; color: var(--muted); }
.asgs-service-detail li + li { margin-top: 7px; }
.asgs-service-detail li::marker { color: var(--green); }

/* Contact Us */
.asgs-contact-page .asgs-hero { padding-block: clamp(44px, 7vw, 92px); }
.asgs-contact-page .asgs-hero h1 { max-width: none; }
.asgs-contact-page .asgs-hero-desc { max-width: 56ch; }
.asgs-enquiry { background: #f2f8f5; }
.asgs-enquiry-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 4vw, 52px); }
.asgs-enquiry-form, .asgs-direct { background: white; border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 4vw, 40px); }
.asgs-enquiry-form p, .asgs-direct p { margin-top: 12px; color: var(--muted); }
.asgs-direct dl { margin: 20px 0 0; }
.asgs-direct dt { border-top: 1px solid var(--line); padding-top: 13px; font-size: .8rem; font-weight: 750; color: var(--green); }
.asgs-direct dd { margin: 3px 0 14px; }
.asgs-site .asgs-direct a, .asgs-site .asgs-map-link { color: var(--green); text-decoration: underline; text-underline-offset: 4px; font-weight: 650; }
.asgs-direct address { font-style: normal; }
.asgs-map-link { display: inline-block; margin-top: 10px; font-size: .84rem; }
.asgs-enquiry-form div.wpforms-container { margin: 16px 0 0; }
.asgs-enquiry-form div.wpforms-container .wpforms-field { padding: 8px 0; }
.asgs-enquiry-form div.wpforms-container .wpforms-field input, .asgs-enquiry-form div.wpforms-container .wpforms-field textarea { max-width: 100%; width: 100%; border-radius: 6px; }
.asgs-enquiry-form div.wpforms-container button[type=submit] { background: var(--green); color: white; border-radius: 7px; font-weight: 700; }
.asgs-enquiry-form div.wpforms-container button[type=submit]:hover { background: #134c40; }
.asgs-contact-page .asgs-locations { background: white; }

@media (max-width: 900px) {
  .asgs-cards, .asgs-location-grid, .asgs-service-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asgs-hero-photo { min-height: 360px; }
}
@media (max-width: 780px) {
  .asgs-enquiry-grid { grid-template-columns: 1fr; }
}
@media (max-width: 670px) {
  .asgs-navbar .asgs-wrap { flex-wrap: wrap; gap: 9px 12px; padding-block: 10px; }
  .asgs-navbar nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
  .asgs-navbar .asgs-menu { width: 100%; justify-content: space-between; }
  .asgs-navbar nav, .asgs-navbar .asgs-menu { gap: 8px; }
  .asgs-topline .asgs-wrap { gap: 8px; font-size: .69rem; }
  .asgs-topline a { white-space: nowrap; }
  .asgs-hero-grid, .asgs-section-head, .asgs-about-grid, .asgs-company-cards, .asgs-company-sectors .asgs-wrap, .asgs-service-details { grid-template-columns: 1fr; }
  .asgs-hero-photo { min-height: 240px; aspect-ratio: 1.5; }
  .asgs-company-page .asgs-hero-photo, .asgs-service-page .asgs-hero-photo { min-height: 220px; }
  .asgs-proof .asgs-wrap { grid-template-columns: 1fr; gap: 10px; }
  .asgs-proof .asgs-wrap > div + div { border-top: 1px solid #ccded5; padding-top: 9px; }
  .asgs-clients ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
  .asgs-clients.is-rotating ul { --asgs-visible: 4; gap: 12px; }
  .asgs-contact .asgs-wrap, .asgs-footer .asgs-wrap { flex-direction: column; align-items: flex-start; }
  .asgs-contact-links { justify-items: start; }
}
@media (max-width: 410px) {
  .asgs-cards, .asgs-location-grid { grid-template-columns: 1fr; }
  .asgs-card { min-height: 0; }
}
