/*
Theme Name: Bromley Serviced Apartments
Theme URI: https://example.com/bromley-serviced-apartments
Author: Bromley Serviced Apartments
Description: A warm, modern WordPress theme for Bromley Serviced Apartments, with apartment listings, a property gallery and direct enquiry form.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bromley-serviced-apartments
Tags: custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

:root {
  --bsa-orange: #f58220;
  --bsa-orange-dark: #d9640e;
  --bsa-ink: #193a36;
  --bsa-green: #28534d;
  --bsa-cream: #f7f2e9;
  --bsa-sand: #eadfce;
  --bsa-white: #ffffff;
  --bsa-grey: #65706d;
  --bsa-shadow: 0 18px 50px rgba(25, 58, 54, 0.12);
  --bsa-radius: 22px;
  --bsa-serif: Georgia, "Times New Roman", serif;
  --bsa-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bsa-ink);
  background: #fffdfa;
  font-family: var(--bsa-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 9999; padding: 10px 16px; background: #fff; color: #000; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0 0 10px; color: var(--bsa-orange-dark); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-title { margin: 0; max-width: 720px; font-family: var(--bsa-serif); font-size: clamp(2.15rem, 4vw, 4.1rem); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
.section-intro { max-width: 690px; margin: 18px 0 0; color: var(--bsa-grey); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.section-head .text-link { flex: 0 0 auto; }
.text-link { color: var(--bsa-orange-dark); font-size: .88rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.text-link:hover, .text-link:focus { text-decoration: underline; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 13px 23px; border: 2px solid transparent; border-radius: 999px; background: var(--bsa-orange); color: #fff; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover, .button:focus { background: var(--bsa-orange-dark); transform: translateY(-2px); }
.button--light { background: #fff; color: var(--bsa-ink); }
.button--light:hover, .button--light:focus { background: var(--bsa-cream); }
.button--outline { border-color: rgba(255,255,255,.65); background: transparent; color: #fff; }
.button--outline:hover, .button--outline:focus { border-color: #fff; background: rgba(255,255,255,.1); }

/* Header */
.site-header { position: relative; z-index: 50; background: var(--bsa-orange); color: #fff; }
.header-inner { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; color: #fff; text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--bsa-serif); font-size: 1.18rem; letter-spacing: -.02em; }
.brand-tagline { margin-top: 6px; font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.custom-logo-link img { width: auto; max-width: 220px; max-height: 66px; }
.primary-nav { display: flex; align-items: center; gap: 27px; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: #fff; font-size: .9rem; font-weight: 750; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus { text-decoration: underline; }
.header-cta { padding: 10px 18px; background: #fff; color: var(--bsa-ink) !important; border-radius: 999px; }
.menu-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: transparent; color: #fff; }
.menu-toggle__bar, .menu-toggle::before, .menu-toggle::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; transition: transform .2s ease; }
.menu-toggle__bar { margin-block: 5px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }

/* Hero */
.hero { position: relative; min-height: 720px; display: grid; align-items: end; overflow: hidden; background: var(--bsa-ink); color: #fff; }
.hero::before { position: absolute; inset: 0; background: var(--hero-image) center 52%/cover no-repeat; content: ""; transform: scale(1.01); }
.hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,35,32,.87) 0%, rgba(13,35,32,.63) 42%, rgba(13,35,32,.12) 78%), linear-gradient(0deg, rgba(13,35,32,.78) 0%, transparent 42%); content: ""; }
.hero-inner { position: relative; z-index: 2; padding-block: 120px 66px; }
.hero-copy { max-width: 760px; }
.hero .eyebrow { color: #ffd6ad; }
.hero h1 { margin: 0; font-family: var(--bsa-serif); font-size: clamp(3.2rem, 7.5vw, 6.9rem); font-weight: 400; line-height: .94; letter-spacing: -.055em; }
.hero-text { max-width: 650px; margin: 24px 0 30px; font-size: clamp(1.04rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 830px; margin: 86px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.32); }
.hero-points li { padding: 21px 22px 0 0; color: rgba(255,255,255,.84); font-size: .86rem; }
.hero-points strong { display: block; margin-bottom: 3px; color: #fff; font-size: 1rem; }

/* Intro and amenities */
.intro-section { padding: 110px 0; background: var(--bsa-cream); }
.intro-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(48px, 8vw, 105px); align-items: center; }
.intro-media { position: relative; }
.intro-media img { width: 100%; aspect-ratio: 4/5; border-radius: var(--bsa-radius); object-fit: cover; box-shadow: var(--bsa-shadow); }
.intro-stamp { position: absolute; right: -24px; bottom: 38px; width: 155px; height: 155px; display: grid; place-items: center; padding: 24px; border: 9px solid var(--bsa-cream); border-radius: 50%; background: var(--bsa-orange); color: #fff; text-align: center; transform: rotate(-7deg); }
.intro-stamp strong { display: block; font-family: var(--bsa-serif); font-size: 1.7rem; line-height: 1; }
.intro-stamp span { display: block; margin-top: 7px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.intro-copy p { color: var(--bsa-grey); }
.amenity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 26px; margin: 32px 0 0; padding: 27px 0 0; border-top: 1px solid #dacbb8; list-style: none; }
.amenity-list li { display: flex; align-items: center; gap: 11px; font-size: .92rem; font-weight: 700; }
.amenity-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--bsa-orange-dark); }

/* Apartment cards */
.apartments-section { padding: 110px 0; }
.apartment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.apartment-card { overflow: hidden; border-radius: var(--bsa-radius); background: #fff; box-shadow: var(--bsa-shadow); }
.apartment-card__image { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bsa-sand); }
.apartment-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.apartment-card:hover .apartment-card__image img { transform: scale(1.045); }
.apartment-card__badge { position: absolute; left: 16px; top: 16px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--bsa-ink); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.apartment-card__body { padding: 25px; }
.apartment-card__title { margin: 0 0 7px; font-family: var(--bsa-serif); font-size: 1.63rem; font-weight: 400; line-height: 1.12; }
.apartment-card__title a { text-decoration: none; }
.apartment-card__title a:hover, .apartment-card__title a:focus { color: var(--bsa-orange-dark); }
.apartment-card__excerpt { margin: 0 0 20px; color: var(--bsa-grey); font-size: .92rem; }
.apartment-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.apartment-meta li { padding: 6px 10px; border-radius: 999px; background: var(--bsa-cream); color: var(--bsa-green); font-size: .75rem; font-weight: 750; }

/* Gallery */
.gallery-section { padding: 105px 0; background: var(--bsa-ink); color: #fff; }
.gallery-section .eyebrow { color: #ffc892; }
.gallery-section .section-intro { color: rgba(255,255,255,.7); }
.property-gallery { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: 260px 260px; gap: 12px; margin-top: 42px; }
.property-gallery figure { position: relative; min-width: 0; margin: 0; overflow: hidden; border-radius: 15px; }
.property-gallery figure:first-child { grid-row: 1 / 3; }
.property-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.property-gallery figure:hover img { transform: scale(1.035); filter: brightness(.9); }

/* Location */
.location-section { padding: 110px 0; background: #fffdfa; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(46px, 8vw, 105px); align-items: center; }
.location-card { min-height: 520px; display: grid; align-content: end; padding: 38px; border-radius: var(--bsa-radius); background: linear-gradient(145deg, rgba(25,58,54,.08), rgba(245,130,32,.17)), radial-gradient(circle at 72% 22%, #f7c996 0 3%, transparent 3.5%), var(--bsa-cream); overflow: hidden; position: relative; }
.location-card::before, .location-card::after { position: absolute; content: ""; border: 2px solid rgba(25,58,54,.18); border-radius: 45% 55% 48% 52%; }
.location-card::before { width: 520px; height: 260px; top: 40px; left: -130px; transform: rotate(24deg); }
.location-card::after { width: 420px; height: 240px; right: -150px; bottom: 110px; transform: rotate(-18deg); }
.location-pin { position: relative; z-index: 2; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; background: var(--bsa-orange); color: #fff; font-size: 1.8rem; transform: rotate(-45deg); box-shadow: 0 12px 30px rgba(217,100,14,.25); }
.location-pin span { transform: rotate(45deg); }
.location-card__copy { position: relative; z-index: 2; margin-top: 28px; padding: 24px; border: 1px solid rgba(255,255,255,.72); border-radius: 16px; background: rgba(255,255,255,.75); backdrop-filter: blur(12px); }
.location-card__copy strong { display: block; font-family: var(--bsa-serif); font-size: 1.55rem; }
.location-card__copy span { color: var(--bsa-grey); font-size: .88rem; }
.travel-list { display: grid; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; }
.travel-list li { display: flex; justify-content: space-between; gap: 25px; padding: 14px 0; border-bottom: 1px solid var(--bsa-sand); }
.travel-list strong { color: var(--bsa-orange-dark); }

/* Testimonials and enquiry */
.testimonial-section { padding: 105px 0; background: var(--bsa-cream); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.quote { margin: 0; padding: 28px; border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(25,58,54,.07); }
.quote p { margin: 0 0 18px; font-family: var(--bsa-serif); font-size: 1.15rem; line-height: 1.5; }
.quote cite { color: var(--bsa-grey); font-size: .8rem; font-style: normal; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.enquiry-section { padding: 110px 0; background: var(--bsa-orange); color: #fff; }
.enquiry-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(44px, 8vw, 105px); }
.enquiry-section .eyebrow { color: #fff1e3; }
.enquiry-copy .section-title { margin-bottom: 22px; }
.enquiry-copy p { color: rgba(255,255,255,.84); }
.contact-lines { display: grid; gap: 10px; margin-top: 28px; }
.contact-lines a { font-weight: 750; }
.enquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 30px; border-radius: var(--bsa-radius); background: #fff; color: var(--bsa-ink); box-shadow: 0 25px 70px rgba(95,40,4,.22); }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 800; letter-spacing: .035em; }
.field input, .field textarea, .field select { width: 100%; min-height: 49px; padding: 11px 13px; border: 1px solid #d8d5cf; border-radius: 10px; background: #fff; color: var(--bsa-ink); }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(245,130,32,.24); border-color: var(--bsa-orange); }
.form-note { grid-column: 1 / -1; margin: 0; color: var(--bsa-grey); font-size: .75rem; }
.honeypot { position: absolute !important; left: -9999px !important; }
.notice { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 10px; background: #e5f4ec; color: #195b39; font-size: .88rem; font-weight: 700; }
.notice--error { background: #fff0ed; color: #8a2d1e; }

/* Inner pages */
.page-hero { padding: 82px 0; background: var(--bsa-ink); color: #fff; }
.page-hero h1 { margin: 0; font-family: var(--bsa-serif); font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 400; line-height: 1; }
.content-area { padding: 78px 0 105px; }
.entry-content > * { max-width: 780px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1180px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { font-family: var(--bsa-serif); font-weight: 400; line-height: 1.15; }
.entry-content h2 { font-size: 2.25rem; }
.single-apartment-hero { position: relative; min-height: 580px; display: grid; align-items: end; background: var(--bsa-ink) center/cover no-repeat; color: #fff; }
.single-apartment-hero::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,35,32,.9), rgba(13,35,32,.08) 75%); content: ""; }
.single-apartment-hero__inner { position: relative; z-index: 2; padding-bottom: 55px; }
.single-apartment-hero h1 { max-width: 840px; margin: 0 0 18px; font-family: var(--bsa-serif); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 400; line-height: 1; }
.single-apartment-hero .apartment-meta li { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); }
.apartment-content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 65px; }
.booking-panel { position: sticky; top: 30px; align-self: start; padding: 26px; border-radius: 18px; background: var(--bsa-cream); }
.booking-panel h2 { margin: 0 0 8px; font-family: var(--bsa-serif); font-size: 1.65rem; font-weight: 400; }
.booking-panel p { color: var(--bsa-grey); font-size: .9rem; }
.posts-list { display: grid; gap: 24px; }
.post-card { padding: 28px; border-radius: 18px; background: var(--bsa-cream); }
.post-card h2 { margin: 0 0 8px; font-family: var(--bsa-serif); font-weight: 400; }

/* Footer */
.site-footer { padding: 70px 0 26px; background: #102c29; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 55px; }
.footer-brand { max-width: 390px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.68); font-size: .9rem; }
.footer-heading { margin: 0 0 17px; color: #ffc892; font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: rgba(255,255,255,.76); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.52); font-size: .76rem; }

@media (max-width: 980px) {
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 24px 20px 28px; background: var(--bsa-orange-dark); box-shadow: 0 20px 30px rgba(0,0,0,.15); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 5px; }
  .primary-nav a { display: block; padding: 10px; }
  .header-cta { margin-top: 8px; text-align: center; }
  .menu-toggle { display: inline-flex; flex-direction: column; }
  .intro-grid, .location-grid, .enquiry-grid { grid-template-columns: 1fr; }
  .intro-media { max-width: 660px; }
  .apartment-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .property-gallery { grid-template-columns: 1fr 1fr; }
  .property-gallery figure:first-child { grid-row: span 2; }
  .property-gallery figure:nth-child(n+4) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 78px; }
  .brand img { width: 49px; height: 49px; }
  .brand-name { font-size: 1rem; }
  .brand-tagline { font-size: .55rem; }
  .hero { min-height: 690px; }
  .hero-inner { padding-block: 95px 34px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-points { grid-template-columns: 1fr; margin-top: 48px; padding-top: 15px; }
  .hero-points li { padding-top: 8px; }
  .intro-section, .apartments-section, .gallery-section, .location-section, .testimonial-section, .enquiry-section { padding-block: 76px; }
  .intro-stamp { right: -5px; width: 125px; height: 125px; border-width: 6px; }
  .intro-stamp strong { font-size: 1.4rem; }
  .amenity-list, .apartment-grid, .quotes, .enquiry-form { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head .text-link { display: inline-block; margin-top: 20px; }
  .property-gallery { grid-template-columns: 1fr; grid-template-rows: 330px 210px; }
  .property-gallery figure:first-child { grid-row: auto; }
  .property-gallery figure:nth-child(n+3) { display: none; }
  .enquiry-form { padding: 22px; }
  .field--wide { grid-column: auto; }
  .apartment-content-grid { grid-template-columns: 1fr; }
  .booking-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
