/* --- Global Styles & Variables --- */
:root {
    --muskoka-green: #2c4c3b;
    --muskoka-slate: #3b434c;
    --muskoka-wood: #8b5a2b;
    --muskoka-wood-hover: #b0753b;
    --muskoka-sand: #e8e5df;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: var(--muskoka-sand);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Offset anchor scrolling so headings clear the fixed navbar */
section[id] {
    scroll-margin-top: 90px;
}

/* --- Section Seams (finger-joint dividers between sections) ---
   A row of interlocking square teeth, like two joined boards. Each seam
   takes the colour of the section above (--seam-top) and the section
   below (--seam-bottom), so the join reads as continuous with both. */
.seam {
    width: 100%;
    height: 26px;
    background-image: repeating-linear-gradient(
        90deg,
        var(--seam-top) 0,
        var(--seam-top) 24px,
        var(--seam-bottom) 24px,
        var(--seam-bottom) 48px
    );
}

.seam-hero     { --seam-top: var(--muskoka-green); --seam-bottom: var(--muskoka-sand); }
.seam-services { --seam-top: var(--muskoka-sand);  --seam-bottom: #ffffff; }
.seam-about    { --seam-top: #ffffff;              --seam-bottom: var(--muskoka-sand); }
.seam-contact  { --seam-top: var(--muskoka-sand);  --seam-bottom: #111827; }

/* --- Navigation --- */
.navbar {
    background-color: var(--muskoka-green);
    color: white;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    background: #f5f3ee;          /* warm-white chip so the dark logo reads on the green bar */
    padding: 5px 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    line-height: 0;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

/* Right-hand cluster: nav links + phone. The links hide on mobile (below),
   but the phone lives here, outside .nav-links, so it stays visible. */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover:not(.btn-quote) {
    color: #d1d5db;
}

.btn-quote {
    background-color: var(--muskoka-wood);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.btn-quote:hover {
    background-color: var(--muskoka-wood-hover);
}

/* Click-to-call in the top bar, right of the quote button.
   Stays visible on mobile (it lives in .nav-right, not .nav-links). */
.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-phone:hover {
    color: #d1d5db;
}

.nav-phone svg {
    width: 16px;
    height: 16px;
    color: var(--muskoka-wood-hover);   /* warm accent that reads on the green bar */
    flex: none;
}

/* --- Hero Section --- */
.hero {
    padding: 8rem 1.5rem 6rem;
    text-align: center;
    color: white;
    background-image: linear-gradient(rgba(59, 67, 76, 0.8), rgba(44, 76, 59, 0.7)), url('background.png');
    background-size: cover;
    background-position: center 80%;   /* favour the lower half of the scene (cabin, dock, canoe) */
}

.hero-content {
    max-width: 896px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.75rem;
    }
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: #e5e7eb;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.5rem;
    }
}

.btn-primary {
    display: inline-block;
    background-color: var(--muskoka-wood);
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--muskoka-wood-hover);
    transform: translateY(-2px);
}

/* --- Services Section --- */
.services {
    padding: 5rem 1.5rem;
    max-width: 1152px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--muskoka-slate);
    margin-bottom: 1rem;
}

.divider {
    width: 6rem;
    height: 4px;
    background-color: var(--muskoka-wood);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
}

/* --- About Section --- */
.about {
    background-color: white;
    padding: 5rem 1.5rem;
}

.about-content {
    max-width: 896px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.25rem;
    color: var(--muskoka-slate);
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* --- Contact Section --- */
.contact-section {
    padding: 5rem 1.5rem;
    max-width: 896px;
    margin: 0 auto;
}

.contact-container {
    background-color: var(--muskoka-slate);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
    }
}

.contact-info {
    background-color: var(--muskoka-green);
    color: white;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .contact-info {
        width: 40%;
    }
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info .subtitle {
    color: #e5e7eb;
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
}

/* Phone/email here are real tel:/mailto: links so they're tappable, but we
   want them to read as normal panel text — not a browser/iOS-blue link.
   Wrapping the number in an explicit <a> also stops iOS Safari's data
   detectors from restyling it as a blue link. Mirrors the white .nav-phone. */
.contact-details a {
    color: inherit;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Reuse the navbar's line-style handset instead of the 📞 emoji — a white
   outline reads far better on the dark green panel than the dark emoji.
   Sized in em + baseline-nudged so it lines up with the 📍/✉️ emoji lines. */
.contact-details .contact-icon {
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.16em;
    margin-right: 0.5em;
    color: #fff;
}

.contact-form-wrapper {
    background-color: white;
    padding: 2.5rem;
}

@media (min-width: 768px) {
    .contact-form-wrapper {
        width: 60%;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hidden {
    display: none;
}

/* Labels and the "how can we reach you" legend share one look so the
   whole form reads as a single system. */
.form-group label,
.contact-pref legend {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muskoka-slate);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

/* Required-field marker */
.req {
    color: var(--muskoka-wood);
    font-weight: 700;
}

/* Email-or-phone group: strip the browser's default fieldset chrome. */
.contact-pref {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;   /* let the fieldset shrink within the flex column */
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: -0.1rem 0 0.85rem;
}

/* Pair short fields side by side; collapses to one column when the form
   is too narrow (mobile) without needing a media query. */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1.25rem;
}

.form-row > * {
    min-width: 0;   /* let inputs shrink to their track instead of overflowing */
}

.contact-pref .form-subgroup label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #cbd2d9;
    border-radius: 0.375rem;
    font-family: inherit;       /* same typeface as the rest of the site */
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 7rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--muskoka-green);
    box-shadow: 0 0 0 3px rgba(44, 76, 59, 0.18);
}

/* Flag a field red only after the user has interacted with it (and the
   browser deems it invalid) — never on a fresh, untouched form. */
.form-group input:user-invalid,
.form-group textarea:user-invalid {
    border-color: #c0563f;
}

.form-group input:user-invalid:focus,
.form-group textarea:user-invalid:focus {
    box-shadow: 0 0 0 3px rgba(192, 86, 63, 0.18);
}

.btn-submit {
    width: 100%;
    background-color: var(--muskoka-wood);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--muskoka-wood-hover);
}

/* --- Footer --- */
footer {
    background-color: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #1f2937;
}