/* General Styles */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #E67E22;
    --accent-color: #3498DB;
    --bg-color: #F5F5F5;
    --text-color: #333333;
    --white-color: #FFFFFF;
    --error-color: #E74C3C;
    --success-color: #2ECC71;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --hand-drawn-color: #2C3E50;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

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

.uk-container {
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 640px) {
    .uk-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Hand-drawn Elements */
.hand-drawn {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.hand-drawn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: rotate(-0.5deg) skew(1deg);
    opacity: 0.8;
}

.hand-drawn-border {
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px 0 30px;
    transform: rotate(-0.5deg) skew(1deg);
    width: 60%;
}

.hand-drawn-button {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    transform: rotate(-0.2deg);
    transition: var(--transition);
}

.hand-drawn-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    opacity: 0.3;
    transform: rotate(0.4deg);
    z-index: -1;
}

.hand-drawn-outline-button {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    transform: rotate(-0.2deg);
    transition: var(--transition);
    background-color: transparent;
    color: var(--primary-color);
}

.hand-drawn-outline-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    opacity: 0.3;
    transform: rotate(0.4deg);
    z-index: -1;
}

.hand-drawn-outline-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.hand-drawn-link {
    position: relative;
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
}

.hand-drawn-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.hand-drawn-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.hand-drawn-quote {
    position: relative;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    text-align: center;
}

.hand-drawn-quote::before,
.hand-drawn-quote::after {
    content: '"';
    font-family: 'Georgia', serif;
    font-size: 3rem;
    position: absolute;
    color: var(--secondary-color);
    opacity: 0.4;
}

.hand-drawn-quote::before {
    left: 0;
    top: -10px;
}

.hand-drawn-quote::after {
    right: 0;
    bottom: -30px;
}

/* Header and Navigation */
header {
    background-color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.uk-navbar-nav > li > a {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--primary-color);
    text-transform: none;
    padding: 0 15px;
    min-height: 60px;
    position: relative;
}

.uk-navbar-nav > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 15px;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.uk-navbar-nav > li:hover > a::after,
.uk-navbar-nav > li.uk-active > a::after {
    width: 60%;
}

.uk-navbar-toggle {
    color: var(--primary-color);
}

.uk-offcanvas-bar {
    background-color: var(--primary-color);
}

.uk-offcanvas-bar .uk-nav-default > li > a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    padding: 10px 0;
}

.uk-offcanvas-bar .uk-nav-default > li.uk-active > a {
    color: var(--white-color);
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background-color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 30% 70%, rgba(52, 152, 219, 0.1) 0%, rgba(230, 126, 34, 0.05) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image-container {
    position: relative;
    z-index: 1;
    transform: rotate(1deg);
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Sections */
.uk-section-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.uk-section-primary h1, 
.uk-section-primary h2, 
.uk-section-primary h3, 
.uk-section-primary h4 {
    color: var(--white-color);
}

.uk-section-muted {
    background-color: #f0f2f5;
}

.page-header {
    padding: 60px 0;
    text-align: center;
}

/* Service Cards */
.service-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Featured Content */
.featured-article {
    margin-bottom: 40px;
}

.article-image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Infographic Section */
.info-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.info-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    opacity: 0.7;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Quote Section */
.quote-section {
    background-color: var(--white-color);
    position: relative;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.uk-form-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.uk-input,
.uk-textarea,
.uk-select {
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 10px 15px;
}

.uk-input:focus,
.uk-textarea:focus,
.uk-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

/* Intl Tel Input */
.iti {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

footer a:hover {
    color: var(--white-color);
    text-decoration: none;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-logo {
    height: 40px;
    filter: invert(1);
}

.uk-list-divider > li:not(:first-child) {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    background-color: var(--white-color);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 1001;
}

.cookie-banner h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.cookie-banner p {
    margin-bottom: 15px;
}

/* Principles Cards */
.principle-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    border-left: 4px solid var(--secondary-color);
}

.principle-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    opacity: 0.7;
}

.principle-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Asset Cards */
.asset-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.asset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.asset-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.asset-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.asset-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Region Tabs */
.region-tabs {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

/* Risk Categories */
.risk-category {
    margin-bottom: 25px;
}

.risk-category h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Category Cards */
.category-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    border-top: 3px solid var(--accent-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Report Cards */
.report-card {
    overflow: hidden;
    transition: var(--transition);
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.report-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.report-date {
    color: var(--primary-color);
    margin-right: 15px;
}

.report-category {
    color: var(--secondary-color);
    font-weight: 500;
}

.report-highlights {
    background-color: rgba(52, 152, 219, 0.05);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

.report-highlights h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Report Items */
.report-item {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.report-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.report-item h3 {
    font-size: 1.2rem;
    margin: 10px 0 15px;
    color: var(--primary-color);
}

/* Macro Reports */
.macro-report {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.macro-report-image {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.macro-report-content h3 {
    font-size: 1.3rem;
    margin: 10px 0 15px;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .macro-report {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .macro-report-image {
        width: 40%;
        margin-right: 30px;
        margin-bottom: 0;
    }
    
    .macro-report-content {
        width: 60%;
    }
}

/* Special Reports */
.special-report {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 3px solid var(--white-color);
    transition: var(--transition);
}

.special-report:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.special-report h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white-color);
}

.special-report p {
    color: rgba(255, 255, 255, 0.9);
}

.report-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.report-pages {
    margin-left: 15px;
    opacity: 0.8;
}

/* Contact Info Cards */
.contact-info-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    height: 100%;
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Map */
.map-container {
    height: 450px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FAQ Accordion */
.uk-accordion-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--white-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.uk-accordion-title:hover {
    background-color: rgba(44, 62, 80, 0.05);
}

.uk-accordion-content {
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: -1px;
    box-shadow: var(--box-shadow);
}

/* Policy Pages */
.policy-nav {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.policy-nav h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.policy-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.policy-section h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
    color: var(--primary-color);
}

/* Thanks Page */
.thanks-section {
    padding: 80px 0;
    text-align: center;
}

.thanks-icon {
    font-size: 4rem;
    color: var(--white-color);
    margin-bottom: 20px;
}

.resource-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.resource-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.resource-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0;
    }

    .uk-heading-medium {
        font-size: 2rem;
    }

    .uk-heading-small {
        font-size: 1.5rem;
    }

    .uk-text-lead {
        font-size: 1.2rem;
    }

    .hand-drawn-quote {
        font-size: 1.2rem;
        padding: 15px 25px;
    }

    .principle-card, 
    .info-card, 
    .service-card, 
    .asset-card, 
    .category-card {
        padding: 20px;
    }

    .footer-brand {
        text-align: center;
    }
}

/* Thumb Zone Optimization for Mobile */
@media (max-width: 767px) {
    .uk-button {
        min-height: 50px;
        line-height: 50px;
    }

    .uk-navbar-toggle {
        min-height: 60px;
        padding: 0 15px;
    }

    .uk-accordion-title {
        padding: 15px;
        min-height: 50px;
    }

    .uk-input, 
    .uk-textarea, 
    .uk-select {
        min-height: 50px;
        padding: 10px 15px;
    }

    .contact-form {
        padding: 20px;
    }

    .cookie-banner button {
        min-height: 44px;
        line-height: 44px;
        margin: 5px;
    }
}

/* Print Styles */
@media print {
    header, footer, .cookie-banner, #cookie-settings-modal {
        display: none !important;
    }

    body {
        background-color: white;
    }

    .uk-container {
        max-width: 100%;
        padding: 0;
    }

    .policy-nav {
        display: none;
    }

    .uk-width-3-4\@m {
        width: 100%;
    }
}