/* Newbury Retail Park - Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #87CEEB;
    --light-blue: #E0F4FF;
    --dark-grey: #4A4A4A;
    --medium-grey: #808080;
    --light-grey: #F5F5F5;
    --white: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
    background-image: url('https://i.ibb.co/gZVVp8zR/S032-M7-SESV4-IIQE0-M1-LA.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Header */
header {
    background-color: darkgreen;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-grey);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

nav a:hover,
nav a.active {
    color: var(--primary-blue);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero {
    background-color: darkgreen;
    padding: 3rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    color: var(--white);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Meta Box */
.meta-box {
    background-color: var(--light-grey);
    border-left: 4px solid var(--primary-blue);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.meta-box p {
    margin: 0.5rem 0;
    color: var(--medium-grey);
    font-size: 0.9rem;
}

.meta-box strong {
    color: var(--dark-grey);
}

/* Content Sections */
.content-section {
    background-color: var(--white);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-section h2 {
    color: var(--dark-grey);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
    font-size: 1.5rem;
}

.content-section h3 {
    color: var(--dark-grey);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Contact Info Box */
.contact-info {
    background-color: var(--light-blue);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.contact-item strong {
    color: var(--dark-grey);
    min-width: 80px;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    word-break: break-all;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Bios Section */
.bios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bio-card {
    background-color: var(--light-grey);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bio-card h3 {
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.bio-card .title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.bio-card p {
    text-align: left;
    color: var(--medium-grey);
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background-color: var(--light-grey);
    padding: 1.5rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-grey);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-submit {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #6BB6D6;
}

/* Map Image */
.map-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Comparison Table - Desktop */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #6BB6D6 100%);
}

.comparison-table thead th {
    padding: 1rem;
    text-align: left;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--light-grey);
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: var(--light-grey);
}

.comparison-table tbody tr:hover {
    background-color: var(--light-blue);
}

.comparison-table tbody td {
    padding: 0.875rem 1rem;
    color: var(--dark-grey);
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--dark-grey);
}

.comparison-table tbody td:last-child {
    font-weight: 500;
    color: var(--primary-blue);
}

/* Clickable Row Styles */
.comparison-table tbody tr.clickable-row {
    cursor: pointer;
}

.comparison-table tbody tr.clickable-row:hover {
    background-color: var(--light-blue);
}

.comparison-table tbody td:first-child a {
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.comparison-table tbody tr.clickable-row:hover td:first-child a {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: var(--light-grey);
    font-size: 0.9rem;
}

.footer-section a {
    color: var(--primary-blue);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--medium-grey);
    color: var(--light-grey);
    font-size: 0.9rem;
}

/* =============================================
   MOBILE RESPONSIVE STYLES
   ============================================= */

/* Tablet - 768px and below */
@media (max-width: 768px) {
    /* Header Mobile */
    .header-container {
        padding: 0 1rem;
    }

    .logo img {
        height: 45px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    nav li {
        border-bottom: 1px solid var(--light-grey);
    }

    nav a {
        padding: 1rem 1.5rem;
        display: block;
color: black;
    }

    /* Hero Mobile */
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Content Sections Mobile */
    .content-section {
        padding: 1.25rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    /* Comparison Table - Card Layout for Mobile */
    .comparison-table {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .comparison-table tbody tr {
        display: flex;
        flex-direction: column;
        background: var(--white);
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        padding: 1rem;
        border: none;
    }

    .comparison-table tbody tr:nth-child(even) {
        background-color: var(--white);
    }

    .comparison-table tbody tr:hover,
    .comparison-table tbody tr.clickable-row:hover {
        background-color: var(--light-blue);
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    }

    .comparison-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--light-grey);
    }

    .comparison-table tbody td:last-child {
        border-bottom: none;
    }

    .comparison-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--medium-grey);
        font-size: 0.8rem;
        text-transform: uppercase;
        flex-shrink: 0;
        margin-right: 1rem;
    }

    .comparison-table tbody td:first-child {
        background: linear-gradient(135deg, var(--primary-blue) 0%, #6BB6D6 100%);
        margin: -1rem -1rem 0.5rem -1rem;
        padding: 1rem;
        border-radius: 10px 10px 0 0;
        border-bottom: none;
    }

    .comparison-table tbody td:first-child::before {
        display: none;
    }

    .comparison-table tbody td:first-child a {
        color: var(--white);
        font-size: 1.1rem;
        display: block;
        text-align: center;
        width: 100%;
    }

    .comparison-table tbody tr.clickable-row:hover td:first-child a {
        color: var(--white);
        text-decoration: underline;
    }

    .comparison-table tbody td:last-child {
        background-color: var(--light-blue);
        margin: 0.5rem -1rem -1rem -1rem;
        padding: 0.75rem 1rem;
        border-radius: 0 0 10px 10px;
        justify-content: center;
        font-weight: 600;
    }

    .comparison-table tbody td:last-child::before {
        display: none;
    }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1rem;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .logo img {
        height: 40px;
    }

    main {
        padding: 1rem 0.75rem;
    }

    .hero {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .meta-box {
        padding: 0.75rem;
    }

    .meta-box p {
        font-size: 0.85rem;
    }

    .content-section {
        padding: 1rem;
        border-radius: 8px;
    }

    .content-section h2 {
        font-size: 1.2rem;
    }

    .content-section p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .comparison-table tbody tr {
        padding: 0.75rem;
    }

    .comparison-table tbody td:first-child {
        margin: -0.75rem -0.75rem 0.5rem -0.75rem;
        padding: 0.75rem;
    }

    .comparison-table tbody td:first-child a {
        font-size: 1rem;
    }

    .comparison-table tbody td:last-child {
        margin: 0.5rem -0.75rem -0.75rem -0.75rem;
        padding: 0.6rem 0.75rem;
    }

    .comparison-table tbody td {
        font-size: 0.9rem;
    }

    .comparison-table tbody td::before {
        font-size: 0.75rem;
    }

    .contact-info {
        padding: 1rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-item strong {
        min-width: auto;
        margin-bottom: 0.25rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    .footer-section h3 {
        font-size: 0.95rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .bios-container {
        grid-template-columns: 1fr;
    }

    .bio-card {
        padding: 1.25rem;
    }

    .avatar {
        width: 70px;
        height: 70px;
        font-size: 1.25rem;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    nav a,
    .comparison-table tbody tr.clickable-row,
    .btn-submit,
    .footer-section a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .comparison-table tbody tr.clickable-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}
