/* Shared styles for the Constant Sunroom sub-pages. The homepage keeps its own inline layout. */
:root {
  --stone: #EDE8E0;
  --paper: #F6F3EE;
  --ink: #1F2328;
  --muted: #4F545C;
  --faint: #7A7F87;
  --line: #C9C2B6;
  --navy: #18367D;
  --deep: #102457;
  --gold: #E3B94E;
  --orange: #E8A04C;
  --tint-blue: #DCE3F0;
  --tint-teal: #D6E6E6;
  --tint-sand: #E6E0D2;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Albert Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; text-wrap: balance; }
p { margin: 0; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

/* Promo bar + header */
.bar { background: var(--ink); color: var(--stone); font-size: 14px; text-align: center; padding: 10px var(--gutter); }
.bar a { color: var(--gold); font-weight: 600; margin-left: 8px; }
.head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 84px; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.logo img { height: 64px; width: auto; }
.actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.phone { text-decoration: none; font-weight: 600; font-size: 15px; padding: 0 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-family: var(--sans); }
.btn-dark { background: var(--ink); color: var(--stone); }
.btn-dark:hover { color: #FFFFFF; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Breadcrumb + page hero */
.crumbs { font-size: 14px; color: var(--faint); padding-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--faint); }
.page-hero { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: 32px 96px; }
.page-hero h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -0.02em; }
.page-hero .lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); margin-top: 20px; max-width: 34em; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero .eyebrow { display: block; margin-bottom: 14px; }
.hero-img { border-radius: 28px; overflow: hidden; aspect-ratio: 7 / 5; background: #C9C2B6; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero > *, .split > *, .form > * { min-width: 0; }
.contact-list span:last-child, .form input, .form select { overflow-wrap: anywhere; max-width: 100%; }
.page-hero.center { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-bottom: 72px; }
.page-hero.center .lead { margin-inline: auto; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.mono { font-family: var(--mono); letter-spacing: 0.08em; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; }
.section-head p { color: var(--muted); max-width: 36em; }
.panel { background: var(--paper); border-radius: 32px; padding: clamp(28px, 4vw, 56px); }
.panel-dark { background: var(--deep); color: #E7ECF7; border-radius: 32px; padding: clamp(28px, 4vw, 64px); }
.panel-dark .muted { color: #AEBBDA; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.feature { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.panel-dark .feature { border-color: #2B4A94; }
.feature h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; }
.feature p { color: var(--muted); }
.panel-dark .feature p { color: #AEBBDA; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { border-radius: 24px; background: var(--tint-sand); padding: 14px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.card.blue { background: var(--tint-blue); }
.card.teal { background: var(--tint-teal); }
.card .media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .pill { position: absolute; top: 12px; height: 30px; padding: 0 12px; border-radius: 999px; display: flex; align-items: center; font-size: 13px; font-weight: 600; }
.card .pill.left { left: 12px; background: var(--stone); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.card .pill.right { right: 12px; background: var(--ink); color: var(--stone); }
.card .body { padding: 0 8px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-weight: 400; font-size: 30px; }
.card .sub { font-size: 15px; color: var(--muted); }
.card .btn { margin-top: auto; }

/* Model cards on product pages */
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.model { background: #FFFFFF; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.model .code { font-family: var(--mono); font-size: 13px; color: var(--navy); letter-spacing: 0.08em; }
.model h3 { font-size: 32px; font-weight: 400; }
.model p { color: var(--muted); }

/* Spec table */
.specs { width: 100%; border-collapse: collapse; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; font-weight: 600; padding-right: 24px; }
.specs td { color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.gallery figcaption { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:first-of-type { border-top-color: var(--ink); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 19px; font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 44em; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }

/* CTA band */
.cta { background: var(--ink); color: var(--stone); border-radius: 32px; padding: clamp(32px, 5vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; max-width: 16em; }
.cta p { color: #B9B3A8; margin-top: 10px; }

/* Project filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--stone); }
.project { display: flex; flex-direction: column; gap: 10px; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.project .tag { align-self: flex-start; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--paper); display: flex; align-items: center; font-size: 12px; font-weight: 600; }
.project h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; }
.project p { font-size: 14px; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.steps .n { font-family: var(--mono); font-size: 13px; color: var(--navy); }
.steps h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Forms */
.form { background: var(--ink); color: var(--stone); border-radius: 24px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; max-width: 640px; width: 100%; justify-self: end; }
.form h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin-bottom: 4px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.form input, .form select, .form textarea { height: 44px; border-radius: 10px; border: 0; background: var(--stone); padding: 0 12px; font-size: 16px; font-family: var(--sans); color: var(--ink); width: 100%; }
.form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.form input[type="file"] { height: auto; padding: 10px 12px; background: #2C3036; color: var(--stone); font-size: 14px; }
.form .btn { height: 50px; }
.form .btn:disabled { opacity: 0.6; cursor: wait; }
.form .note { font-size: 12px; color: #9C968B; }
.form-done { grid-column: 1 / -1; border-radius: 12px; background: #2C3036; padding: 14px 16px; font-size: 15px; }
.form-done[data-ok="true"] { background: #2F5E3D; color: #FFFFFF; }
.form-done[data-ok="false"] { background: #6B2E26; color: #FFFFFF; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list div { display: flex; flex-direction: column; gap: 2px; }
.contact-list span:first-child { font-size: 13px; color: var(--faint); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-list span:last-child { font-size: 19px; font-weight: 600; }

/* Prose (privacy, about) */
.prose { max-width: 46em; display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.prose h2 { font-size: 34px; margin-top: 18px; }
.prose p, .prose li { color: var(--muted); }
.draft { border-radius: 14px; background: #F3E3B6; padding: 14px 18px; font-size: 14px; color: #5B4712; }

/* Comparison table */
.compare th, .compare td { padding: 14px 16px 14px 0; }
.compare thead th { font-size: 13px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }

/* Footer */
.foot { background: var(--ink); color: #B9B3A8; margin-top: clamp(64px, 9vw, 120px); padding-block: 56px 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 10px; }
.foot-grid strong { color: var(--stone); font-weight: 600; }
.foot a { color: #B9B3A8; text-decoration: none; }
.foot a:hover { color: var(--stone); }
.foot .tagline { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--stone); }
.foot-word { font-family: var(--serif); font-weight: 300; font-size: clamp(88px, 18vw, 262px); line-height: 0.8; letter-spacing: -0.03em; color: var(--stone); margin-top: 48px; white-space: nowrap; }

/* Phone layout */
@media (max-width: 860px) {
  .head { grid-template-columns: 1fr auto; padding-top: 8px; }
  .logo { grid-row: 1; grid-column: 1; justify-self: start; }
  .logo img { height: 48px; }
  .actions { grid-row: 1; grid-column: 2; }
  .phone { display: none; }
  .actions .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .nav { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; white-space: nowrap; gap: 18px; padding: 12px 0; border-top: 1px solid #D8D1C4; scrollbar-width: none; }
  .page-hero, .split { grid-template-columns: 1fr; }
  .page-hero { padding-bottom: 64px; }
  .form { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
