/*
Theme Name: Installed Sound
Theme URI: https://www.installedsound.co.uk/
Author: Installed Sound
Author URI: https://www.installedsound.co.uk/
Description: A bespoke, lightweight commercial theme for Installed Sound, including dedicated layouts for services, Atmosphere music management, projects and contact pages.
Version: 1.2.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: installed-sound
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--is-venue-background: url("assets/images/venue-background.png");
  --is-navy: #111926;
  --is-ink: #18212f;
  --is-blue: #2267d8;
  --is-blue-dark: #174ea6;
  --is-blue-soft: #eaf2ff;
  --is-green: #167b4b;
  --is-muted: #697586;
  --is-line: #dce2ea;
  --is-paper: #ffffff;
  --is-cloud: #f3f6fa;
  --is-shadow: 0 20px 60px rgba(17, 25, 38, .10);
  --is-radius: 22px;
  --is-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--is-ink);
  background: #fff;
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: var(--is-blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--is-blue); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; height: auto; width: auto; top: 10px; left: 10px; z-index: 10000; padding: 10px 14px; background: #fff; }
.site-shell { width: min(calc(100% - 40px), var(--is-max)); margin-inline: auto; }
.site-main { min-height: 65vh; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(17,25,38,.97); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.09); backdrop-filter: blur(14px); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.site-brand { display: inline-flex; align-items: baseline; gap: 5px; color: #fff; text-decoration: none; letter-spacing: -.035em; white-space: nowrap; }
.site-brand__installed { color: #75a9ff; font-weight: 750; font-size: 1.42rem; }
.site-brand__sound { color: #fff; font-weight: 750; font-size: 1.42rem; }
.site-brand__descriptor { color: #98a6b8; font-size: .78rem; font-weight: 500; letter-spacing: 0; margin-left: 7px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; list-style: none; gap: 29px; align-items: center; margin: 0; padding: 0; }
.primary-nav a { color: #dfe6f0; text-decoration: none; font-weight: 650; font-size: .92rem; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #7db0ff; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 10px; background: var(--is-blue); color: #fff; text-decoration: none; font-weight: 750; font-size: .9rem; }
.header-cta:hover { color: #fff; background: #3175e4; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: transparent; color: #fff; }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; }

/* Shared sections */
.eyebrow { margin: 0 0 14px; color: var(--is-blue); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.display-title { max-width: 900px; margin: 0; font-size: clamp(2.65rem, 6.2vw, 5.7rem); line-height: .99; letter-spacing: -.055em; }
.section-title { max-width: 780px; margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.07; letter-spacing: -.045em; }
.lead { max-width: 720px; color: var(--is-muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.55; }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--soft { background: var(--is-cloud); }
.section--venue { position: relative; background: linear-gradient(rgba(245,248,252,.93),rgba(245,248,252,.97)), var(--is-venue-background) center/cover; }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 42px; }
.section-heading .lead { margin: 0; max-width: 470px; font-size: 1rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button, .wp-block-button__link, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border: 1px solid transparent; border-radius: 11px; background: var(--is-blue); color: #fff; text-decoration: none; font-weight: 780; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover, .wp-block-button__link:hover, input[type="submit"]:hover { color: #fff; background: #3175e4; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(34,103,216,.23); }
.button--secondary { border-color: var(--is-line); background: #fff; color: var(--is-ink); }
.button--secondary:hover { background: #f7f9fc; color: var(--is-ink); box-shadow: none; }
.button--light { background: #fff; color: var(--is-blue-dark); }
.button--light:hover { background: #f1f6ff; color: var(--is-blue-dark); }
.text-link { display: inline-flex; gap: 7px; align-items: center; font-weight: 750; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(3px); }
.card { background: var(--is-paper); border: 1px solid var(--is-line); border-radius: var(--is-radius); box-shadow: var(--is-shadow); }
.pill { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--is-blue-soft); color: var(--is-blue-dark); font-size: .76rem; font-weight: 800; }

/* Homepage */
.home-hero { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(90deg, rgba(244,247,251,.99) 0%, rgba(244,247,251,.92) 48%, rgba(244,247,251,.42) 100%), var(--is-venue-background) center/cover; }
.home-hero::after { content: ""; position: absolute; inset: auto -8vw -36vw 44%; height: 65vw; border-radius: 50%; background: radial-gradient(circle, rgba(34,103,216,.15), transparent 63%); pointer-events: none; }
.home-hero__inner { position: relative; z-index: 1; padding: 100px 0 110px; }
.home-hero .lead { margin: 28px 0 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 48px; color: var(--is-muted); font-size: .92rem; font-weight: 650; }
.trust-row span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 1px 0; border-radius: 50%; background: var(--is-green); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { min-height: 330px; padding: 34px; display: flex; flex-direction: column; }
.service-card__number { color: var(--is-blue); font-size: .76rem; font-weight: 850; letter-spacing: .12em; }
.service-card h3 { margin: 42px 0 12px; font-size: 1.65rem; line-height: 1.15; letter-spacing: -.03em; }
.service-card p { margin: 0 0 28px; color: var(--is-muted); font-size: .98rem; }
.service-card .text-link { margin-top: auto; }
.atmosphere-feature { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; background: var(--is-navy); color: #fff; border-radius: 30px; box-shadow: var(--is-shadow); }
.atmosphere-feature__copy { padding: clamp(38px, 6vw, 76px); }
.atmosphere-feature .eyebrow { color: #76aaff; }
.atmosphere-feature h2 { margin: 0; color: #fff; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
.atmosphere-feature p { color: #cdd7e5; }
.atmosphere-feature__visual { min-height: 520px; padding: 55px 0 55px 40px; display: flex; align-items: center; background: linear-gradient(135deg,#172336,#0b111b); }
.ui-frame { overflow: hidden; width: 120%; border: 8px solid rgba(255,255,255,.12); border-radius: 18px 0 0 18px; box-shadow: 0 35px 80px rgba(0,0,0,.35); transform: rotate(-1deg); }
.ui-frame img { display: block; width: 100%; }
.project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.project-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.project-card__image { display: block; aspect-ratio: 16/10; overflow: hidden; background: #dce5f1; }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-card__image img { transform: scale(1.025); }
.project-card__body { padding: 26px; display: flex; flex: 1; flex-direction: column; }
.project-card__meta { color: var(--is-blue); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-card h3 { margin: 12px 0 11px; font-size: 1.35rem; line-height: 1.22; letter-spacing: -.025em; }
.project-card h3 a { color: inherit; text-decoration: none; }
.project-card p { margin: 0 0 22px; color: var(--is-muted); font-size: .92rem; }
.project-card .text-link { margin-top: auto; }
.founder-band { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; align-items: center; }
.founder-band__mark { display: grid; place-items: center; aspect-ratio: 1; max-width: 350px; border-radius: 50%; background: var(--is-blue-soft); color: var(--is-blue); font-family: Georgia, serif; font-size: 11rem; line-height: 1; }
.founder-band blockquote { margin: 24px 0 25px; font-size: clamp(1.35rem,2.5vw,2.1rem); line-height: 1.34; letter-spacing: -.025em; font-weight: 650; }
.founder-band cite { color: var(--is-muted); font-style: normal; }
.cta-band { display: flex; justify-content: space-between; gap: 40px; align-items: center; padding: clamp(38px,5vw,64px); border-radius: 28px; background: var(--is-navy); color: #fff; }
.cta-band h2 { margin: 0 0 8px; color: #fff; font-size: clamp(2rem,4vw,3.4rem); line-height: 1.05; letter-spacing: -.04em; }
.cta-band p { margin: 0; color: #cdd7e5; }

/* Interior heroes */
.page-hero { position: relative; padding: 100px 0 88px; overflow: hidden; background: linear-gradient(90deg,rgba(244,247,251,.99),rgba(244,247,251,.82)), var(--is-venue-background) center/cover; }
.page-hero--dark { background: var(--is-navy); color: #fff; }
.page-hero--dark h1, .page-hero--dark h2, .page-hero--dark h3 { color: #fff; }
.page-hero--dark .lead { color: #cdd7e5; }
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.page-hero__media { position: relative; }
.page-hero__media img { display: block; border-radius: 20px; box-shadow: 0 28px 70px rgba(17,25,38,.2); }
.breadcrumb { margin-bottom: 22px; color: var(--is-muted); font-size: .85rem; font-weight: 650; }
.breadcrumb a { color: inherit; text-decoration: none; }

/* Atmosphere */
.feature-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 42px; }
.feature-item { padding: 28px; }
.feature-item__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 25px; border-radius: 12px; background: var(--is-blue-soft); color: var(--is-blue); font-weight: 850; }
.feature-item h3 { margin: 0 0 10px; font-size: 1.2rem; }
.feature-item p { margin: 0; color: var(--is-muted); font-size: .92rem; }
.control-showcase { display: grid; grid-template-columns: 1.12fr .88fr; gap: 28px; align-items: center; }
.control-showcase__screen { padding: 14px; }
.control-showcase__screen img { display: block; border-radius: 13px; }
.check-list { list-style: none; margin: 30px 0 0; padding: 0; }
.check-list li { position: relative; margin: 15px 0; padding-left: 31px; color: var(--is-muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--is-blue); font-weight: 900; }
.hardware-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.hardware-image { padding: 42px; background: #fff; }
.hardware-image img { display: block; }

/* Archives and articles */
.archive-hero { padding: 82px 0 60px; background: var(--is-cloud); }
.archive-grid { padding: 65px 0 100px; }
.pagination { margin-top: 50px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--is-line); border-radius: 9px; background: #fff; text-decoration: none; }
.pagination .current { border-color: var(--is-blue); background: var(--is-blue); color: #fff; }
.article-hero { padding: 78px 0 52px; background: var(--is-cloud); }
.article-hero__meta { display: flex; gap: 12px; align-items: center; color: var(--is-muted); font-size: .88rem; }
.article-title { max-width: 960px; margin: 18px 0 22px; font-size: clamp(2.4rem,5.8vw,5rem); line-height: 1.02; letter-spacing: -.05em; }
.article-featured { width: min(calc(100% - 40px), 1180px); margin: 0 auto -20px; position: relative; z-index: 2; }
.article-featured img { display: block; width: 100%; max-height: 650px; object-fit: cover; border-radius: 24px; box-shadow: var(--is-shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0,760px) 250px; gap: 70px; align-items: start; padding: 90px 0 110px; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: 760px; }
.entry-content h2 { margin: 2.2em 0 .7em; font-size: 2.1rem; line-height: 1.15; letter-spacing: -.03em; }
.entry-content h3 { margin-top: 1.9em; font-size: 1.45rem; line-height: 1.25; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content img, .entry-content .wp-block-image { border-radius: 16px; }
.entry-content blockquote { margin: 2em 0; padding: 7px 0 7px 28px; border-left: 4px solid var(--is-blue); color: var(--is-blue-dark); font-size: 1.35rem; font-weight: 650; }
.article-aside { position: sticky; top: 110px; padding: 25px; }
.article-aside strong { display: block; margin-bottom: 8px; }
.article-aside p { margin: 0; color: var(--is-muted); font-size: .88rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 55px; padding-top: 35px; border-top: 1px solid var(--is-line); }
.post-nav a { display: block; padding: 22px; border: 1px solid var(--is-line); border-radius: 14px; text-decoration: none; font-weight: 700; }
.post-nav .nav-next { text-align: right; }

/* Pages and contact */
.page-content { padding: 80px 0 110px; }
.page-content__inner { max-width: 800px; }
.service-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; align-items: start; }
.service-intro__rail { position: sticky; top: 115px; }
.service-intro__content { font-size: 1.08rem; }
.service-intro__content h2 { margin-top: 0; font-size: 2.5rem; line-height: 1.1; letter-spacing: -.04em; }
.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 28px; }
.contact-details { padding: 35px; background: var(--is-navy); color: #fff; }
.contact-details h2, .contact-details strong { color: #fff; }
.contact-details .eyebrow { color: #8bb7ff; }
.contact-details a { color: #8bb7ff; }
.contact-line { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.contact-line:last-child { border: 0; }
.contact-line span { display: block; color: #98a6b8; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-line strong { display: block; margin-top: 5px; font-size: 1.2rem; }
.contact-form { padding: 35px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select { width: 100%; padding: 13px 15px; border: 1px solid #cfd7e3; border-radius: 9px; background: #fff; color: var(--is-ink); }
textarea { min-height: 160px; }
label { font-weight: 700; }
.search-form { display: flex; gap: 10px; align-items: stretch; }
.search-form label { flex: 1; }
.comments-area { margin-top: 55px; padding-top: 35px; border-top: 1px solid var(--is-line); }
.comments-area ol { padding-left: 24px; }
.comment-form > p { margin-bottom: 18px; }
.empty-state { padding: 80px 0 110px; text-align: center; }
.empty-state .lead { margin-inline: auto; }

/* Footer */
.site-footer { padding: 65px 0 28px; background: var(--is-navy); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .7fr .7fr; gap: 55px; }
.footer-intro { max-width: 430px; color: #aeb9c8; }
.footer-title { color: #8bb7ff; font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 18px 0 0; padding: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: #dfe6f0; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 55px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #8e9bad; font-size: .82rem; }

/* WordPress */
.alignwide { width: min(1120px, calc(100vw - 40px)); max-width: none !important; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none !important; margin-left: 50%; transform: translateX(-50%); }
.wp-caption-text, .wp-element-caption { color: var(--is-muted); font-size: .82rem; }

@media (max-width: 920px) {
  .admin-bar .site-header { top: 46px; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px); overflow-y: auto; padding: 26px 20px 42px; background: #111926; border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 28px 50px rgba(4,9,16,.34); isolation: isolate; }
  .nav-open .primary-nav { display: block; }
  .primary-nav ul { display: grid; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .primary-nav a { display: block; padding: 18px 4px; font-size: 1.2rem; }
  .service-grid, .project-grid, .feature-list { grid-template-columns: repeat(2,1fr); }
  .atmosphere-feature, .page-hero__grid, .control-showcase, .hardware-panel, .founder-band, .service-intro, .contact-grid { grid-template-columns: 1fr; }
  .atmosphere-feature__visual { min-height: 390px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside, .service-intro__rail { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1/-1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-shell { width: min(calc(100% - 28px), var(--is-max)); }
  .site-brand__descriptor { display: none; }
  .home-hero { min-height: 650px; background: linear-gradient(rgba(244,247,251,.94),rgba(244,247,251,.98)), var(--is-venue-background) center/cover; }
  .home-hero__inner { padding: 76px 0 86px; }
  .display-title { font-size: clamp(2.55rem, 12vw, 3.6rem); overflow-wrap: anywhere; }
  .section { padding: 68px 0; }
  .section-heading { display: block; }
  .section-heading .lead { margin-top: 18px; }
  .service-grid, .project-grid, .feature-list { grid-template-columns: 1fr; }
  .service-card { min-height: 270px; }
  .atmosphere-feature { border-radius: 22px; }
  .atmosphere-feature__visual { min-height: 275px; padding: 32px 0 32px 22px; }
  .ui-frame { width: 112%; }
  .founder-band__mark { max-width: 180px; font-size: 7rem; }
  .cta-band { display: block; }
  .cta-band .button { margin-top: 24px; }
  .page-hero { padding: 72px 0 60px; }
  .page-hero__grid { gap: 35px; }
  .article-title { font-size: clamp(2.5rem,13vw,3.8rem); }
  .article-featured { width: calc(100% - 28px); }
  .article-layout { padding-top: 65px; }
  .post-nav, .footer-grid { grid-template-columns: 1fr; }
  .search-form { display: grid; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
