﻿/* ============================================
   Citizens Portal - City of Ocoee
   Color palette & Design System
   ============================================ */

:root {
    /* Primary Colors */
    --primary-purple: #5F2C8D;
    --primary-purple-dark: #4a2170;
    --primary-purple-darker: #3e1a5c;
    --primary-purple-light: #7b3db8;

    /* Dark Sections */
    --dark-bg: #2E1B51;
    --announcement-bg: #1a0d2e;
    --footer-dark: #2E1B51;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-100: #f8f8f8;
    --gray-200: #e8e8e8;
    --gray-300: #d0d0d0;
    --gray-500: #888888;
    --gray-700: #555555;
    --gray-900: #333333;
    --text-dark: #333333;
    --text-muted: #666666;

    /* Card & UI */
    --card-bg-dark: #4a4a4a;
    --card-bg-light: #f5f5f5;
    --border-light: #e0e0e0;

    /* Typography */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 4rem 2rem;
    --max-width: 1200px;
}

/* ============================================
   Base & Reset
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    margin-top: 0;
    font-weight: 700;
}

/* ============================================
   Floral Background Pattern
   ============================================ */

.pattern-bg,
.hero,
.benefits-section,
.footer-main {
    position: relative;
}

.pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/ocoee/pattern-floral.svg');
    background-repeat: repeat;
    opacity: 0.15;
    pointer-events: none;
}



/* ============================================
   Header
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Top Bar - white, logo, nav, actions */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 2rem;
    background: var(--white);
    max-width: 100%;
}

.top-bar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.tagline {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    color: var(--gray-900);
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.dropdown-arrow {
    font-size: 1.6rem;
    opacity: 0.7;
}

.search-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.search-link img {
    width: 16px;
    height: 16px;
}

/* Announcement Banner - dark blue strip, full width */
.announcement-banner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.65rem 2rem;
    background: #241D73;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

.announcement-banner p,
.announcement-banner .announcement-banner-text {
    flex: 1;
    text-align: left;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.5;
}

/* Override HTML from CPDefaultWelcomeMessage (bold, headings, inline colors) */
.announcement-banner p *,
.announcement-banner .announcement-banner-text * {
    font-size: inherit;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
    line-height: inherit;
}

.announcement-banner h1,
.announcement-banner h2,
.announcement-banner h3,
.announcement-banner h4,
.announcement-banner strong,
.announcement-banner b {
    font-size: 0.9rem;
    font-weight: 400;
    color: #FFFFFF;
}

.banner-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--white);
    opacity: 0.9;
}

.banner-close:hover {
    opacity: 1;
}

.banner-close img {
    width: 18px;
    height: 18px;
}

.logo-titles {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--gray-900);
}

