/* UbiCare Static Site Styles */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #55555F;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #FF9114;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e07d00;
}

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #555;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #FF9114;
    border-bottom-color: #FF9114;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #555;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

/* Hero - Full width image */
.hero-image-full {
    width: 100%;
    line-height: 0;
}

.hero-image-full img {
    width: 100%;
    height: auto;
    display: block;
}

/* Legacy split hero */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.hero-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.hero-content {
    background: #FF9114;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.hero-content h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-content .cta-link {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-gray {
    background: #f5f5f5;
}

.section-dark {
    background: #2c3e50;
    color: #fff;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .two-col.reverse {
        direction: ltr;
    }
}

/* Content Styles */
.content-block {
    padding: 20px 0;
}

.content-block h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.tagline span {
    color: #FF9114;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #FF9114;
    color: #fff;
}

.btn-primary:hover {
    background: #e07d00;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #FF9114;
    border: 2px solid #FF9114;
}

.btn-outline:hover {
    background: #FF9114;
    color: #fff;
}

/* Logo Carousel */
.logo-carousel {
    background: #e8e8e8;
    padding: 40px 0;
}

.logo-carousel-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.logo-carousel img {
    max-height: 60px;
    width: auto;
    filter: grayscale(0);
    opacity: 0.8;
    transition: all 0.3s;
}

.logo-carousel img:hover {
    opacity: 1;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #aaa;
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #FF9114;
}

.footer-bottom {
    border-top: 1px solid #3d566e;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #3d566e;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #FF9114;
}

.social-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Accordion */
.accordion {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 20px;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-header:hover {
    background: #f0f0f0;
}

.accordion-content {
    padding: 20px;
    display: none;
}

.accordion-content.active {
    display: block;
}

/* Contact Form Placeholder */
.form-embed {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }
.py-4 { padding-top: 40px; padding-bottom: 40px; }

/* Slider (Simple CSS-based) */
.slider {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* Page-specific hero backgrounds */
.hero-home {
    background-image: url('../images/2022/05/home-hero-faces.jpg');
}

/* Responsive Images Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

/* List Styles */
.styled-list {
    list-style: none;
    padding-left: 0;
}

.styled-list li {
    padding: 10px 0 10px 30px;
    position: relative;
}

.styled-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FF9114;
    font-weight: bold;
}

/* Blockquote */
blockquote {
    border-left: 4px solid #FF9114;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}
