/*
Theme Name: Blocksy Child - Discount Car Rentals
Theme URI: https://discountcarrentals.net
Description: Child theme for Blocksy tailored for discountcarrentals.net
Author: Custom Development
Author URI: https://discountcarrentals.net
Template: blocksy
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child
*/

:root {
  --dcr-navy: #0b1c2c;
  --dcr-charcoal: #152433;
  --dcr-ink: #0e1620;
  --dcr-amber: #c9922a;
  --dcr-amber-bright: #e0a832;
  --dcr-sand: #e8eef3;
  --dcr-muted: #5c6b7a;
  --dcr-white: #ffffff;
  --dcr-max: 1120px;
  --dcr-font-display: "Oswald", "Arial Narrow", sans-serif;
  --dcr-font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

/* Base */
.dcr-child-theme {
  font-family: var(--dcr-font-body);
  color: var(--dcr-ink);
  background: var(--dcr-white);
}

.dcr-child-theme a {
  color: inherit;
}

.dcr-container {
  width: min(100% - 2rem, var(--dcr-max));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dcr-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

/* ---------- Header ---------- */
.dcr-header {
  position: relative;
  z-index: 100;
  background: var(--dcr-white);
}

.dcr-topbar {
  background: var(--dcr-navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
}

.dcr-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.55rem 0;
}

.dcr-topbar p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dcr-topbar a {
  color: var(--dcr-amber-bright);
  text-decoration: none;
  font-weight: 600;
}

.dcr-topbar a:hover {
  text-decoration: underline;
}

.dcr-brand-bar {
  border-bottom: 1px solid rgba(11, 28, 44, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
}

.dcr-brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.dcr-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--dcr-navy);
  min-width: 0;
}

.dcr-brand-mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  background: var(--dcr-navy);
  color: var(--dcr-amber-bright);
  font-family: var(--dcr-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dcr-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dcr-brand-name {
  font-family: var(--dcr-font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.dcr-brand-tag {
  font-size: 0.9rem;
  color: var(--dcr-muted);
  font-weight: 600;
}

.dcr-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  background: var(--dcr-amber);
  color: var(--dcr-ink) !important;
  font-family: var(--dcr-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dcr-call-btn:hover {
  background: var(--dcr-amber-bright);
}

.dcr-call-btn--block {
  width: 100%;
  margin-top: 1.5rem;
}

.dcr-call-btn--nav {
  display: none;
}

/* Nav */
.dcr-nav {
  background: var(--dcr-charcoal);
  color: var(--dcr-white);
}

.dcr-nav.is-sticky {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.dcr-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
}

.dcr-nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dcr-nav-menu li {
  margin: 0;
}

.dcr-nav-menu a {
  display: block;
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.dcr-nav-menu a:hover,
.dcr-nav-menu .current-menu-item > a {
  color: var(--dcr-amber-bright);
}

.dcr-nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 0;
  color: var(--dcr-white);
  cursor: pointer;
  padding: 0.65rem 0;
  font: inherit;
  font-weight: 600;
}

.dcr-nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}

.dcr-nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
}

/* Mobile overlay */
.dcr-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(11, 28, 44, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dcr-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dcr-mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 320px);
  height: 100%;
  background: var(--dcr-navy);
  color: var(--dcr-white);
  padding: 1.25rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overflow-y: auto;
}

.dcr-mobile-overlay.is-open .dcr-mobile-panel {
  transform: translateX(0);
}

.dcr-mobile-close {
  display: block;
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--dcr-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.dcr-mobile-nav-menu {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.dcr-mobile-nav-menu a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--dcr-white);
  text-decoration: none;
  font-family: var(--dcr-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dcr-mobile-address {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

body.dcr-menu-open {
  overflow: hidden;
}

/* ---------- Footer ---------- */
.dcr-footer {
  background: var(--dcr-navy);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0;
}

.dcr-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 2rem;
  padding: 2.75rem 0 2rem;
}

.dcr-footer-name {
  font-family: var(--dcr-font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dcr-white);
  margin: 0 0 0.5rem;
}

.dcr-footer-tagline {
  margin: 0;
  max-width: 28ch;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.dcr-footer-contact p {
  margin: 0 0 0.65rem;
  line-height: 1.5;
}

.dcr-footer-contact a {
  color: var(--dcr-amber-bright);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.15rem;
}

.dcr-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dcr-footer-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.dcr-footer-nav a:hover {
  color: var(--dcr-amber-bright);
}

.dcr-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.dcr-footer-bottom p {
  margin: 0;
}

/* ---------- Responsive header/footer ---------- */
@media (max-width: 860px) {
  .dcr-call-btn--desktop {
    display: none;
  }

  .dcr-nav-menu {
    display: none;
  }

  .dcr-nav-toggle {
    display: inline-flex;
  }

  .dcr-call-btn--nav {
    display: inline-flex;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .dcr-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 520px) {
  .dcr-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dcr-brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
  }

  .dcr-call-btn--nav {
    display: none;
  }
}

/* ---------- Contact Form 7 (Contact page) ---------- */
.dcr-cf7-mount .wpcf7 {
  margin: 0;
}

.dcr-cf7-mount .wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dcr-cf7-mount .wpcf7 label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--dcr-navy, #0b1c2c);
  font-size: 0.95rem;
}

.dcr-cf7-mount .wpcf7 input[type="text"],
.dcr-cf7-mount .wpcf7 input[type="email"],
.dcr-cf7-mount .wpcf7 input[type="tel"],
.dcr-cf7-mount .wpcf7 input[type="url"],
.dcr-cf7-mount .wpcf7 input[type="date"],
.dcr-cf7-mount .wpcf7 select,
.dcr-cf7-mount .wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(11, 28, 44, 0.18);
  background: #fff;
  color: var(--dcr-ink, #0e1620);
  font-family: var(--dcr-font-body, "Source Sans 3", sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  border-radius: 0;
}

.dcr-cf7-mount .wpcf7 textarea {
  min-height: 7rem;
  resize: vertical;
}

.dcr-cf7-mount .wpcf7 input:focus,
.dcr-cf7-mount .wpcf7 select:focus,
.dcr-cf7-mount .wpcf7 textarea:focus {
  outline: 2px solid var(--dcr-amber, #c9922a);
  outline-offset: 1px;
  border-color: var(--dcr-amber, #c9922a);
}

.dcr-cf7-mount .wpcf7 input[type="submit"],
.dcr-cf7-mount .wpcf7 .wpcf7-submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.9rem 1.35rem;
  margin-top: 0.35rem;
  background: var(--dcr-amber, #c9922a);
  color: var(--dcr-ink, #0e1620);
  border: 0;
  font-family: var(--dcr-font-display, "Oswald", sans-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dcr-cf7-mount .wpcf7 input[type="submit"]:hover,
.dcr-cf7-mount .wpcf7 .wpcf7-submit:hover {
  background: var(--dcr-amber-bright, #e0a832);
}

.dcr-cf7-mount .wpcf7 .wpcf7-acceptance {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--dcr-muted, #5c6b7a);
}

.dcr-cf7-mount .wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.dcr-cf7-mount .wpcf7 .wpcf7-not-valid-tip {
  color: #b42318;
  font-size: 0.85rem;
  font-weight: 600;
}

.dcr-cf7-mount .wpcf7 .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0;
  font-weight: 600;
}

@media (max-width: 520px) {
  .dcr-cf7-mount .wpcf7 input[type="submit"],
  .dcr-cf7-mount .wpcf7 .wpcf7-submit {
    width: 100%;
  }
}
