/*
  City & Co Solicitors - Blue Google Reviews design
  -------------------------------------------------
  This stylesheet recreates the blue homepage concept with:
  - a split hero banner,
  - service text boxes with coloured headers,
  - a prominent Google Reviews card,
  - About Our Firm content,
  - Safina Din portrait,
  - footer contact details and SRA badge.

  The comments explain what each section does so you can edit it more easily.
*/

a[href^=tel] {color:inherit;text-decoration:none;}
.google-maps {position: relative;padding-bottom: 75%; // This is the aspect ratioheight: 0;overflow: hidden;}
.google-maps iframe {position: absolute;top: 0;left: 0;width: 96% !important;height: 100% !important;}
.videowrapper {
    float: none;
    clear: both;
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
}
.videowrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Google font imports.
   Playfair Display is used for headings.
   Inter is used for body text, navigation and smaller UI text. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');


/* Main colour and spacing variables.
   Change these values to alter the overall colour scheme quickly. */
:root {
  --navy: #6d1028;          /* Main blue colour */
  --navy-dark: #52091c;     /* Deeper blue used in gradients */
  --navy-light: #8b2944;    /* Slightly lighter blue for highlights */
  --gold: #c89343;          /* Gold accent used for buttons and lines */
  --gold-dark: #a8732e;     /* Darker gold for hover states */
  --white: #ffffff;         /* White */
  --paper: #f8f5f6;         /* Very pale background */
  --text: #2b2024;          /* Main text colour */
  --muted: #675b60;         /* Secondary text */
  --line: #e3d8dc;          /* Borders */
  --max: 1180px;            /* Maximum content width */
  --shadow: 0 18px 48px rgba(82, 9, 28, .14); /* Soft shadow for cards */
}


/* Makes widths include padding and borders. */
* {
  box-sizing: border-box;
}


/* Makes anchor links scroll smoothly. */
html {
  scroll-behavior: smooth;
}


/* Base page styling. */
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}


/* Keeps images responsive. */
img {
  display: block;
  max-width: 100%;
}


/* Removes browser default link underlines. */
a {
  color: inherit;
  text-decoration: none;
}


/* Centred content container used throughout the page. */
.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}


/* =========================
   Header
   ========================= */


/* Sticky site header. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .06);
}


/* Top header row: logo left, phone/email right. */
.header-top {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


/* Original uploaded logo size. */
.logo {
  width: 234px;
  height: auto;
}


/* Header phone/email block. */
.header-contact {
  display: grid;
  justify-items: end;
  gap: 10px;
  color: var(--navy-dark);
  font-size: 125%;
  font-weight: 500;
}


/* Phone link with a simple icon added before the text. */
.header-contact .phone::before {
  content: "☎";
  margin-right: 10px;
  color: var(--navy);
}


/* Email link with a simple icon added before the text. */
.header-contact .email::before {
  content: "✉";
  margin-right: 10px;
  color: var(--navy);
}


/* Desktop navigation area. */
.main-nav {
  background: #fff;
  border-top: 1px solid #eee4e7;
}


/* Horizontal navigation layout. */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* Individual navigation links. */
.main-nav a {
  position: relative;
  padding: 17px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-dark);
  white-space: nowrap;
}


/* Gold underline below nav items. */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}


/* Show underline for hover and active link. */
.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}


/* Mobile menu button, hidden on desktop. */
.menu-toggle {
  display: none;
  width: 44px;
  height: 38px;
  padding: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}


/* The three bars in the mobile menu button. */
.menu-toggle span {
  display: block;
  height: 3px;
  margin: 7px 0;
  background: var(--navy-dark);
  border-radius: 999px;
}


/* =========================
   Hero
   ========================= */


/* Hero uses a two-column grid:
   left panel contains text, right panel contains the Birmingham image.
   The split is now clean and vertical, with no diagonal divider. */
.hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: 46% 54%;
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}


/* Dark blue text side of the hero. */
.hero-copy {
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(82, 9, 28, .98), rgba(109, 16, 40, .98));
  color: #fff;
  position: relative;
  z-index: 1;
}


/* The diagonal divider has been removed for a cleaner vertical hero split. */


/* Keeps hero text aligned with the rest of the site. */
.hero-panel {
  max-width: 520px;
  padding: 70px 0 70px clamp(20px, 4vw, 60px);
}


