/*
Theme Name: Hammond & Dummer
Theme URI:  https://www.hammondanddummer.co.uk/
Author:     Webb Agency
Author URI: https://www.webbagency.co.uk/
Description: Elegant, typographic-first WordPress theme (Classic Editor friendly).
Version:    1.0.0
License:    GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hammond-dummer
Tags: custom-logo, custom-menu, accessibility-ready, translation-ready, responsive-layout
*/
/* Base CSS omitted for brevity, included in canvas above */
:root{
  --hd-bg: #fff;
  --hd-black: #000;
  --hd-white: #fff;
  --hd-hover: #b42419;
  --hd-btn-secondary: #2c383d;
  --hd-btn-primary: #b42419;
  --hd-slate: #6B6F76;
  --hd-golden: #beb17e;
  --hd-body-size: 16px;
}

/* Raleway Regular */
@font-face {
  font-family: 'Raleway';
  src: url('assets/fonts/Raleway/static/Raleway-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Raleway Bold */
@font-face {
  font-family: 'Raleway';
  src: url('assets/fonts/Raleway/static/Raleway-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Playfair Display Regular */
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/Playfair_Display/static/PlayfairDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Playfair Display Bold */
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/Playfair_Display/static/PlayfairDisplay-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body{
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size:var(--hd-body-size);
  color:var(--hd-black);
  background:var(--hd-bg);
}
a{color: var(--hd-btn-primary);text-decoration:none;}
h1,h2,h3,h4{font-family: "Playfair Display", Georgia, serif}
.btn{
	border: none;
	border-radius: 0;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 15px;
}
.btn-primary{
  background: var(--hd-btn-primary);
}
.btn-primary:hover{
  background: var(--hd-btn-secondary);
}
.btn-secondary {
	background: var(--hd-btn-secondary);
}
.btn-secondary:hover{
  background: var(--hd-btn-primary);
}
.form-control {
	border-radius: 0;
}
.slick-next::before {
	content: "\F285";
	font-family: bootstrap-icons;
}
.slick-prev::before {
	content: "\F284";
	font-family: bootstrap-icons;
}
.slick-slide{
  position: relative;
}
.slide-title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 20px;
	letter-spacing: 3px;
	color: #fff;
	text-transform: uppercase;
	text-align: center;
	background: #00000050;
	height: 100%;
	width: 100%;
	align-content: center;
  padding: 10%;
}
/* Small Bootstrap overrides */
.site-footer{padding:2rem 0; color:var(--hd-slate); background:transparent}
.entry-title{margin-bottom:0.5rem}
.entry-meta{color:var(--hd-slate); font-size:0.9rem}

/* Make images responsive (Bootstrap already does this but keep for safety) */
img{max-width:100%; height:auto}

/* Base nav link */
.navbar-nav .menu-item > a {
  display: block;
  padding: 10px;
  color: var(--hd-black);
  text-decoration: none;
}
.navbar-nav .menu-item > a:hover,
.navbar-nav .current-menu-item > a {
  color: var(--hd-hover) !important;
}

/* Dropdowns */
.navbar-nav .menu-item-has-children {
  position: relative;
}
.navbar-nav .menu-item-has-children > a::after {
	content: "\F229";
	font-family: "bootstrap-icons";
	padding-left: 4px;
	font-size: 10px;
	font-weight: bold;
}
.navbar-nav .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  z-index: 1000;
  list-style: none;
	padding: 0;
	text-align: left;
}

.navbar-nav .menu-item-has-children:hover > .sub-menu {
	display: block;
}
.eyewear-item {
  position: relative;
  overflow: hidden;
}

.eyewear-item .overlay-text {
  position: absolute;
  bottom: 10px; /* moves text near bottom */
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.custom-logo{
    max-width: 350px;
    width: 100%;
}
.site-header {
  background: #fff;
	position: fixed;
	width: 100%;
  z-index:999;
  top: 0;
  border-bottom: 1px solid;
  border-color: var(--hd-btn-primary);
}
.admin-bar .site-header{
  top:32px;
}
.page-template .site-header{
  background: transparent;
  border:none;
}
.page-template .navbar-nav .menu-item > a{
 color: var(--hd-white);
}
.scrolled{
  background-color: #fff !important;
}
.scrolled .navbar-nav .menu-item > a {
  color: var(--hd-black);
}
.navbar-nav .sub-menu .menu-item > a {
	padding: .5rem 1rem;
	white-space: nowrap;
	color: var(--hd-black);
}
.navbar-nav .sub-menu .menu-item-has-children > .sub-menu {
  top: 0;
  left: 100%; /* open to the right */
}
/* Reset sub-menu layout for mobile */
.mobile-menu .sub-menu {
	display: none;
	position: static;
	background: #f9f9f9;
	box-shadow: none;
}

.mobile-menu .menu-item-has-children > a::after {
  content: "\F282"; /* bootstrap-icons chevron-down */
  font-family: "bootstrap-icons";
  float: right;
  font-size: 14px;
  transition: transform .3s;
}

/* When submenu open */
.mobile-menu .menu-item-has-children.open > a::after {
  transform: rotate(180deg);
}

.mobile-menu .menu-item-has-children.open > .sub-menu {
  display: block;
}

.hd-badge{
  background: #b42419;padding: 15px 10px;color: #fff;margin-bottom: 20px;font-size: 14px;display: inline-block;
}
.hd-link {
	color: #b42419;
	text-decoration: none;
	letter-spacing: 3px;
	font-size: 14px;
}
.service-box{
  border: none;border-radius: 0;
}
#site-content{
  padding-top: 100px !important;
}
.animate-on-scroll{
  --animate-duration: 2s;
}
/* Make slides flex containers */
.logoslider .slick-slide {
  display: flex !important;
  justify-content: center;   /* center horizontally */
  align-items: center;       /* center vertically */
  margin: 0 10px;            /* gap between slides */
  height: 120px;             /* adjust based on your design */
}

/* Ensure images scale proportionally */
.logoslider img {
  max-width: 100%;
  object-fit: contain;
  max-height: 120px;
}
 
/* Keep overall alignment */
.logoslider .slick-list {
  margin: 0 -10px;
}
.card .card-img-top {
  height: 250px;
  object-fit: cover;
}
.brand-name {
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  min-height: 75px;
  align-content: center;
}
.filter-label {
	width: 100%;
	text-transform: uppercase;
	align-content: center;
	text-align: center;
	background: #d2d2d2;
	color: #b42419;
	font-size: 14px;
	letter-spacing: 2px;
}
.filter-select {
	font-size: 14px;
	padding: 10px;
	border: none;
	width: 100%;
	background: var(--hd-btn-secondary);
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-align: center;
}
.footer-widget {
	margin-bottom: 40px;
}
.footer-widget a{text-decoration: none; color: #fff}
.footer-widget .form-control {
	border: none;
}
.wpcf7-list-item {
	margin-left: 0;
	margin-right: 15px;
}
.position-responsive{
  transform: translateY(-50%) !important;
  left: 0 !important;
  top: 50% !important;
  position: absolute !important;
}
.margin-top{
margin-top:100px;
}
nav.navbar{
  min-height: 100px;
}
.bg-gradient{
  background: linear-gradient(90deg,rgb(255, 255, 255) 0%, rgba(190, 213, 227) 100%) !important;
}
.gold-color{
  color:var(--hd-golden);
}
/* Pagination container */
.navigation.pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

/* Hide screen reader title visually but keep it accessible */
.navigation.pagination .screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* Pagination links */
.navigation.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
}

/* Page numbers (links and spans) */
.navigation.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  color: var(--hd-black);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  border-color: var(--hd-btn-primary);
}

/* Hover effect */
.navigation.pagination .page-numbers:hover {
  background-color: var(--hd-btn-primary);
  color: var(--hd-white);
}

/* Active (current) page */
.navigation.pagination .page-numbers.current {
  background-color: var(--hd-btn-primary);
  color: var(--hd-white);
  font-weight: 600;
}

/* Next/Prev arrows */
.navigation.pagination .page-numbers.next,
.navigation.pagination .page-numbers.prev {
  font-weight: bold;
}
.search-field {
	padding: 10px;
	border: 1px solid #ddd;
}
.search-submit {
	padding: 11px;
	border: none;
	background: var(--hd-btn-primary);
  color:var(--hd-white)
}
.comment-list .children {
	list-style: none;
}
.brand-card {
	display: flex;
}
.gallery-columns-4 {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 5px;
}
.gallery-columns-5 {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 5px;
}
.gallery-item {
	margin: 0 !important;
	background: #fff;
	align-content: center;
	padding: 5px;
	border-radius: 5px;
}
.gallery img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.designedpoints li::marker {
	color: #b42419;
	line-height: 30px;
}
.circlebadge {
	width: 150px;
	float: right;
	height: 150px;
	font-size: 22px;
	padding: 10px;
	background: #beb17e;
	border-radius: 50%;
	text-align: center;
	align-content: center;
	font-weight: bold;
	border: 3px dashed #b42419;
	margin-top: -40px;
	margin-right: -40px;
}
.google-reviews-btn {
	background-color: #4285F4;
	color: #fff;
	padding: 10px 15px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: bold;
  display: inline-block;
  line-height: 20px;
}
.google-reviews-btn:hover {
  background-color: #3367D6;
}
#menu-footer-menu {
	display: inline-flex;
	padding: 0;
	list-style: none;
	gap: 20px;
}
@media (max-width: 767.98px) {
  .custom-logo {
    max-width: 250px;
  }
  .position-absolute h1,.position-absolute h2{
    font-size: 20px;
  }
  .position-absolute p{
    font-size: 14px;
  }
  .position-responsive{
    transform: none !important;
    left: auto !important;
    top: auto !important;
    position: relative !important;
  }
}
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--hd-white);
  }
  .navbar-collapse .navbar-nav .menu-item > a {
    color: var(--hd-black);
  }
}
/* The Practice - "Personal hearing care" section */
.hd-personal-care__media{
  position: relative;
  display: block;
}
.hd-personal-care__media::after{
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 60%;
  height: 60%;
  border-right: 3px solid var(--hd-golden);
  border-bottom: 3px solid var(--hd-golden);
  pointer-events: none;
}
.hd-personal-care__media img{
  position: relative;
  z-index: 1;
  object-fit: cover;
}
.hd-personal-care p:last-child{
  margin-bottom: 0;
}
@media (max-width: 767.98px){
  .hd-personal-care__media{
    max-width: 420px;
    margin: 0 auto;
  }
  .hd-personal-care__media::after{
    right: -10px;
    bottom: -10px;
  }
}

/* Services grid - the two lead cards.
   A fixed 1:1 box clips the copy at narrow widths, so these keep a generous
   floor and grow when the text needs more room. h-100 keeps each row level. */
.service-box--featured{
  min-height: 340px;
}
@media (min-width: 768px){
  .service-box--featured{ min-height: 420px; }
}
@media (min-width: 1200px){
  .service-box--featured{ min-height: 480px; }
}
