/* =========================================================
Cornerstone Home Inspections
Main Stylesheet
========================================================= */

/* NOTE (delivered with the instant-quote calculator): this file is your
   live style.css as pulled from cornerstoneinspectionpros.com during that
   build, with ONE new section added — "14b. Instant Quote Calculator"
   below, right after section 14. If you've edited style.css since then,
   don't overwrite the whole file with this copy — just paste section 14b
   (also saved on its own in style-additions.css) into your real file
   instead. Nothing else in this file was intentionally changed. */

/* =========================================================
1. Design Tokens
========================================================= */

:root {
--green: #0f5c3a;
--green-dark: #0a3f29;
--charcoal: #20262d;
--gray: #6b7280;
--light-gray: #f4f6f7;
--stone: #d9dedc;
--white: #ffffff;

--shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
--card-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
--button-shadow: 0 12px 22px rgba(15, 92, 58, 0.22);

--radius: 22px;
--card-radius: 18px;
--button-radius: 999px;

--border-green-soft: 1px solid rgba(15, 92, 58, 0.12);
--border-green-medium: 1px solid rgba(15, 92, 58, 0.18);
}

/* =========================================================
2. Base / Reset
========================================================= */

* {
box-sizing: border-box;
}

html {
-webkit-text-size-adjust: 100%;
scroll-behavior: smooth;
}

body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
color: var(--charcoal);
background:
radial-gradient(circle at top left, rgba(15, 92, 58, 0.12), transparent 34rem),
linear-gradient(135deg, #ffffff 0%, #f5f7f6 55%, #eef2f0 100%);
min-height: 100vh;
line-height: 1.6;
}

img {
max-width: 100%;
height: auto;
}

a {
color: var(--green-dark);
}

dd {
margin-bottom: 1em;
}

dt {
font-weight: bold;
}

h1 {
text-align: center;
}

/* =========================================================
3. Page Layout
========================================================= */

.page {
width: min(1120px, calc(100% - 32px));
margin: 0 auto;
padding: 28px 0 42px;
}

.main {
background: rgba(255, 255, 255, 0.82);
border: var(--border-green-soft);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: clamp(28px, 5vw, 58px);
overflow: hidden;
}

/* =========================================================
4. Header / Branding
========================================================= */

.site-header {
margin-bottom: 1.2rem;
}

.brand {
display: flex;
align-items: center;
justify-content: center;
font-size: clamp(14px, 2.35vw, 48px);
}

.brand-link {
display: flex;
align-items: center;
justify-content: center;
gap: clamp(12px, 2vw, 32px);
color: inherit;
text-decoration: none;
}

.brand-link:hover .site-title,
.brand-link:focus .site-title {
text-decoration: underline;
}

.brand-logo {
height: 4.5em;
width: auto;
flex-shrink: 0;
}

.brand-text {
display: block;
}

.site-title {
display: block;
margin: 0;
font-size: 1.8em;
font-weight: 700;
line-height: 1.05;
color: var(--green-dark);
white-space: nowrap;
}

.brand-text .subtitle {
display: block;
margin: 0.25em 0 0;
font-size: 0.85em;
line-height: 1.25;
color: var(--charcoal);
}

/* =========================================================
5. Navigation
========================================================= */

.site-nav {
margin: 1.2em 0;
}

.nav-links {
text-align: center;
text-wrap: balance;
}

.nav-button,
.request-inspection {
display: inline-block;
border-radius: var(--button-radius);
white-space: nowrap;
text-decoration: none;
font-weight: 700;
color: var(--white);
padding: 0.8rem 1.1rem;
margin: 4px 5px;
}

.nav-button {
background: var(--green);
box-shadow: var(--button-shadow);
transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.nav-button:hover,
.nav-button:focus {
transform: translateY(-2px);
box-shadow: 0 16px 28px rgba(15, 92, 58, 0.3);
background: var(--green-dark);
}

.nav-button:focus {
outline: 3px solid rgba(15, 92, 58, 0.25);
outline-offset: 3px;
}

.request-inspection {
background: #3333aa;
border: 2px solid #6666cc;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
animation: requestPulse 5s ease-in-out infinite;
}

.request-inspection:hover,
.request-inspection:focus {
background: #9d7325;
color: var(--white);
transform: translateY(-1px);
}

.request-button {
border: 1px solid var(--green-dark);
}

@keyframes requestPulse {
0%, 85%, 100% {
transform: scale(1);
box-shadow: none;
}

90% {
transform: scale(1.04);
box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.25);
}

95% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
}
}

@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}

.request-inspection {
animation: none;
}
}

/* =========================================================
6. Reusable Typography / Content Helpers
========================================================= */

