/* =========================
   Complete stylesheet (Hero, Navbar, Services, Responsive)
   Drop-in replacement — includes #hero and services fixes
   ========================= */

/* Basic reset & sensible box model */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --accent: #38b6ff;
  --accent-2: #1e87c4;
  --text: #0b2228;
  --muted: #586169;
  --bg: #ffffff;
  --container-max: 1200px;
  --gap: 1rem;
  --side-max: 380px; /* max width for the image column */
  --radius: 8px;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.26);
}

/* Fluid base font size (scales between ~15px and ~18px) */
html { font-size: clamp(16px, 1.25vw, 16px); -webkit-text-size-adjust: 100%; }

/* Body */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Generic images responsive */


/* =========================
   Navbar (from original)
   ========================= */
.navbar {
  background: rgb(255, 255, 255);
  width: 100%;
  z-index: 50;
  box-shadow: none;
}

.navbar img {
	height: 80px;
}

@media (max-width: 768px) {
  .navbar img { height: 70px; }
}

/* Slightly larger nav links */
.navbar-nav .nav-link {
  font-size: 1.2rem; /* increased from 1.1rem */
  position: relative;
  transition: color 0.3s;
}

/* Underline hover effect */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #3877ff;
  transition: width 0.3s;
}
.navbar-nav .nav-link:hover::after { width: 100%; }

/* Push nav links a bit more to the right */
.navbar-nav { margin-left: 3rem; }

/* =========================
   Hero section
   ========================= */
#hero {
  background: url("images/shytt3.jpg") center/cover no-repeat;
  position: relative;
  min-height: 64vh; /* less tall than full screen */
  display: flex;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  align-items: center;
  overflow: hidden;
}

@media (max-aspect-ratio: 0.585) {
  #hero { min-height: 70vh }
}

#hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.685);
}

.text-shadow { text-shadow: 5px 5px 10px rgba(0,0,0,0.8); }

/* Hero tweaks for smaller screens */
@media (max-width: 768px) {
  #hero { background-position: 40% center; }
  #hero .overlay { background: rgba(0,0,0,0.589); }
}

/* container inside hero */
#hero .container { position: relative; z-index: 2; }

/* hero form */
.hero-form { border-radius: 15px; padding: 1.5rem; }

/* Lead text style used elsewhere */
.lead-text { font-size: 1.475rem; } /* ~22px */

@media (max-width: 768px) {
  .lead-text { font-size: 1.275rem; }
}

/* =========================
   Buttons (global)
   ========================= */
.btn-primary {
  font-size: 1.1rem;
  border-radius: 50px;
  padding: 0.7rem 2rem;
  box-shadow: 0 4px 12px rgba(56, 182, 255, 0.158);
  transition: all 0.3s ease;
  display: inline-block;
  background: linear-gradient(90deg,var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.btn-primary:hover { transform: scale(1.05); }

/* Hero button variant */
.hero-btn {
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  color: #fff;
  padding: 0.65rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

/* =========================
   Services - entire section + layout
   (includes fixes so images are contained and thumbs sit beside each other)
   ========================= */

/* Section base */
.ra-compact, .ra-tenant-compact {
  background: var(--bg);
  color: var(--text);
  padding: 28px 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica;
}

/* Outer section container */
#services-compact {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem;
  padding-left: 1rem;
  background: var(--bg);
}

/* Override Bootstrap's mt-5 on #services-compact for small screens */
@media (max-width: 576px) {
  #services-compact.mt-5 {
    margin-top: 1.25rem !important; /* reduce the Bootstrap mt-5 spacing on mobile */
    padding-top: 1.5rem;         /* optional: tighten top padding if needed */
  }

  /* keep heading spacing comfortable on mobile */
  #services-compact .svc-title {
    margin-bottom: 1.25rem; /* slightly less than desktop */
  }
}

/* Top level container: left content + right image column */
.ra-container {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
  flex-wrap: nowrap; /* prevent wrapping until breakpoint */
}

/* Left column: content (title, paragraphs, card, CTA) */
.ra-wrap {
  flex: 1 1 0;
  min-width: 0; /* prevents overflow from long lines */
  padding: 0 8px;
}

/* Right column: images */
.ra-side {
  flex: 0 0 32%;              /* base proportion */
  max-width: var(--side-max); /* absolute cap so images don't get huge */
  display: flex;
  flex-direction: column;
  gap: 0rem;
  align-items: flex-end;      /* align thumbnails to the right */
  padding-left: 40px;
  margin-top: 20px;
}

