/* =========================================
   The Pet Flap Installations Company
   Main Stylesheet  |  petflapshants.co.uk
   ========================================= */

/* ---------- CSS Variables ---------- */
:root {
    --green-dark:   #1e4d2b;
    --green:        #2e7d32;
    --green-mid:    #4caf50;
    --green-light:  #e8f5e9;
    --brown-dark:   #4e342e;
    --brown:        #795548;
    --brown-light:  #a1887f;
    --cream:        #faf8f3;
    --white:        #ffffff;
    --text-dark:    #1a1a1a;
    --text-mid:     #444444;
    --text-light:   #777777;
    --border:       #ddd;
    --shadow:       0 2px 12px rgba(0,0,0,0.10);
    --radius:       6px;
    --transition:   0.3s ease;
    --max-width:    1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul   { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
    font-family: 'Merriweather', serif;
    line-height: 1.3;
    color: var(--brown-dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.section        { padding: 70px 0; }
.section--alt   { background-color: var(--white); }
.section--green { background-color: var(--green-dark); color: #fff; }
.section--green h2,
.section--green h3 { color: #fff; }

.section__header { text-align: center; margin-bottom: 3rem; }
.section__header p {
    color: var(--text-mid);
    max-width: 650px;
    margin: 0.75rem auto 0;
    font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}
.btn--primary  { background-color: var(--green);     color: #fff; border-color: var(--green);     }
.btn--primary:hover  { background-color: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn--secondary { background-color: transparent; color: #fff; border-color: #fff; }
.btn--secondary:hover { background-color: #fff; color: var(--green-dark); }
.btn--brown    { background-color: var(--brown-dark); color: #fff; border-color: var(--brown-dark); }
.btn--brown:hover { background-color: var(--brown); border-color: var(--brown); color: #fff; }

/* ---------- HEADER ---------- */
.site-header { background-color: var(--brown-dark); color: #fff; }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
.site-header__logo  { display: flex; flex-direction: column; }
.site-header__name  {
    font-family: 'Merriweather', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.site-header__name:hover { color: var(--green-mid); }
.site-header__tagline { font-size: 0.83rem; color: var(--brown-light); letter-spacing: 0.04em; margin-top: 2px; }
.site-header__contact { text-align: right; }
.site-header__phone {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-mid);
    display: block;
}
.site-header__phone:hover { color: #fff; }
.site-header__email { color: #ccc; font-size: 0.85rem; display: block; margin-top: 2px; }
.site-header__email:hover { color: #fff; }

/* ---------- NAVIGATION ---------- */
.site-nav {
    background-color: var(--green-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.site-nav__list { display: flex; align-items: center; }
.site-nav__item a {
    display: block;
    padding: 16px 20px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition), background var(--transition);
}
.site-nav__item a:hover,
.site-nav__item a.active {
    color: #fff;
    background-color: rgba(255,255,255,0.12);
}
.site-nav__call {
    font-size: 0.88rem;
    color: var(--green-mid);
    font-weight: 600;
    padding: 8px 18px;
    border: 2px solid var(--green-mid);
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}
.site-nav__call:hover { background-color: var(--green-mid); color: #fff !important; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all var(--transition);
    border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background-image: url('../images/cat-dog-flaps-hero.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(30,77,43,0.88) 0%,
        rgba(30,77,43,0.55) 55%,
        rgba(30,77,43,0.18) 100%
    );
}
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    color: #fff;
    padding: 60px 0;
}
.hero__badge {
    display: inline-block;
    background-color: var(--brown);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero h1  { color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero__sub {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.92);
    margin-bottom: 1.8rem;
    line-height: 1.65;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- FEATURES GRID ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--green);
    transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card__icon { font-size: 2.2rem; margin-bottom: 1rem; }
.feature-card h3    { color: var(--green-dark); margin-bottom: 0.5rem; }
.feature-card p     { color: var(--text-mid); font-size: 0.95rem; }

/* ---------- SERVICES GRID ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); }
.service-card__img {
    height: 200px;
    background-color: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
}
.service-card__body { padding: 24px; }
.service-card h3    { color: var(--green-dark); margin-bottom: 0.75rem; }
.service-card p     { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 1.25rem; }

/* ---------- REVIEWS ---------- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--brown);
}
.review-card__stars { color: #f59e0b; font-size: 1.15rem; margin-bottom: 0.75rem; }
.review-card blockquote { font-style: italic; color: var(--text-mid); margin-bottom: 1rem; }
.review-card cite { font-size: 0.85rem; color: var(--green-dark); font-weight: 700; font-style: normal; }

/* ---------- AREAS LIST ---------- */
.areas-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.areas-list__item {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 22px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ---------- CTA STRIP ---------- */
.cta-strip { background-color: var(--brown-dark); color: #fff; padding: 55px 0; text-align: center; }
.cta-strip h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-strip p  { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 1.75rem; font-size: 1.05rem; }
.cta__phone {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-mid);
    display: block;
    margin-bottom: 1.2rem;
}
.cta__phone:hover { color: #fff; }

/* ---------- CONTACT STRIP ---------- */
.contact-strip { background-color: var(--green-dark); color: #fff; padding: 18px 0; }
.contact-strip .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.contact-strip__item { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.contact-strip__item a { color: #fff; font-weight: 600; }
.contact-strip__item a:hover { color: var(--green-mid); }

/* ---------- FOOTER ---------- */
.site-footer { background-color: var(--brown-dark); color: rgba(255,255,255,0.72); padding: 55px 0 22px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--green-mid); }
.footer-col p { font-size: 0.9rem; line-height: 1.65; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}
.footer__bottom a { color: rgba(255,255,255,0.72); }
.footer__bottom a:hover { color: var(--green-mid); }

/* ---------- PAGE BANNER ---------- */
.page-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--brown-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 0.6rem; }
.page-banner p  { color: rgba(255,255,255,0.87); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.breadcrumbs a  { color: var(--green); }
.breadcrumbs span { color: var(--text-light); margin: 0 8px; }

/* ---------- ABOUT ---------- */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}
.about-intro__img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 420px;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 2rem;
}
.stat { text-align: center; padding: 18px; background: var(--green-light); border-radius: var(--radius); }
.stat__number { display: block; font-size: 2rem; font-weight: 700; color: var(--green-dark); font-family: 'Merriweather', serif; }
.stat__label  { font-size: 0.8rem; color: var(--text-mid); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- CONTENT PAGES ---------- */
.content-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.content-intro__img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 420px;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    order: 2;
}
.check-list { padding-left: 0; margin-bottom: 0; }
.check-list li {
    padding: 5px 0 5px 28px;
    position: relative;
    color: var(--text-mid);
}
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- BRANDS ---------- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.brand-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--green);
}
.brand-card__logo { font-size: 2.5rem; margin-bottom: 1rem; }
.brand-card h3 { color: var(--green-dark); margin-bottom: 0.5rem; font-size: 1.1rem; }
.brand-card p  { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 0.75rem; }

/* ---------- INSTALLATION SURFACE CARDS ---------- */
.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
}
.install-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 18px;
    box-shadow: var(--shadow);
    text-align: center;
}
.install-card__icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.install-card h4    { color: var(--brown-dark); margin-bottom: 0.4rem; }
.install-card p     { font-size: 0.85rem; color: var(--text-mid); }

/* ---------- NOTES GRID ---------- */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.note-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--brown);
}
.note-card h4 { color: var(--brown-dark); margin-bottom: 0.5rem; }
.note-card p  { font-size: 0.9rem; color: var(--text-mid); }
/* ---------- BUTTON GROUP ---------- */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 2rem;
}

/* ---------- NOTICE BOX ---------- */
.notice-box {
    background: var(--green-light);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.notice-box.notice--warn { background: #fff8e1; border-left-color: #f59e0b; }

/* ---------- CONTACT PAGE ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 60px;
    align-items: start;
}
.contact-info__item { display: flex; gap: 16px; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-info__icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.contact-info__text h4 { color: var(--brown-dark); margin-bottom: 0.2rem; }
.contact-info__text a  { color: var(--green); font-weight: 600; }

.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 0.6rem; }

/* ---------- ALERTS ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.alert--success { background: #e8f5e9; border: 1px solid var(--green); color: var(--green-dark); }
.alert--error   { background: #ffebee; border: 1px solid #ef5350;     color: #b71c1c;           }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .about-intro,
    .content-intro,
    .contact-layout { grid-template-columns: 1fr; }
    .content-intro__img { order: 0; height: 260px; }
    .about-intro__img   { height: 260px; }
}

@media (max-width: 768px) {
    .section { padding: 50px 0; }

    /* Mobile nav */
    .site-nav__list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--green-dark);
        padding: 8px 0 14px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }
    .site-nav__list.is-open { display: flex; }
    .site-nav__item a { padding: 12px 20px; }
    .nav-toggle   { display: flex; }
    .site-nav__call { display: none; }
    .site-nav     { position: relative; }
    .site-nav .container { padding-top: 4px; padding-bottom: 4px; }

    /* Header */
    .site-header .container { flex-direction: column; text-align: center; gap: 10px; }
    .site-header__contact   { text-align: center; }

    /* Hero */
    .hero     { min-height: 460px; }
    .hero__buttons { flex-direction: column; }

    /* About stats */
    .about-stats { grid-template-columns: repeat(3, 1fr); }

    /* Footer */
    .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
    .contact-strip .container { flex-direction: column; text-align: center; }
    .about-stats              { grid-template-columns: 1fr 1fr; }
}