.hero-lead {
max-width: 820px;
margin: 0.75rem auto 1.5rem;
font-size: clamp(1.08rem, 2vw, 1.35rem);
line-height: 1.45;
color: var(--charcoal);
text-align: center;
text-wrap: balance;
}

.price-note {
margin-bottom: 0;
color: var(--gray);
font-size: 0.95rem;
}

.yellow {
background-color: yellow;
}

.right {
text-align: right;
}

/* =========================================================
7. Reusable Cards / Info Blocks
========================================================= */

.info-card {
background: rgba(255, 255, 255, 0.78);
border: var(--border-green-soft);
border-radius: var(--card-radius);
padding: 19px;
box-shadow: var(--card-shadow);
}

.info-card h2 {
margin: 0 0 0.45rem;
font-size: 1.02rem;
color: var(--green-dark);
}

.info-card p {
margin-bottom: 0;
}

/* =========================================================
8. Homepage Hero / Seals
========================================================= */

.hero-seal-row {
display: grid;
grid-template-columns: minmax(110px, 180px) minmax(260px, 420px) minmax(110px, 180px);
align-items: center;
justify-content: center;
gap: clamp(16px, 3vw, 34px);
margin: 0 auto 2.5rem;
}

.hero-seal {
display: block;
width: 100%;
max-width: 170px;
height: auto;
margin: 0 auto;
transition: transform 0.2s;
}

.hero-seal-link {
display: block;
text-decoration: none;
}

.hero-seal-link:hover .hero-seal,
.hero-seal-link:focus .hero-seal {
transform: translateY(-2px);
}

#hero-card {
border-radius: 16px;
box-shadow: 0 18px 44px rgba(0, 0, 0, 0.10);
width: 100%;
max-width: 420px;
height: auto;
display: block;
margin: 0 auto;
}

/* =========================================================
9. Homepage Services Summary
========================================================= */

.home-services-summary {
margin-top: 2.5rem;
}

.home-services-summary h2 {
color: var(--green-dark);
text-align: center;
}

.service-link-list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
padding: 0;
margin: 1.5rem 0 2rem;
list-style: none;
}

.service-link-list li {
margin: 0;
}

.service-link-card {
display: grid;
grid-template-columns: 82px 1fr;
align-items: center;
gap: 1rem;
height: 100%;
background: rgba(255, 255, 255, 0.78);
border: var(--border-green-soft);
border-radius: var(--card-radius);
padding: 0.85rem 1rem;
box-shadow: var(--card-shadow);
color: var(--charcoal);
text-decoration: none;
transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-link-card:hover,
.service-link-card:focus {
transform: translateY(-2px);
border-color: rgba(15, 92, 58, 0.28);
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.09);
}

.service-link-card:focus {
outline: 3px solid rgba(15, 92, 58, 0.22);
outline-offset: 3px;
}

.service-link-card img {
width: 82px;
height: 82px;
border-radius: 18px;
display: block;
flex-shrink: 0;
}

.service-link-text {
display: block;
}

.service-link-text strong {
display: block;
color: var(--green-dark);
font-size: 1.02rem;
line-height: 1.25;
}

.service-link-text span {
display: block;
margin-top: 0.3rem;
color: var(--charcoal);
font-size: 0.94rem;
line-height: 1.4;
}

/* =========================================================
10. Services Page
========================================================= */

.service-container {
margin-top: 2rem;
}

.service-item {
display: grid;
grid-template-columns: 180px 1fr;
gap: 1.5rem;
align-items: start;
margin-bottom: 2.8rem;
padding-bottom: 2.2rem;
border-bottom: var(--border-green-soft);
scroll-margin-top: 1.5rem;
}

.service-item:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}

.service-logo {
width: 100%;
max-width: 180px;
height: auto;
cursor: pointer;
display: block;
margin: 0 auto;
}

.service-text h2,
.service-text h3 {
margin: 0 0 0.8rem;
color: var(--green-dark);
line-height: 1.2;
}

.service-text p {
margin-top: 0;
}

/* =========================================================
11. FAQ
========================================================= */

.faq-section {
margin: 1rem 0;
border: 1px solid #d6d0c3;
border-radius: 8px;
background: var(--white);
overflow: hidden;
}

.faq-section summary {
cursor: pointer;
padding: 0.9rem 1rem;
font-size: 1.25rem;
font-weight: bold;
background: #f5f1e8;
color: #2b2118;
list-style: none;
}

.faq-section summary::-webkit-details-marker {
display: none;
}

.faq-section summary::after {
content: " +";
float: right;
font-weight: bold;
}

