/* ============================================================
   ResComputing — modern single-page site
   Palette:  Royal Blue #29489F · Deep Blue #1E3473
             Slate Gray #374151 · Light Gray #F3F4F6 · White
   ============================================================ */

:root{
  --royal:        #29489F;
  --royal-dark:   #1E3473;
  --royal-soft:   #E8ECF8;
  --slate:        #374151;
  --slate-soft:   #6B7280;
  --gray-100:     #F3F4F6;
  --gray-200:     #E5E7EB;
  --white:        #FFFFFF;
  --shadow-sm:    0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.06);
  --shadow-md:    0 4px 10px rgba(17,24,39,.06), 0 10px 30px rgba(17,24,39,.08);
  --shadow-lg:    0 20px 50px rgba(30,52,115,.18);
  --radius:       14px;
  --radius-sm:    8px;
  --ease:         cubic-bezier(.22,.61,.36,1);
  --maxw:         1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 170px; }

/* Each anchored section accounts for the sticky header so smooth-scroll
   lands at the section's start, not behind the header. */
#services, #about, #specialties, #contact { scroll-margin-top: 170px; }
@media (max-width: 960px){
  html { scroll-padding-top: 120px; }
  #services, #about, #specialties, #contact { scroll-margin-top: 120px; }
}

body{
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a   { color: var(--royal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--royal-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -.01em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p  { margin: 0 0 1em; }

.container{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ----------
   The banner image sits left-aligned; the two grays from the image
   (wall #D5D5D3 and floor ~#BFBFBB) are continued as a CSS gradient
   to the right edge so the header reads as one continuous scene at
   any viewport width.
*/
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  height: 160px;
  background-color: #E0E0DC;
  background-image:
    url('../images/header-banner.jpg'),
    linear-gradient(to bottom,
      #E0E0DC 0%,
      #E0E0DC 55%,
      #BFBEBA 58%,
      #C2C1BD 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: left center, left center;
  background-size: auto 100%, 100% 100%;
  border-bottom: 1px solid #B4B3B0;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
/* Invisible accessible anchor sized to the visible banner image.
   Anchored to the header (not the container) so it stays over the
   image regardless of viewport width. */
.brand{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  /* Image displays at height 100% of header (160px) with native ratio 1200/512.
     That gives a displayed width of ~375px. Cap the click target there. */
  width: 380px;
  max-width: 50vw;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}
.site-nav{
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a{
  color: #1F2937;
  font-weight: 600;
  font-size: .95rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.site-nav a:hover { color: var(--royal); }
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: #fff; text-shadow: none; margin-left: 8px; }
.site-nav a.btn-ghost { color: var(--slate); text-shadow: none; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary{
  background: var(--royal);
  color: #fff;
  box-shadow: 0 6px 14px rgba(41,72,159,.28);
}
.btn-primary:hover{
  background: var(--royal-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(41,72,159,.34);
}
.btn-ghost{
  background: transparent;
  color: var(--slate);
  border-color: var(--gray-200);
}
.btn-ghost:hover{
  background: var(--gray-100);
  color: #111827;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(1200px 600px at 90% -10%, var(--royal-soft) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, #EEF1FA 0%, transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--royal);
  background: var(--royal-soft);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow::before{
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--royal);
}
.hero h1 span{
  background: linear-gradient(120deg, var(--royal), var(--royal-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead{
  font-size: 1.15rem;
  color: var(--slate-soft);
  max-width: 540px;
  margin-top: 18px;
}
.hero-cta{
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-visual{
  position: relative;
}
.hero-visual .card{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual img{
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.hero-visual .badge{
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--royal);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
}
.hero-visual .badge small{
  display: block;
  opacity: .75;
  font-weight: 500;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}

/* ---------- Section base ---------- */
section { padding: 88px 0; }
.section-head{
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow{ margin-bottom: 16px; }
.section-head p{
  color: var(--slate-soft);
  font-size: 1.05rem;
}

/* ---------- Services ---------- */
.services{ background: var(--gray-100); }
.services-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service{
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.service::before{
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--royal-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.service:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service:hover::before { transform: scaleX(1); }
.service .icon{
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--royal-soft);
  color: var(--royal);
  border-radius: 12px;
  margin-bottom: 18px;
}
.service .icon svg{ width: 22px; height: 22px; }
.service h3{
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #111827;
}
.service p{
  font-size: .92rem;
  color: var(--slate-soft);
  margin: 0;
}

/* ---------- Cleveland strip ---------- */
.cleveland{
  position: relative;
  color: #fff;
  text-align: center;
  padding: 120px 24px;
  background:
    linear-gradient(180deg, rgba(30,52,115,.78), rgba(41,72,159,.72)),
    url('../images/cleveland.jpg') center/cover no-repeat;
}
.cleveland h2{ color: #fff; }
.cleveland p{
  max-width: 640px;
  margin: 16px auto 0;
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
}
.cleveland .pill{
  display: inline-block;
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(255,255,255,.14);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
}

/* ---------- Specialties ---------- */
.specialties{ background: var(--white); }
.specialty-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.specialty{
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  background: var(--white);
  transition: all .25s var(--ease);
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.specialty:hover{
  border-color: var(--royal);
  box-shadow: var(--shadow-md);
}
.specialty .icon{
  flex-shrink: 0;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--royal);
  color: #fff;
  border-radius: 14px;
}
.specialty .icon svg{ width: 26px; height: 26px; }
.specialty h3{ font-size: 1.2rem; margin-bottom: 6px; }
.specialty p{ color: var(--slate-soft); margin: 0; font-size: .96rem; }

/* ---------- Contact ---------- */
.contact{
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-dark) 100%);
  color: #fff;
}
.contact .container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact h2{ color: #fff; }
.contact .lead{
  color: rgba(255,255,255,.85);
  font-size: 1.08rem;
  max-width: 460px;
}
.contact-card{
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-card .row{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.contact-card .row:last-child{ border-bottom: 0; }
.contact-card .row .ic{
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #FFFFFF;
  color: var(--royal);
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.contact-card .row .ic svg{ width: 22px; height: 22px; stroke: var(--royal); }
.contact-card .row .label{
  display: block;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .7;
  margin-bottom: 2px;
}
.contact-card .row a,
.contact-card .row .value{
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--slate);
  color: #D1D5DB;
  padding: 36px 0;
  font-size: .9rem;
}
.site-footer .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer strong { color: #fff; }
.site-footer .links a{
  color: #D1D5DB;
  margin-left: 18px;
}
.site-footer .links a:hover { color: #fff; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle{
  display: none;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg{ width: 22px; height: 22px; color: var(--slate); }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .hero{ padding: 64px 0 56px; }
  .hero-grid{ grid-template-columns: 1fr; gap: 40px; }
  .hero-visual{ order: -1; }
  .hero-visual img{ height: 280px; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .specialty-grid{ grid-template-columns: 1fr; }
  .contact .container{ grid-template-columns: 1fr; gap: 36px; }
  .site-nav{ display: none; }
  .site-header{ height: 110px; }
  .site-nav.open{
    display: flex;
    position: absolute;
    top: 110px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 18px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .nav-toggle{
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(6px);
  }
  .site-nav.open .btn{ width: 100%; justify-content: center; }
  .nav-toggle{ display: inline-flex; }
  section{ padding: 64px 0; }
  .cleveland{ padding: 88px 24px; }
}

@media (max-width: 540px){
  .services-grid{ grid-template-columns: 1fr; }
  .site-footer .container{ justify-content: center; text-align: center; }
  .site-footer .links a{ margin: 0 10px; }
  .brand-name{ display: none; }
}
