/* style.css */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Layout */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header & Nav */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
}

.logo-main {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo-sub {
    display: block;
    font-size: 0.75rem;
    color: #777;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Buttons */

.btn {
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: #222;
    border-color: var(--accent-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-small {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
}

.btn:hover {
    opacity: 0.9;
}

/* Nav toggle for mobile */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    border: none;
    background: none;
    padding: 0.25rem;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #333;
}

/* Hero */

.hero {
    background: linear-gradient(135deg, rgba(72, 91, 94), rgba(72, 91, 94)), url('https://troylivingusc.com/assets/scc2.jpg') center/cover no-repeat;
    color: #fff;
    padding: 3.5rem 0 3rem;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
}

.hero p {
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-bullets li::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.hero-card {
    background: rgba(255,255,255,0.96);
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    color: #222;
    overflow: hidden;
}

.hero-card-header {
    padding: 1rem 1.25rem;
    background: var(--accent-color);
}

.hero-card-body {
    padding: 1rem 1.25rem 1.5rem;
}

.hero-note {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.75rem;
}

/* Sections */

.section {
    padding: 2.5rem 0;
}

.section-alt {
    background: #ffffff;
}

.section-intro {
    max-width: 640px;
}

/* Grids */

.three-columns {
    display: grid;
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.three-columns h3 {
    margin-top: 0;
}

.rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rental-card {
    background: #fff;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.rental-image {
    background-size: cover;
    background-position: center;
    height: 180px;
}

.rental-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    background: var(--primary-color);
}

.rental-body {
    padding: 1rem 1.1rem 1.2rem;
}

.rental-address {
    font-size: 0.9rem;
    color: #666;
}

.rental-meta {
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.rental-rent {
    font-weight: 700;
    margin: 0.15rem 0;
}

.rental-available {
    font-size: 0.85rem;
    color: #555;
}

.rental-highlights {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.75rem;
}



/* About Us Blocks */
.about-blocks {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.about-block {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
    font-size: 0.95rem;
}




/* Contact layout */

.contact-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
}

.contact-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-field {
    flex: 1;
    min-width: 0;
    margin-bottom: 0.9rem;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

.form-field textarea {
    resize: vertical;
}

.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.required {
    color: #d00;
    margin-left: 0.1rem;
}

.hidden-field {
    position: absolute;
    left: -9999px;
}

/* Alerts */

.alert {
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #e7f6ed;
    border: 1px solid #a4d6b3;
    color: #256b3a;
}

.alert-error {
    background: #fde8e8;
    border: 1px solid #f5b5b5;
    color: #a02020;
}

/* Footer */

.site-footer {
    background: #1d1d1d;
    color: #eaeaea;
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.75rem;
}

/* Sitemap */

.sitemap-list {
    list-style: none;
    padding: 0;
}

.sitemap-list li {
    margin: 0.25rem 0;
}

/* Cookie banner */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 200;
}

.cookie-banner p {
    margin: 0;
}

/* Utility */

.narrow {
    max-width: 560px;
}

/* Responsive */

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0.75rem 1.25rem 1rem;
    }

    .header-inner {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.65rem;
    }
    .hero-card {
        margin-top: 1rem;
    }
}