.faq-section[open] summary::after {
content: " âˆ’";
}

.faq-section-content {
padding: 0 1rem 1rem;
}

.faq-section-content h3 {
margin-top: 1.2rem;
}

/* =========================================================
12. Service Area / Footer Trust Cards
========================================================= */

.service-area {
margin-top: 2.5rem;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}

/* =========================================================
13. Contact Page
========================================================= */

.contact-page .lead {
font-size: clamp(1.05rem, 2vw, 1.25rem);
color: var(--charcoal);
max-width: 780px;
}

.contact-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
margin: 2rem 0;
}

.contact-card {
background: rgba(255, 255, 255, 0.78);
border: var(--border-green-soft);
border-radius: var(--card-radius);
padding: 1.25rem;
box-shadow: var(--card-shadow);
}

.contact-card h2 {
margin-top: 0;
color: var(--green-dark);
line-height: 1.2;
}

.contact-card p:last-child,
.contact-card ul:last-child {
margin-bottom: 0;
}

.contact-action {
margin: 1rem 0;
}

.contact-detail {
overflow-wrap: anywhere;
}

.contact-wide {
margin-top: 1.25rem;
}

.contact-request-button {
display: inline-block;
}

/* =========================================================
14. Forms / Request Inspection
========================================================= */

.estimate-table {
border-spacing: 10px;
}

.request-page h2,
.form-thank-you h2 {
margin-top: 0;
color: var(--green-dark);
}

.inspection-form {
margin-top: 2rem;
}

.inspection-form fieldset {
border: var(--border-green-medium);
border-radius: var(--card-radius);
padding: 1.25rem;
margin: 0 0 1.5rem;
background: rgba(255, 255, 255, 0.62);
}

.inspection-form legend {
padding: 0 0.5rem;
color: var(--green-dark);
font-weight: 700;
font-size: 150%;
}

.inspection-form label {
display: block;
font-weight: 700;
margin: 1rem 0 0.35rem;
}

.inspection-form input[type="text"],
.inspection-form input[type="email"],
.inspection-form input[type="tel"],
.inspection-form input[type="datetime-local"],
.inspection-form select,
.inspection-form textarea {
width: 100%;
padding: 0.85rem 0.95rem;
border: 1px solid rgba(32, 38, 45, 0.22);
border-radius: 12px;
font: inherit;
background: var(--white);
color: var(--charcoal);
}

.inspection-form input:focus,
.inspection-form textarea:focus {
outline: 3px solid rgba(15, 92, 58, 0.18);
border-color: var(--green);
}

.service-options {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
margin-top: 0.75rem;
}

.service-option {
display: flex !important;
align-items: flex-start;
gap: 0.75rem;
margin: 0 !important;
padding: 1rem;
border: 1px solid rgba(15, 92, 58, 0.16);
border-radius: 16px;
background: var(--white);
cursor: pointer;
}

.service-option input {
margin-top: 0.25rem;
transform: scale(1.2);
}

.service-option span {
display: flex;
flex-direction: column;
gap: 0.15rem;
}

.service-option em {
color: var(--green-dark);
font-style: normal;
font-weight: 700;
}

.service-option small {
display: block;
margin-top: 0.35rem;
color: var(--gray);
font-weight: 400;
line-height: 1.35;
}

.form-button {
display: inline-block;
width: 100%;
border: none;
border-radius: var(--button-radius);
background: var(--green);
color: var(--white);
padding: 0.95rem 1.25rem;
font: inherit;
font-weight: 700;
text-align: center;
text-decoration: none;
cursor: pointer;
box-shadow: var(--button-shadow);
}

.form-button:hover,
.form-button:focus {
background: var(--green-dark);
}

.secondary-button {
background: var(--charcoal);
box-shadow: 0 12px 22px rgba(32, 38, 45, 0.18);
}

.secondary-button:hover,
.secondary-button:focus {
background: #111827;
}

.form-errors {
border: 1px solid rgba(160, 32, 32, 0.28);
border-radius: 16px;
padding: 1rem 1.25rem;
background: rgba(255, 235, 235, 0.82);
color: #6f1d1d;
margin: 1.5rem 0;
}

.form-errors h3 {
margin-top: 0;
}

.form-errors ul {
margin-bottom: 0;
}

.form-thank-you {
text-align: center;
max-width: 720px;
margin: 0 auto;
}

.website-field {
position: absolute;
left: -9999px;
height: 1px;
overflow: hidden;
}


/* =========================================================
14b. Instant Quote Calculator — clean, single-column layout
(scoped to estimate.php via the "calculator-form" /
"calculator-section" classes so nothing else on the site is
affected. No fieldset/legend involved — plain sections with
an <h2>, styled directly, instead of fighting the default
fieldset "boxed card" look with an override.)
========================================================= */

