/* ===================================
   Mcveigh Housing - Custom CSS
   Modern Portfolio Design - Full Width
   =================================== */

/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #c99b4f;
    --accent-color: #2a2a2a;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-dark: #0a0a0a;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* ===================================
   Layout & Container
   =================================== */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

.container-wide {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.section {
    padding: 120px 60px;
}

.section-sm {
    padding: 80px 60px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 80px 20px;
    }
    
    .section-sm {
        padding: 60px 20px;
    }
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 60px;
}

.navbar__brand {
    display: flex;
    align-items: center;
}

.navbar__logo {
    max-width: 200px;
    height: auto;
    transition: var(--transition);
}

.navbar__logo:hover {
    opacity: 0.8;
}

.navbar__menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar__link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 35px 24px;
    transition: var(--transition);
    position: relative;
    display: block;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.navbar__link:hover::after,
.navbar__link--active::after {
    width: 100%;
}

.navbar__link:hover,
.navbar__link--active {
    color: var(--secondary-color);
}

.navbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar__toggle-icon {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    display: block;
    position: relative;
    transition: var(--transition);
}

.navbar__toggle-icon::before,
.navbar__toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.navbar__toggle-icon::before {
    top: -8px;
}

.navbar__toggle-icon::after {
    bottom: -8px;
}

@media (max-width: 992px) {
    .navbar__container {
        padding: 0 20px;
        height: 70px;
    }

    .navbar__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }

    .navbar__menu--active {
        left: 0;
    }

    .navbar__toggle {
        display: block;
    }

    .navbar__link {
        padding: 15px 20px;
        width: 100%;
        text-align: left;
    }
}

/* ===================================
   Hero Carousel
   =================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.hero-carousel__wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
}

.hero-carousel__slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel__slide--active {
    opacity: 1;
}

.hero-carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.75);
}

.hero-carousel__caption {
    position: absolute;
    bottom: 120px;
    left: 60px;
    right: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 60px;
    text-align: left;
    max-width: 1400px;
}

.hero-carousel__title {
    font-size: 4.5rem;
    font-weight: 300;
    color: var(--bg-white);
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-carousel__text {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    max-width: 700px;
    letter-spacing: 0.5px;
}

.hero-carousel__controls {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    gap: 8px;
}

.hero-carousel__dot {
    width: 40px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-carousel__dot--active {
    background-color: var(--secondary-color);
}

.hero-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    font-size: 28px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel__arrow:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-carousel__arrow--prev {
    left: 60px;
}

.hero-carousel__arrow--next {
    right: 60px;
}

@media (max-width: 768px) {
    .hero-carousel__wrapper {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-carousel__caption {
        bottom: 60px;
        left: 20px;
        right: 20px;
        padding: 30px;
    }
    
    .hero-carousel__title {
        font-size: 2.5rem;
    }
    
    .hero-carousel__text {
        font-size: 1.1rem;
    }

    .hero-carousel__controls {
        bottom: 20px;
        right: 20px;
    }
    
    .hero-carousel__arrow {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .hero-carousel__arrow--prev {
        left: 20px;
    }
    
    .hero-carousel__arrow--next {
        right: 20px;
    }
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

h1 {
    font-size: 4rem;
    font-weight: 200;
}

h2 {
    font-size: 3rem;
    font-weight: 300;
}

h3 {
    font-size: 2rem;
    font-weight: 400;
}

h4 {
    font-size: 1.5rem;
    font-weight: 400;
}

p {
    margin-bottom: 25px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    font-weight: 300;
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* ===================================
   Content Section
   =================================== */
.content-section {
    padding: 120px 60px;
    background-color: var(--bg-white);
}

.content-section__header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-section__title {
    font-size: 3.5rem;
    margin-bottom: 30px;
    font-weight: 200;
    letter-spacing: -2px;
}

.content-section__intro {
    max-width: 900px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.9;
    font-weight: 300;
}

@media (max-width: 768px) {
    .content-section {
        padding: 80px 20px;
    }
    
    .content-section__header {
        margin-bottom: 50px;
    }
    
    .content-section__title {
        font-size: 2.25rem;
    }
}

/* ===================================
   Cards
   =================================== */
.card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    margin-bottom: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.card:hover::before {
    width: 100%;
}

