/*
Theme Name: Skyline Surveyors 2026
Theme URI: https://www.webuseful.co.uk/
Author: Webuseful Solutions Ltd
Author URI: https://www.webuseful.co.uk/
Description: Bespoke WordPress theme for Skyline Surveyors
Version: 1.0

+THEME STYLES
+HEADER STYLES
+CAN WE CALL STYLES
+MENU STYLES
++SM MENU STYLES++
++LG MENU STYLES++
+MAIN CONTENT STYLES
+FORM STYLES
+FOOTER STYLES
+WORDPRESS STYLES
+PAGE STYLES


 Breakpoint	Class infix	Screen width
Extra small	(none)	< 576px
Small	sm	≥ 576px
Medium	md	≥ 768px
Large	lg	≥ 992px
Extra large	xl	≥ 1200px
Classes apply from the breakpoint and up
  col-sm-4 → applies at sm, md, lg, xl
  d-md-none → hides at md, lg, xl

Colours
blue #e61e2d  rgb(15, 112, 183)
--sl-blue-rgb: 15, 112, 183;
--sl-green-rgb: 125, 173, 83;
--sl-text rgb(29, 29, 31)
--header-blue-rgb: 204, 219, 236;
*/

/* +THEME STYLES */
:root {
  --sl-blue-rgb: 15, 112, 183;
  --sl-green-rgb: 125, 173, 83;
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.62);
  --glass-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  --header-blue-rgb: 204, 219, 236;
  --header-height-sm: 195px;
  --header-height-lg: 175px;
}

body {
  color: rgb(var(--sl-text));
  background-color: white;
  font-family: "Inter", Verdana, Tahoma, sans-serif;
  font-size: 1em;
  line-height: 1.4;
}

body .elementor-widget-text-editor {
  color: inherit;
}



a,
a:link,
a:visited {
  color: inherit;
}



/* +HEADER STYLES */
#header-wrap {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99;
  background-color: rgba(var(--header-blue-rgb), 0.8);
  padding-top: 35px;
  padding-bottom: 35px;

  border-bottom: 1px solid rgb(var(--sl-blue-rgb));
  transition:
    padding-top 0.5s ease,
    padding-bottom 0.5s ease;
}

.scrolled #header-wrap {
  padding-top: 15px;
  padding-bottom: 15px;
}

.glass-wrapper {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);

box-shadow:
    0 4px 34px rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -10px 20px rgba(0, 0, 0, 0.08);

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  transition:
    width 0.5s ease,
    box-shadow 0.5s ease,
    backdrop-filter 0.5s ease,
    -webkit-backdrop-filter 0.5s ease;
}

/* When JS adds .scrolled */
.scrolled .glass-wrapper {
  
  box-shadow:
    0 4px 22px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -8px 18px rgba(0, 0, 0, 0.08);
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .glass-wrapper {
    background: #ffffff;
  }
}

/* Glass wrapper */
#logo-glass-wrapper {
  width: 441px;
  aspect-ratio: 441 / 91;
  max-width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;

  transition:
    width 0.5s ease,
    box-shadow 0.5s ease,
    backdrop-filter 0.5s ease,
    -webkit-backdrop-filter 0.5s ease;
}

@media (max-width: 991.98px) {
  #logo-glass-wrapper {
    margin-left:auto;
    margin-right:auto
  }
}

.scrolled #logo-glass-wrapper {
  width: 220px; /* reduced size */
}



/* Logo image */
#sl-logo {
  max-width: 85%;
  max-height: 70%;
  height: auto;
  width: auto;
  display: block;
  margin-left:auto;
  margin-right:auto;

  transition:
    max-width 0.5s ease,
    max-height 0.5s ease,
    transform 0.5s ease;
}



/*CAN WE CALL YOU BLOCK*/
#can-we-call,
#phone-toggle-wrap {
  /*margin-top: 20px; */
  width: 130px;
  aspect-ratio: 2 / 1;
  max-width: 100%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
/*
  background: rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);

  box-shadow:
    0 4px 34px rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -10px 20px rgba(0, 0, 0, 0.08);

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
*/
  position: relative;
  overflow: hidden;
/*
  transition:
    width 0.5s ease,
    box-shadow 0.5s ease,
    backdrop-filter 0.5s ease,
    -webkit-backdrop-filter 0.5s ease; */
}


#can-we-call-logo {
  width: 83px;
  max-width: 78%;
  max-height: 78%;
  width: auto;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;

  transition:
    max-width 0.5s ease,
    max-height 0.5s ease,
    width 0.5s ease,
    transform 0.5s ease;
}

/* Scrolled state (matches #sl-logo behaviour) */

.scrolled #can-we-call {
  width: 98px;
}



