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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.55;
    background-color: var(--bg-color);
    color: var(--text-color);
}

:root {
    --bg-color: #faf9f5;
    --text-color: #1a2a4a;
    --accent: #1e5a9e;
    --accent-light: #2d7bc9;
    --yellow: #e6b422;
    --yellow-hover: #f0c84d;
    --surface: #ffffff;
    --footer-bg: #142d4a;
    --contact-bg: #1a3a5c;
    --error: #c0392b;
}

.dark-mode {
    --bg-color: #0f1729;
    --text-color: #e8ecf4;
    --accent: #051c38;
    --accent-light: #0d2d52;
    --yellow: #e6b422;
    --yellow-hover: #f0c84d;
    --surface: #1a2744;
    --footer-bg: #081525;
    --contact-bg: #0d1f33;
    --error: #e74c3c;
}

.site-wrapper {
    width: 1280px;
    margin: 0px auto;
    padding: 0px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px 28px 28px;
}

.site-header {
    background: var(--accent);
    color: white;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 28px;
    gap: 24px;
}

.site-header .logo {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-bar {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0;
}

.nav-btn {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nav-btn:hover {
    background: var(--yellow);
    color: #111;
    border-color: var(--yellow);
}

.nav-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.header-mode-toggle {
    flex-shrink: 0;
    padding: 10px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-mode-toggle .icon-moon {
    display: none;
}

.header-mode-toggle .icon-sun {
    display: inline-flex;
}

.dark-mode .header-mode-toggle .icon-sun {
    display: none;
}

.dark-mode .header-mode-toggle .icon-moon {
    display: inline-flex;
}

.hero {
    position: relative;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: white;
    background-image: url("images/heroimage.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.5)
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.hero h2 {
    font-size: 2.85rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 26px;
    opacity: 0.95;
}

.hero .cta-button {
    display: inline-block;
    text-align: center;
    padding: 14px 28px;
    background-color: var(--yellow);
    color: #111;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.hero .cta-button:hover {
    background-color: var(--yellow-hover);
}

section {
    margin-bottom: 56px;
}

.container section h2 {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
    text-align: left;
}

#about {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
    padding: 40px 32px;
    background: var(--surface);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dark-mode #about {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.about-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    max-width: 1180px;
    margin: 0 auto;
}

.about-photo {
    width: 380px;
    height: auto;
    flex-shrink: 0;
    border-radius: 6px;
    display: block;
}

.about-text-wrap {
    flex: 1;
}

#about .about-content h2 {
    margin: 0 0 1rem 0;
}

.about-text {
    margin: 0;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

#programs {
    text-align: center;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 32px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dark-mode #programs {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

#programs h2 {
    margin-bottom: 1.25rem;
}

.program-controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.program-controls button {
    flex: 1;
    min-width: 200px;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 600;
}

.program-controls button.program-btn-selected {
    background-color: #0d3a6e;
    color: white;
}

.dark-mode .program-controls button.program-btn-selected {
    background-color: #020e1a;
}

.program-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.program-display img {
    width: 100%;
    max-width: 1180px;
    height: auto;
    display: block;
    border-radius: 8px;
}

.program-title {
    width: 100%;
    max-width: 1180px;
    margin: 20px 0 0 0;
    padding: 0;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: left;
}

.program-info {
    width: 100%;
    max-width: 1180px;
    text-align: left;
    padding: 16px 0 0 0;
}

.program-info #programDescription {
    margin-bottom: 16px;
    line-height: 1.6;
}

.program-highlights {
    margin: 0;
    padding-left: 1.25rem;
}

.program-highlights li {
    margin-bottom: 6px;
    line-height: 1.5;
}

button {
    padding: 8px 12px;
    cursor: pointer;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.2s ease;
}

button:hover {
    background-color: var(--accent-light);
}

#modeToggle {
    background-color: var(--yellow);
    color: #111;
}

#modeToggle:hover {
    background-color: var(--yellow-hover);
}

.error {
    color: var(--error);
    font-size: 0.9rem;
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

.form-success-message {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    max-width: 600px;
}

.site-footer {
    background: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin: 0;
    margin-top: -28px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

#game {
    text-align: left;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 32px;
    background: var(--surface);
    border-radius: 12px;
    border-left: 4px solid var(--yellow);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dark-mode #game {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

#game h2 {
    margin-bottom: 1.25rem;
}

#game > p {
    margin-bottom: 20px;
    line-height: 1.5;
}

#game .breed-list {
    margin: 0 0 24px 0;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dark-mode #game .breed-list {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

#game .game-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#game #guessInput {
    width: 4rem;
    padding: 10px 12px;
    font-size: 1rem;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.dark-mode #game #guessInput {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
}

#gameResult {
    min-height: 1.5em;
    margin-bottom: 20px;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(230, 180, 34, 0.15);
    border: 1px solid rgba(230, 180, 34, 0.3);
}

.best-boy-display {
    margin-top: 24px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
}

.dark-mode .best-boy-display {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.best-boy-display h3 {
    margin-top: 12px;
    margin-bottom: 0;
}

#contact {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    padding: 48px 24px 56px;
    background: var(--contact-bg);
    color: #e8ecf4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact h2 {
    width: 100%;
    max-width: 1180px;
    margin: 0 0 24px 0;
    color: #fff;
    text-align: left;
}

#contact form {
    max-width: 1180px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#contact form > label {
    display: block;
    width: 100%;
    max-width: 1180px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact textarea {
    display: block;
    width: 100%;
    max-width: 1180px;
    margin: 8px 0 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

#contact textarea {
    min-height: 100px;
    resize: vertical;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: var(--yellow);
    background: rgba(255, 255, 255, 0.12);
}

#contact .error {
    display: block;
    margin-top: 6px;
    margin-bottom: 0;
    color: #f5a623;
}

#contact fieldset {
    width: 100%;
    max-width: 1180px;
    margin: 0 0 20px 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    box-sizing: border-box;
}

#contact fieldset label {
    display: inline-block;
    margin-bottom: 0;
    margin-right: 16px;
}

#contact legend {
    color: rgba(255, 255, 255, 0.95);
    padding: 0 8px;
}

#contact button[type="submit"] {
    margin-top: 20px;
    background: var(--yellow);
    color: #111;
}

#contact #formSuccess.form-success-message {
    text-align: left;
}

#contact button[type="submit"]:hover {
    background: var(--yellow-hover);
}

#contact #formSuccess {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

#contact #formSuccess.form-success-message {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.best-boy-image-hidden {
    display: none;
}

#bestBoyImage {
    width: 400px;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

.breed-list {
    margin: 20px 0;
}

.breed-list ol {
    columns: 2;
    list-style-position: inside;
}

.breed-list li {
    margin-bottom: 8px;
}