/* override any previous inline or conflicting image sizes to be responsive */
#services-compact img, .ra-side img, .ra-wrap img { max-width: 100%; height: auto; display: block; }

/* Big main image in the side column */
.ra-side .side-main {
  width: 80%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.322);
}

/* wrapper for the big image */
.side-main-wrapper {
  position: relative;
  display: inline-block;   /* shrink to image size */
}

.side-main-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}

/* overlay on top of big image */
.side-main-wrapper::before {
  content: "";
  position: absolute;
  width: 80%;
  margin: auto;
  inset: 0;
  background: rgba(56, 182, 255, 0.418); /* same blue accent, adjust opacity */
  mix-blend-mode: multiply;             /* optional: blends nicely with photo */
  border-radius: inherit;
  pointer-events: none;                 /* keep image clickable if needed */
}

@media (max-width: 576px) {
  #services-compact .ra-side .side-main {
    display: none !important;
  }

  #services-compact {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #services-compact .ra-wrap {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Thumbnail row: two images side-by-side, smaller than main image */
.ra-side .side-thumbs {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  margin-top: 20px;
  justify-content: flex-end;
}

/* Thumbnail captions under each image */
.side-thumbs .thumb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;           /* space between image and caption */
  width: calc((100% - 0.6rem) / 2); /* match thumbnail width logic */
  margin: 0;
}

.side-thumbs .thumb-caption {
  font-size: 0.9rem;
  color: var(--muted, #586169);
  line-height: 1;
  margin: 0;
}

/* Make sure thumbnails still respect max-width */
.side-thumbs .thumb-figure .side-thumb {
  width: 100%;
  max-width: 160px;
}

/* Each thumbnail takes roughly half the width */
.ra-side .side-thumb {
  width: calc((100% - 0.6rem) / 2);
  max-width: 160px; /* ensures thumbs remain noticeably smaller */
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* SERVICES content typography */
.svc-header { margin-bottom: 0.5rem; }
.svc-title {
  margin: 0 0 1.5rem 0;
  font-weight: 800;
  line-height: 1.06;
  font-size: clamp(2rem, 2.4vw, 2rem);
}
.brand {
  background: linear-gradient(90deg,var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.svc-intro {
  font-size: clamp(1.115rem, 1.6vw, 1.175rem);
  font-weight: 375;
  line-height: 1.5;
  color: #1c1c1c;
  margin: 0 0 1.5rem 0.25rem;
  max-width: 100%;
}
.middle-intro { margin-bottom: 1.5rem; } /* option to hide on narrow screens below */

/* Card and list */
.svc-card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  margin: auto;
  box-shadow: var(--shadow-soft);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  margin-top: 2rem;
}
.svc-sub {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--accent-2);
}
.svc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
  color: #16282b;
  line-height: 1.6;
}
.svc-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  font-size: 1rem;
}
.tick {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: 0 0 auto;
  margin-top: 3px;
}

/* Price group */
.price-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.price-inline {
  flex: 1 1 160px;
  min-width: 140px;
  background: #f6fbff;
  border: 1px solid rgba(56,182,255,0.12);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-weight: 700;
  color: #072229;
}
.price-label { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.2rem; }
.price-value { font-size: 1.05rem; font-weight: 700; }
.price-tenant { font-size: 0.82rem; font-weight: 650; }
.price-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }

/* Action / CTA */
.svc-action {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg,var(--accent), var(--accent-2));
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(56,182,255,0.10);
}
.btn-primary:hover {
  transform: translateY(-2px);
  transition: transform .14s ease;
}

/* general reset for headings/paragraphs */
h1,h2,h3,p,ul,ol { margin: 0; padding: 0; }

/* =========================
   Side summary & misc (kept from original where useful)
   ========================= */