#hdr-contacts {
  display: none;
}

@media (min-width: 992px) {
  #hdr-contacts {
    display: block;
    overflow: hidden;
    height: 33px;
    transition: height 0.5s;
    clear: both;
    color: rgb(var(--sl-blue-rgb));
    text-align: left;
  }
}
.scrolled #hdr-contacts {
  height: 0;
}

/*+CAN WE CALL STYLES*/
/* Popup container */
#call-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  width: min(360px, calc(100vw - 40px));
  z-index: 10000;

  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--glass-shadow);

  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);

  overflow: hidden;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

#call-popup.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#call-popup::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 160%;
  height: 120%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.35) 22%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 255, 255, 0) 65%
  );
  transform: rotate(-10deg);
  pointer-events: none;
  opacity: 0.85;
}

#call-popup::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(0, 0, 0, 0.08)
  );
  pointer-events: none;
}

#call-popup .popup-inner {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px;
}

/* Header row */
#call-popup .popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#call-popup .popup-title {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: rgb(var(--sl-blue-rgb));
}

#call-popup .popup-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.65);

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  font-size: 18px;
  font-weight: 700; /* bold X */
  line-height: 1; /* prevents vertical drift */
  color: rgba(0, 0, 0, 0.6);

  cursor: pointer;
  user-select: none;
}

#call-popup .popup-close:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Form */
#call-popup label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
}

#call-popup input[type="tel"],
#call-popup input[type="text"] {
  width: 100%;
  box-sizing: border-box;

  padding: 12px 12px;
  border-radius: 14px;

  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.75);

  outline: none;

  font-size: 14px;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#call-popup input:focus {
  border-color: rgba(var(--sl-blue-rgb), 0.55);
  box-shadow:
    0 0 0 4px rgba(var(--sl-blue-rgb), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* Button */
#call-popup button,
#call-popup input[type="submit"] {
  margin-top: 14px;
  width: 100%;

  padding: 12px 14px;
  border: 0;
  border-radius: 16px;

  background: rgb(var(--sl-blue-rgb));
  color: #fff;

  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;

  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

#call-popup button:hover {
  filter: brightness(1.04);
}

/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Optional reduced transparency fallback */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  #call-popup,
  #can-we-call {
    background: #ffffff;
  }
}

/* STYLES FOR < 992 PX */
/*++SM MENU STYLES++*/
@media (max-width: 991.98px) {
  #header-wrap {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #callback-wrap,
  #center-wrap {
    margin-top: 15px;
   }

   #can-we-call {
    margin-left:auto;
    margin-right:auto;
   }
  }
/* +MENU STYLES */

#menu-wrap {
  border-bottom: 3px solid rgb(var(--sl-blue-rgb));
  font-weight: bold;
}


#main-nav a[href$="#"]:hover {
  cursor: default;
}

/* STYLES FOR < 992 PX */
/*++SM MENU STYLES++*/
@media (max-width: 991.98px) {
  #phone-toggle-wrap { /*Shares the same styles as #can-we-call */
    height: 65px;
    margin-left:auto;
    margin-right:auto
  }

  

  #phone-toggle-wrap-2 {
    display: block;
    padding-top: 30px;
    padding-right: 30px;
    float: right;
  }

  

  #phone-toggle {
    cursor: pointer;
    width: 27px;
    
  }

#phone-toggle {
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
  margin: 0 auto 0 auto;
}

#phone-toggle .bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

#phone-toggle .bar1 {
  top: 0;
}

#phone-toggle .bar2 {
  top: 50%;
  transform: translateY(-50%);
}

#phone-toggle .bar3 {
  bottom: 0;
}

#phone-toggle.change .bar1 {
  transform: translateY(9px) rotate(45deg);
}

#phone-toggle.change .bar2 {
  opacity: 0;
}

#phone-toggle.change .bar3 {
  transform: translateY(-9px) rotate(-45deg);
}
  
  #nav-wrap {
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height-sm, 135px); /* set to your header height */
    width: 100vw;

    z-index: 9999;
  }
  
  ul#main-nav {
    padding: 0;
    margin: 0;
  }

  #main-nav ul.level2,
  #main-nav ul.sub-menu {
    display: none;
  }

  #main-nav li {
    list-style: none;
    font-size: 14px;
    float: none;
  }

  #main-nav > li {
    border-bottom: 1px solid #666;
    position: relative; /* so that the positioning of .l2-toggle works*/
  }

  ul.level2 li,
  ul.sub-menu li {
    border-top: 1px solid #666;
  }

  #main-nav a {
    display: block;
    text-decoration: none;
    font-size: 21px;
    min-height: 35px;
    line-height: 35px;
    margin: 3px;
    padding: 0 10px;
  }

  .l2-toggle {
    display: block;
    cursor: pointer;
    position: absolute;
    width: 20px;
    top: 0;
    right: 4%;
    color: #000;
    font-size: 21px;
    line-height: 35px;
    font-weight: 600;
    transition: all 0.4s ease-in-out;
  }

  .l2-toggle.change {
    transform: rotate(45deg);
  }
}