.card:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.card__title {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.card__text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ===================================
   Images
   =================================== */
.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

.featured-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .featured-image {
        height: 350px;
    }
}

/* ===================================
   Map
   =================================== */
.map-wrapper {
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin: 60px 0;
}

.map-wrapper iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
    filter: grayscale(20%) contrast(1.1);
}

@media (max-width: 768px) {
    .map-wrapper iframe {
        height: 400px;
    }
}

/* ===================================
   Grid System
   =================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-half {
    flex: 0 0 50%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .col-half {
        flex: 0 0 100%;
    }
}

/* ===================================
   Widget Container
   =================================== */
.widget-container {
    margin: 80px 0;
    padding: 60px 40px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .widget-container {
        padding: 40px 20px;
        margin: 60px -20px;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 100px 60px 0;
    margin-top: 0;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 1600px;
    margin: 0 auto;
}

.footer__heading {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer__logo {
    margin-top: 20px;
}

.footer__logo-image {
    max-width: 150px;
    height: auto;
    opacity: 0.9;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer__link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__contact li {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer__contact strong {
    color: var(--bg-white);
    display: block;
    margin-bottom: 5px;
}

.footer__bottom {
    padding: 40px 0;
    text-align: center;
    max-width: 1600px;
    margin: 0 auto;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .footer {
        padding: 80px 20px 0;
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ===================================
   Privacy & Legal Pages
   =================================== */
.privacy-intro {
    background-color: var(--bg-light);
    padding: 50px;
    margin-bottom: 60px;
    border-left: 3px solid var(--secondary-color);
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.privacy-section h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-top: 20px;
    margin-bottom: 15px;
}

.privacy-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.privacy-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .privacy-intro {
        padding: 30px 20px;
    }
}

/* ===================================
   404 Error Page
   =================================== */
.error-404 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 100px 60px;
}

.error-404__content {
    max-width: 600px;
}

.error-404__title {
    font-size: 8rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-404__subtitle {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-404__text {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.error-404__actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.error-404__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
}

.error-404__button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-dark);
}

.error-404__button--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.error-404__button--secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.error-404__links {
    margin-top: 20px;
}

.error-404__links h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.error-404__links ul {
    list-style: none;
    padding: 0;
}

.error-404__links li {
    margin-bottom: 10px;
}

.error-404__links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.error-404__links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.error-404__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-404__image svg {
    max-width: 300px;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .error-404 {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 60px 20px;
    }
    
    .error-404__content {
        text-align: center;
    }
    
    .error-404__title {
        font-size: 5rem;
    }
    
    .error-404__subtitle {
        font-size: 2rem;
    }
    
    .error-404__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-404__button {
        width: 100%;
        max-width: 300px;
    }
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: var(--bg-dark);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top span {
    line-height: 1;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* ===================================
   Complaints Page
   =================================== */
.complaints-intro {
    background-color: var(--bg-light);
    padding: 50px;
    margin-bottom: 60px;
    border-left: 3px solid var(--secondary-color);
}

.complaints-intro h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.complaints-section {
    margin-bottom: 40px;
}

.complaints-section h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.contact-methods {
    background-color: var(--bg-light);
    padding: 30px;
    border: 1px solid var(--border-color);
    margin: 30px 0;
}

.contact-methods p {
    margin-bottom: 10px;
}

.contact-methods strong {
    color: var(--primary-color);
    min-width: 80px;
    display: inline-block;
}

.complaints-stages {
    margin: 40px 0;
}

.complaints-stages .card {
    margin-bottom: 20px;
}

.complaints-notice {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    padding: 30px;
    margin: 50px 0;
    text-align: center;
}

.complaints-notice p {
    margin: 0;
    color: #856404;
    font-style: italic;
}

.contact-details-box {
    background-color: var(--bg-light);
    padding: 60px 50px;
    border: 1px solid var(--border-color);
    margin-top: 80px;
}

.contact-details-box h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.contact-item {
    padding: 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--secondary-color);
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .complaints-intro {
        padding: 30px 20px;
    }

    .contact-details-box {
        padding: 40px 20px;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 60px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 60px; }

.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pt-4 { padding-top: 40px; }
.pt-5 { padding-top: 60px; }

.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }
.pb-4 { padding-bottom: 40px; }
.pb-5 { padding-bottom: 60px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
