/* ============================================================
   JM Gutters — WordPress Theme Overrides
   Tailwind handles all design classes. This file covers:
   mobile drawer, desktop dropdown, CF7, WP core fixes.
   ============================================================ */

/* ── WP Core ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter{ display: block; margin: 0 auto 1rem; }

/* ── Mobile Drawer ────────────────────────────────────────── */
#mobile-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: 20rem;
    background: #fff;
    box-shadow: -4px 0 30px rgba(0,18,69,.18);
    transform: translateX(100%);
    transition: transform .3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
}
#mobile-menu.is-open { transform: translateX(0); }

#mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,18,69,.55);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
#mobile-overlay.is-open { opacity: 1; pointer-events: all; }

/* ── Desktop "Areas" Dropdown ─────────────────────────────── */
.jmg-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    box-shadow: 0 20px 60px -10px rgba(0,18,69,.18);
    padding: .5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 100;
}
.jmg-dropdown-trigger:hover .jmg-dropdown,
.jmg-dropdown-trigger:focus-within .jmg-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.jmg-dropdown a {
    display: block;
    padding: .55rem 1.25rem;
    color: #001245;
    font-size: .9rem;
    font-weight: 500;
    transition: color .15s, background .15s;
}
.jmg-dropdown a:hover { color: #0049ad; background: #f0f5ff; }

/* ── Contact Form 7 ───────────────────────────────────────── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: #001245;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #0049ad;
    box-shadow: 0 0 0 3px rgba(0,73,173,.12);
}
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-form .wpcf7-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 2rem;
    background: linear-gradient(to right, #0049ad, #5cb85c);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: .5rem;
    cursor: pointer;
    transition: box-shadow .2s, transform .15s;
}
.wpcf7-form .wpcf7-submit:hover { box-shadow: 0 8px 25px rgba(0,73,173,.35); transform: translateY(-1px); }
.wpcf7-not-valid-tip { color: #dc2626; font-size: .8rem; margin-top: .25rem; }
.wpcf7-response-output { margin-top: .75rem; padding: .75rem 1rem; border-radius: .5rem; font-size: .9rem; }
.wpcf7-mail-sent-ok { background:#dcfce7; border:1px solid #86efac; color:#15803d; }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng { background:#fee2e2; border:1px solid #fca5a5; color:#b91c1c; }

/* ── Admin bar offset ─────────────────────────────────────── */
.admin-bar header.sticky { top: 32px; }
@media screen and (max-width:782px) { .admin-bar header.sticky { top: 46px; } }

/* ── Print ────────────────────────────────────────────────── */
@media print { header, footer, #mobile-menu, #mobile-overlay { display:none !important; } }

@media (max-width:767.98px) {
img.h-10.md\:h-10.object-contain.opacity-80.hover\:opacity-100.transition-opacity {
    height: calc(var(--spacing) * 6);
}
}

@media (max-width: 575.98px) {
	img.h-10.md\:h-10.object-contain.opacity-80.hover\:opacity-100.transition-opacity {
    height: calc(var(--spacing) * 6);
}
}

h3, h4 {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
    margin-bottom: calc(var(--spacing) * 2);
	margin-top: calc(var(--spacing) * 2);
}

p {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
	margin-bottom: calc(var(--spacing) * 2);
}


.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
}
.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
