/*
Theme Name: Dogs-R-Us
Description: Clean theme for Dogs-R-Us Styling Boutique, rebuilt from the original Woof-based site. Page layouts are built with Elementor; this theme holds the header, footer and the original site's shapes.
Version: 2.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: dogsrus
*/

/* Hand-drawn corner shapes copied from the original Woof theme. */
:root {
	--dru-wobble: 355px 45px 225px 75px / 15px 225px 15px 255px; /* buttons, menu items */
	--dru-irregular1: 155px 45px 225px 75px / 15px 125px 15px 155px; /* cards, photos */
	--dru-irregular2: 75px 125px 45px 155px / 155px 15px; /* home "About Us" photo */
	--dru-card-grey: #dddddd;
	--dru-gold: #dd9933;
	--dru-brown: #675444;
}

/* Original icon font: paw (\f126), bone (\f13a), dog (\f112) */
@font-face {
	font-family: "flaticon";
	src: url("assets/fonts/Flaticon.woff") format("woff");
	font-weight: normal; font-style: normal; font-display: block;
}

/* ---------- Header and menu ---------- */
.dru-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.admin-bar .dru-header { top: 32px; }
.dru-header .wp-block-navigation-item { border-radius: var(--dru-wobble); transition: background .2s ease-in-out; }
.dru-header .wp-block-navigation-item > a { padding: 8px 19.2px; color: #000; }
.dru-header .wp-block-navigation-item.current-menu-item,
.dru-header .wp-block-navigation__container > .wp-block-navigation-item:hover {
	background: var(--wp--preset--color--gold);
}
.dru-header .wp-block-navigation-item.current-menu-item > a,
.dru-header .wp-block-navigation-item.current-menu-item > .wp-block-navigation__submenu-icon,
.dru-header .wp-block-navigation__container > .wp-block-navigation-item:hover > a,
.dru-header .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation__submenu-icon { color: #fff; }
.dru-header .wp-block-navigation-submenu .wp-block-navigation-submenu__toggle { padding-right: 19.2px; }
.dru-header .wp-block-navigation-submenu > .wp-block-navigation__submenu-icon { margin-left: -14px; margin-right: 10px; }
/* Dropdown */
.dru-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #f9be4f !important; border: 0 !important; border-radius: 4px; padding: 8px 0; min-width: 10rem !important;
}
.dru-header .wp-block-navigation__submenu-container .wp-block-navigation-item { border-radius: var(--dru-wobble); }
.dru-header .wp-block-navigation__submenu-container .wp-block-navigation-item > a { color: #fff !important; padding: 12.8px 19.2px; }
.dru-header .wp-block-navigation__submenu-container .wp-block-navigation-item:hover,
.dru-header .wp-block-navigation__submenu-container .wp-block-navigation-item.current-menu-item { background: #4f0388; }

/* ---------- Elementor content ---------- */
.elementor .elementor-heading-title { line-height: 1.2; }
.elementor .elementor-widget-text-editor { font-size: 1.05rem; line-height: 1.7; }

/* Buttons: gold hand-drawn pill */
.elementor .elementor-button {
	border-radius: var(--dru-wobble); background-color: var(--dru-gold); color: #fff;
	font-family: Quicksand, sans-serif; font-weight: 700; font-size: 16px; line-height: 24px;
	text-transform: uppercase; letter-spacing: .2px; padding: 10px 20px;
	transition: background .2s ease-in-out;
}
.elementor .elementor-button:hover, .elementor .elementor-button:focus { background-color: #e08700; color: #fff; }
/* Blue pill on the Grooming / Boarding / Daycare pages */
.elementor .dru-btn-pill .elementor-button {
	border-radius: 43px; background-color: #4054b2; padding: 15px 45px; font-size: 15px; font-weight: 600;
}
.elementor .dru-btn-pill .elementor-button:hover { background-color: #2f3f8f; }

/* Section heading with the gold paw above */
.dru-paw { text-align: center; }
.dru-paw::before,
.dru-paw-left::before {
	content: "\f126"; display: block;
	font-family: "flaticon"; font-size: 50px; font-weight: normal; line-height: 60px; letter-spacing: 0;
	color: var(--dru-gold); text-shadow: 0 4px 17px rgba(255, 255, 255, .6);
	margin-bottom: .4rem;
}

/* Home hero: see-through white box with the tilted gold bone */
.e-con.dru-hero-box {
	position: relative; background: rgba(255, 255, 255, .74);
	border-radius: 155px 45px 125px 75px / 15px 125px 15px 155px;
}
/* The bone hangs off the heading, not the container: Elementor uses the container's
   ::before for background overlays. Offsets cancel the box's 60px padding so the bone
   sits on the box's top-left corner, as on the original (top -40px, left 0). */
.dru-hero-box > .elementor-widget-heading::before {
	content: "\f13a"; font-family: "flaticon"; font-size: 100px; line-height: 1;
	color: #f9be4f; text-shadow: 4px 6px 10px rgba(0, 0, 0, .14);
	position: absolute; top: -100px; left: -60px; transform: rotate(-20deg); z-index: 1;
	pointer-events: none;
}
.dru-hero-box .elementor-heading-title { font-size: 3.8rem; line-height: 1.1; }
.dru-hero-lead p { font-size: 24px; font-weight: 600; line-height: 1.4; margin: 0; }

/* Grey service cards */
.e-con.dru-card { background-color: var(--dru-card-grey); border-radius: var(--dru-irregular1); padding: 45px 32px 40px; }
.dru-card .elementor-widget-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dru-card .elementor-heading-title { font-size: 2rem; letter-spacing: -1px; }
.dru-card .elementor-widget-button { margin-top: auto; }

/* Retail: plain photos */
.dru-retail-item .elementor-widget-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dru-retail-item .elementor-heading-title { font-size: 1.55rem; font-weight: 600; }

/* Photo shapes */
.dru-irregular1 img { border-radius: var(--dru-irregular1); }
.dru-irregular2 img { border-radius: var(--dru-irregular2); aspect-ratio: 27 / 40; object-fit: cover; max-width: 270px; }
.dru-double img { border: 10px double var(--dru-card-grey); border-radius: var(--dru-irregular1); }
.dru-cert .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.dru-photo-grid .gallery-item img { width: 100%; aspect-ratio: 10 / 9; object-fit: cover; }
.dru-rounded img { border-radius: 24px; }

/* About: team card */
.e-con.dru-team { background: #dbdbdb; border-radius: 25px; margin: 20px auto 0; }
.dru-avatar img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; }

/* Career: white feature cards */
.e-con.dru-feature { border-radius: 24px; }

/* Contact: grey message card, map, info boxes with the icon on the top border */
.e-con.dru-message { background: var(--dru-card-grey); border-radius: var(--dru-irregular1); }
.dru-message .elementor-heading-title { font-size: 2.1rem; font-weight: 500; }
.dru-map { background: #f7f7f7; padding: 5px; }
.dru-map iframe { width: 100%; height: 600px; border: 0; display: block; }
.e-con.dru-info { position: relative; border: 5px solid var(--dru-card-grey); border-radius: 5px; overflow: visible; }
.dru-info .dru-top-icon {
	position: absolute; top: -30px; left: 0; right: 0; width: 100px; margin: auto;
	background: #fff; transition: top .3s ease-out;
}
.dru-info:hover .dru-top-icon { top: -40px; }
.dru-info .elementor-heading-title { font-size: 1.8rem; }
.dru-info a { color: var(--dru-gold); }
.dru-info a[href^="tel:"] { color: #0a0a0a; }
.dru-social { display: inline-block; width: 26px; height: 26px; margin: 0 4px; font-size: 0; background: #4f0388; -webkit-mask: var(--dru-icon) center / contain no-repeat; mask: var(--dru-icon) center / contain no-repeat; }
.dru-social-fb { --dru-icon: url("assets/images/icon-facebook.svg"); }
.dru-social-ig { --dru-icon: url("assets/images/icon-instagram.svg"); }

/* Career page (original layout: Roboto, blue pill buttons, orange round icons) */
.dru-career .elementor-button { font-family: Roboto, sans-serif; }
.dru-career .elementor-heading-title { line-height: 1; }
.dru-career-2 .elementor-widget-divider { margin-top: -4px; }
.dru-career-point .elementor-icon-box-title { margin: 0; }

/* Phones and iPad portrait: the dog artwork sits above the text instead of behind it */
@media (max-width: 900px) {
	.e-con.dru-career {
		--flex-direction: column !important; flex-direction: column !important;
		--dru-art-h: min(100vw, 520px);
		background-size: auto var(--dru-art-h) !important; background-repeat: no-repeat !important;
		background-position: right top !important; padding-top: 0 !important; min-height: 0 !important;
	}
	.e-con.dru-career-3 { background-position: left top !important; }
	.e-con.dru-career-2 { --dru-art-h: min(95vw, 580px); }
	/* Boxed sections wrap their columns in .e-con-inner */
	.e-con.dru-career > .e-con-inner { flex-direction: column !important; }
	.e-con.dru-career > .e-con-inner > .e-con { --width: 100% !important; width: 100% !important; }
	.e-con.dru-career > .e-con-inner > .dru-career-art { order: -1; height: var(--dru-art-h); min-height: var(--dru-art-h); }
	.dru-career .dru-career-text { padding-top: 24px !important; }
}

/* ---------- Footer ---------- */
.dru-footer a { color: #fff; }
.dru-footer-logo { text-transform: uppercase; }
.dru-footer-logo::before {
	content: "\f112"; font-family: "flaticon"; font-size: 45px; font-weight: normal; line-height: 1;
	color: #f9be4f; margin-right: 10px; vertical-align: sub;
}
.dru-footer-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.dru-credits p { color: #808080; font-size: 13px; margin: 0; }
.dru-credits-img { width: 120px; height: auto; vertical-align: middle; margin-left: 4px; }

/* ---------- Phones and iPads ---------- */

/* Menu button (☰) on phones and iPads; the full menu only fits from 1025px. */
@media (min-width: 600px) and (max-width: 1024px) {
	.dru-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.dru-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.dru-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex !important; }
}
.dru-header .wp-block-navigation__responsive-container-open svg { width: 32px; height: 32px; }
/* Open menu: big tap targets, sub-pages listed under Services */
.dru-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: center; --navigation-layout-justify: center;
	padding: 24px !important;
}
.dru-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3rem; align-items: center !important; }
.dru-header .is-menu-open .wp-block-navigation__container { gap: .4rem !important; align-items: center !important; width: 100%; }
.dru-header .is-menu-open .wp-block-navigation-item { align-items: center !important; }
.dru-header .is-menu-open .wp-block-navigation-item > a { font-size: 1.3rem !important; padding: 12px 26px !important; }
.dru-header .is-menu-open .wp-block-navigation-item.current-menu-item,
.dru-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item.current-menu-item { background: var(--dru-gold) !important; }
.dru-header .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important; padding: 0 !important; min-width: 0 !important; align-items: center !important;
}
.dru-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item > a { color: #000 !important; font-size: 1.15rem !important; }
.dru-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item.current-menu-item > a { color: #fff !important; }

/* iPad portrait and small laptops: stack rows that get too narrow, 2×2 for retail */
@media (max-width: 900px) {
	.e-con.dru-cards, .e-con.dru-features, .e-con.dru-contact-row { --flex-direction: column !important; flex-direction: column !important; }
	.e-con.dru-cards > .e-con, .e-con.dru-features > .e-con {
		--width: 100% !important; width: 100% !important; max-width: 560px; margin-left: auto; margin-right: auto;
	}
	.e-con.dru-contact-row > .e-con { --width: 100% !important; width: 100% !important; }
	.e-con.dru-retail-row { --flex-direction: row !important; flex-direction: row !important; --flex-wrap: wrap !important; flex-wrap: wrap !important; }
	.e-con.dru-retail-row > .e-con { --width: calc(50% - 12px) !important; width: calc(50% - 12px) !important; }
	.dru-feature .elementor-heading-title { font-size: 1.5rem; }
	.dru-map iframe { height: 420px; }
}

/* Tablet: slightly smaller headings and photos that stay in proportion */
@media (max-width: 1024px) {
	.dru-hero-box .elementor-heading-title { font-size: 3rem; }
	.dru-irregular2 img { max-width: 240px; }
	.dru-info .elementor-heading-title { font-size: 1.5rem; }
}

@media (max-width: 767px) {
	.dru-header .wp-block-site-logo img { width: 160px; }
	.dru-card .elementor-heading-title { font-size: 1.7rem; }
	.e-con.dru-info-row { --flex-gap: 40px !important; gap: 40px !important; }
	.dru-message .elementor-heading-title { font-size: 1.7rem; }
	.e-con.dru-message { padding: 32px 24px !important; }
	.dru-paw::before, .dru-paw-left::before { font-size: 40px; }
	.dru-hero-box > .elementor-widget-heading::before { font-size: 64px; top: -72px; left: -10px; }
	.dru-hero-box .elementor-heading-title { font-size: 2.4rem; }
	.dru-hero-lead p { font-size: 18px; }
	.dru-map iframe { height: 360px; }
	.e-con.dru-info { margin-top: 20px; }
}

/* Small phones: retail photos one per row */
@media (max-width: 480px) {
	.e-con.dru-retail-row > .e-con { --width: 100% !important; width: 100% !important; }
	.dru-hero-box .elementor-heading-title { font-size: 2.1rem; }
}