/* Main hero heading. */
.hero h1 {
  margin: 0 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.5px;
}


/* Supporting hero text. */
.hero p {
  margin: 0 0 30px;
  font-size: 17px;
  max-width: 465px;
}


/* Hero image side. */
.hero-image {
  min-height: 360px;
  background-image:
    linear-gradient(90deg, rgba(82, 9, 28, .05), rgba(82, 9, 28, 0)),
    url("../assets/birmingham-hero.jpg");
  background-size: cover;
  background-position: center;
}


/* Reusable button styling. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}


/* Gold button style. */
.button-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
}


/* Smaller button used in the About area. */
.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}


/* Button hover effect. */
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}


/* =========================
   Section headings
   ========================= */


/* Centres section headings. */
.section-heading {
  text-align: center;
  margin-bottom: 24px;
}


/* Heading text style. */
.section-heading h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--navy-dark);
}


/* Small gold line below the heading. */
.section-heading span {
  display: block;
  width: 58px;
  height: 3px;
  background: var(--gold);
  margin: 10px auto 0;
}


/* =========================
   Services text boxes
   ========================= */


/* Services section spacing and background. */
.services {
  padding: 28px 0 36px;
  background: linear-gradient(180deg, #fff 0%, #faf7f8 100%);
}


/* Four-column service grid on desktop, matching the concept. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}


/* Individual text-only service box. */
.service-card {
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(82, 9, 28, .04);
}


/* Coloured header strip at the top of each service box. */
.service-card h3 {
  margin: 0;
  padding: 12px 12px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  line-height: 1.15;
}


/* Service description text. */
.service-card p {
  min-height: 74px;
  margin: 0;
  padding: 18px 18px 8px;
  font-size: 14px;
}


/* Learn more link. */
.service-card a {
  display: inline-block;
  padding: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}


/* =========================
   Google review and About area
   ========================= */


/* Combined review/about section. */
.review-about {
  background: #f5f0f2;
  border-top: 1px solid var(--line);
}


/* Three-column layout:
   review card, about text, portrait. */
.review-about-grid {
  display: grid;
  grid-template-columns: 330px 1fr 260px;
  align-items: stretch;
  gap: 0;
}


/* Dark blue Google Reviews card. */
.review-card {
  padding: 42px 34px;
  background: linear-gradient(150deg, var(--navy-dark), var(--navy));
  color: #fff;
}


/* Row containing Google G and heading. */
.google-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}


/* Simple Google G treatment. */
.google-g {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-weight: 800;
  font-size: 22px;
}


/* Google Reviews heading. */
.review-card h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
}


/* Rating row. */
.rating-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 2px;
}


/* Large 5.0 score. */
.rating-line strong {
  font-size: 34px;
  line-height: 1;
}


/* Star colour. */
.rating-line span {
  color: #f9b21a;
  letter-spacing: 3px;
  font-size: 22px;
}


/* Based on X reviews text. */
.based {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .86);
}


/* Review quote. */
.review-card blockquote {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
}


/* Reviewer name. */
.review-name {
  margin: 0;
  font-weight: 800;
}


/* About copy next to the review card. */
.about-copy {
  padding: 42px 42px;
  background: #fff;
}


/* About heading. */
.about-copy h2 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy-dark);
  font-size: 29px;
}


/* About paragraphs. */
.about-copy p {
  margin: 0 0 18px;
  font-size: 15px;
}


/* Portrait panel on the right. */
.portrait-panel {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #fff;
  padding: 24px 18px 0;
}


/* Safina portrait. */
.portrait-panel img {
  max-height: 300px;
  object-fit: contain;
}


/* =========================
   Footer
   ========================= */


/* Main footer background. */
.site-footer {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 34px 0 20px;
}


/* Footer columns. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .85fr 1fr;
  gap: 70px;
  align-items: start;
}


/* Footer column headings. */
.site-footer h3 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 17px;
}


/* Keeps address text non-italic. */
.site-footer address {
  font-style: normal;
}


/* Footer text spacing. */
.site-footer p,
.site-footer li {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
}


/* Removes bullets from footer legal list. */
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* Gold hover for footer links. */
.site-footer a:hover {
  color: var(--gold);
}


