/* Kilkenny Creations — Site Styles */
:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #0d2538;
  --muted: #5b6c7b;
  --border: #e5eef6;
  --brand: #0d2538;
  --brand-2: #1f9f89;
  --shadow: 0 2px 10px rgba(13, 37, 56, 0.04);
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(22px, 2.8vw, 28px); margin: 0 0 14px; }

p { margin: 0 0 10px; }
ul { margin: 6px 0 0 18px; padding: 0; }
li { margin: 6px 0; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(8px); background: rgba(247,250,252,0.8); border-bottom: 1px solid var(--border); z-index: 100; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .2px; }
.logo-badge { width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }

nav a { margin-left: 14px; font-weight: 600; color: var(--text); opacity: .8; }
nav a:hover { opacity: 1; }
.nav-separator { opacity: .35; margin: 0 .5rem; }

.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); margin: 0 0 16px; letter-spacing: -0.04em; }
.hero p { margin: 0; max-width: 780px; color: var(--muted); font-size: 18px; }

.cta { margin-top: 22px; display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; font-weight: 600; border: 1px solid #d9e6f2; background: #fff; color: var(--text); box-shadow: var(--shadow); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn:hover { filter: brightness(0.98); }

section { padding: 56px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.muted { color: var(--muted); }

/* Forms */
label { display: block; font-weight: 600; margin-top: 10px; }
input, textarea { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: inherit; color: var(--text); }
input:focus, textarea:focus { outline: 2px solid #bfe8e0; border-color: #bfe8e0; }
button { cursor: pointer; }
.form-status { margin: 12px 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.form-status.success { color: #0f5132; background: #e9f7ef; border: 1px solid #b7e4c7; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }

/* Section layout enhancements */
.hero .hero-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 28px; text-align: left; }
.hero .hero-copy { max-width: 650px; }
.hero-kicker { margin: 0 0 10px; color: var(--brand-2); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.systems-panel { background: linear-gradient(180deg, #ffffff 0%, #f9fcfd 100%); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: 0 16px 34px rgba(13,37,56,0.09); }
.panel-header { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.panel-header strong { color: var(--text); }
.system-map { position: relative; min-height: 220px; margin: 18px 0; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(31,159,137,.2), transparent 34%), linear-gradient(135deg, rgba(31,159,137,.14), rgba(13,37,56,.08)); }
.system-map::before, .system-map::after { content: ""; position: absolute; inset: 50% 42px auto; height: 1px; background: rgba(13,37,56,.16); }
.system-map::after { inset: 42px 50% 42px auto; width: 1px; height: auto; }
.node { position: absolute; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 700; font-size: 13px; }
.node.main { top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--brand); color: #fff; }
.node.lighting { top: 24px; left: 28px; }
.node.network { top: 24px; right: 28px; }
.node.security { bottom: 24px; left: 38px; }
.node.comfort { right: 38px; bottom: 24px; }
.panel-list { color: var(--muted); font-size: 15px; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 0; }
.trust-strip div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip span { margin-top: 4px; color: var(--muted); }
.section-heading { max-width: 760px; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 12px; }
.section-kicker { margin: 0 0 8px; color: var(--brand-2); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Service icons */
#services .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#services .card { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
#services .card .service-icon { width: 36px; height: 36px; border-radius: 10px; background: #f0f7f6; display: grid; place-items: center; border: 1px solid var(--border); }
#services .card h3 { margin-top: 2px; }
#services .card ul { grid-column: 1 / -1; margin-top: 6px; }
#services .featured-service { grid-column: span 2; }
.featured-service { position: relative; overflow: hidden; }
.featured-service::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }

/* Approach, about and secondary sections */
.approach-section, .secondary-section, .contact-section { position: relative; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.process-card span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 999px; background: #edf8f6; color: var(--brand-2); font-weight: 700; }
.process-card h3 { margin: 0 0 8px; font-size: 18px; }
#about .about-wrap { width: 100%; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.secondary-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.contact-section .grid { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: start; }
.contact-section form { margin-top: 16px; }
.contact-section button { margin-top: 14px; }

/* Subtle section headers spacing */
#services h2, #digital-services h2, #about h2, #contact h2 { margin-bottom: 18px; }
.section-intro { max-width: 760px; margin-bottom: 18px; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero .hero-wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .hero-copy { margin: 0 auto; }
  .hero p, .section-heading, .section-intro { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .panel-header { flex-direction: column; }
  .trust-strip { grid-template-columns: 1fr; }
  #services .grid, .process-grid, .secondary-section .grid, .contact-section .grid { grid-template-columns: 1fr; }
  #services .featured-service { grid-column: auto; }
  #services .card { grid-template-columns: 28px 1fr; }
  #services .card .service-icon { width: 28px; height: 28px; border-radius: 8px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav { min-height: 58px; height: auto; padding: 10px 0; gap: 10px; align-items: flex-start; }
  .logo { gap: 8px; }
  nav { display: flex; flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; max-width: 210px; }
  nav a { margin-left: 6px; font-size: 13px; }
  .nav-separator { margin: 0 .15rem; }
  section { padding: 40px 0; }
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: clamp(30px, 10vw, 40px); }
  .hero p { font-size: 16px; }
  .systems-panel, .card, .process-card, #about .about-wrap { padding: 18px; }
  .system-map { min-height: 190px; }
  .node { padding: 7px 10px; font-size: 12px; }
  .node.lighting { left: 16px; }
  .node.network { right: 16px; }
  .node.security { left: 20px; }
  .node.comfort { right: 20px; }
  .btn { width: 100%; text-align: center; }
}
