/* DESIGN-R Page Builder — Base Styles */
/* Structural layout, grid, typography rhythm — theme-agnostic */

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

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

/* ── Hero Section ─────────────────────────────────── */
.dr-hero {
    min-height: var(--hero-height, 717px);
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.dr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay, linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)));
    z-index: 1;
}

.dr-hero > * {
    position: relative;
    z-index: 2;
}

.dr-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--hero-title-color, #fff);
    margin-bottom: 16px;
    max-width: 800px;
}

.dr-hero .dr-subtitle {
    font-size: 18px;
    color: var(--hero-subtitle-color, rgba(255,255,255,0.9));
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ── Buttons ──────────────────────────────────────── */
.dr-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--btn-bg, var(--accent));
    color: var(--btn-color, var(--bg));
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--btn-radius, 50px);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.dr-btn:hover {
    background: var(--btn-hover-bg, var(--accent-dark));
}

.dr-btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 10px 24px;
    font-size: 14px;
}

.dr-btn-outline:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ── Section Container ────────────────────────────── */
.dr-section {
    padding: 60px 20px;
}

.dr-section-inner {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
}

.dr-section-inner.centered {
    text-align: center;
    max-width: 800px;
}

/* ── Two Column Layout ────────────────────────────── */
.dr-two-col {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.dr-col {
    flex: 1;
    min-width: 300px;
}

.dr-col img {
    width: 100%;
    border-radius: var(--radius, 8px);
    object-fit: cover;
}

/* ── Three Column Grid ────────────────────────────── */
.dr-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ── Cards ────────────────────────────────────────── */
.dr-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius, 8px);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow, 0 8px 24px rgba(0,0,0,0.3));
}

.dr-card h3 {
    color: var(--accent);
    margin-bottom: 12px;
}

.dr-card p {
    font-size: 15px;
}

.dr-card-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Team Card ────────────────────────────────────── */
.dr-team-card {
    display: flex;
    gap: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius, 8px);
    padding: 30px;
    margin-bottom: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.dr-team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--accent);
}

.dr-team-card h3 {
    color: var(--accent);
    margin: 0 0 4px;
}

.dr-team-card .dr-role {
    color: var(--highlight);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.dr-team-card p {
    font-size: 15px;
}

/* ── Photo Gallery ────────────────────────────────── */
.dr-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.dr-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius, 8px);
    transition: transform 0.3s;
}

.dr-gallery img:hover {
    transform: scale(1.03);
}

/* ── Pricing Table ────────────────────────────────── */
.dr-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
}

.dr-table th {
    background: var(--table-header-bg, var(--primary));
    color: var(--table-header-color, #fff);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dr-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
    font-size: 15px;
    color: var(--text-light);
}

.dr-table tr:hover td {
    background: var(--card-bg);
}

.dr-table .dr-price {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* ── Contact Split ────────────────────────────────── */
.dr-split {
    display: flex;
    flex-wrap: wrap;
}

.dr-split-info {
    flex: 1;
    min-width: 300px;
    padding: 60px 40px;
    background: var(--split-info-bg, var(--bg));
}

.dr-split-info h2 {
    color: var(--split-info-heading, #fff);
    font-size: 32px;
    margin-bottom: 12px;
}

.dr-split-info p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.7;
}

.dr-split-info a {
    color: var(--accent);
    text-decoration: none;
}

.dr-split-form {
    flex: 1;
    min-width: 300px;
    padding: 60px 40px;
    background: var(--split-form-bg, #fff);
}

/* ── Forms ────────────────────────────────────────── */
.dr-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--form-label-color, var(--text));
}

.dr-form input,
.dr-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--form-border, #ccc);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 20px;
    transition: border-color 0.2s;
    background: var(--form-input-bg, #fff);
    color: var(--form-input-color, #333);
}

.dr-form input:focus,
.dr-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.dr-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ── Star Rating ──────────────────────────────────── */
.dr-stars {
    font-size: 36px;
    color: var(--accent);
    letter-spacing: 8px;
    margin-bottom: 20px;
}

/* ── Credential Badge ─────────────────────────────── */
.dr-badge {
    background: var(--badge-bg);
    border-left: 4px solid var(--accent);
    padding: 24px 30px;
    border-radius: 0 var(--radius, 8px) var(--radius, 8px) 0;
    margin: 30px 0;
}

.dr-badge h3 {
    color: var(--accent);
    margin-top: 0;
}

/* ── Typography ───────────────────────────────────── */
.dr-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color, var(--accent));
    margin-bottom: 16px;
}

.dr-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--subheading-color, var(--text-light));
    margin-bottom: 12px;
}

.dr-section p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

.dr-section a {
    color: var(--accent);
    text-decoration: none;
}

.dr-section a:hover {
    color: var(--accent-dark);
}

.dr-section strong {
    color: var(--text-strong, var(--text));
}

.dr-section ul, .dr-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.dr-section li {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ── Content Images ───────────────────────────────── */
.dr-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius, 8px);
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
    .dr-hero {
        min-height: 400px;
        padding: 80px 20px;
    }

    .dr-hero h1 {
        font-size: 28px;
    }

    .dr-two-col {
        flex-direction: column;
    }

    .dr-three-col {
        grid-template-columns: 1fr;
    }

    .dr-split {
        flex-direction: column;
    }

    .dr-split-info,
    .dr-split-form {
        padding: 40px 20px;
    }

    .dr-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .dr-team-card {
        flex-direction: column;
        text-align: center;
    }

    .dr-team-card img {
        margin: 0 auto 16px;
    }

    .dr-section {
        padding: 40px 16px;
    }
}