/* SRA badge alignment. */
.sra {
  justify-self: end;
}


/* SRA badge size. */
.sra img {
  width: 275px;
}


/* Copyright / SRA number row. */
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}
.profile-photo{text-align:center}
.profile-photo img{width:190px;height:190px;border-radius:50%;object-fit:cover;border:6px solid var(--gold);box-shadow:var(--shadow)}

.wrap {margin:0 auto;width:80%;max-width:1400px;}
#maincontent {width:100%;min-height:500px;background:white;color:black;font-size:1.2em;line-height:1.9em;padding-top:20px;font-weight:300;min-height:1200px;}
#maincontent ul {padding:0px 0px 0px 5%;list-style-type:square;li::marker {
  color: #6d1028;
}}
#maincontent a {text-decoration:none;color:#6d1028;}
#maincontent a:hover {text-decoration:underline;}
#maincontent h1 {font-size:1.7em;font-family: "Playfair Display", Georgia, serif;color:#6d1028;
}
#maincontent h2,h3,h4,h5 {font-size:1.4em;font-family: "Playfair Display", Georgia, serif;color:#6d1028;}


/* =========================
   Responsive layout
   ========================= */


/* Tablet layout changes. */
@media (max-width: 1000px) {
.wrap {margin:0 auto;width:90%;}
#maincontent h1 {font-size:1.5em;font-family: "Playfair Display", Georgia, serif;color:#6d1028;
}
#maincontent h2,h3,h4,h5 {font-size:1.3em;font-family: "Playfair Display", Georgia, serif;color:#6d1028;}
#maincontent {font-size:1.1em;}


  /* Hide desktop contact details to simplify the header. */
  .header-contact {
    display: none;
  }

  /* Show mobile menu button. */
  .menu-toggle {
    display: block;
  }

  /* Hide nav until JS opens it. */
  .main-nav {
    display: none;
  }

  /* JS adds .open when the menu button is clicked. */
  .main-nav.open {
    display: block;
  }

  /* Stack nav links vertically. */
  .nav-inner {
    display: grid;
    padding: 8px 0;
  }

  /* Mobile nav link spacing. */
  .main-nav a {
    padding: 14px 20px;
  }

  /* Hero becomes one-column with image behind. */
  .hero {
    grid-template-columns: 1fr;
  }


  /* Put image behind the text on tablet/mobile. */
  .hero-image {
    position: absolute;
    inset: 0;
    opacity: .34;
  }

  /* Text area fills the hero. */
  .hero-copy {
    min-height: 440px;
  }

  /* Services go from four columns to two. */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Review/about area stacks. */
  .review-about-grid {
    grid-template-columns: 1fr;
  }

  /* Portrait moves below text and gains padding. */
  .portrait-panel {
    padding: 20px;
  }

  /* Footer stacks. */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* SRA badge aligns left on mobile/tablet. */
  .sra {
    justify-self: start;
  }
}


/* Small phone layout. */
@media (max-width: 620px) {

  /* Tighter side margins. */
  .container {
    width: min(var(--max), calc(100% - 30px));
  }

  /* Smaller logo. */
  .logo {
    width: 186px;
  }

  /* Tighter top header. */
  .header-top {
    min-height: 92px;
  }

  /* Services become one column. */
  .service-grid {
    grid-template-columns: 1fr;
  }

  /* Smaller hero heading. */
  .hero h1 {
    font-size: 40px;
  }

  /* Less padding in review/about cards. */
  .review-card,
  .about-copy {
    padding: 32px 22px;
  }

  /* Footer bottom stacks vertically. */
  .footer-bottom {
    display: grid;
  }
}


/* Inline vector icons inside service cards */
.service-card .service-icon {
  width: 66px;
  height: 66px;
  margin: 14px auto 16px;
  color: #6d1028;
}

.service-card .service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.hero-panel{
  padding:70px clamp(40px,4vw,80px) 70px clamp(100px,10vw,180px);
}
@media (min-width:1400px){
  .hero-panel{
    max-width:720px;
  }
}


/* Telephone icon in the hero Get in Touch button */
.hero-contact-button {
  gap: 9px;
}

.hero-phone-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Reduce excess white space between the top contact area and navigation */
.header-top {
  min-height: 172px;
}