/* STYLES FOR > 992 PX - col-lg breakpoint in BootStrap */
/* ++LG MENU STYLES++*/
@media (min-width: 992px) {
  #phone-toggle-wrap,
  #phone-toggle-wrap-2 {
    display: none;
  }

  #main-nav {
    margin: 0;
    padding: 0;
  }

  .l2-toggle {
    display: none;
  }

  #main-nav ul {
    padding: 0;
  }

  #main-nav ul.level2,
  #main-nav ul.sub-menu {
    left: -999em;
    position: absolute;
    top: 37px;
    width: 200px;
    z-index: 99;
    background-color: rgba(var(--sl-blue-rgb), 0.1);
    padding: 10px 0 0 0;
    margin: 0;
  }

  #main-nav li {
    position: relative;
    list-style: none;
  }

  #main-nav a {
    display: block;
    text-decoration: none;
    height: 35px;
    line-height: 35px;
    margin: 3px 8px;
    padding: 3px 8px;
    font-weight: 600;
    font-size: 18px;

    background: rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.85),
      inset 0 -10px 20px rgba(0, 0, 0, 0.08),
      0 4px 24px rgba(0, 0, 0, 0.1);

    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);

    display: flex;
    align-items: center;
    justify-content: center;
  }

  #main-nav a:hover {
    box-shadow:
      0 4px 34px rgba(0, 0, 0, 0.22),
      inset 0 2px 0 rgba(255, 255, 255, 0.85),
      inset 0 -10px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 1);
    color: rgb(var(--sl-text)) !important;
  }

  #main-nav li li a {
    justify-content: left;
    margin: 6px 4px;
    font-weight: 400;
    height: 30px;
    font-size: 14px;
  }
  /*
#main-nav > li > a {
	border-bottom: 3px solid rgb(60,60,60);
}

#main-nav > li:hover > a ,
#main-nav > li.current-menu-item > a {
	border-bottom-color: rgb(var(--sl-green-rgb));
}

*/
  /*
#main-nav li li a {
	font-weight: 400;
	font-size: 14px;
	height: 24px;
	line-height: 24px;
}
*/

  #main-nav ul,
  #main-nav li,
  #main-nav a {
    float: left;
  }

  #main-nav .level2 li,
  #main-nav .level2 a {
    float: none;
  }

  #main-nav .sub-menu li,
  #main-nav .sub-menu a {
    float: none;
  }
  /*   
#main-nav .level2 li {
         border-right: none;
   }

#main-nav .sub-menu li {
         border-right: none;
   }
 */

  /*#main-nav li:hover > a ,*/
  #main-nav li.current-menu-item > a {
    text-decoration: none;
    color: rgb(var(--sl-green-rgb));
  }

  #main-nav li:hover > .level2 {
    left: 0;
  }
  #main-nav li:hover > .sub-menu {
    left: 0;
  }

  /*
#main-nav li:hover .level2 a:hover,
#main-nav li:hover .sub-menu a:hover,
#main-nav li .level2 a.current,
#main-nav li .sub-menu a.current,
 { 
	text-decoration: none;
	color: rgb(230,30,45);
	}
	
*/
} /* end of @media (min-width: 992px) */

/*
@media (min-width: 1200px) {
	#main-nav a {
		font-size: 15px;
	}
}
*/

/* +MAIN CONTENT STYLES */

#main-content {
  padding-top: var(--header-height-lg, 170px);
  min-height: 75vh;
}
@media (max-width: 991.98px) {
  #main-content {
    padding-top: calc(var(--header-height-sm, 135px) + 30px);
  }
}

#main-content h1 {
  font-size: 64px;
  line-height: 1.0625;
  font-weight: 600;
  letter-spacing: -0.009em;
  margin-bottom: 20px;
  margin-top: 0;
  color: rgb(var(--sl-blue-rgb));
}

#main-content h2 {
  font-size: 36px;
  line-height: 1.2222;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin-bottom: 15px;
  margin-top: 0;
  color: rgb(var(--sl-green-rgb));
}

#main-content h3 {
  font-size: 28px;
  line-height: 1.2857;
  font-weight: 600;
  letter-spacing: -0.007em;
  margin-bottom: 10px;
  margin-top: 0;
}

#main-content h4 {
  font-size: 22px;
  line-height: 1.3636;
  font-weight: 600;
  letter-spacing: -0.006em;
  margin-bottom: 10px;
  margin-top: 0;
}