.logo-subtitle {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    color: var(--gray-900);
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.dropdown-arrow {
    font-size: 1.6rem;
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-outline {
    background: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
    background: var(--gray-100);
}

.btn-primary {
    background: var(--primary-purple);
    color: var(--white);
    border: 2px solid var(--primary-purple);
}

.btn-primary:hover {
    background: var(--primary-purple-dark);
    border-color: var(--primary-purple-dark);
}

/* Top bar Login & Sign Up - match design */
.top-bar .btn-outline {
    background: transparent;
    color: #333333;
    border: 2px solid #8E2B8E;
}

.top-bar .btn-outline:hover {
    background: rgba(142, 43, 142, 0.08);
}

.top-bar .btn-primary {
    background: #8E2B8E;
    color: var(--white);
    border: none;
}

.top-bar .btn-primary:hover {
    background: #7a247a;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    display: flex;
}

.social-icons img {
    width: 20px;
    height: 20px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background-color: var(--primary-purple-darker);
    background-image: url('../images/ocoee/hero-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    margin: 0;
    margin-right: auto;
    text-align: left;
    padding-left: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero .btn-primary {
    background: var(--white);
    color: var(--primary-purple);
    border-color: var(--white);
}

.hero .btn-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
}

/* ============================================
   eServices Section
   ============================================ */

.services-section {
    position: relative;
    padding: 3.24rem 1.62rem;
    background: var(--white);
}

.services-section h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.125rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg-light);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* eServices cards - consistent design: image bg + centered icon, dark text box */
.service-card .service-icon {
    flex: 2;
    min-height: 135px;
    background-image: url('../images/ocoee/eservices-grid.png');
    background-size: 300% 200%;
    background-repeat: no-repeat;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-card .service-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.service-card-1 .service-icon.service-icon-bg {
    background-image: url('../images/ocoee/permit-applications-bg.png');
    background-size: cover;
    background-position: center;
}

.service-card-1 .service-icon.service-icon-bg::after {
    display: none;
}

.service-card-2 .service-icon { background-position: 50% 0%; }
.service-card-2 .service-icon.service-icon-bg {
    background-image: url('../images/ocoee/inspection-request-bg.png');
    background-size: cover;
    background-position: center;
}

.service-card-2 .service-icon.service-icon-bg::after {
    display: none;
}

.service-card-3 .service-icon.service-icon-bg {
    background-image: url('../images/ocoee/right-of-way-bg.png');
    background-size: cover;
    background-position: center;
}

.service-card-3 .service-icon.service-icon-bg::after {
    display: none;
}

.service-card-4 .service-icon.service-icon-bg {
    background-image: url('../images/ocoee/development-review-bg.png');
    background-size: cover;
    background-position: center;
}

.service-card-4 .service-icon.service-icon-bg::after {
    display: none;
}

.service-card-5 .service-icon.service-icon-bg {
    background-image: url('../images/ocoee/business-tax-bg.png');
    background-size: cover;
    background-position: center;
}

.service-card-5 .service-icon.service-icon-bg::after {
    display: none;
}

.service-card-6 .service-icon.service-icon-bg {
    background-image: url('../images/ocoee/inspectors-schedule-bg.png');
    background-size: cover;
    background-position: center;
}

.service-card-6 .service-icon.service-icon-bg::after {
    display: none;
}

.service-icon img {
    width: 42px;
    height: 42px;
    filter: brightness(0) invert(1);
    display: block;
    position: relative;
    z-index: 1;
}

.service-content {
    flex: 1;
    background: #363636;
    padding: 0.9375rem 1.125rem;
}

.service-content h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: #FFFFFF;
}

.service-content h3 .arrow-link {
    margin-left: 0.25rem;
    color: #FFFFFF;
    font-weight: 600;
}

.service-content p {
    font-size: 0.675rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.arrow-link {
    display: inline;
    color: #FFFFFF;
    font-weight: 600;
}

/* ============================================
   Quick Search Tools
   ============================================ */

.search-tools-section {
    position: relative;
    padding: 2rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background-color: var(--white);
    background-image: url('../images/ocoee/search-tools-bg.png');
    background-repeat: repeat;
    background-position: 0 0;
}

.search-tools-section h2 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.search-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    align-items: stretch;
}

.search-tool-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 0;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-tool-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 16px rgba(95, 44, 141, 0.1);
}

.search-tool-card .search-tool-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 0.5rem;
    margin-left: auto;
    display: block;
}

.search-tool-card h3 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.search-tool-card h4 {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
}

.search-tool-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.link-arrow {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 0.8rem;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* Contractor Search card - left box styling (matches right box) */
.search-tool-card-contractor {
    background: #F8F8F8;
    position: relative;
}

.search-tool-card-contractor::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #D4BBE1;
    border-radius: 0;
}

.search-tool-card-contractor h3 {
    color: #333333;
}

.search-tool-card-contractor h4 {
    color: #36456D;
}

.search-tool-card-contractor p {
    color: #6B7280;
}

.search-tool-card-contractor .link-arrow {
    color: #B04D8C;
}

/* Permit Search card - right box styling */
.search-tool-card-permit {
    background: #F8F8F8;
    position: relative;
}

