/* 
   Pakland Builders â€” Premium Corporate Design System v2.0
   Aesthetics: Premium, Trustworthy, Corporate, Minimalist
   Mobile-First | Fully Responsive | Production Ready
*/

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* =============================================
   1. DESIGN TOKENS
============================================= */
:root {
    --primary-blue:    #1E73BE;
    --primary-dark:    #155a96;
    --dark-navy:       #1F2D3D;
    --navy-mid:        #263548;
    --light-sky-blue:  #6DB7E8;
    --eco-green:       #5fa020;
    --eco-green-light: #7DBB3A;
    --soft-gray-text:  #5a6773;
    --light-gray:      #8a9ab0;
    --white:           #FFFFFF;
    --off-white:       #F5F7FA;
    --border-light:    #E2E8F0;
    --shadow-sm:       0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:       0 8px 30px rgba(0,0,0,0.10);
    --shadow-lg:       0 20px 60px rgba(0,0,0,0.15);

    --font-heading:    'Oswald', sans-serif;
    --font-body:       'Montserrat', sans-serif;

    --section-padding: 110px;
    --container-width: 1260px;
    --radius-sm:       4px;
    --radius-md:       8px;

    --ease:            cubic-bezier(0.4, 0, 0.2, 1);
    --transition:      all 0.4s var(--ease);
}

/* =============================================
   2. RESET & BASE
============================================= */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    color: var(--soft-gray-text);
    line-height: 1.75;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    line-height: 1.1;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, button { font-family: var(--font-body); }

/* =============================================
   3. LAYOUT
============================================= */
.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   3b. LOGO ICON STYLE
============================================= */
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%); /* from-blue-500 to-green-500 */
    border-radius: 8px; /* matching the rounded aspect ratio */
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
}

.logo a:hover .logo-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* =============================================
   4. BUTTONS
============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 34px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30,115,190,0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background-color: var(--dark-navy);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover { box-shadow: 0 6px 25px rgba(30,115,190,0.4); transform: translateY(-2px); }
.btn-primary:hover::after { left: 0; }

.btn-eco {
    background-color: var(--eco-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(95,160,32,0.3);
}

.btn-eco:hover {
    background-color: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(31,45,61,0.3);
}

/* =============================================
   5. TYPOGRAPHY UTILITIES
============================================= */
.section-tag {
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--primary-blue);
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--dark-navy);
}

/* =============================================
   6. HEADER & NAVIGATION
============================================= */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

header.sticky {
    padding: 14px 0;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo a { display: flex; align-items: center; }

.logo h2, #logo-text {
    font-size: 1.7rem;
    letter-spacing: 2px;
    color: var(--white);
    transition: var(--transition);
    line-height: 1;
}

header.sticky .logo h2,
header.sticky #logo-text {
    color: var(--primary-blue);
}

/* Desktop Nav */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--eco-green);
    transition: width 0.3s var(--ease);
}

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

header.sticky .nav-link { color: var(--dark-navy); }

.nav-link:hover,
.nav-link.active { color: var(--eco-green); }

header.sticky .nav-link:hover,
header.sticky .nav-link.active { color: var(--eco-green); }

.header-cta { flex-shrink: 0; }

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

header.sticky .hamburger span { background: var(--dark-navy); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--dark-navy);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--transition);
}

.mobile-nav.open {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav a {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: var(--transition);
}

.mobile-nav a:hover { color: var(--eco-green); }

/* =============================================
   7. HERO SECTION
============================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31,45,61,0.88) 0%, rgba(30,115,190,0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.95;
    margin-bottom: 28px;
    color: var(--white);
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* =============================================
   8. PROJECT CARDS
============================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    position: relative;
    height: 420px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31,45,61,0.85) 0%, transparent 60%);
    transition: var(--transition);
}

.project-card:hover::before {
    background: linear-gradient(to top, rgba(31,45,61,0.95) 0%, rgba(30,115,190,0.2) 100%);
}

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

.project-card-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 30px 28px;
    color: var(--white);
    transform: translateY(8px);
    transition: var(--transition);
}

.project-card:hover .project-card-overlay { transform: translateY(0); }

.project-card-overlay h4 { font-size: 1.1rem; margin-bottom: 4px; }
.project-card-overlay p { font-size: 0.75rem; letter-spacing: 2px; opacity: 0.9; color: var(--white) !important; }

/* =============================================
   9. SHOWCASE BOX
============================================= */
.showcase-box {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.showcase-box:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.showcase-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(31,45,61,0.5) 100%);
    opacity: 0;
    transition: var(--transition);
}

.showcase-box:hover::after { opacity: 1; }

/* =============================================
   10. BUY & SELL BOX
============================================= */
.buysell-container {
    background: var(--off-white);
    padding: 55px 60px;
    border: 1px solid var(--border-light);
    display: flex;
    gap: 60px;
    align-items: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* =============================================
   11. FOOTER
============================================= */
footer {
    background-color: var(--dark-navy);
    color: rgba(255,255,255,0.65);
    padding: 90px 0 40px;
}

footer h2, footer h4 { color: var(--white); }

footer h4 {
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

footer ul li { margin-bottom: 10px; }

footer ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

footer ul li a:hover { color: var(--eco-green-light); padding-left: 4px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 28px;
    margin-top: 60px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* =============================================
   12. SCROLL ANIMATIONS
============================================= */
[data-fade] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-fade].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-fade-left] {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-fade-left].visible {
    opacity: 1;
    transform: translateX(0);
}

[data-fade-right] {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-fade-right].visible {
    opacity: 1;
    transform: translateX(0);
}

/* =============================================
   13. FORM STYLES
============================================= */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--dark-navy);
    background: var(--white);
    transition: border-color 0.3s;
    outline: none;
}