.ra-row {
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 18px;
  align-items: start;
}
.side-summary {
  position: sticky;
  top: 96px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(56,182,255,0.035), rgba(255,255,255,0));
  border-left: 3px solid rgba(56,182,255,0.18);
  color: #12343b;
  font-size: 0.95rem;
  line-height: 1.45;
}
.sp-price { margin-bottom: 8px; }
.sp-label { font-size: 0.8rem; color: #596a70; }
.sp-value { font-weight: 800; font-size: 1.05rem; margin-top: 4px; }
.sp-mini { font-weight: 600; color: #6b7b81; font-size: 0.85rem; margin-left:6px; }
.sp-note { font-size: 0.82rem; color: #6b7b81; margin-top:6px; }
.sp-sep { border:0; height:1px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent); margin:10px 0; }
.sp-quick { margin:0; padding-left: 18px; color:#123; }
.sp-quick li{ margin-bottom:8px; }
.sp-cta{
  display:inline-block;
  margin-top:10px;
  padding:8px 10px;
  border-radius:8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color:#fff;
  text-decoration:none;
  font-weight:700;
  width:100%;
  text-align:center;
}

/* =========================
   Responsive breakpoints
   ========================= */

/* tablet / small laptop: reduce side column width */
@media (max-width: 1100px) {
  .ra-side { flex: 0 0 300px; max-width: 300px; }
  .ra-container { gap: 1rem; }
}

/* stack columns on narrower screens, images go under content */
@media (max-width: 900px) {
  .ra-container {
    flex-direction: column;
    gap: 1.25rem;
  }

  .ra-side {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    align-items: center; /* center images under text */
    padding-left: 0;
  }

  /* mobile-friendly main image cap */
  .ra-side .side-main {
    max-width: 720px;
    width: 100%;
  }

  .ra-side .side-thumbs { justify-content: center; }
  .ra-side .side-thumb {
    width: 45%;
    max-width: 220px;
  }
  #services-compact .ra-side .side-main {
    display: none !important;
  }

  /* optionally hide long middle paragraph to reduce height */
}

/* phones */
@media (max-width: 576px) {
  .svc-title { font-size: clamp(1.6rem, 4.4vw, 1.5rem); }
  .btn-primary { width: 100%; text-align: center; box-sizing: border-box; }
  .price-inline { width: 100%; min-width: 0; }
  .ra-side .side-thumb { width: 48%; max-width: 160px; }
  .middle-intro { display: none; }
}

/* =========================
   Misc small utilities / overrides
   ========================= */

/* ensure images never cause overflow */
.ra-side img, .ra-wrap img { max-width: 100%; height: auto; }

/* Highlight strong inside svc-intro */
.svc-intro strong { font-weight: 700; color: #0c82d1; }

/* checkmark mask fallback (from original) */
.checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #38b6ff;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M6.173 14.727L.6 9.154l1.414-1.414 4.16 4.16 8.68-8.68 1.414 1.414-10.095 10.093z"/></svg>') no-repeat center / contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M6.173 14.727L.6 9.154l1.414-1.414 4.16 4.16 8.68-8.68 1.414 1.414-10.095 10.093z"/></svg>') no-repeat center / contain;
}

/* final specificity bump to override older conflicting selectors if needed */
#services-compact .ra-container { display: flex; }
#services-compact .ra-wrap { flex: 1 1 0; min-width: 0; }
#services-compact .ra-side { flex: 0 0 32%; max-width: var(--side-max); }

/* End of stylesheet */


/* ---------- IMPORTANT: remove stray token "caroule" if present in your CSS ---------- */
/* If you have the literal word 'caroule' anywhere, delete that line. It can break parsing. */

/* Responsive carousel + stable height so thumbnails stay attached */
#services-compact .carousel-inner {
  width: 100%;
  aspect-ratio: 9/13;
  /* keeps a consistent, responsive height (16:9) and caps it at 480px */
  max-height: 480px;
  height: auto !important;    /* overrides inline 480px !important if present in markup */
  overflow: hidden;
}

/* Make carousel images fill the area and preserve cover behavior */
#services-compact .carousel-item img,
#services-compact .carousel-item .d-block.w-100 {
  width: 100%;
  height: 100% !important;    /* ensure it fills carousel-inner */
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Reduce the gap between the carousel and thumbs, and keep thumbs aligned */
#services-compact .side-thumbs {
  margin-top: 3rem; /* bring thumbs closer to carousel */
  justify-content: flex-end; /* keep original right-aligned layout on wide screens */
  gap: 0.6rem;
}

/* Keep thumbnails visually connected to the carousel even when the carousel shrinks */
#services-compact .side-thumbs .thumb-figure {
  align-items: center;
  text-align: center;
  width: calc((100% - 0.6rem) / 2);
}

