:root {
  --ink: #172229;
  --navy: #0e2833;
  --orange: #f58220;
  --orange-dark: #d96608;
  --cream: #f5f2eb;
  --white: #ffffff;
  --muted: #667780;
  --line: #dfe5e7;
  --shadow: 0 18px 50px rgba(14, 40, 51, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 400 16px/1.65 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 99; padding: 10px 14px; background: var(--white); }
.skip-link:focus { left: 10px; }

.topbar { background: var(--navy); color: #d9e2e5; font-size: .88rem; }
.topbar .container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a:hover { color: var(--white); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 9px; color: var(--white); background: var(--orange); font-size: .9rem; letter-spacing: 0; }
.brand-name { line-height: 1.08; font-size: 1.08rem; }
.brand-name small { display: block; color: var(--orange); font-size: .69rem; letter-spacing: .14em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: .94rem; }
.main-nav a { position: relative; padding: 8px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--orange-dark); }
.nav-services { position: relative; }
.dropdown { display: none; position: absolute; top: 40px; left: -20px; min-width: 265px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.dropdown a:hover { background: var(--cream); }
.nav-services:hover .dropdown, .nav-services:focus-within .dropdown { display: block; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 6px; color: var(--white); background: var(--orange); font-weight: 800; cursor: pointer; transition: .2s ease; }
.button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.button.secondary { color: var(--navy); background: var(--white); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 1.25rem; }

.hero { position: relative; isolation: isolate; min-height: 660px; display: grid; align-items: center; color: var(--white); background: var(--navy); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('https://www.smarthomesgroup.com.au/Smart%20Homes%20Group%20Adelaide_files/Image-2-copy.jpg') center/cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,31,40,.96) 0%, rgba(8,31,40,.78) 48%, rgba(8,31,40,.2) 100%); }
.hero-content { max-width: 760px; padding: 90px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 15px; color: var(--orange); font-size: .8rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 3px; background: currentColor; }
h1, h2, h3 { margin: 0 0 18px; font-family: Georgia, 'Times New Roman', serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { max-width: 850px; font-size: clamp(2.8rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.45rem; }
.lead { max-width: 680px; margin: 0 0 28px; color: #d7e0e3; font-size: 1.17rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.trust-strip { background: var(--orange); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item { padding: 24px; border-right: 1px solid rgba(255,255,255,.28); text-align: center; font-weight: 800; }
.trust-item:last-child { border: 0; }

.section { padding: 90px 0; }
.section.alt { background: var(--cream); }
.section.dark { color: var(--white); background: var(--navy); }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading p { margin-bottom: 0; color: var(--muted); }
.dark .section-heading p { color: #c6d1d5; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card { display: flex; min-height: 290px; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 8px 30px rgba(14,40,51,.05); transition: .22s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-number { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; border-radius: 50%; color: var(--white); background: var(--orange); font-weight: 900; }
.service-card p { color: var(--muted); }
.text-link { margin-top: auto; color: var(--orange-dark); font-weight: 900; }
.text-link::after { content: " →"; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.image-panel { min-height: 500px; border-radius: 14px; background: url('https://www.smarthomesgroup.com.au/DECKS%20Adelaide%20Smart%20Homes%20Group_files/decks-1-min.png') center/cover; box-shadow: var(--shadow); }
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; }
.feature-list li { position: relative; margin: 13px 0; padding-left: 30px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 900; }
.process { counter-reset: steps; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.process article { counter-increment: steps; padding: 26px; border-top: 4px solid var(--orange); background: rgba(255,255,255,.07); }
.process article::before { content: "0" counter(steps); display: block; margin-bottom: 42px; color: var(--orange); font-weight: 900; }
.process p { color: #c6d1d5; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px; border-radius: 14px; background: var(--orange); color: var(--white); }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; }

.page-hero { padding: 100px 0 76px; color: var(--white); background: linear-gradient(115deg, var(--navy), #1b4b5e); }
.page-hero h1 { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.breadcrumbs { margin-bottom: 22px; color: #b9c9cf; font-size: .9rem; }
.breadcrumbs a { color: var(--orange); }
.service-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 55px; align-items: start; }
.service-copy h2 { margin-top: 42px; }
.service-copy h2:first-child { margin-top: 0; }
.service-copy p { color: #4d5d65; }
.service-aside { position: sticky; top: 110px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.service-aside h3 { font-size: 1.25rem; }
.service-aside ul { list-style: none; padding: 0; margin: 0 0 22px; }
.service-aside a { display: block; padding: 10px 0; border-bottom: 1px solid #d9dfdf; font-weight: 700; }
.service-aside a:hover { color: var(--orange-dark); }
.band { padding: 28px; margin: 34px 0; border-left: 5px solid var(--orange); background: var(--cream); }
.band strong { display: block; margin-bottom: 4px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem; }
.two-col-list { columns: 2; column-gap: 40px; padding-left: 20px; }
.two-col-list li { margin-bottom: 10px; break-inside: avoid; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.contact-card { padding: 30px; border-radius: 12px; color: var(--white); background: var(--navy); }
.contact-card a { color: var(--orange); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; font-weight: 800; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid #cfd8da; border-radius: 6px; background: var(--white); font: inherit; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(245,130,32,.2); border-color: var(--orange); }

.site-footer { padding: 70px 0 24px; color: #c6d1d5; background: #091b22; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 50px; }
.site-footer h3 { color: var(--white); font-size: 1.15rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 9px 0; }
.site-footer a:hover { color: var(--orange); }
.copyright { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

@media (max-width: 920px) {
  .menu-button { display: block; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; align-items: stretch; flex-direction: column; gap: 0; padding: 18px 24px 25px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 0; }
  .dropdown { display: block; position: static; padding: 0 0 0 18px; border: 0; box-shadow: none; }
  .dropdown a { padding: 7px 0; font-size: .88rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar span:first-child { display: none; }
  .hero { min-height: 590px; }
  .hero-content { padding: 70px 0; }
  .section { padding: 66px 0; }
  .trust-grid, .grid-3, .process, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.28); }
  .trust-item:last-child { border-bottom: 0; }
  .cta { align-items: flex-start; flex-direction: column; padding: 32px 24px; }
  .two-col-list { columns: 1; }
}