.search-tool-card-permit::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #D4BBE1;
    border-radius: 0;
}

.search-tool-card-permit h3 {
    color: #333333;
}

.search-tool-card-permit h4 {
    color: #36456D;
}

.search-tool-card-permit p {
    color: #6B7280;
}

.search-tool-card-permit .link-arrow {
    color: #B04D8C;
}

/* ============================================
   Benefits Section
   ============================================ */

.benefits-section {
    background-color: #1e3a5f;
    background-image: url('../images/ocoee/footer-benefits-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 2rem;
}

.benefits-content {
    max-width: 650px;
    margin: 0;
    margin-right: auto;
    text-align: left;
    padding-left: 20px;
}

.benefits-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

.benefits-content > p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.check-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.benefits-list strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #000000;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.footer-main {
    padding: 1rem 2rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-logo img,
.footer-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Make logo visible on dark footer background */
.footer-logo-img {
    filter: brightness(0) invert(1);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.footer-col h4 {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

.footer-col p,
.footer-col a {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.25rem;
}

.footer-col a:hover {
    color: var(--white);
}

.social-icons-white img {
    width: 18px;
    height: 18px;
}

.social-icons-white a {
    display: inline-block;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.7rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a:hover {
    color: var(--white);
}

.footer-bottom span {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .utility-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .utility-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tagline {
        display: none;
    }

    .main-nav ul {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .search-tools-grid {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }
}

/* ============================================
   Hero Login Panel (ASP.NET Login control)
   ============================================ */

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1rem;
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero-with-login {
    padding: 2rem 2rem;
    box-sizing: border-box;
}

.hero-with-login h1 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.75rem;
}

.hero-with-login p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-with-login .hero-content a {
    background-color: darkblue;
    color: #FFFFFF;
    padding: 0.15em 0.45em;
    border-radius: 3px;
    text-decoration: underline;
    font-weight: 600;
    display: inline;
    line-height: 1.6;
}

.hero-with-login .hero-content a:hover {
    background-color: #0000cd;
    color: #FFFFFF;
    text-decoration: underline;
}

.ocoee-login-panel-outer {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    background-color: var(--white);
}

.ocoee-login-header {
    background-color: var(--primary-purple);
    color: var(--white);
    text-align: center;
    padding: 6px 10px;
    font-weight: 600;
    font-size: 0.8rem;
}

.ocoee-login-body {
    padding: 7px 10px 8px 10px;
    font-size: 12px;
    color: var(--text-dark);
}

.ocoee-login-body table {
    width: 100%;
}

.ocoee-login-body td {
    padding: 2px 1px;
}

.ocoee-login-body input[type="text"],
.ocoee-login-body input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.25rem 0.4rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.8rem;
    height: 1.75rem;
}

.ocoee-login-body input[type="submit"],
.ocoee-login-body .button {
    width: 100%;
    background-color: var(--primary-purple);
    color: var(--white);
    border: none;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
}

.ocoee-login-body input[type="submit"]:hover,
.ocoee-login-body .button:hover {
    background-color: var(--primary-purple-dark);
}

.ocoee-login-body .failure-text {
    color: #cc0000;
    font-size: 12px;
}

.ocoee-account-panel-outer {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    background-color: var(--white);
    margin-top: 26px;
}

.ocoee-account-header {
    background-color: var(--primary-purple-dark);
    color: var(--white);
    text-align: center;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.ocoee-account-body {
    padding: 12px 14px 14px 14px;
    font-size: 13px;
    text-align: center;
    color: var(--text-dark);
}

.ocoee-account-body ul {
    text-align: left;
    margin: 8px 0 0 22px;
    padding: 0;
}

.ocoee-account-button {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 6px;
    border-radius: 6px;
    background-color: var(--primary-purple);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.ocoee-account-button:hover {
    background-color: var(--primary-purple-dark);
}

.loginControlPanel {
    width: 100%;
}

#loginPanel {
    scroll-margin-top: 80px;
}
