/* ==========================================================
   Bainbridge Born Pet Care
   style.css
========================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

/* ==========================================================
   Variables
========================================================== */

:root {
    --primary: #2F6FA3;
    --primary-dark: #24557C;
    --primary-light: #EAF5FB;

    --accent: #7BB8D6;

    --text: #2D3748;
    --text-light: #64748B;

    --background: #F9FCFE;
    --surface: #FFFFFF;

    --border: #D9E7F2;

    --success: #4F9D69;

    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,.08);

    --radius: 14px;

    --max-width: 1100px;

    --transition: 0.25s ease;
}

/* ==========================================================
   Reset
========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Source Sans 3", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.65;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    padding: 0;
    list-style: none;
}

section {
    padding: 5rem 1.5rem;
}

.container {
    width: min(100%, var(--max-width));
    margin: auto;
}

/* ==========================================================
   Typography
========================================================== */

h1,
h2,
h3,
h4 {
    font-family: "Poppins", sans-serif;
    margin-top: 0;
    color: var(--primary-dark);
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* ==========================================================
   Buttons
========================================================== */

.btn {
    display: inline-block;
    padding: .9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

/* ==========================================================
   Header
========================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: var(--max-width);
    margin: auto;
}

.logo {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.35rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* ==========================================================
   Hero
========================================================== */

.hero {
    padding: 6rem 1.5rem;
}

.hero-content {
    max-width: 650px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================
   Cards
========================================================== */

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    margin-bottom: .5rem;
}

/* =====================================
   FAQ Gallery
===================================== */

.faq-gallery {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;

    margin-top: 4rem;

}

.gallery-image {

    width: 100%;
    aspect-ratio: 3 / 4;

    object-fit: cover;

    border-radius: 18px;

    box-shadow: var(--shadow-md);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;

}

.gallery-image:hover {

    transform: translateY(-6px);

    box-shadow: 0 12px 30px rgba(0,0,0,.15);

}


/* ==========================================================
   About
========================================================== */

.about {
    display: grid;
    gap: 3rem;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.about img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ==========================================================
   Calendar
========================================================== */

.calendar {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* ==========================================================
   Contact
========================================================== */

.contact {
    display: grid;
    gap: 2rem;
}

input,
textarea {
    width: 100%;
    padding: .9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 160px;
}

/* ==========================================================
   Footer
========================================================== */

footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    color: rgba(255,255,255,.8);
    margin: 0;
}

/* ==========================================================
   Utility
========================================================== */

.text-center {
    text-align: center;
}

.bg-light {
    background: var(--primary-light);
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .faq-gallery {

        grid-template-columns: 1fr;

    }
}