/* ==========================================================================
   Innovative Data Systems — theme over Arsha
   Palette: deep teal accent on white, dark pine header/footer,
   photo hero with a green-black overlay.
   ========================================================================== */

:root {
  --accent-color:   #0b5c5c;   /* deep teal: buttons, links, icons */
  --accent-hover:   #0e7373;
  --heading-color:  #10312b;   /* dark pine for headings */
  --default-color:  #3a4a47;   /* body text, slightly green-grey */
  --pine-black:     #0f1f1c;   /* header, footer, hero overlay */
  --pine-deep:      #163a34;   /* CTA band */
  --mist:           #f3f6f5;   /* light section background */
  --line:           #dbe4e1;
  --nav-hover-color: #7fd1c6;
  --nav-dropdown-hover-color: #0b5c5c;
}

.light-background { --background-color: var(--mist); }

.dark-background {
  --background-color: var(--pine-deep);
  --surface-color: #1e4a43;
}

body { -webkit-font-smoothing: antialiased; }

a { color: var(--accent-color); }
a:hover { color: var(--accent-hover); }

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #7fd1c6;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  --background-color: var(--pine-black);
  padding: 12px 0;
}
.header .logo { gap: 12px; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background:
    linear-gradient(135deg, #7fd1c6 0 50%, transparent 50%),
    var(--accent-color);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.header .sitename {
  font-family: var(--heading-font); font-weight: 600; font-size: 19px;
  color: #fff; letter-spacing: 0.2px;
}
.logo-sub { font-size: 12px; color: #9cb8b2; letter-spacing: 0.6px; }

.header .btn-getstarted, .header .btn-getstarted:focus {
  background: transparent; border: 1.5px solid #7fd1c6; color: #fff;
  border-radius: 8px; padding: 8px 16px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.header .btn-getstarted:hover, .header .btn-getstarted:focus:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
@media (max-width: 575px) { .header .btn-getstarted { display: none; } }

.navmenu a, .navmenu a:focus { font-weight: 500; }
.navmenu .dropdown ul { border-radius: 8px; box-shadow: 0 10px 30px rgba(16, 49, 43, 0.15); }

/* Home page: header is fixed and sits over the hero; go solid on scroll */
.index-page .header { background-color: rgba(15, 31, 28, 0.55); backdrop-filter: blur(8px); }
.index-page.scrolled .header { background-color: var(--pine-black); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  --background-color: var(--pine-black);
  min-height: 88vh;
  padding: 160px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(15,31,28,0.55) 0%, rgba(15,31,28,0.75) 60%, rgba(15,31,28,0.95) 100%),
    url("../img/hero/hero.jpg") center/cover no-repeat,
    radial-gradient(ellipse at 20% 30%, #1e4a43 0%, var(--pine-black) 65%);
}
.hero .container { z-index: 1; }
.hero-kicker { color: #7fd1c6; font-size: 14px; letter-spacing: 0.4px; margin: 0 0 18px; font-weight: 600; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.1; letter-spacing: -0.5px;
  max-width: 20ch; color: #fff;
}
.hero .hero-sub {
  font-size: 19px; line-height: 1.5; font-weight: 400;
  color: rgba(255,255,255,0.78); max-width: 60ch; margin: 24px 0 34px;
}
.hero .btn-get-started { border-radius: 8px; padding: 12px 28px; letter-spacing: 0.2px; }
.hero .btn-hero-phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; font-size: 17px; padding: 12px 6px;
}
.hero .btn-hero-phone i { color: #7fd1c6; }
.hero .btn-hero-phone:hover { color: #7fd1c6; }

/* --------------------------------------------------------------------------
   Partner marquee (continuous scroll)
   -------------------------------------------------------------------------- */
.partners-banner { background: #fff; padding: 34px 0 28px; border-bottom: 1px solid var(--line); }
.partners-banner-label {
  text-align: center; margin: 0 0 22px; font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}
.marquee {
  display: flex; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; flex-shrink: 0;
  list-style: none; margin: 0; padding: 0;
  animation: marquee 45s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex-shrink: 0; padding: 0 44px; }
@media (max-width: 767px) { .marquee-track li { padding: 0 24px; } .marquee-track img { height: 32px; } }
.marquee-track a { display: block; }
.marquee-track img {
  height: 40px; width: auto; max-width: 180px; object-fit: contain;
  filter: grayscale(1) opacity(0.65); transition: filter 0.3s;
}
.marquee-track a:hover img { filter: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}

/* Symbol-only logos get the company name beside them */
.partner-markname { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.partner-markname img { height: 34px !important; width: auto; max-width: 60px; }
.partner-markname span { font-family: var(--heading-font); font-weight: 600; font-size: 19px; color: #3a4a47; letter-spacing: -0.2px; }
.marquee-track .partner-markname { filter: grayscale(1) opacity(0.65); transition: filter 0.3s; }
.marquee-track a:hover .partner-markname { filter: none; }
.marquee-track .partner-markname img { filter: none; }

/* Styled name when no logo file exists yet */
.partner-fallback {
  display: inline-block; font-family: var(--heading-font); font-weight: 700;
  font-size: 21px; letter-spacing: -0.3px; color: #3a4a47; white-space: nowrap;
}
.marquee-track .partner-fallback { color: #8a9a96; }
.marquee-track a:hover .partner-fallback { color: #3a4a47; }

/* --------------------------------------------------------------------------
   Section titles and services grid
   -------------------------------------------------------------------------- */
.section-title h2 { font-size: 34px; letter-spacing: -0.3px; text-transform: none; }
.section-title h2::after { content: none; }
.section-title p { max-width: 60ch; margin: 0 auto; }

.services .service-item { border-radius: 10px; border: 1px solid var(--line); box-shadow: none; padding: 34px 30px; }
.services .service-item:hover { box-shadow: 0 12px 30px rgba(16,49,43,0.10); border-color: transparent; }
.services .service-item > .icon {
  width: 60px; height: 60px; border-radius: 10px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 90%); transition: background 0.3s;
}
.services .service-item > .icon i { font-size: 28px; }
.services .service-item > .icon i { color: var(--accent-color); background: none; }
.services .service-item:hover > .icon { background: var(--accent-color); }
.services .service-item:hover > .icon i { color: #fff; }
.services .service-item h4 { font-size: 20px; }
.services .service-item h4 a { color: var(--heading-color); }
.services .service-item p { font-size: 15px; }

/* --------------------------------------------------------------------------
   Why IDS
   -------------------------------------------------------------------------- */
.why-heading { font-size: 32px; letter-spacing: -0.3px; margin-bottom: 18px; }
.why-lead { font-size: 17px; line-height: 1.6; margin-bottom: 34px; }
.why-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-stats strong {
  display: block; font-family: var(--heading-font); font-weight: 700;
  font-size: 34px; color: var(--accent-color); line-height: 1;
}
.why-stats span { display: block; font-size: 13px; line-height: 1.4; margin-top: 8px; }
@media (max-width: 575px) { .why-stats { gap: 12px; } .why-stats strong { font-size: 26px; } }

.why-list { display: grid; gap: 14px; }
.why-item {
  display: flex; gap: 20px; padding: 24px 26px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.why-item i { font-size: 28px; color: var(--accent-color); flex-shrink: 0; line-height: 1; margin-top: 4px; }
.why-item h3 { font-size: 18px; margin: 0 0 6px; }
.why-item p { margin: 0; font-size: 15px; }

/* --------------------------------------------------------------------------
   Case studies
   -------------------------------------------------------------------------- */
.case-card {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  padding: 30px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; color: var(--default-color); text-decoration: none;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.case-card:hover { box-shadow: 0 12px 30px rgba(16,49,43,0.10); border-color: transparent; color: var(--default-color); }
.case-sector { font-size: 13px; font-weight: 600; color: var(--accent-color); margin-bottom: 12px; }
.case-card h3 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; color: var(--heading-color); }
.case-card h4 { font-size: 17px; line-height: 1.3; margin: 0; color: var(--heading-color); }
.case-card p { font-size: 15px; flex-grow: 1; margin-bottom: 16px; }
.case-more { font-weight: 600; font-size: 14px; color: var(--accent-color); }
.case-card.compact { padding: 22px; }

.case-block { margin-bottom: 36px; }
.case-block h2 { font-size: 22px; margin-bottom: 12px; }
.case-block p { font-size: 17px; line-height: 1.65; }

.btn-outline-ids {
  display: inline-block; padding: 11px 26px; border: 1.5px solid var(--accent-color);
  border-radius: 8px; font-weight: 600; color: var(--accent-color);
}
.btn-outline-ids:hover { background: var(--accent-color); color: #fff; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.call-to-action { padding: 70px 0; }
.call-to-action h3 { font-size: 28px; line-height: 1.25; }
.call-to-action p { color: rgba(255,255,255,0.8); }
.call-to-action .cta-btn { border-radius: 8px; border-color: #7fd1c6; }
.call-to-action .cta-btn:hover { background: #7fd1c6; color: var(--pine-black); border-color: #7fd1c6; }

/* --------------------------------------------------------------------------
   Inner pages: page title, service detail, sidebars
   -------------------------------------------------------------------------- */
.page-title { --background-color: var(--mist); padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.page-title h1 { font-size: 36px; letter-spacing: -0.3px; }
.page-intro { margin: 14px 0 0; max-width: 70ch; font-size: 18px; line-height: 1.55; }

.service-body p { font-size: 17px; line-height: 1.65; }
.service-body h3 { font-size: 22px; margin: 36px 0 14px; }
.service-body ul { list-style: none; padding: 0; }
.service-body ul li { display: flex; gap: 10px; padding: 7px 0; font-size: 16px; }
.service-body ul li i { color: var(--accent-color); flex-shrink: 0; margin-top: 3px; }

.service-details .services-list { border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 24px; }
.service-details .services-list a { border-radius: 6px; border: 0; padding: 12px 14px; color: var(--default-color); }
.service-details .services-list a.active { background: var(--accent-color); color: #fff; }
.service-details .services-list a:hover:not(.active) { background: var(--mist); }

.side-contact { padding: 28px; background: var(--mist); border-radius: 10px; }
.side-contact h4 { font-size: 18px; margin-bottom: 8px; }
.side-contact p { font-size: 15px; }
.side-phone { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin: 8px 0 16px; color: var(--heading-color); }
.side-phone i { color: var(--accent-color); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: 6px 0; }

.partner-row { display: flex; flex-wrap: wrap; gap: 12px; }
.partner-chip {
  display: inline-flex; align-items: center; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.partner-chip img { height: 30px; width: auto; max-width: 140px; object-fit: contain; }
.partner-chip .partner-fallback { font-size: 17px; }
.partner-chip .partner-markname img { height: 26px !important; }
.partner-chip .partner-markname span { font-size: 16px; }

.partner-card {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 30px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--default-color); text-decoration: none; transition: box-shadow 0.25s;
}
.partner-card:hover { box-shadow: 0 12px 30px rgba(16,49,43,0.10); color: var(--default-color); }
.partner-card-logo { height: 56px; display: flex; align-items: center; margin-bottom: 20px; }
.partner-card-logo img { max-height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.partner-card-logo .partner-markname img { height: 40px !important; }
.partner-card h3 { font-size: 19px; margin: 0 0 8px; color: var(--heading-color); }
.partner-card p { font-size: 15px; flex-grow: 1; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-story h2 { font-size: 24px; margin: 34px 0 12px; }
.about-story h2:first-child { margin-top: 0; }
.about-story p { font-size: 17px; line-height: 1.65; }
.about-facts { padding: 28px; background: var(--mist); border-radius: 10px; margin-bottom: 24px; }
.about-facts h3, .about-capabilities h3 { font-size: 18px; margin-bottom: 14px; }
.about-facts dl { margin: 0; }
.about-facts dt { font-weight: 700; color: var(--heading-color); font-size: 14px; margin-top: 12px; }
.about-facts dd { margin: 2px 0 0; font-size: 15px; }
.about-capabilities { padding: 28px; border: 1px solid var(--line); border-radius: 10px; }
.about-capabilities ul { margin: 0; padding-left: 18px; font-size: 15px; }
.about-capabilities li { padding: 3px 0; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact .info-wrap, .contact .php-email-form { border-radius: 10px; box-shadow: none; border: 1px solid var(--line); }
.contact .info-item i { border-radius: 8px; }
.contact .php-email-form button[type="submit"] { border-radius: 8px; }
.contact .php-email-form .form-control { border-radius: 6px; }
.contact select.form-control { appearance: auto; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 24px; border-radius: 10px; background: #fff7e6; border: 1px solid #f1d9a6; color: #5a4a1e; }

/* --------------------------------------------------------------------------
   Legal, 404
   -------------------------------------------------------------------------- */
.legal h2 { font-size: 22px; margin: 30px 0 10px; }
.legal p { font-size: 16px; line-height: 1.65; }
.error-404 { padding: 120px 0; }
.error-code { font-family: var(--heading-font); font-size: 96px; font-weight: 700; color: var(--accent-color); line-height: 1; margin: 0 0 10px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { --background-color: var(--pine-black); --default-color: #b9c9c5; --heading-color: #fff; padding-top: 60px; }
.footer .footer-about .sitename { color: #fff; font-family: var(--heading-font); font-weight: 600; font-size: 20px; }
.footer-tagline { margin-top: 12px; }
.footer .footer-links ul a { color: #b9c9c5; }
.footer .footer-links ul a:hover { color: #7fd1c6; }
.footer .footer-links ul i { color: #7fd1c6; }
.footer .footer-about .footer-contact a { color: #fff; font-size: inherit; font-weight: 600; text-transform: none; font-family: var(--default-font); word-break: break-all; }
.footer .footer-links ul li { align-items: flex-start; }
.footer .copyright { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; }
.footer .social-links a { border-color: rgba(255,255,255,0.2); }

/* Scroll-top */
.scroll-top { border-radius: 8px; }

/* Mobile nav: allow long service names to wrap */
@media (max-width: 1199px) {
  .navmenu a, .navmenu a:focus { white-space: normal; }
  .navmenu .dropdown ul a { font-size: 15px; line-height: 1.35; }
}

/* Wide, heavy wordmarks sit a bit smaller so weights match in the scroller */
.marquee-track img[src*="opentext"], .marquee-track img[src*="veeam"] { height: 26px; }
.partner-card-logo img[src*="opentext"], .partner-card-logo img[src*="veeam"] { max-height: 30px; }
.marquee-track img[src*="iron-mountain"], .marquee-track img[src*="webmin-virtualmin"] { height: 44px; }
.partner-chip img[src*="webmin-virtualmin"] { height: 44px; max-width: 120px; }
.partner-card-logo img[src*="webmin-virtualmin"] { max-height: 56px; }