.form-input:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(30,115,190,0.1); }
.form-input::placeholder { color: #aab; }

/* =============================================
   14. PAGE HERO (inner pages)
============================================= */
.page-hero {
    height: 50vh;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

/* =============================================
   15. STATS COUNTER
============================================= */
.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

/* =============================================
   16. MEDIA QUERIES â€” TABLET (â‰¤1024px)
============================================= */
@media (max-width: 1024px) {
    :root { --section-padding: 80px; }

    .hero h1 { font-size: 4rem; }
    .section-title { font-size: 2.2rem; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }

    .nav-menu { gap: 24px; }

    /* Index: About 2-col â†’ 1-col */
    .about-grid { grid-template-columns: 1fr !important; gap: 40px !important; }

    /* Footer 4-col â†’ 2-col */
    .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 40px !important; }

    /* Pre-footer 4-col â†’ 2-col */
    .prefooter-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Buy/sell */
    .buysell-container { padding: 40px; gap: 40px; }
}

/* =============================================
   17. MEDIA QUERIES â€” MOBILE (â‰¤768px)
============================================= */
@media (max-width: 768px) {
    :root { --section-padding: 60px; }

    /* Nav */
    .nav-menu { display: none; }
    .header-cta { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: flex; }

    /* Hero */
    .hero h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .hero-btns { flex-direction: column; align-items: flex-start; }
    .hero-btns .btn { width: 100%; justify-content: center; }

    /* Showcase 3-col â†’ 1-col */
    .showcase-3col { grid-template-columns: 1fr !important; }
    .showcase-box { height: 250px !important; }

    /* Sections */
    .section-title { font-size: 1.8rem; }

    /* Projects */
    .projects-grid { grid-template-columns: 1fr; }

    /* About */
    .about-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
    .about-stats { flex-direction: row; flex-wrap: wrap; }

    /* Buy & Sell */
    .buysell-container {
        flex-direction: column;
        text-align: center;
        padding: 36px 24px;
        gap: 30px;
    }
    .buysell-rates { flex-direction: row; justify-content: center; }

    /* Pre-footer */
    .prefooter-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .prefooter-cta { text-align: left !important; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
    .footer-logo-col { margin-bottom: 10px; }
    .footer-social { justify-content: flex-start; }

    /* Projects page alternating */
    .project-alt-left,
    .project-alt-right { grid-template-columns: 1fr !important; gap: 36px !important; }

    /* Contact cards */
    .contact-cards { grid-template-columns: 1fr !important; }

    /* Contact details */
    .contact-details { grid-template-columns: 1fr !important; gap: 40px !important; }

    /* Towers features */
    .towers-features { grid-template-columns: 1fr !important; }

    /* Rates table */
    .rates-header,
    .rates-row { grid-template-columns: 1.5fr 1fr 1.2fr !important; }
    .rates-row .hide-mobile { display: none; }
    .rates-header .hide-mobile { display: none; }
    .rates-row { font-size: 0.85rem; }

    /* Logo size */
    .logo h2, #logo-text { font-size: 1.3rem; }

    /* Ready possession */
    .ready-card { transform: none !important; }
}

/* =============================================
   18. MOBILE (≤480px)
============================================= */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn { padding: 13px 24px; font-size: 0.82rem; }
    .hero { min-height: 600px; }
    .project-card { height: 300px; }
    .buysell-rates { flex-direction: column; gap: 20px; }

    /* Prevent any element from overflowing */
    section, footer, header, nav, div {
        max-width: 100vw;
    }

    /* Force inline grids to single column on very small screens */
    [style*="grid-template-columns:1.2fr 1fr"],
    [style*="grid-template-columns:1fr 1.2fr"],
    [style*="grid-template-columns:repeat(4,1fr)"],
    [style*="grid-template-columns:repeat(3,1fr)"],
    [style*="grid-template-columns:repeat(2,1fr)"],
    [style*="grid-template-columns:2fr 1fr 1fr 1.5fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Box shadow offsets cause overflow */
    [style*="box-shadow:30px"],
    [style*="box-shadow:-30px"] {
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    }

    .logo-icon { width: 30px; height: 30px; }
    .logo-icon svg { width: 18px; height: 18px; }
}

/* Ensure all sections are contained */
section { overflow: hidden; }


/* =============================================
   19. UTILITY CLASSES
============================================= */
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.mt-auto     { margin-top: auto; }

/* Divider line */
.divider {
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    margin: 16px 0 24px;
    border-radius: 2px;
}

.divider-center { margin-left: auto; margin-right: auto; }

/* Social icons */
.social-icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--eco-green);
    border-color: var(--eco-green);
    color: var(--white);
    transform: translateY(-3px);
}

/* Pulse animation for WhatsApp */
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(95,160,32,0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(95,160,32,0); }
    100% { box-shadow: 0 0 0 0 rgba(95,160,32,0); }
}

.btn-whatsapp { animation: pulse 2s infinite; }

/* Page loader fade-in */
@keyframes fadeInPage {
    from { opacity: 0; }
    to   { opacity: 1; }
}

body { animation: fadeInPage 0.5s var(--ease) forwards; }

/* Hover underline for footer links */
footer a:hover { color: var(--eco-green-light); }

