/* =====================================================
   SUMMIT FARMS RESCUE — External Stylesheet
   css/styles.css  |  WDV101 — HTML & CSS  |  Beatriz Paz
   ===================================================== */

/* ===== UNIVERSAL BOX SIZING ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

/* =====================================================
   ELEMENT SELECTORS
   ===================================================== */
body {
    font-family: Georgia, 'Times New Roman', serif;
    color: #2c2c2c;
    background-color: #f0f6fb;
    line-height: 1.75;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2.8rem;
    color: #1a3c5e;
    margin: 0 0 0.5rem;
}

h2 {
    font-size: 2rem;
    color: #1a3c5e;
    margin: 0 0 1rem;
}

h3 {
    font-size: 1.4rem;
    color: #1a3c5e;
    margin: 0 0 0.75rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: #2e7da6;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =====================================================
   GROUPED SELECTORS
   ===================================================== */
h1, h2, h3, h4 {
    font-family: 'Raleway', sans-serif;
    line-height: 1.2;
}

header, footer {
    background-color: #1a3c5e;
    color: #c8e8f5;
}

/* =====================================================
   CONTAINER — centered, fixed 1024px width
   ===================================================== */
.container {
    width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   HEADER
   ===================================================== */
header {
    padding: 18px 0;
}

/* Descendant selector */
header .site-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0;
}

header .tagline {
    font-size: 0.9rem;
    color: #8ac8e8;
    font-style: italic;
    margin: 0;
    font-family: Georgia, serif;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
nav {
    background-color: #2e7da6;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Descendant selector */
nav a {
    display: block;
    color: #ffffff;
    padding: 14px 32px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

/* Pseudo-class selector */
nav a:hover {
    background-color: #1a3c5e;
    color: #c8e8f5;
}

/* Dependent class selector */
nav a.active {
    background-color: #1a3c5e;
}

/* =====================================================
   BANNER — home page full-width image
   ===================================================== */
.banner {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26,60,94,0.3) 0%, rgba(26,60,94,0.75) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.banner-overlay h1 {
    color: #ffffff;
    font-size: 3.4rem;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
    margin-bottom: 14px;
}

.banner-overlay p {
    color: #c8e8f5;
    font-size: 1.2rem;
    max-width: 620px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 28px;
    font-family: Georgia, serif;
}

/* =====================================================
   PAGE HERO — inner page header (adoption, about, caring)
   ===================================================== */
.page-hero {
    background: linear-gradient(135deg, #1a3c5e 0%, #2e7da6 100%);
    padding: 55px 0;
    text-align: center;
}

.page-hero h1 {
    color: #ffffff;
    font-size: 2.6rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-hero p {
    color: #c8e8f5;
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto;
}

/* =====================================================
   MAIN CONTENT WRAPPER
   ===================================================== */
main {
    padding: 50px 0;
}

section {
    margin-bottom: 50px;
}

/* =====================================================
   SECTION TITLE — centered heading block
   ===================================================== */
.section-title {
    text-align: center;
    margin-bottom: 32px;
}

.section-title p {
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   INTRO SECTION — home page photo + text block
   ===================================================== */
.intro-section {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #c8e8f5;
    box-shadow: 0 4px 20px rgba(26, 60, 94, 0.1);
    margin-bottom: 50px;
}

/* Descendant selector */
.intro-section img {
    width: 300px;
    height: 275px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 3px solid #2e7da6;
}

/* =====================================================
   MISSION BAND — home page dark stats block
   ===================================================== */
.mission-band {
    background-color: #1a3c5e;
    padding: 45px 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 50px;
}

.mission-band h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Descendant selector */
.mission-band p {
    color: #c8e8f5;
    max-width: 740px;
    margin: 0 auto 0.75rem;
    font-size: 1.05rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 32px;
    padding-top: 30px;
    border-top: 1px solid rgba(200, 232, 245, 0.25);
}

.stat-number {
    font-family: 'Raleway', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #8ac8e8;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.82rem;
    color: #c8e8f5;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Raleway', sans-serif;
}

/* =====================================================
   THREE-COLUMN FLEX LAYOUT — home page cards
   ===================================================== */
.three-col {
    display: flex;
    gap: 24px;
    margin-bottom: 50px;
}

/* Independent class selector */
.card {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 60, 94, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #2e7da6;
}

/* Pseudo-class on card */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 38px rgba(26, 60, 94, 0.18);
}

.card img {
    width: 100%;
    height: 195px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    margin-bottom: 10px;
}

.card-body p {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 18px;
}

/* Dependent class selector */
a.btn {
    display: inline-block;
    background-color: #2e7da6;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 5px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

a.btn:hover {
    background-color: #1a3c5e;
    color: #ffffff;
    transform: translateY(-2px);
}

/* =====================================================
   BREEDS BAND — home page breed tags
   ===================================================== */
.breeds-band {
    background-color: #e8f4fb;
    border-radius: 8px;
    padding: 35px 40px;
    border: 2px solid #c8e8f5;
}

.breeds-band h2 {
    text-align: center;
    margin-bottom: 8px;
}

.breeds-band > p {
    text-align: center;
    color: #555;
    margin-bottom: 0;
}

.breeds-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
}

.breed-tag {
    background-color: #2e7da6;
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 25px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =====================================================
   ADOPTION PAGE — dog cards
   ===================================================== */
.notice-box {
    background-color: #e8f4fb;
    border: 2px solid #2e7da6;
    border-radius: 8px;
    padding: 28px 35px;
    text-align: center;
    margin-bottom: 40px;
}

.notice-box h3 {
    color: #1a3c5e;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.notice-box p {
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.adoption-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 50px;
}

.dog-card {
    flex: 0 1 calc(33.333% - 16px);
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 60, 94, 0.1);
    border: 1px solid #c8e8f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(26, 60, 94, 0.16);
}

.dog-card img {
    width: 100%;
    height: 235px;
    object-fit: cover;
}

.dog-card-body {
    padding: 22px;
}

.dog-card-body h3 {
    margin-bottom: 8px;
}

.dog-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.dog-meta span {
    background-color: #e8f4fb;
    color: #2e7da6;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    border: 1px solid #c8e8f5;
}

.dog-card-body p {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 16px;
}

/* Adoption Process Steps */
.process-steps {
    display: flex;
    gap: 20px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 30px 18px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(26, 60, 94, 0.08);
    border-top: 4px solid #2e7da6;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: #2e7da6;
    color: #ffffff;
    border-radius: 50%;
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

/* =====================================================
   ABOUT PAGE — breed profiles
   ===================================================== */
.breed-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(26, 60, 94, 0.08);
    margin-bottom: 24px;
    border-left: 4px solid #2e7da6;
}

.breed-profile.reverse {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 4px solid #2e7da6;
}

.breed-profile img {
    width: 250px;
    height: 215px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.breed-subtitle {
    color: #2e7da6;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.breed-facts {
    margin-top: 14px;
    border-top: 1px solid #e8f4fb;
    padding-top: 14px;
}

.breed-facts li {
    font-size: 0.9rem;
    color: #555;
    padding: 5px 0;
    border-bottom: 1px solid #f4f8fb;
}

.breed-facts li strong {
    color: #2e7da6;
    font-family: 'Raleway', sans-serif;
}

.fun-facts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.fun-fact {
    flex: 0 1 calc(50% - 10px);
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(26, 60, 94, 0.08);
    border-bottom: 3px solid #2e7da6;
}

.fun-fact h4 {
    font-family: 'Raleway', sans-serif;
    color: #1a3c5e;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.fun-fact p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

/* =====================================================
   CARING PAGE — care cards
   ===================================================== */
.care-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.care-card {
    flex: 0 1 calc(50% - 12px);
    background: #ffffff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(26, 60, 94, 0.08);
    border-top: 4px solid #2e7da6;
}

/* Descendant selector */
.care-card h3 {
    font-size: 1.5rem;
    color: #1a3c5e;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f4fb;
}

.care-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
    display: block;
}

.care-card ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 1rem;
}

/* Descendant selector */
.care-card ul li {
    margin-bottom: 8px;
    color: #444;
    font-size: 0.94rem;
}

.care-card ul li strong {
    color: #1a3c5e;
}

/* =====================================================
   HIGHLIGHT TEXT — dependent class selector
   ===================================================== */
p.highlight {
    background-color: #e8f4fb;
    border-left: 4px solid #2e7da6;
    padding: 16px 22px;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #1a3c5e;
    margin-bottom: 1.5rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    padding: 35px 0;
    text-align: center;
    margin-top: 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(200, 232, 245, 0.2);
    text-align: left;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.88rem;
    color: #8ac8e8;
    margin-bottom: 6px;
}

/* Descendant selector */
footer a {
    color: #c8e8f5;
    font-size: 0.88rem;
    display: block;
    margin-bottom: 6px;
}

footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    font-size: 0.85rem;
    color: #8ac8e8;
}

.footer-bottom p {
    margin: 0;
    color: #8ac8e8;
    font-size: 0.85rem;
}
