<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block email_title %}Home in Sri Lanka{% endblock %}</title>

    <style>
        /* Property Manager brand colors:
           deep green (#08352d), teal (#0f766e), warm gold (#fbbf24)
        */

        body {
            margin: 0;
            padding: 0;
            background-color: #f0fdf4;
            font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
            color: #1f2937;
        }

        .email-wrapper {
            width: 100%;
            background-color: #f0fdf4;
            padding: 40px 0;
        }

        .email-container {
            max-width: 600px;
            margin: 0 auto;
            background-color: #ffffff;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.10);
        }

        /* Header */
        .email-header {
            background: linear-gradient(135deg, #08352d 0%, #0f766e 100%);
            padding: 38px 28px;
            color: #ffffff;
            text-align: center;
        }

        .email-header h1 {
            margin: 0;
            font-size: 28px;
            letter-spacing: -0.3px;
            font-weight: 800;
        }

        .email-header p {
            margin: 12px 0 0;
            font-size: 15px;
            opacity: 0.92;
        }

        .tagline {
            font-size: 12px;
            margin-top: 12px;
            color: #fbbf24;
            font-weight: 700;
            letter-spacing: 0.04em;
        }

        .email-body {
            padding: 36px 32px;
            font-size: 15px;
            line-height: 1.65;
        }

        .email-body h2 {
            margin-top: 0;
            color: #065f46;
            font-size: 22px;
            font-weight: 750;
        }

        .email-body p {
            margin-bottom: 16px;
        }

        /* Main Button */
        .email-button {
            display: inline-block;
            background-color: #0f766e;
            color: #ffffff !important;
            text-decoration: none;
            padding: 13px 30px;
            border-radius: 40px;
            font-weight: 700;
            margin: 20px 0 10px;
            font-size: 16px;
        }

        /* Highlight Note */
        .email-note {
            background-color: #ecfdf5;
            border-left: 5px solid #0f766e;
            padding: 18px 20px;
            margin: 24px 0;
            border-radius: 20px;
            color: #1f2937;
        }

        /* Credentials Box */
        .email-credential-box {
            background: #ffffff;
            border: 1px solid #ccfbf1;
            border-radius: 24px;
            padding: 22px 24px;
            margin: 24px 0;
            box-shadow: 0 8px 20px rgba(8, 53, 45, 0.06);
        }

        .credential-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #e2e8f0;
        }

        .credential-row:last-child {
            border-bottom: none;
        }

        .credential-label {
            font-weight: 600;
            color: #0f766e;
        }

        .credential-value {
            font-weight: 700;
            color: #08352d;
            text-align: right;
        }

        /* Gold badge */
        .email-badge {
            background: rgba(251, 191, 36, 0.18);
            color: #92400e;
            border: 1px solid rgba(251, 191, 36, 0.42);
            display: inline-block;
            padding: 5px 13px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 16px;
        }

        /* Checklist */
        .email-checklist {
            margin: 18px 0 0;
            padding-left: 0;
            list-style: none;
        }

        .email-checklist li {
            margin-bottom: 9px;
            padding-left: 0;
        }

        /* Footer */
        .email-footer {
            background: #10251f;
            color: #cbd5e1;
            padding: 28px 32px;
            text-align: center;
            font-size: 13px;
        }

        .email-footer a {
            color: #fbbf24;
            text-decoration: none;
            font-weight: 600;
        }

        .email-footer a:hover {
            text-decoration: underline;
        }

        @media only screen and (max-width: 600px) {
            .email-container {
                width: 94% !important;
            }

            .email-body {
                padding: 28px 20px;
            }

            .email-header {
                padding: 28px 20px;
            }

            .credential-row {
                flex-direction: column;
                gap: 4px;
            }

            .credential-value {
                text-align: left;
            }
        }
    </style>

    {% block extra_email_styles %}{% endblock %}
</head>

<body>
    <div class="email-wrapper">
        <div class="email-container">

            <div class="email-header">
                <h1>{% block brand_title %}Home in Sri Lanka{% endblock %}</h1>

                <p>
                    {% block brand_subtitle %}
                        Trusted Property Care for Remote Owners
                    {% endblock %}
                </p>

                <div class="tagline">
                    Remote Owners · Local Maintenance
                </div>
            </div>

            <div class="email-body">
                {% block email_content %}{% endblock %}
            </div>

            <div class="email-footer">

                {% block footer_top %}
                    {% if site_url %}
                        <p style="margin: 0 0 12px;">
                            <a href="{{ site_url }}">Visit Home in Sri Lanka</a>
                        </p>
                    {% endif %}
                {% endblock %}

                {% block footer_text %}
                    <p style="margin: 0 0 8px;">
                        Helping overseas and distant owners keep their Sri Lankan properties observed,
                        maintained, and cared for with confidence.
                    </p>

                    <p style="margin: 0;">
                        &copy; {% now "Y" %} Ensolanka LLC. All rights reserved.
                    </p>
                {% endblock %}

            </div>

        </div>
    </div>
</body>
</html>