/* =============================================================================
   L&S Cleaning Services stylesheet
   ============================================================================= */

/* Fonts */
/* Barlow Condensed: headings / brand  |  DM Sans: body text                   */

/* Custom properties */

:root {
  --sidebar-w:      224px;

  /* Ink scale (dark to light) */
  --ink-900:        #0d1b2a;
  --ink-800:        #142233;
  --ink-700:        #1c3044;
  --ink-400:        #3a6080;
  --ink-200:        #7a9eb8;
  --ink-100:        #adc8de;

  /* Blue accent */
  --blue:           #1d7ec8;
  --blue-dark:      #155fa4;
  --blue-faint:     rgba(29, 126, 200, 0.12);

  /* Surface & borders */
  --bg:             #edf1f7;
  --surface:        #ffffff;
  --border:         #cdd8e3;
  --border-light:   #e3eaf2;

  /* Text */
  --text:           #192636;
  --text-muted:     #4f6878;
  --text-faint:     #7a98ae;

  /* Feedback colours */
  --notice-bg:      #fdf7e0;
  --notice-border:  #d4a800;
  --notice-text:    #5c4200;

  --ok-bg:          #eaf6ec;
  --ok-border:      #6ec07a;
  --ok-text:        #1a5425;

  --err-bg:         #fdf0f0;
  --err-border:     #e09090;
  --err-text:       #761212;

  /* Misc */
  --radius:         3px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);

  --font-head:      'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:      'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

/* Reset */

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a               { color: var(--blue-dark); text-decoration: none; }
a:hover         { color: var(--blue); text-decoration: underline; }
ul, ol          { list-style: none; }
img             { display: block; max-width: 100%; }

/* Site header */

.site-header {
  flex-shrink: 0;
  background: var(--ink-900);
  border-bottom: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding-right: 1.75rem;
}

/* Brand link inside header */
.brand {
  display: flex;
  align-items: stretch;
  height: 100%;
  text-decoration: none !important;
}

.brand-mark {
  width: var(--sidebar-w);
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 0 1.25rem;
  border-right: 1px solid rgba(255,255,255,.07);
}

.brand-initials {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--blue);;
  line-height: 1;
  letter-spacing: -.02em;
}

.brand-initials span { color: var(--blue-dark); }

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: .72rem;
  color: var(--ink-200);
  letter-spacing: .05em;
}

.header-meta {
  font-size: .75rem;
  color: var(--ink-200);
  letter-spacing: .05em;
}

/* Body layout */

.layout {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* Sidebar navigation */

.site-nav {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--ink-800);
  border-right: 1px solid rgba(0,0,0,.22);
  padding: .75rem 0 2rem;
  overflow-y: auto;
}

.nav-list { padding: 0; }

/* Top-level direct links */
.nav-list > li > .nav-link {
  display: block;
  padding: .6rem 1.2rem;
  font-size: .87rem;
  color: var(--ink-100);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
}

.nav-list > li > .nav-link:hover {
  background: rgba(255,255,255,.05);
  color: #fff;
  text-decoration: none;
}

.nav-list > li > .nav-link.active {
  background: var(--blue-faint);
  color: #fff;
  border-left-color: var(--blue);
  font-weight: 500;
}

/* Section heading (non-link) */
.nav-group-head {
  display: block;
  padding: .55rem 1.2rem .2rem;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-400);
  pointer-events: none;
  user-select: none;
}

/* Sub-items (services) */
.nav-sub { padding: 0; }

.nav-sub li > .nav-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .48rem 1.2rem .48rem 1.5rem;
  font-size: .83rem;
  color: #7b9eb8;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
}

.nav-sub li > .nav-link::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-400);
  flex-shrink: 0;
  transition: background .12s;
}

.nav-sub li > .nav-link:hover {
  background: rgba(255,255,255,.04);
  color: #c5ddef;
  text-decoration: none;
}

.nav-sub li > .nav-link:hover::before  { background: var(--ink-100); }

.nav-sub li > .nav-link.active {
  background: var(--blue-faint);
  color: #fff;
  border-left-color: var(--blue);
  font-weight: 500;
}

.nav-sub li > .nav-link.active::before { background: var(--blue); }

/* Thin divider */
.nav-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: .5rem 1rem;
}

/* Main content area */

.site-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem 3.5rem;
  background: var(--bg);
}

/* Notice banner */

