/*
Theme Name: Arctic Property Group
Theme URI: https://arcticpropertygroup.co.uk/
Author: Arctic Property Group Ltd
Description: A lightweight, responsive WordPress theme for Arctic Property Group Ltd. Designed for Hostinger-hosted WordPress installations.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: arctic-property-group
License: GNU General Public License v2 or later
*/

:root {
  --apg-ink: #050505;
  --apg-ink-soft: #111111;
  --apg-slate: #666666;
  --apg-silver: #d9d9d9;
  --apg-ice: #ffffff;
  --apg-ice-deep: #8a8a8a;
  --apg-paper: #f4f4f4;
  --apg-white: #ffffff;
  --apg-line: rgba(5, 5, 5, 0.14);
  --apg-radius: 22px;
  --apg-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
  --apg-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--apg-ink);
  background: var(--apg-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { color: #000; background: rgba(210, 210, 210, .8); }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; display: block; height: auto; left: 12px; top: 12px;
  width: auto; padding: 12px 16px; z-index: 100000; background: #fff; color: #111;
}

.container { width: min(calc(100% - 40px), var(--apg-content)); margin-inline: auto; }
.section { padding: 110px 0; }
.section--soft { background: var(--apg-paper); }
.section--dark { color: var(--apg-white); background: var(--apg-ink); }
.eyebrow {
  margin: 0 0 16px; color: var(--apg-ice-deep); font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.section-title { max-width: 780px; margin: 0; font-size: clamp(2.1rem, 4vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; }
.section-lead { max-width: 680px; margin: 24px 0 0; color: var(--apg-slate); font-size: 1.08rem; }
.section--dark .section-lead { color: #bdbdbd; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  padding: 0 22px; border: 1px solid transparent; border-radius: 999px; text-decoration: none;
  font-size: .93rem; font-weight: 750; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: var(--apg-ink); background: var(--apg-white); }
.btn--primary:hover { background: #d9d9d9; }
.btn--ghost { color: var(--apg-white); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--dark { color: var(--apg-white); background: var(--apg-ink); }
.btn--dark:hover { background: #2a2a2a; }
.btn svg { width: 17px; height: 17px; }

.site-header {
  position: sticky; top: 0; z-index: 999; color: var(--apg-white);
  background: rgba(0,0,0,.92); border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; min-width: 230px; }
.site-logo-link, .footer-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo-image { width: auto; height: 60px; max-width: 225px; object-fit: contain; }
.footer-logo-image { width: auto; height: 74px; max-width: 280px; object-fit: contain; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-name { font-size: .98rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.brand-sub { margin-top: 5px; color: #98a7b5; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; }
.custom-logo-link img { max-height: 60px; width: auto; }
.main-navigation ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: #d7d7d7; font-size: .88rem; font-weight: 700; text-decoration: none; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: #fff; }
.header-cta { white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #fff; background: transparent; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: .2s ease; }

.hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; color: var(--apg-white); background: var(--apg-ink); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.98) 0%, rgba(0,0,0,.90) 43%, rgba(0,0,0,.42) 72%, rgba(0,0,0,.74) 100%),
    url('assets/images/hero-architecture.svg') center right / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 180px;
  background: linear-gradient(to top, var(--apg-ink), transparent);
}
.hero-inner { position: relative; z-index: 1; padding: 100px 0 120px; }
.hero-copy { max-width: 760px; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(3.2rem, 7.2vw, 7.2rem); line-height: .92; letter-spacing: -.065em; }
.hero h1 span { color: #cfcfcf; }
.hero-lead { max-width: 620px; margin: 28px 0 0; color: #c8c8c8; font-size: clamp(1.02rem, 1.7vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 72px; color: #a8a8a8; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--apg-ice); }

.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: start; }
.intro-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.stat-card { min-height: 190px; padding: 28px; border: 1px solid var(--apg-line); border-radius: var(--apg-radius); background: var(--apg-white); }
.stat-card strong { display: block; font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.05em; }
.stat-card span { display: block; margin-top: 18px; color: var(--apg-slate); font-size: .9rem; }

.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-top: 52px; }
.service-card { position: relative; min-height: 340px; padding: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--apg-radius); background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); overflow: hidden; }
.service-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -70px; bottom: -90px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.service-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: var(--apg-ink); background: var(--apg-ice); }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin: 66px 0 14px; font-size: 1.35rem; }
.service-card p { margin: 0; color: #b9b9b9; font-size: .93rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px; margin-top: 55px; }
.process-item { padding-top: 22px; border-top: 1px solid var(--apg-line); }
.process-number { color: var(--apg-ice-deep); font-size: .78rem; font-weight: 850; letter-spacing: .16em; }
.process-item h3 { margin: 28px 0 12px; font-size: 1.18rem; }
.process-item p { margin: 0; color: var(--apg-slate); font-size: .93rem; }

.projects-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-top: 48px; }
.project-card { border: 1px solid var(--apg-line); border-radius: var(--apg-radius); overflow: hidden; background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--apg-shadow); }
.project-image { aspect-ratio: 4/3; overflow: hidden; background: #e2e2e2; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg,#dedede,#f2f2f2); }
.project-placeholder svg { width: 58%; opacity: .58; }
.project-body { padding: 26px; }
.project-type { margin: 0 0 10px; color: var(--apg-ice-deep); font-size: .73rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.project-card h3 { margin: 0; font-size: 1.28rem; }
.project-card h3 a { text-decoration: none; }
.project-card p { margin: 13px 0 0; color: var(--apg-slate); font-size: .9rem; }

.cta-panel { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; padding: 64px; border-radius: 30px; color: #fff; background: var(--apg-ink); overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; top: -250px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.035), 0 0 0 160px rgba(255,255,255,.018); }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.05em; }
.cta-panel p { margin: 22px 0 0; color: #bdbdbd; max-width: 620px; }
.cta-actions { display: flex; justify-content: flex-end; align-items: center; }

.page-hero { padding: 130px 0 90px; color: #fff; background: var(--apg-ink); }
.page-hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: -.055em; }
.page-hero p { max-width: 700px; margin: 24px 0 0; color: #bdbdbd; font-size: 1.08rem; }
.content-area { padding: 90px 0 120px; }
.entry-content { max-width: 820px; font-size: 1.02rem; }
.entry-content h2, .entry-content h3 { margin-top: 2.2em; line-height: 1.15; letter-spacing: -.025em; }
.entry-content h2 { font-size: 2rem; }
.entry-content a { color: #111; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content img { border-radius: 18px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-details { display: grid; gap: 28px; }
.contact-detail { padding-bottom: 24px; border-bottom: 1px solid var(--apg-line); }
.contact-detail span { display: block; margin-bottom: 8px; color: var(--apg-slate); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-detail a { text-decoration: none; font-weight: 760; }
.contact-form { padding: 36px; border: 1px solid var(--apg-line); border-radius: var(--apg-radius); background: var(--apg-paper); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-field { display: grid; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .82rem; font-weight: 780; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cfcfcf; border-radius: 10px; color: var(--apg-ink); background: #fff;
}
.form-field input:focus, .form-field textarea:focus { outline: 3px solid rgba(0,0,0,.14); border-color: #555; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-actions { margin-top: 20px; }
.form-notice { margin: 0 0 22px; padding: 14px 16px; border-radius: 10px; font-size: .9rem; }
.form-notice--success { color: #174f37; background: #def3e8; }
.form-notice--error { color: #7a2626; background: #f8dddd; }
.apg-hp { position: absolute !important; left: -9999px !important; }

.site-footer { color: #c7c7c7; background: #050505; }
.footer-main { display: grid; grid-template-columns: 1.15fr .85fr .75fr; gap: 70px; padding: 76px 0 58px; }
.footer-brand p { max-width: 430px; margin: 22px 0 0; color: #909090; font-size: .9rem; }
.footer-title { margin: 0 0 20px; color: #fff; font-size: .77rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #b0b0b0; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--apg-ice); }
.footer-meta { padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.10); color: #7d7d7d; font-size: .75rem; }
.footer-meta-inner { display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 1040px) {
  .header-cta { display: none; }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .container { width: min(calc(100% - 28px), var(--apg-content)); }
  .section { padding: 78px 0; }
  .menu-toggle { display: block; }
  .main-navigation { display: none; position: absolute; left: 14px; right: 14px; top: calc(100% + 10px); padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: #0e0e0e; box-shadow: var(--apg-shadow); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: grid; gap: 4px; }
  .main-navigation a { display: block; padding: 12px; }
  .hero { min-height: 700px; }
  .hero::before { background: linear-gradient(90deg,rgba(0,0,0,.98),rgba(0,0,0,.80)), url('assets/images/hero-architecture.svg') 66% center / cover no-repeat; }
  .hero-inner { padding: 90px 0 110px; }
  .hero-meta { margin-top: 54px; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-panel { grid-template-columns: 1fr; padding: 44px 32px; }
  .cta-actions { justify-content: flex-start; }
  .footer-main { gap: 45px; }
}
@media (max-width: 600px) {
  .brand { min-width: 0; }
  .site-logo-image { height: 48px; max-width: 180px; }
  .custom-logo-link img { max-height: 48px; }
  .brand-sub { display: none; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .services-grid, .process-grid, .project-grid, .intro-stat-grid, .form-grid, .footer-main { grid-template-columns: 1fr; }
  .projects-head { align-items: start; flex-direction: column; }
  .service-card { min-height: 300px; }
  .cta-panel { padding: 38px 24px; }
  .footer-meta-inner { flex-direction: column; }
}

/* ================================================================
   APG UNDER-CONSTRUCTION HOMEPAGE
   ================================================================ */
body.apg-holding-page {
  min-height: 100vh;
  color: #fff;
  background: #030303;
  overflow-x: hidden;
}
body.apg-holding-page.admin-bar .holding-site { min-height: calc(100vh - 32px); }
.apg-holding-page #wpadminbar { position: fixed; }

.holding-site {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 25%, rgba(255,255,255,.065), transparent 29%),
    radial-gradient(circle at 18% 88%, rgba(255,255,255,.035), transparent 34%),
    linear-gradient(135deg, #020202 0%, #080808 52%, #020202 100%);
}
.holding-site::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 47%, rgba(255,255,255,.025) 47.1% 47.25%, transparent 47.35% 100%);
}

.holding-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .20;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,.8), transparent 66%);
}

.holding-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  pointer-events: none;
}
.holding-orbit::before,
.holding-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: inherit;
}
.holding-orbit::before { inset: 11%; }
.holding-orbit::after { inset: 23%; }
.holding-orbit--one {
  width: min(66vw, 980px);
  aspect-ratio: 1;
  right: -28%;
  top: -39%;
}
.holding-orbit--two {
  width: min(31vw, 460px);
  aspect-ratio: 1;
  left: -16%;
  bottom: -23%;
}

.holding-content {
  width: min(100%, 940px);
  align-self: center;
  margin: auto;
  padding: clamp(42px, 7vw, 88px) 0;
  text-align: center;
}
.holding-logo {
  display: inline-block;
  width: min(76vw, 540px);
  text-decoration: none;
}
.holding-logo img {
  width: 100%;
  filter: drop-shadow(0 18px 42px rgba(0,0,0,.45));
}
.holding-divider {
  display: flex;
  justify-content: center;
  margin: clamp(35px, 5vw, 58px) 0 29px;
}
.holding-divider span {
  position: relative;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #bdbdbd, transparent);
}
.holding-divider span::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 50%;
  top: 50%;
  border: 1px solid #d3d3d3;
  background: #060606;
  transform: translate(-50%, -50%) rotate(45deg);
}
.holding-tagline {
  max-width: 720px;
  margin: 0 auto clamp(27px, 3.5vw, 36px);
  color: #f3f3f3;
  font-size: clamp(1rem, 2.15vw, 1.42rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .055em;
}
.holding-kicker {
  margin: 0 0 14px;
  color: #bcbcbc;
  font-size: clamp(.70rem, 1.3vw, .82rem);
  font-weight: 750;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.holding-content h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.1rem);
  font-weight: 760;
  line-height: .9;
  letter-spacing: -.062em;
  text-transform: uppercase;
}
.holding-intro {
  max-width: 680px;
  margin: clamp(24px, 3.5vw, 35px) auto 0;
  color: #a7a7a7;
  font-size: clamp(.98rem, 1.7vw, 1.13rem);
  line-height: 1.75;
}

.holding-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  max-width: 760px;
  margin: clamp(37px, 5vw, 52px) auto 0;
}
.holding-contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 3px 20px;
  min-width: 0;
  padding: 22px 23px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 3px;
  color: #fff;
  background: rgba(255,255,255,.035);
  text-align: left;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}
.holding-contact-card:hover,
.holding-contact-card:focus-visible {
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.075);
  transform: translateY(-3px);
}
.holding-contact-card:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.holding-contact-label {
  color: #898989;
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.holding-contact-value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(.91rem, 1.6vw, 1.06rem);
  font-weight: 650;
  letter-spacing: -.01em;
}
.holding-contact-card svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 21px;
  height: 21px;
  color: #a5a5a5;
  transition: transform .22s ease, color .22s ease;
}
.holding-contact-card:hover svg { color: #fff; transform: translateX(3px); }

.holding-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #686868;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 782px) {
  body.apg-holding-page.admin-bar .holding-site { min-height: calc(100vh - 46px); }
}
@media (max-width: 680px) {
  .holding-site { padding: 24px 20px; }
  .holding-content { padding: 48px 0; }
  .holding-logo { width: min(88vw, 430px); }
  .holding-content h1 { line-height: .94; }
  .holding-contact { grid-template-columns: 1fr; }
  .holding-contact-card { padding: 18px 19px; }
  .holding-footer { flex-direction: column; gap: 8px; text-align: center; }
  .holding-orbit--one { width: 105vw; right: -55%; top: -25%; }
  .holding-orbit--two { width: 68vw; left: -38%; bottom: -10%; }
}
@media (prefers-reduced-motion: reduce) {
  .holding-contact-card,
  .holding-contact-card svg { transition: none; }
}
