:root{
  --maxw: 960px;
  --pad: 18px;
  --border: rgba(255,255,255,.14);
  --bg: #0b1020;
  --panel: rgba(255,255,255,.05);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --shadow: 0 14px 40px rgba(0,0,0,.35);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Inter", "Space Grotesk", system-ui, sans-serif;

}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: var(--font-body);
    background-color: var(--bg);
  background-image:
    radial-gradient(at 20% 0%, #17224a 0%, var(--bg) 55%),
    radial-gradient(at 85% 10%, rgba(0,255,255,.14), transparent 60%),
    radial-gradient(at 70% 85%, rgba(255,0,200,.10), transparent 60%);
      background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.45;
}

h1,h2,h3,.nav a{
  font-family: var(--font-head);
}

a{ color: inherit; }
.wrap{
  width: min(var(--maxw), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top: 0;
  background: rgba(10,15,30,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
}
.brand img{ width: auto; display: block; height: 44px; }
.brand span{
  font-weight: 720;
  letter-spacing: .2px;
}

.nav-toggle{
  display:none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}

.site-nav > ul{
  list-style:none;
  display:flex;
  gap: 10px;
  padding:0;
  margin:0;
  align-items:center;
}

.site-nav a{
  color: var(--text);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 12px;
  display:inline-flex;
  gap: 8px;
  align-items:center;
}
.site-nav a:hover{ background: var(--panel); }

.dropdown{ position: relative; padding-bottom: 4px;}
.dropdown > a::after{
  content:"▾";
  font-size: 0.85em;
  opacity: .85;
}
.dropdown-menu{
  display:none;
  position:absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: rgba(10,15,30,.97);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  margin: 0;
  list-style: none;
  box-shadow: var(--shadow);
}

/* Desktop/hover devices: open on hover */
@media (hover: hover) and (pointer: fine){
  .dropdown:hover .dropdown-menu{ display:block; }
}

/* Mobile/touch: JS toggles .open */
.dropdown.open .dropdown-menu{ display:block; }
.dropdown-menu li a{ display:block; padding: 10px 10px; border-radius: 12px; }
.dropdown-menu li a:hover{ background: var(--panel2); }

main{ padding: 28px 0 72px; }

.hero{
  padding: 34px 0 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero h1{
  font-size: clamp(28px, 4vw, 44px);
  margin: 14px 0 8px;
}
.hero p{ 
  color: var(--muted); 
  max-width: 55ch; 
  margin: 10px auto 22px; 
  opacity: 0.9;
  line-height: 1.5;
}
.hero .logo-big{
  width: min(520px, 92vw);
  height:auto;
  display:block;
}
.section-title{
  margin: 6px 0 14px;
  font-size: 28px;
  font-weight: 600;
  opacity: 0.9;
  text-align: center;
}

.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.card{
  display:block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow:hidden;
  text-decoration:none;
  text-align: center;
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.card:hover{
  transform: translateY(-4px);
  background: var(--panel2);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.card .card-body{ padding: 12px 8px; }
.card .card-title{ 
  font-weight: 650; 
  line-height: 1.15;
}

.card .card-media{
  width: 100%;
  aspect-ratio: 3 / 2;   /* 1.5:1 */
  overflow: hidden;
}
.card .card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-title{
  font-size: 34px;
  margin: 6px 0 8px;
}
.lead{ color: var(--muted); max-width: 75ch; margin: 0 0 38px; }
.lead + .lead{
  margin-top: 14px;   /* adjust to taste */
}
.service-block{
  display: flow-root; /* contains the floated image */
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 14px 0;
  margin-bottom: 32px; 
}

.service-block:last-child{
  margin-bottom: 0;
}

/* Image lives inside the text flow so long text can expand to full width below it */
.service-media{
  float: right;
  margin-left: 18px;
  margin-bottom: 12px;
}
.service-media img{
  width: auto;
  max-width: 100%;
  height: clamp(185px, 28vw, 250px);
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain; /* never crop */
  display: block;
}

.service-block h3{   
  font-size: clamp(24px, 1.6vw, 26px);
  font-weight: 650;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: 0.2px;
}
.service-block p{ margin: 0 0 10px; color: var(--muted); }
.service-block h4{ margin: 12px 0 6px; font-size: 16px; letter-spacing: .2px; opacity: .92; }
.service-block ul{ margin: 10px 0 0 18px; color: var(--muted); }
.service-block li{ margin: 15px 0; color: rgba(255,255,255,0.62); line-height: 1.35;}
.service-block li b, .service-block li strong{ font-weight: 700; color: var(--text); }


.page-summary{
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 18px;
  letter-spacing: .2px;
}
.page-summary + .lead{ margin-bottom: 0; }


/* Mobile: stack */
@media (max-width: 650px){
  .service-media{
    float: none;
    width: fit-content;
    margin: 0 0 12px 0;
  }
  .service-media img{
    height: auto;
    width: 100%;
    max-height: 250px;
    object-fit: contain; 
  }
}

.form{
  display:grid;
  gap: 10px;
  max-width: 680px;
  margin-top: 14px;
}
label{ font-size: 14px; color: var(--muted); }
input, textarea{
  width:100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}
textarea{ min-height: 140px; resize: vertical; }

button{
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.10);
  color: var(--text);
  cursor:pointer;
  width: fit-content;
}
button:hover{ background: rgba(255,255,255,.14); }

.hp-field{ display:none !important; }

.form-status{
  max-width: 680px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.form-status.success{
  border-color: rgba(80, 200, 120, .45);
}
.form-status.error{
  border-color: rgba(255, 120, 120, .45);
}


.about{
  display:flow-root;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items:start;
  margin-top: 10px;

  max-width: 800px; 
  margin: 0 auto;
}
.about-photo{
  float: left;
  width: min(374px, 42%);
  max-width: 100%;
  height: auto;
  margin: 6px 18px 0 0;
  border-radius: 2px;
  border: 1px solid var(--border);
  display: block;
}

.about .lead{ 
  margin: 0 0 0.9rem;
  line-height: 1.55;
  max-width: none; 
}

.about .lead:last-child{
  margin-bottom: 0;
}

.small{ color: var(--muted); font-size: 14px; }

/* Mobile */
@media (max-width: 780px){
  .nav-toggle{ display:block; }
  .site-nav{ display:none; width:100%; }
  .site-nav.open{ display:block; }
  .site-nav > ul{ flex-direction:column; align-items:flex-start; gap: 6px; padding: 10px 0 2px; }
  .dropdown-menu{
    position: static;
    display: none;
    border: 1px solid var(--border);
    padding: 6px;
    margin-left: 8px;
    box-shadow: none;
    background: rgba(10,15,30,.92);
  }
  .dropdown.open .dropdown-menu{ display: block; }
  .dropdown > a::after{ content:"▾"; transition: transform .15s ease; }
  .dropdown.open > a::after{ transform: rotate(180deg); }
.service-block{ grid-template-columns: 1fr; margin-bottom: 22px;}
  .about-photo{ float: none; width: 100%; margin: 0 0 14px; }
}