.notice-banner {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-left: 4px solid var(--notice-border);
  color: var(--notice-text);
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  font-size: .86rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

/* Content typography */

.content h1 {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: .01em;
  line-height: 1.15;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}

.content h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-700);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 1.75rem 0 .6rem;
}

.content p {
  font-size: .925rem;
  max-width: 680px;
  margin-bottom: .95rem;
}

.content p:last-child { margin-bottom: 0; }

.content strong { font-weight: 500; }

.content a { color: var(--blue-dark); }
.content a:hover { color: var(--blue); }

/* Intro paragraph slightly larger */
.content .intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Alert boxes */

.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  font-size: .9rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.alert-ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok-text);
  border: 1px solid var(--ok-border);
  border-left: 4px solid #3aaa4a;
}

.alert-err {
  background: var(--err-bg);
  border-color: var(--err-border);
  color: var(--err-text);
  border: 1px solid var(--err-border);
  border-left: 4px solid #c43030;
}

.alert ul   { margin: .45rem 0 0 1.25rem; list-style: disc; }
.alert li   { margin: .2rem 0; }

/* Contact info panel */

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 720px;
}

.contact-panel-item {
  background: var(--surface);
  padding: .9rem 1.3rem;
  flex: 1 1 180px;
}

.contact-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .3rem;
}

.contact-value       { font-size: .9rem; }
.contact-value a     { color: var(--blue-dark); }
.contact-value a:hover { color: var(--blue); text-decoration: underline; }

/* Contact form */

.form-wrapper { max-width: 640px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group { margin-bottom: 1.15rem; }

.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.req { color: var(--blue); margin-left: 1px; }

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  padding: .58rem .85rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,126,200,.13);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-hint {
  margin-top: .3rem;
  font-size: .76rem;
  color: var(--text-faint);
}

/* Honeypot visually and semantically hidden */
.form-trap {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/* Submit */
.btn {
  display: inline-block;
  padding: .6rem 2rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, transform .1s;
  line-height: 1.4;
}

.btn:hover           { background: var(--blue-dark); }
.btn:active          { transform: translateY(1px); }
.btn:disabled        { background: #82acc8; cursor: not-allowed; }

/* PoW status line only rendered when POW_DIFFICULTY > 0 */
.pow-status {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .65rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.pow-status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0a020;
  flex-shrink: 0;
}

.pow-status.ready::before { background: #3aaa4a; }

/* Location page */

.location-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
}

.address-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.address-card h2 {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 .8rem;
  border: none;
}

.address-card address {
  font-style: normal;
  font-size: .88rem;
  line-height: 1.95;
  color: var(--text);
}

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--border);
  height: 340px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* Pricing / info panel */

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin-top: 1rem;
}

.info-card p { max-width: none; }

/* Footer */

.site-footer {
  flex-shrink: 0;
  background: var(--ink-900);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: .85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .76rem;
  color: var(--ink-200);
}

.site-footer a          { color: var(--ink-100); }
.site-footer a:hover    { color: #fff; text-decoration: none; }

/* Responsive */

@media (max-width: 820px) {
  .layout         { flex-direction: column; }

  .site-nav       { width: 100%; padding: .25rem 0 .5rem; overflow-x: auto; }

  .nav-list       { display: flex; flex-wrap: wrap; gap: 0; }
  .nav-list > li  { flex-shrink: 0; }

  .nav-group-head { display: none; }

  .nav-sub        { display: flex; flex-wrap: wrap; }

  .nav-list > li > .nav-link,
  .nav-sub li > .nav-link {
    padding: .55rem 1rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    font-size: .82rem;
  }

  .nav-list > li > .nav-link.active,
  .nav-sub li > .nav-link.active {
    border-left: none;
    border-bottom-color: var(--blue);
  }

  .nav-sub li > .nav-link::before { display: none; }

  .nav-divider     { display: none; }
  .brand-mark      { width: auto; }
  .header-meta     { display: none; }

  .site-main       { padding: 1.25rem 1.25rem 2.5rem; }

  .form-row        { grid-template-columns: 1fr; }
  .location-grid   { grid-template-columns: 1fr; }
  .site-footer     { flex-direction: column; gap: .3rem; text-align: center; }
}

@media (max-width: 480px) {
  .contact-panel-item { flex: 1 1 100%; }
  .info-card          { padding: 1.1rem 1.2rem; }
}
