/* Shared typography and elements */
* {
  box-sizing: border-box;
  border-radius: 0;
}
html {
  --green: #006400;
  --gray: #d3d3d3;
  --white: #fff;
  --border: #ccc;
  --section-top: 110px;
  --section-bottom: 40px;
  --body-size: 24px;
  --title-size: 48px;
  --heading-size: 34px;
  --subheading-size: 26px;
  --brand-size: 36px;
  --caption-size: 18px;
  --credit-size: 16px;
  --price-size: 32px;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-x: clip;
}
body {
  margin: 0;
  color: #000;
  background: var(--gray);
  font:
    var(--body-size)/1.5 "Highway Gothic",
    Arial,
    sans-serif;
}
h1,
h2,
h3 {
  margin: 0 0 16px;
  color: var(--green);
  line-height: 1.2;
}
h1 {
  font-size: var(--title-size);
}
h2 {
  font-size: var(--heading-size);
}
h3 {
  font-size: var(--subheading-size);
}
h4,
dt {
  margin: 16px 0 8px;
  font-weight: bold;
}
p {
  margin: 0 0 16px;
}
a {
  text-underline-offset: 3px;
}
svg {
  width: 26px;
  height: 26px;
  vertical-align: -3px;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
figure {
  margin: 0;
}
figcaption {
  background: var(--white);
  color: #555;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0 auto 16px;
  padding: 8px 12px;
  font-size: var(--caption-size);
  font-style: italic;
  text-align: center;
}

/* Navigation */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4%;
  background: var(--green);
  color: var(--white);
}
nav a {
  color: inherit;
  text-decoration: none;
}
nav h1 {
  margin: 0;
  color: inherit;
  font-size: var(--brand-size);
}
nav h1 a {
  display: flex;
  align-items: center;
  gap: 12px;
}
nav img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}
nav p,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
}

/* Full-screen sections and their background layers */
section {
  --background-image: url("images/cornerdoglabs-outdoorsofa.jpg");
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--section-top) 4% var(--section-bottom);
  border-bottom: 1px solid var(--border);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
section::before,
.background-blur {
  position: absolute;
  inset: 0;
}
section::before {
  content: "";
  z-index: -2;
  background: var(--background-image) center top / cover no-repeat fixed;
}
#calculator {
  --background-image: url("images/cornerdoglabs-meinshop.jpg");
}

#pricing {
  --background-image: url("images/cornerdoglabs-projectshero.png");
}

#faq {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  --background-image: url("images/cornerdoglabs-wallart.jpg");
  justify-content: flex-start;
  padding-bottom: 0;
}

.background-blur {
  z-index: -1;
  backdrop-filter: blur(75px);
  -webkit-backdrop-filter: blur(75px);
  pointer-events: none;
}
/* Reusable two-column layouts and photo rows */
.content-grid,
.image-strip {
  display: grid;
}
.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.centered {
  align-items: center;
}
.image-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.image-strip img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video-preview {
  align-self: center;
}
.video-preview img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.section-heading {
  background: var(--white);
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 24px;
  text-align: center;
}
/* About */
.about-panel {
  padding: 24px;
  background: var(--white);
}
.about-panel a {
  overflow-wrap: anywhere;
}
.about-panel summary {
  color: var(--green);
}

/* Pricing calculator */
.calculator-panel {
  padding: 20px;
  background: var(--white);
}
form {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--white);
}
label {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}
input,
textarea,
button {
  font: inherit;
}
input,
textarea {
  background: var(--white);
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #888;
  color: #222;
}
textarea,
#attachments {
  margin-bottom: 20px;
}
textarea {
  resize: vertical;
}
button {
  color: #555;
  padding: 10px 18px;
  border: 1px solid #aaa;
  background: #e0e0e0;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid #236bb0;
  outline-offset: 3px;
}
.form-fields {
  margin-bottom: 24px;
}
.estimate {
  min-height: 38px;
  margin: 16px 0;
}
.price-placeholder {
  font-weight: bold;
  display: none;
  font-size: var(--price-size);
}
#destination:not(:placeholder-shown) ~ .estimate .price-placeholder {
  display: inline;
}
iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: 1px solid #888;
}

/* Pricing chart */
.table-wrapper {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 14px;
  vertical-align: top;
}
thead th,
tfoot th,
tfoot td {
  background: var(--gray);
}

/* Expandable FAQ articles */
details {
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
summary {
  background: var(--white);
  font-weight: bold;
  padding: 18px;
  cursor: pointer;
}
article {
  padding: 20px;
  background: var(--white);
}
article figure {
  max-width: 720px;
}
.article-image-right {
  order: 2;
}

blockquote {
  background: var(--white);
  margin: 20px 0;
  padding: 12px 20px;
  border-left: 3px solid #666;
  font-style: italic;
}
dd {
  margin-left: 20px;
}

/* Footer */
footer {
  margin-top: auto;
  align-self: center;
  width: calc(100% + 8vw);
  max-width: 100vw;
  padding: 2px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
footer p {
  margin: 0;
}
footer a {
  margin-left: auto;
  font-size: var(--credit-size);
}

/* Responsive layouts */
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  html {
    --section-top: 200px;
    --section-bottom: 32px;
    --body-size: 18px;
    --title-size: 36px;
    --heading-size: 28px;
    --subheading-size: 24px;
    --brand-size: 24px;
    --caption-size: 14px;
    --credit-size: 14px;
    --price-size: 24px;
  }
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
  }
  nav p {
    gap: 8px 18px;
  }
  .content-grid,
  .image-strip {
    grid-template-columns: 1fr;
  }
  form {
    padding: 16px;
  }
  .article-image-right {
    margin: 0 0 20px;
  }
}
@media (max-width: 360px) {
  html {
    --section-top: 230px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