/* ---------- Hide right-side on small screens ---------- */
/* Change the max-width value to whatever breakpoint you want (e.g. 720px, 576px) */
@media (max-width: 900px) {
  .ra-side {
    display: none !important; /* hide side column on mobile */
  }

  /* Accessible note: update aria-hidden in HTML to true when hiding with CSS.
     CSS can't change attributes — so if you want to fully hide from assistive tech,
     set aria-hidden="true" on the <aside> in your HTML or toggle with JS. */

  /* Adjust content column padding so it uses full width when side is hidden */
  .ra-wrap { padding-left: 0.5rem; padding-right: 0.5rem; }
}

/* ---------- Further small responsive adjustments ---------- */
@media (max-width: 900px) {
  /* When stacked, center thumbs under the (now-stacked) carousel */
  .ra-side { align-items: center; padding-left: 0; }
  .ra-side .side-thumbs { justify-content: center; margin-top: 0.75rem; }
  .ra-side .side-thumb { width: 45%; max-width: 220px; }
}

/* If you prefer to hide earlier (phones only), use 576px instead of 720px above. */



/* Contact section that matches the theme variables (uses --accent / --accent-2) */
.contact-section {
  /*background: linear-gradient(180deg, rgba(56,182,255,0.06), rgba(30,135,196,0.03));*/
  padding: 32px 16px;
  color: var(--text);
  border-radius: 12px;
  margin: auto;
}

/* inner container: stacked single column, max-width to match site */
.contact-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Title */
.contact-title {
  margin-bottom: 0.25rem;
}

/* sub header */
.contact-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.2;
}

/* contact methods (phone / email) stacked */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* each contact line is a link (tel: / mailto:) */
.contact-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 0.6rem 0.2rem;
  border-radius: 10px;
  width: 100%;
}

/* inline icon */
.contact-line .icon {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  color: var(--accent-2);
  display: block;
}
.contact-text { font-size: 1rem; color: #072229; }

/* form: stacked inputs, full width */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.6rem;
}

.contact-form img {
  width: 180px; /* adjust to your logo */
  height: auto;
  margin-bottom: 2rem;
}

@media (max-width: 1100px) {
  .contact-logo {
    display: none;
  }
}

.contact-form textarea {
  resize: vertical;
  max-height: 300px; /* adjust to your liking */
}

/* inputs / textarea styles */
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.4rem 1rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(6, 22, 25, 0.603);
  background: #fff;
  resize: vertical;
  outline: none;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
  font-weight: 400;
  color: var(--text);
}

/* textarea slightly larger feel */
.contact-form textarea { font-size: 1rem; line-height: 1.5; }

/* focus state using your accent */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(8,130,210,0.75);
  box-shadow: 0 6px 18px rgba(8,130,210,0.08);
}

/* submit button uses existing .btn-primary but we keep a little spacing */
.contact-submit {
  margin-top: 0.3rem;
  align-self: flex-start; /* keep button width to content on desktop */
  padding: 0.7rem 1.4rem;
  border: none;
}

/* small helper / note text */
.contact-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

.contact-checkboxes {
  border: none; /* no default fieldset border */
  padding: 0;
}

.contact-checkboxes legend {
  font-weight: 625;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: var(--text);
  font-size: 1rem;
  width: fit-content;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: var(--text);
  font-size: 1rem;
  width: fit-content;
}

.checkbox-line input[type="checkbox"] {
  accent-color: var(--accent-2); /* makes the checkbox blue */
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.checkbox-inline input[type="checkbox"] {
  accent-color: var(--accent-2); /* makes the checkbox blue */
  width: 18px;
  height: 18px;
  border-radius: 4px;
}


.sr-only {
  margin-bottom: -0.6rem;
  font-weight: 625;
  font-size: 1rem;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .contact-inner { padding: 0 0.25rem; }
  .contact-submit { width: 100%; align-self: stretch; }
}



.site-footer {
  background: #ffffff;
  color: #222;
  padding: 3rem 2.5rem 1.8rem;
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  border-top: 1px solid #0077b721;
}

.footer-container {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
}

.footer-logo {
  width: 140px;
  margin-bottom: 1rem;
}

.footer-description {
  color: #333;
  margin-bottom: 0.8rem;
  max-width: 340px;
}

.footer-yid {
  color: #555;
  font-size: 0.9rem;
}

.footer-column h3 {
  color: #0078b7;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.footer-contact,
.footer-services {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact li,
.footer-services li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}
