/* Utah Westie — shared stylesheet
   Clean, modern take on the original design. Same markup/classes as the
   original pages (nav, circles, slides, plain forms), restyled and made
   fully mobile-adaptive. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #f6f7f4;
    color: #24312a;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    color: #1e3d2c;
    line-height: 1.2;
}

h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }

a:link,
a:visited {
    color: #2e6b45;
    text-decoration: none;
}

a:hover {
    color: #1e3d2c;
    text-decoration: underline;
}

li { font-variant: normal; }

iframe {
    border: none;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(30, 61, 44, 0.15);
    max-width: 100%;
}

/* ------------------------------------------------------------------
   Fixed top nav — same markup as the original tool.html menu
   ------------------------------------------------------------------ */

#nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

div#menu {
    background: #1e3d2c;
    border: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.dropbtn {
    background: transparent;
    color: #f2efe6;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #ffffff;
    min-width: 210px;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.dropdown-content a,
.dropdown-content a:link,
.dropdown-content a:visited {
    color: #24312a;
    background: #ffffff;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    font-size: 14.5px;
}

.dropdown-content a:hover {
    background: #eef3ec;
    color: #1e3d2c;
    text-decoration: none;
}

/* open on hover (desktop) and on tap/keyboard focus (mobile) */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn,
.dropdown:focus-within .dropbtn {
    background: #2e5d3f;
}

div#menu ul {
    list-style: none;
    margin: 0 0 0 auto;   /* pushes Contact/Login to the right */
    padding: 0;
    display: flex;
    align-items: center;
    float: none;
}

div#menu li {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

div#menu li a,
div#menu li a:link,
div#menu li a:visited {
    display: block;
    color: #f2efe6;
    background: transparent;
    text-align: center;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

div#menu li a:hover {
    background: #2e5d3f;
    color: #ffffff;
    text-decoration: none;
}

/* ------------------------------------------------------------------
   Page content
   ------------------------------------------------------------------ */

#content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 84px 20px 40px;   /* clears the fixed nav */
}

#content img {
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(30, 61, 44, 0.12);
    margin: 6px 2px;
}

/* the original "white" text class — now a clean dark heading tone
   so it stays readable on the light background */
p.w,
.w {
    color: #1e3d2c;
}

p.margin {
    margin: 8px 0 20px;
}

p.ex { color: #b04a3a; }
p.u { text-decoration: underline; }

img.rounded { border-radius: 10px; }

/* footer line (WESTIE Corp) */
center > p.margin:last-child,
#content center p.margin:last-child {
    font-size: 0.85rem;
    color: #6b7a70;
    margin-top: 36px;
}

/* ------------------------------------------------------------------
   Gallery circles
   ------------------------------------------------------------------ */

.circle {
    border-radius: 50%;
    width: min(275px, 78vw);
    height: min(275px, 78vw);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(30, 61, 44, 0.18);
}

table.profiles-table {
    width: 100%;
    border-collapse: collapse;
}

table.profiles-table td {
    vertical-align: top;
    text-align: center;
    width: 33%;
    padding: 14px;
}

/* ------------------------------------------------------------------
   Slideshow
   ------------------------------------------------------------------ */

.mySlides {
    display: none;
    border-radius: 10px;
}

/* ------------------------------------------------------------------
   Forms (login / signup / contact) — same plain markup, cleaner card
   ------------------------------------------------------------------ */

form.plain {
    background: #ffffff;
    display: inline-block;
    padding: 28px 36px;
    text-align: left;
    margin-top: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(30, 61, 44, 0.12);
    max-width: 100%;
}

form.plain p {
    margin: 14px 0 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

form.plain input[type="text"],
form.plain input[type="password"],
form.plain input[type="email"],
form.plain input[type="tel"],
form.plain textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d5ddd4;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #f9faf8;
    margin-bottom: 4px;
}

form.plain input:focus,
form.plain textarea:focus {
    outline: 2px solid #2e6b45;
    outline-offset: 1px;
}

form.plain input[type="submit"] {
    background: #2e6b45;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    border: none;
    border-radius: 999px;
    padding: 11px 28px;
    cursor: pointer;
    transition: background 0.15s ease;
}

form.plain input[type="submit"]:hover {
    background: #1e3d2c;
}

.errmsg { color: #b04a3a; font-weight: 600; }
.okmsg  { color: #2e6b45; font-weight: 600; }

/* ------------------------------------------------------------------
   Mobile
   ------------------------------------------------------------------ */

@media (max-width: 700px) {

    /* nav wraps into a compact two-row bar */
    div#menu {
        padding: 0 4px;
        justify-content: center;
    }

    .dropbtn,
    div#menu li a {
        padding: 13px 12px;
        font-size: 14px;
    }

    div#menu ul {
        margin-left: 0;
    }

    /* dropdowns become full-width sheets so they're easy to tap */
    .dropdown { position: static; }

    .dropdown-content {
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
    }

    #content {
        padding: 110px 12px 32px;  /* extra room if the nav wraps to 2 rows */
    }

    /* every content image goes full-width on phones,
       overriding the old width="24%"-style attributes */
    #content img {
        width: 100% !important;
        height: auto !important;
        margin: 8px 0;
    }

    /* gallery table stacks into a single column */
    table.profiles-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .circle {
        width: min(300px, 85vw);
        height: min(300px, 85vw);
    }

    form.plain {
        display: block;
        padding: 20px 18px;
        margin: 16px 0;
    }

    iframe {
        width: 100%;
    }
}

/* slightly wider phones / small tablets: two-up images */
@media (min-width: 701px) and (max-width: 900px) {
    #content img[width="24%"],
    #content img[width="25%"] {
        width: 48% !important;
        height: auto !important;
    }
}