.logo-link {
  display: block;
  width: 234px;
  height: 168px;
  overflow: hidden;
  flex: 0 0 234px;
}

.logo-link .logo {
  width: 234px;
  max-width: none;
  transform: translateY(-34px);
}

@media (max-width: 620px) {
  .header-top {
    min-height: 136px;
  }

  .logo-link {
    width: 186px;
    height: 134px;
    flex-basis: 186px;
  }

  .logo-link .logo {
    width: 186px;
    transform: translateY(-27px);
  }
}


/* Navigation typography adjustment */
.main-nav a{
  font-size:1.10em;
  font-weight:400;
}


/* Circular About the Firm image */
.about img,
.about-image img,
.about-photo img{
    width:260px;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:50%;
    border:4px solid #6d1028;
    box-shadow:0 10px 24px rgba(0,0,0,.18);
}


.portrait-panel{
 width:280px;
 height:280px;
 border-radius:50%;
 overflow:hidden;
 margin:auto;
 border:4px solid #6d1028;
 box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.portrait-panel img{
 width:100%!important;
 height:100%!important;
 object-fit:cover!important;
 border-radius:50%!important;
 display:block;
}


/* Remove panel styling so only the circular image remains */
.portrait-panel{
    background:transparent !important;
    padding:0 !important;
    border:none !important;
    box-shadow:none !important;
    width:auto !important;
    height:auto !important;
    overflow:visible !important;
    border-radius:0 !important;
}
.portrait-panel img{
    width:280px !important;
    height:280px !important;
    border-radius:50% !important;
    object-fit:cover !important;
    display:block;
    margin:auto;
    border:none !important;
    box-shadow:none !important;
}


/* Keep portrait inside the existing white panel */
.portrait-panel{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#fff !important;
    padding:24px 18px !important;
    border-radius:18px !important;
    width:auto !important;
    height:auto !important;
    overflow:visible !important;
    box-shadow:none !important;
    border:none !important;
}
.portrait-panel img{
    width:260px !important;
    height:260px !important;
    border-radius:50% !important;
    object-fit:cover !important;
    display:block;
    margin:0 auto;
    border:none !important;
    box-shadow:none !important;
    max-height:none !important;
}


/* Restore full-width About card */
.about-grid{
  display:block !important;
}
.about-copy{
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
}


/* Final About the Firm layout: portrait inside the same white text box */
.review-about-grid{
    display:grid !important;
    grid-template-columns:330px minmax(0, 1fr) !important;
    gap:0 !important;
    align-items:stretch !important;
}

.about-copy{
    width:auto !important;
    max-width:none !important;
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) 280px !important;
    column-gap:38px !important;
    align-items:center !important;
    background:#fff !important;
    padding:42px !important;
}

.about-copy > h2,
.about-copy > p,
.about-copy > a{
    grid-column:1 !important;
}

.about-copy .portrait-panel{
    grid-column:2 !important;
    grid-row:1 / span 4 !important;
    align-self:center !important;
    justify-self:center !important;
    display:block !important;
    background:transparent !important;
    padding:0 !important;
    margin:0 !important;
    width:260px !important;
    height:260px !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    overflow:visible !important;
}

.about-copy .portrait-panel img{
    display:block !important;
    width:260px !important;
    height:260px !important;
    max-height:none !important;
    object-fit:cover !important;
    border-radius:50% !important;
    border:0 !important;
    box-shadow:none !important;
    margin:0 !important;
}

@media (max-width: 980px){
    .review-about-grid{
        grid-template-columns:1fr !important;
    }

    .about-copy{
        grid-template-columns:minmax(0, 1fr) 240px !important;
    }

    .about-copy .portrait-panel,
    .about-copy .portrait-panel img{
        width:220px !important;
        height:220px !important;
    }
}

@media (max-width: 700px){
    .about-copy{
        grid-template-columns:1fr !important;
    }

    .about-copy .portrait-panel{
        grid-column:1 !important;
        grid-row:auto !important;
        margin:24px auto 0 !important;
    }
}


/* PDF-matched burgundy colour treatment - colour changes only */
.main-nav {
  background: linear-gradient(90deg, var(--navy-dark), var(--navy)) !important;
  border-top-color: var(--navy-dark) !important;
}

.main-nav a {
  color: var(--white) !important;
}

