/* Googong Home Security — site styles
   Simple, flat sections so each block can be rebuilt/edited in NicePage.
   Change the brand colours here in one place. */

:root {
  --ink: #0f1822;        /* header, hero, footer background */
  --ink-2: #1a2735;      /* raised panels on dark */
  --accent: #fe904d;     /* logo orange: buttons, highlights on dark */
  --accent-dark: #f07a30; /* button hover */
  --accent-text: #b4520f; /* orange for text/links on white (readable) */
  --paper: #f3f6f9;      /* light section background */
  --white: #ffffff;
  --line: #d6dee6;
  --text: #1b2530;
  --muted: #5a6776;
  --on-dark: #e8eef4;
  --on-dark-muted: #a9b7c6;
  --radius: 6px;
  --max: 1140px;
  --font: "Open Sans", Arial, Helvetica, sans-serif;
  --font-head: "Roboto", Arial, Helvetica, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
.section-dark a:not(.btn), .hero a:not(.btn) { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

/* Layout helpers */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: 72px; }
.section-light { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: var(--on-dark-muted); }
.eyebrow { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .6em; }
.section-dark .eyebrow, .hero .eyebrow { color: var(--accent); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .section { padding-block: 52px; } }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 40px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--accent);
  background: var(--accent); color: var(--ink); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn-outline:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #ffc7a3; outline-offset: 2px; }

/* Licence strip (top of every page) */
.licence-strip { background: var(--accent); color: var(--ink); font-size: .88rem; }
.licence-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; padding-block: 8px; }
.licence-strip span { white-space: nowrap; }
.licence-strip strong { font-weight: 700; }

/* Header */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #22303f; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 56px; width: auto; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--white); letter-spacing: .02em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.nav a { color: var(--on-dark); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--white); text-decoration: underline; }
.nav .btn { padding: 9px 18px; font-size: .9rem; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }
.nav .btn:hover { text-decoration: none; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero {
  color: var(--on-dark); padding-block: 72px 80px;
  background: linear-gradient(90deg, rgba(15,24,34,.97) 0%, rgba(15,24,34,.9) 45%, rgba(15,24,34,.72) 100%), url("images/photo-1617897711385-df9c86b7dfe3.jpeg") center / cover no-repeat, var(--ink);
}
.hero .container { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.15rem; color: var(--on-dark-muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .95rem; color: var(--on-dark); }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } }

/* Licence card */
.licence-card {
  background: var(--ink-2); border: 1px solid #2c3d50; border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 28px;
}
.licence-card .label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0; }
.licence-card .value { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--white); margin: 2px 0 18px; font-variant-numeric: tabular-nums; }
.licence-card .value.big { font-size: 1.9rem; letter-spacing: .03em; }
.licence-card hr { border: 0; border-top: 1px solid #2c3d50; margin: 4px 0 18px; }
.licence-card a { color: var(--accent); font-size: .92rem; }

/* Trust band */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust .grid { padding-block: 40px; }
.trust-item h3 { margin-bottom: .3em; }
.trust-item p { color: var(--muted); margin: 0; font-size: .95rem; }
.trust-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; margin-bottom: 14px; }
.trust-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Services */
.service { border-top: 3px solid var(--accent); padding-top: 18px; }
.service p { color: var(--muted); }

/* Packages */
.package { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.package-img { aspect-ratio: 16 / 10; background: var(--white); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.package-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.package-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.package-price { font-family: var(--font-head); font-size: 1.05rem; color: var(--muted); margin: 0; }
.package-price strong { font-size: 1.6rem; color: var(--text); }
.package-body ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: .95rem; }
.note { font-size: .9rem; color: var(--muted); margin-top: 20px; }

/* About */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; background: #e4ebf2; }
.about-img img { width: 100%; }
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.brands li { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.brands img { width: 100%; height: 100%; object-fit: cover; }
.brands .brand-dark { background: #1a1a1a; padding: 10px; }
.brands .brand-dark img { object-fit: contain; }
.brands .brand-dahua { color: #d7000f; letter-spacing: .02em; }
@media (max-width: 520px) { .brands { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .about .container { grid-template-columns: 1fr; } }

/* Areas */
.areas { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.areas li { background: var(--ink-2); border-radius: var(--radius); padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.areas strong { color: var(--white); }
.areas span { color: var(--on-dark-muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-family: var(--font-head); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Contact */
.contact .container { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-info p { color: var(--on-dark-muted); }
.form { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: var(--white); color: var(--text);
}
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg { margin: 0; font-size: .95rem; padding: 10px 12px; border-radius: 4px; }
.form-msg.is-ok { background: #e7f5ec; color: #1d6b3a; }
.form-msg.is-error { background: #fdecea; color: #a1261b; }
.form-privacy { margin: 0; font-size: .82rem; color: var(--muted); }
.btn:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact .container { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .checks, .row-2 { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #0a1118; color: var(--on-dark-muted); font-size: .92rem; padding-block: 40px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer strong { color: var(--white); }
.site-footer a { color: var(--on-dark); }
.site-footer p { margin: 0 0 .4em; }

/* Terms page */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal li { margin-bottom: .3em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