#main-content ul {
  margin-bottom: 15px;
  margin-top: 0;
  padding-left: 20px;
}

#main-content li {
  padding-bottom: 5px;
  padding-top: 5px;
}

#main-content p {
  margin-bottom: 15px;
  margin-top: 0;
}

#main-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

#main-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  margin-top: 0;
}

#main-content table,
#main-content th {
  border: 1px solid rgb(200, 200, 200);
}

#main-content td {
  border: 1px solid rgb(200, 200, 200);
  padding: 5px;
}

#main-content th {
  border: 1px solid rgb(150, 150, 150);
  padding: 5px;
  background-color: rgb(240, 240, 240);
}

#main-content blockquote {
  border-left: 4px solid rgb(200, 200, 200);
  margin: 10px 0;
  padding-left: 10px;
  color: rgb(100, 100, 100);
  font-style: italic;
}

#main-content blockquote p {
  margin-bottom: 0;
  margin-top: 0;
}

#main-content iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

#main-content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

#main-content audio {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

#main-content figure {
  margin: 10px auto;
}

#main-content figcaption {
  text-align: center;
  font-size: 12px;
  color: rgb(100, 100, 100);
  margin-top: 5px;
}

#main-content hr {
  border: none;
  border-top: 1px solid rgb(200, 200, 200);
  margin: 20px 0;
}

#main-content pre {
  background-color: rgb(245, 245, 245);
  border: 1px solid rgb(200, 200, 200);
  padding: 10px;
  overflow-x: auto;
  margin: 10px 0;
}

#main-content code {
  font-family: monospace;
  background-color: rgb(245, 245, 245);
  border: 1px solid rgb(200, 200, 200);
  padding: 2px 4px;
}

#main-content a code {
  color: inherit;
  text-decoration: none;
}

#main-content a {
  text-decoration: underline;
}

#main-content a:hover {
  text-decoration: none;
}

#main-content a:visited,
#main-content a:active {
  color: inherit;
}

/* +FORM STYLES */

label {
  width: 150px;
}

input {
  /*	width: 250px; */
  margin-bottom: 5px;
  border: 1px solid #ccc;
  padding: 1px;
  color: #333;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 12px;
}

input[type="submit"] {
  font-family: "Inter", Verdana, Tahoma, sans-serif;
}

textarea {
  border: 1px solid #ccc;
  padding: 1px;
  color: #333;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 12px;
  line-height: 1.5em;
  /*	width : 250px; */
}

input:focus {
  background: #ddffff;
  color: #000;
}
input.submit:focus {
  background: #9fdacc;
  color: #fff;
}

.submit,
.wpcf7-submit {
  padding: 5px 10px;
  border: 1px solid #777;
  background-color: rgb(250, 250, 250);
  border-radius: 5px;
  font-size: 16px;

  /*	color: #000099;
      margin-top: 10px;
      background-color: #FFCC00;
      width : 150px; */
}

/* +FOOTER STYLES */

#footer-wrap {
  padding: 40px 0;
  font-size: 10px;
  text-align: center;
  background-color: rgba(var(--sl-green-rgb), 0.3);
  border-top: 1px solid rgb(var(--sl-green-rgb));
}
@media (max-width: 991.98px) {
  #footer-wrap {
    padding: 20px 0;
  }
  
}

#scroll-top {
  width: 50px;
  height: 50px;
  border-radius: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgb(var(--sl-green-rgb));
  font-weight: bold;
  color: white;
  font-size: 35px;

  text-decoration: none;
  position: fixed;
  bottom: 7px;
  right: 80px;
  display: block;
  opacity: 0;
  z-index: 100;
  transition: 0.5s;
}

.scrolled #scroll-top {
  opacity: 1;
  bottom: 75px;
}

#scroll-top:hover {
  text-decoration: none;
}

/* +WORDPRESS STYLES */

.wp-caption {
  text-align: center;
  max-width: 95%; /*WP adds a in-line style with a width, plus gets margin from alignleft/right */
}

.wp-caption img {
  max-width: 100%; /*WP adds a in-line style with a width */
}

.alignleft {
  float: left;
}

.alignright {
  float: right;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.alignleft {
  margin: 5px 20px 5px 0;
}

.wp-caption.alignleft {
  margin: 5px 10px 5px 0;
}

img.alignright {
  margin: 5px 0 5px 20px;
}

.wp-caption.alignright {
  margin: 5px 0 5px 10px;
}

img.aligncenter {
  margin: 5px auto;
}

img.alignnone {
  margin: 5px 0;
}

.textleft {
  text-align: left;
}
.textright {
  text-align: right;
}

/* +PAGE STYLES */