.menu-toggle span {
  background: var(--navy) !important;
}

.services {
  background: linear-gradient(180deg, #ffffff 0%, #faf7f8 100%) !important;
}

.review-about {
  background: #f5f0f2 !important;
}

.site-header {
  box-shadow: 0 2px 18px rgba(82, 9, 28, .08) !important;
}


/* Professional logo strip at the very bottom of the website. */
.footer-logo-stripe {
  background: var(--navy-dark);
  border-top: 1px solid rgba(200, 147, 67, .55);
  padding: 26px 0;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
}

.footer-logo-row img {
  display: block;
  width: auto;
  height: 92px;
  max-width: min(240px, 22vw);
  object-fit: contain;
}

@media (max-width: 760px) {
  .footer-logo-stripe {
    padding: 22px 0;
  }

  .footer-logo-row {
    gap: 22px 28px;
  }

  .footer-logo-row img {
    height: 70px;
    max-width: 42vw;
  }
}

@media (max-width: 430px) {
  .footer-logo-row img {
    height: 58px;
    max-width: 78vw;
  }
}


/* Rotating Google reviews */
.review-carousel {
  margin-top: 0;
}

.review-slides {
  position: relative;
  min-height: 190px;
}

.review-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .65s ease, transform .65s ease, visibility .65s ease;
}

.review-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
}

.review-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.review-dot:hover,
.review-dot:focus-visible {
  opacity: 1;
  transform: scale(1.15);
}

.review-dot.is-active {
  background: #fff;
  opacity: 1;
}

@media (max-width: 640px) {
  .review-slides {
    min-height: 235px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-slide,
  .review-dot {
    transition: none;
  }
}


/* Live SRA digital badge */
.sra {
  justify-self: end;
  width: 275px;
  max-width: 100%;
}

.sra-digital-badge {
  position: relative;
  display: block;
  width: 275px;
  max-width: 100%;
  aspect-ratio: 275 / 163;
  min-height: 163px;
  overflow: hidden;
}

.sra-digital-badge iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

@media (max-width: 1000px) {
  .sra {
    justify-self: start;
  }
}


/* Header logo: genuinely 20% larger, with the white header height unchanged */
.logo-link {
  width: 281px;       /* 234px × 1.2 */
  flex-basis: 281px;
  height: 168px;      /* unchanged */
}

.logo-link .logo {
  width: 281px;       /* 234px × 1.2 */
  max-width: none;
  transform: translateY(-41px);
}

@media (max-width: 768px) {
  .logo-link {
    width: 223px;     /* 186px × 1.2 */
    flex-basis: 223px;
    height: 134px;    /* unchanged */
  }

  .logo-link .logo {
    width: 223px;     /* 186px × 1.2 */
    transform: translateY(-32px);
  }
}


/* Services dropdown navigation */
.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-item > a {
  display: flex;
  align-items: center;
}

.has-submenu > .submenu-toggle::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 8px;
  margin-bottom: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--gold);
  transform: none;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 330px;
  padding: 10px 0;
  background: var(--navy-dark);
  border-top: 3px solid var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.submenu a {
  display: block;
  padding: 11px 18px;
  color: #fff;
  line-height: 1.35;
  white-space: normal;
  text-decoration: none;
}

.submenu a:hover,
.submenu a:focus {
  background: rgba(255, 255, 255, .10);
  color: var(--gold);
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.submenu-open > .submenu {
  display: block;
}

@media (max-width: 900px) {
  .nav-item {
    display: block;
    width: 100%;
  }

  .nav-item > a {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .submenu {
    position: static;
    min-width: 0;
    width: 100%;
    padding: 0;
    border-top: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, .14);
  }

  .submenu a {
    padding: 10px 18px 10px 34px;
  }
}

/* ================================================================
   MOBILE HERO TEXT FIX — 30 July 2026
   Applies only to phones (620px wide and below).
   This overrides the later desktop .hero-panel padding rule, which
   was leaving a large blank area on the left and forcing text outside
   the burgundy panel.
   ================================================================ */
@media (max-width: 620px) {
  .hero-panel {
    width: 100%;
    max-width: none;
    padding: 48px 0;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 40px);
    line-height: 1.08;
  }

  .hero p {
    max-width: none;
    font-size: 16px;
  }
}
