/* ==========================================================================
   Konshila Group - Global Stylesheet
   Single source of truth for all pages. Page-specific rules live in their
   own labelled sections below. Built on top of Bootstrap 4.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    --brand:        #c8852f;          /* warm gold - luxury real-estate accent */
    --brand-dark:   #a86c1f;
    --brand-light:  #e6b35c;
    --ink:          #1a1d24;          /* near-black headings */
    --body:         #444a54;          /* body copy */
    --muted:        #7a828d;
    --bg:           #ffffff;
    --bg-soft:      #f7f5f1;          /* warm off-white sections */
    --bg-dark:      #16181d;
    --line:         #ececec;
    --radius:       14px;
    --radius-sm:    10px;
    --shadow-sm:    0 4px 16px rgba(20, 24, 31, 0.06);
    --shadow-md:    0 10px 30px rgba(20, 24, 31, 0.10);
    --shadow-lg:    0 18px 50px rgba(20, 24, 31, 0.16);
    --transition:   0.3s cubic-bezier(.25, .8, .25, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body {
    font-family: 'Quicksand', sans-serif;
    color: var(--body);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}

section h2 {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Centered accent underline for centered section headings */
.text-center > h2::after,
section.text-center h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 0.85rem auto 0;
    background: var(--brand);
    border-radius: 3px;
}

a {
    transition: color var(--transition);
}

.text-brand   { color: var(--brand) !important; }
.bg-soft      { background-color: var(--bg-soft) !important; }
.section-pad  { padding: 5rem 0; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.6rem 1.6rem;
    transition: transform var(--transition), box-shadow var(--transition),
                background-color var(--transition), color var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary,
.btn-brand {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(200, 133, 47, 0.30);
}

.btn-primary:hover,
.btn-brand:hover,
.btn-primary:focus,
.btn-brand:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

/* Back-compat: existing "orange" utility classes mapped to the brand colour */
.btn-orange {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn-orange:hover { background-color: var(--brand-dark); color: #fff; }
.text-orange { color: var(--brand) !important; }

.btn-outline-light:hover { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   4. Navbar
   -------------------------------------------------------------------------- */
.navbar {
    transition: box-shadow var(--transition), background-color var(--transition);
}

.navbar .nav-link {
    color: var(--ink) !important;
    font-weight: 600;
    position: relative;
    margin: 0 0.35rem;
    padding: 0.5rem 0.25rem !important;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    bottom: 0.1rem;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .nav-link:hover { color: var(--brand) !important; }

.header-logo { height: 50px; }

/* Transparent navbar over the hero (home page); turns solid white on scroll */
.navbar-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

.navbar-transparent .nav-link {
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.navbar-transparent .nav-link::after { background: #fff; }

.navbar-transparent .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
}

.navbar-transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-transparent.scrolled {
    background: #fff !important;
    box-shadow: var(--shadow-sm) !important;
}

.navbar-transparent.scrolled .nav-link {
    color: var(--ink) !important;
    text-shadow: none;
}

.navbar-transparent.scrolled .nav-link::after { background: var(--brand); }

.navbar-transparent.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26,29,36,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* When the mobile menu is open on a transparent navbar, give it a solid panel */
.navbar-transparent .navbar-collapse.show,
.navbar-transparent .navbar-collapse.collapsing {
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.navbar-transparent .navbar-collapse.show .nav-link,
.navbar-transparent .navbar-collapse.collapsing .nav-link {
    color: var(--ink) !important;
    text-shadow: none;
}

/* --------------------------------------------------------------------------
   5. Cards (shared)
   -------------------------------------------------------------------------- */
.card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-img-top {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

/* Feature / amenity / connectivity icon cards */
.feature-card .card-body { padding: 1.75rem 1.25rem; }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: rgba(200, 133, 47, 0.12);
    color: var(--brand);
    font-size: 2rem;
}

/* --------------------------------------------------------------------------
   6. Hero (home)
   -------------------------------------------------------------------------- */
#hero {
    position: relative;
    background: url('../img/19thepinnacle/road in the middle.png') center center/cover no-repeat;
    height: 100vh;
    min-height: 560px;
    color: #fff;
    overflow: hidden;
}

#hero .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

#hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}

#hero .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 92%;
    max-width: 820px;
    z-index: 2;
}

#hero .content h1,
#hero .content p {
    color: #fff;
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
}

#hero p {
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
}

.hero-buttons .btn { margin: 10px; }

/* --------------------------------------------------------------------------
   7. Scrolling image gallery strip (home + about)
   -------------------------------------------------------------------------- */
.image-gallery-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.image-gallery {
    display: flex;
    animation: scrollGallery 25s linear infinite;
}

.image-gallery img {
    max-height: 300px;
    width: auto;
    margin-right: 30px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    background: transparent;
}

@keyframes scrollGallery {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.fade-in { animation: fadeInUp 1s both; }

/* Full-width banner image */
.banner-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   8. About page
   -------------------------------------------------------------------------- */
.about-section h2 { font-size: 2.5rem; }

.about-section p {
    font-size: 1.1rem;
    color: var(--body);
    line-height: 1.7;
}

.mission-block {
    background: var(--bg-soft);
    padding: 60px 20px;
    text-align: center;
}

.mission-block h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   9. Projects page
   -------------------------------------------------------------------------- */
.section-title h2 { font-size: 2.4rem; }

.section-title p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Project cards */
.project-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-media {
    position: relative;
    overflow: hidden;
    background: var(--bg-soft);
}

.project-media img {
    display: block;
    width: 100%;
    height: auto;                 /* fill the card width, no side gaps, full image */
    transition: transform 0.6s cubic-bezier(.25, .8, .25, 1);
}

.project-card:hover .project-media img { transform: scale(1.05); }

.project-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: var(--brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(200, 133, 47, 0.4);
}

.project-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.5rem 1.5rem 1.75rem;
}

.project-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.project-loc {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.project-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.project-link {
    margin-top: auto;
    align-self: flex-start;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.project-link i { transition: transform var(--transition); }
.project-link:hover { color: var(--brand-dark); text-decoration: none; }
.project-link:hover i { transform: translateX(4px); }

.project-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.project-contact-btn { white-space: nowrap; }

/* Per-project gallery page header */
.project-detail-head {
    padding: 1rem 0 2.5rem;
}

.project-detail-head h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover { color: var(--brand); text-decoration: none; }
.back-link i { transition: transform var(--transition); }
.back-link:hover i { transform: translateX(-4px); }

/* --- Status badges (cards + project page) --- */
.project-tag.is-construction,
.project-status-badge.is-construction { background: #e67e22; box-shadow: 0 4px 12px rgba(230,126,34,.4); }
.project-tag.is-launch,
.project-status-badge.is-launch       { background: #2980b9; box-shadow: 0 4px 12px rgba(41,128,185,.4); }
.project-tag.is-ready,
.project-status-badge.is-ready        { background: #27ae60; box-shadow: 0 4px 12px rgba(39,174,96,.4); }
.project-tag.is-completed,
.project-status-badge.is-completed    { background: #6b7280; box-shadow: 0 4px 12px rgba(107,114,128,.35); }

.project-status-badge {
    color: #fff;
    background: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}

/* --- Project facts strip --- */
.project-facts {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 2rem 0;
}

.project-facts .fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.75rem 0;
}

.project-facts .fact i {
    font-size: 1.8rem;
    color: var(--brand);
    margin-bottom: 0.25rem;
}

.fact-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.fact-value {
    font-weight: 700;
    color: var(--ink);
}

/* --- Configurations & highlights --- */
.config-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}

.config-type {
    font-weight: 700;
    color: var(--ink);
    font-size: 1.1rem;
}

.config-note { color: var(--muted); text-align: right; }

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

.highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    color: var(--body);
}

.highlight-list i {
    color: var(--brand);
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1.4;
}

/* --- Project information list --- */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--body);
}

.info-list li:last-child { border-bottom: none; }

.info-list i {
    color: var(--brand);
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 1.6rem;
    text-align: center;
}

.info-list strong { color: var(--ink); }
.info-list a { color: var(--brand-dark); font-weight: 600; }

/* --- Footer legal text --- */
.footer-legal {
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 760px;
    margin-inline: auto;
}

/* --- Floating contact buttons --- */
.floating-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fcta {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    transition: transform var(--transition), box-shadow var(--transition);
}

.fcta:hover { transform: scale(1.08); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.fcta-whatsapp { background: #25d366; }
.fcta-call     { background: var(--brand); }

.fcta-whatsapp::before {
    content: "";
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.5;
    animation: fctaPulse 2s infinite;
    z-index: -1;
}

@keyframes fctaPulse {
    0%   { transform: scale(1);   opacity: 0.5; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 576px) {
    .fcta { width: 48px; height: 48px; font-size: 1.3rem; }
}

/* --------------------------------------------------------------------------
   10. Gallery page
   -------------------------------------------------------------------------- */
.gallery-header {
    text-align: center;
    padding: 80px 20px 24px;
}

.gallery-header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--ink);
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: auto;                 /* show the full image, no cropping */
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    align-self: start;            /* don't stretch to match row height */
}

.gallery-grid img.tall-image { height: auto; }

.hover-effect {
    transition: transform var(--transition), box-shadow var(--transition);
}

.hover-effect:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.gallery-single img {
    width: 60%;
    max-width: 500px;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid img,
    .gallery-grid img.tall-image { height: auto; }
    .gallery-single img { width: 90%; }
}

/* --------------------------------------------------------------------------
   11. Contact page
   -------------------------------------------------------------------------- */
.contact-info { color: #000; }

.google-map {
    width: 100%;
    height: 400px;
    border: none;
    margin-top: 60px;
    border-radius: var(--radius-sm);
}

textarea[readonly],
textarea[disabled] { resize: none !important; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
#footer a { transition: color var(--transition); }
#footer a:hover { color: var(--brand) !important; text-decoration: none; }