.calculator-section {
margin: 0 0 2rem;
}

.calculator-section h2 {
margin: 0 0 1rem;
padding-bottom: 0.5rem;
border-bottom: var(--border-green-soft);
color: var(--green-dark);
font-weight: 700;
font-size: 1.15rem;
}

.inspection-form.calculator-form .service-options {
display: block;
margin-top: 0;
}

.inspection-form.calculator-form .service-option {
border: none;
border-radius: 0;
background: none;
padding: 0.5rem 0;
}

.inspection-form.calculator-form .service-option span {
display: block;
}

.inspection-form.calculator-form .service-option em {
margin-right: 0.4rem;
}

.inspection-form.calculator-form .service-option small {
display: inline;
margin-top: 0;
}

.calculator-row {
display: flex;
gap: 1rem;
}

.calculator-row > div {
flex: 1;
}

.calculator-subfield {
margin-top: 1rem;
padding: 1rem 1.1rem;
background: var(--light-gray);
border-radius: 12px;
}

.calculator-callout {
margin-top: 0.75rem;
padding: 0.75rem 1rem;
background: var(--light-gray);
border-left: 3px solid var(--green);
border-radius: 8px;
font-size: 0.9rem;
}

.calculator-summary {
background: var(--light-gray);
border-radius: 12px;
padding: 1rem 1.25rem;
margin: 1.5rem 0;
}

.calculator-summary ul {
padding-left: 1.2rem;
}

@media (max-width: 640px) {
.calculator-row {
flex-direction: column;
gap: 0;
}
}

/* =========================================================
15. Images / Figures / Seals
========================================================= */

.hero-photo {
margin: 0;
text-align: center;
}

.hero-photo figcaption {
margin-top: 0.75rem;
color: var(--green-dark);
font-weight: 700;
font-size: clamp(0.95rem, 1.5vw, 1.15rem);
line-height: 1.3;
}

#InterNACHISeals img {
margin: 0.5em;
}

/* =========================================================
16. Footer
========================================================= */

footer {
margin-top: 28px;
text-align: center;
color: var(--gray);
font-size: 0.92rem;
}

footer a {
color: var(--green-dark);
font-weight: 700;
text-decoration: none;
}

footer a:hover,
footer a:focus {
text-decoration: underline;
}

/* =========================================================
17. Utility Classes
========================================================= */

.left {
float: none;
margin: 0;
}

.clear {
clear: none;
}

.mobile-only {
display: none;
}

/* =========================================================
18. Responsive: Tablet
========================================================= */

@media (max-width: 820px) {
.service-area {
grid-template-columns: 1fr;
}

.service-link-list {
grid-template-columns: 1fr;
}

.service-item {
grid-template-columns: 140px 1fr;
}

.service-logo {
max-width: 140px;
}

.contact-grid {
grid-template-columns: 1fr;
}
}

/* =========================================================
19. Responsive: Small Tablet / Large Phone
========================================================= */

@media (max-width: 720px) {
.hero-seal-row {
grid-template-columns: 1fr;
gap: 18px;
margin-bottom: 2rem;
}

.right {
text-align: center;
}

.hero-seal {
max-width: 145px;
}

#hero-card {
max-width: 100%;
}
}

/* =========================================================
20. Responsive: Mobile
========================================================= */

@media (max-width: 640px) {
.desktop-only,
.hide-on-mobile {
display: none;
}

.mobile-only {
display: inline-block;
}

.page {
width: min(100% - 20px, 1120px);
padding-top: 18px;
}

.brand-link {
flex-direction: column;
text-align: center;
gap: 0.75rem;
}

.brand-logo {
max-width:180px;
height: auto;
}

.site-title {
font-size: 1.55em;
white-space: normal;
}

.brand-text .subtitle {
font-size: 0.8em;
}

.main {
padding: 24px 18px;
}

.hero-lead {
font-size: 1.08rem;
margin: 0.75rem auto 1.25rem;
}

#hero-card {
max-width: 100%;
}

.service-link-card {
grid-template-columns: 72px 1fr;
gap: 0.85rem;
padding: 0.8rem;
}

.service-link-card img {
width: 72px;
height: 72px;
border-radius: 16px;
}

.service-item {
display: block;
text-align: left;
}

.service-logo {
max-width: 240px;
margin: 0 auto 1rem;
}

.service-text h2,
.service-text h3 {
text-align: center;
}

.service-options {
grid-template-columns: 1fr;
}

.inspection-form fieldset {
padding: 1rem;
}
}