/* Agerum Fastighets AB - Minimalist Scandinavian Design */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #4a4a4a;
    --accent-color: #2d2d2d;
    --text-dark: #1a1a1a;
    --text-light: #6a6a6a;
    --bg-light: #f5f5f5;
    --bg-lighter: #fafafa;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.2s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    background-image: 
        linear-gradient(135deg, rgba(26, 26, 26, 0.03) 0%, rgba(26, 26, 26, 0.06) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.5) 35px, rgba(255, 255, 255, 0.5) 70px);
    color: var(--text-dark);
    padding: 6rem 2rem 5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(240, 240, 240, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -1px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Hero Section - Home Page with Background Image */
.hero-home {
    background-image: url('../images/osby-home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 2rem 6rem;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-home::before {
    background: none;
}

.hero-home h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-home p {
    font-size: 1.3rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 900px;
}

/* Hero Section - Contact Page with Background Image */
.hero-contact {
    background-image: linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.5)), url('../images/osby/osby kontor.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 2rem 6rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-contact::before {
    background: none;
}

.hero-contact h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-contact p {
    font-size: 1.3rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 900px;
}

/* Hero Section - About Page with Logo Background */
.hero-about {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    position: relative;
    padding: 8rem 2rem 6rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-about::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('../images/agerum_logo_large.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.hero-about h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.hero-about p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 900px;
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Section Styling */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: -0.5px;
}

section p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 2rem;
}

/* Alert/Highlight Box */
.highlight-box {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 3rem 2rem;
    border-radius: 0;
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
}

.highlight-box h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--primary-color);
}

.highlight-box p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Property Cards */
.property-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.property-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    box-shadow: var(--shadow-hover);
}

.property-card-image {
    width: 100%;
    height: 250px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -1px;
}

.property-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-card-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.property-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.property-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 400;
}

.property-address {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    text-align: left;
}

.property-area-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 2px;
    letter-spacing: 0.3px;
}

.property-type {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    text-align: left;
    font-weight: 500;
    margin-left: 0;
    margin-right: 0;
}

.property-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.6;
    margin-left: 0;
    margin-right: 0;
}

.property-card .property-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.property-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.property-detail-item strong {
    color: var(--primary-color);
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 0;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    margin-top: 1rem;
    border: 2px solid var(--primary-color);
}
.btn.small {
    padding: 0.4rem 0.9rem;
}
.btn.normal-size {
    width:auto;
}
.btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Property Detail Page */
.property-detail {
    background: var(--white);
    border-radius: 0;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.property-detail h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Modern Two-Column Layout */
.property-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

.property-gallery-column {
    flex: 1;
}

.property-info-column {
    position: sticky;
    top: 100px;
}

.property-description-text {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    line-height: 1.8;
}

.property-description-text p {
    margin: 0;
    color: var(--text-light);
}

/* Property Info Card (Sidebar) */
.property-info-card {
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.property-status-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid #27ae60;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: #27ae60;
}

.property-status-badge.occupied {
    border-color: var(--text-light);
    color: var(--text-light);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #27ae60;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.status-indicator.occupied {
    background-color: var(--text-light);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.property-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.btn-full-width {
    width: 100%;
    text-align: center;
    margin-top: 0;
}

.property-image {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.property-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Image Gallery Styles */
.image-gallery {
    width: 100%;
    margin: 2rem 0;
}

.gallery-main {
    width: 100%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-lighter);
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    border-width: 3px;
}

/*.property-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
*/
.property-detail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.property-detail-grid > * {
    flex: 1 1 250px;
    max-width: 1fr;
}

.detail-item {
    padding: 1.2rem;
    background: var(--bg-lighter);
    border-radius: 0;
    border-left: 3px solid var(--primary-color);
}

.detail-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background-color: var(--bg-lighter);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Content with Image Layout */
.content-with-image {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 3rem;
    align-items: start;
    margin: 2rem 0;
}

.content-image {
    width: 100%;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-color);
}

.content-text {
    flex: 1;
}

.content-text p {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.contact-card-image {
    width: 100%;
    height: 280px;
    background-color: var(--bg-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.contact-card-content {
    padding: 1.8rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-card-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 500;
    text-align: center;
}

.contact-card-content .contact-title {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-card-content p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-align: center;
}

.contact-card-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-card-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Info Box */
.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Available Properties List */
.available-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.available-item {
    background: var(--white);
    border-radius: 0;
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.available-item h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.6rem;
    font-weight: 400;
    width: 100%;
    text-align: center;
}

.available-item-image {
    width: 50%;
    height: auto;
    border: 1px solid var(--border-color);
    display: block;
    object-fit: cover;
    margin: 0 auto;
}

.available-item a {
    display: block;
    text-align: center;
    width: 100%;
    align-self: center;
}

.available-item-details {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    align-items: flex-start;
}

.available-item-details p {
    color: var(--text-light);
    margin: 0 0 0.8rem 0;
    text-align: left;
    max-width: 100%;
}

.available-item-details .btn {
    margin: 0.5rem 0 0 0;
}

.available-item p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    text-align: left;
}

.available-item .status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
    color: var(--white);
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Custom Footer Styles */
.custom-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 0 0;
    margin-top: 3rem;
    font-size: 16px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}
.footer-col {
    flex: 1 1 220px;
    min-width: 220px;
    margin-bottom: 2rem;
}
.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover,
.footer-col a:hover {
    color: #fff;
}
.footer-col p,
.footer-col a {
    color: #cbd5e1;
}
.footer-bottom {
    border-top: 1px solid #2d3748;
    text-align: center;
    padding: 2rem 0 1rem 0;
    color: #cbd5e1;
    font-size: 0.95rem;
}
/*@media (max-width: 800px) {
    .footer-columns {
        flex-direction: column;
        gap: 0;
    }
    .footer-col {
        margin-bottom: 1.5rem;
    }
}
*/
/* Mobile: more compact footer adjustments */
@media (max-width: 600px) {
    .custom-footer {
        padding: 1rem 0; /* reduce vertical padding */
        font-size: 14px;
        margin-top: 2rem;
    }
    .footer-container {
        padding: 0 0.75rem;
    }
    .footer-columns {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    .footer-col {
        flex: 1 1 100%;
        min-width: unset;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .footer-col p,
    .footer-col a,
    .footer-col ul li a {
        color: #cbd5e1;
        font-size: 0.95rem;
    }
    .footer-col ul {
        display: inline-block; /* keep links compact */
        padding: 0;
    }
    .footer-col ul li {
        display: inline-block;
        margin: 0 0.5rem 0.5rem 0.5rem;
    }
    .footer-bottom {
        padding: 0.8rem 0 0 0;
        font-size: 0.85rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .property-info-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-home {
        padding: 5rem 2rem 4rem;
        min-height: 350px;
    }

    .hero-home h1 {
        font-size: 2.2rem;
    }

    .hero-home p {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .property-cards {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 2rem 1rem;
    }

    .property-detail {
        padding: 1.5rem;
    }

    .property-info-card {
        padding: 1.5rem;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .thumbnail {
        height: 80px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .available-item-image {
        width: 100%;
    }
}

