/* Usool website styles. Colours and shapes follow Usool's Instagram post designs. */
:root {
  --navy: #1c2f5a;
  --navy-deep: #15244a;
  --grey: #dfe1e6;
  --paper: #f6f7f9;
  --white: #ffffff;
  --pill: #cdd3e1;
  /* Sky is used for one thing only: the keyboard focus outline on dark backgrounds. */
  --sky: #a9c0ee;
  /* Brass: the one colour outside the logo. It is only ever placed on navy, where it is easy to read:
     the main button in navy sections, and the title of every navy card. */
  --accent: #c8a15a;
  --accent-hover: #d8b777;
  /* Body text inside navy cards and navy sections. */
  --on-navy: rgba(255, 255, 255, 0.84);
  --line: #c9cedb;
  --field-border: #55607a;
  --text: #1c2f5a;
  --muted: #4d5870;
  --danger: #b3261e;
  /* Two corner sizes only: boxes use --radius, pills and buttons are fully round. */
  --radius: 16px;
  --round: 999px;
  --shadow: 0 1px 3px rgba(21, 36, 74, 0.08);
  --display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* Scroll padding keeps a focused or linked element clear of the fixed header and the phone action bar. */
html { scroll-behavior: smooth; scroll-padding-top: 84px; scroll-padding-bottom: 96px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  /* Arabic needs more room between lines than Latin text because of its marks above and below. */
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
}
html:lang(en) body { line-height: 1.6; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.section-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--sky); }
[hidden] { display: none !important; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; }
.narrow { width: min(720px, 100% - 40px); }
.center { text-align: center; justify-content: center; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--white); padding: 8px 14px; border-radius: var(--round); z-index: 20; }
.skip:focus { top: 12px; }
.draft-strip { background: var(--grey); color: var(--navy-deep); text-align: center; font-size: 0.875rem; padding: 6px 16px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark { width: 54px; height: auto; }
.logo-grey { fill: #c3c7d1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; }
.brand-text [lang='ar'] { font-size: 1.05rem; }
.brand-text [lang='en'] { font-size: 0.85rem; letter-spacing: 0.22em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-bottom-color: var(--navy); }
.nav .lang { border: 1.5px solid var(--navy); border-radius: var(--round); padding: 8px 14px; }
.nav .lang:hover { background: var(--navy); color: var(--white); }
.menu-btn { display: none; font: inherit; font-weight: 600; color: var(--navy); background: var(--pill); border: 0; border-radius: var(--round); padding: 10px 18px; cursor: pointer; }

/* Sections */
.section { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 120px); }
.section-navy { background: var(--navy); color: var(--white); --pill-bg: var(--pill); --pill-fg: var(--navy); --soft: var(--on-navy); }
.section-light { background: var(--grey); --soft: var(--muted); }
.section-white { background: var(--paper); --soft: var(--muted); }
/* Usool's tower sketch, bleeding off the far edge of the section. */
.tower { position: absolute; inset-inline-end: -2%; bottom: -8%; height: 118%; width: auto; opacity: 0.16; stroke-width: 2; pointer-events: none; }

/* Headings: the display face is for page titles, slogans, section titles and big figures only. */
.head { margin-bottom: 36px; }
.head h1, .head h2, .slogan, .stats strong { font-family: var(--display); font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 48ch; margin-top: 8px; }
html:lang(en) .head h1, html:lang(en) .head h2, html:lang(en) .slogan { line-height: 1.12; letter-spacing: -0.02em; }
.cta .head { text-align: center; }
.cta .lead { margin-inline: auto; }

.tag { display: inline-block; font-weight: 600; font-size: 0.875rem; line-height: 1.5; border: 1.5px solid var(--accent); color: var(--accent); border-radius: var(--round); padding: 3px 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; font: inherit; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; border-radius: var(--round); padding: 10px 26px; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--navy-deep); font-weight: 700; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-light { background: var(--pill); color: var(--navy); }
.btn-light:hover { background: var(--grey); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Home page opening: Usool's slogan large, then a plain statement of what the company does. */
.hero { padding-block: clamp(72px, 10vw, 128px) clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.slogan { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.hero h1 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 600; line-height: 1.6; margin-top: 10px; max-width: 30ch; }
.hero-points { color: var(--accent); font-weight: 600; margin-top: 6px; }
.hero-text { font-size: 1.1rem; color: var(--soft); max-width: 38ch; margin-top: 16px; }
.hero .tag { margin-top: 40px; }

/* The house drawing in the hero draws itself, holds, fades and starts again, without end. */
.house { width: 100%; height: auto; fill: none; stroke: rgba(255, 255, 255, 0.78); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.house path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-house 9s ease-in-out infinite; }
.house path:nth-child(2) { animation-delay: 0.18s; }
.house path:nth-child(3) { animation-delay: 0.36s; }
.house path:nth-child(4) { animation-delay: 0.54s; }
.house path:nth-child(5) { animation-delay: 0.72s; }
.house path:nth-child(6) { animation-delay: 0.9s; }
.house path:nth-child(7) { animation-delay: 1.08s; }
.house path:nth-child(8) { animation-delay: 1.26s; }
.house path:nth-child(9) { animation-delay: 1.44s; }
.house path:nth-child(10) { animation-delay: 1.62s; }
.house path:nth-child(11) { animation-delay: 1.8s; }
.house path:nth-child(12) { animation-delay: 1.98s; }
.house .glow { stroke: var(--accent); }
@keyframes draw-house {
  0% { stroke-dashoffset: 1; opacity: 1; }
  40%, 86% { stroke-dashoffset: 0; opacity: 1; }
  96%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Optional looping hero video (site.heroVideo in data.js), under an even navy tint so the text
   stays readable whatever the frame behind it. */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-video::after { content: ''; position: absolute; inset: 0; background: rgba(21, 36, 74, 0.75); }
.hero.has-video .container { z-index: 1; }
/* With the video there is no house drawing beside the text, so the text takes the full width. */
.hero.has-video .hero-grid { grid-template-columns: minmax(0, 1fr); }

/* Inner page openings */
.page-hero { padding-block: clamp(64px, 8vw, 104px) clamp(56px, 7vw, 88px); }
.page-hero .head { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); max-width: 20ch; }
.page-hero .slogan { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
/* When a slogan sits above it, the page title steps down to a plain descriptive line. */
.page-hero .slogan + .head h1 { font-family: var(--body); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.6; letter-spacing: 0; max-width: 34ch; margin-top: 6px; }

/* ---------------------------------------------------------------------------------------------
   The navy card: the site's one card style.
   Every group of boxes on a light section is a single column of navy cards, one under another,
   each with its title in brass and its text in white. Groups differ only in padding and details.
   --------------------------------------------------------------------------------------------- */
.cards, .pill-cards, .reasons, .choice-cards, .worries, .stats, .flow-detailed, .rows, .steps {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}
.card, .qa, .pill-card, .choice, .worry, .reasons li, .stats li, .flow-detailed > li, .row, .steps li {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
}
/* Hover: the card under the pointer grows a little and lifts, so the eye knows where it is reading.
   Only on devices with a real pointer; on touch screens a tap would leave the card stuck enlarged. */
.card, .qa, .pill-card, .choice, .worry, .reasons li, .stats li, .flow-detailed > li, .row, .steps li,
.section-white > .narrow > .pills li {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) {
  .card:hover, .qa:hover, .pill-card:hover, .choice:hover, .worry:hover, .reasons li:hover, .stats li:hover,
  .flow-detailed > li:hover, .row:hover, .steps li:hover, .section-white > .narrow > .pills li:hover {
    transform: scale(1.025);
    box-shadow: 0 12px 30px rgba(21, 36, 74, 0.28);
  }
}
/* Titles, in brass. */
.card h2, .card h3, .qa h2, .qa h3, .pill-card strong, .choice h2, .worry dt, .reasons strong,
.stats strong, .flow-detailed h3, .row dt {
  color: var(--accent);
}
/* Supporting text, in soft white. */
.card p, .qa p, .choice p, .worry dd, .reasons span, .stats span, .flow-detailed ul { color: var(--on-navy); }
/* Links and controls inside a navy card need the light focus outline. */
.card :focus-visible, .qa :focus-visible, .row :focus-visible { outline-color: var(--sky); }

.card h2, .card h3, .qa h2, .qa h3, .worry dt, .choice h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.5; }

/* Cards: services, about, market updates */
.card { padding: 26px 28px; }
.card h2, .card h3 { margin-block: 12px 10px; }
.card h2 a, .card h3 a { text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { text-decoration: underline; }
.card .pills li { background: rgba(255, 255, 255, 0.12); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { border-radius: var(--round); padding: 6px 16px; }

/* Questions and answers */
.qa { padding: 24px 28px; }
.qa + .qa { margin-top: 14px; }
.qa h2, .qa h3 { margin-bottom: 6px; }

/* The four categories plus property management, on the home page */
.pill-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; text-decoration: none; padding: 18px 26px; font-size: 1.15rem; }
.pill-card strong { font-size: 1.3rem; }
.pill-card strong::after { content: ':'; }

/* Reasons to choose Usool */
.reasons li { padding: 20px 26px; }
.reasons strong { display: block; font-size: 1.3rem; font-weight: 600; }

/* Two paths: owners and people looking for a property */
.choices { padding-block: clamp(40px, 5vw, 64px); }
.choice { display: grid; gap: 8px; align-content: start; text-decoration: none; padding: 30px; }
.choice h2 { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); }
.choice-cta { justify-self: start; margin-top: 8px; font-weight: 700; border-bottom: 2px solid var(--accent); }

/* Owner worries, each with Usool's answer */
.worry { padding: 22px 28px; }
.worry dd { margin-top: 4px; }

/* Proof: real figures, quotes and the license number (hidden until Usool supplies them) */
.stats { margin-bottom: 24px; }
.stats li { padding: 22px 28px; }
.stats strong { display: block; font-size: 2.4rem; line-height: 1.2; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 10px; font-size: 1.1rem; }
.quote figcaption { color: var(--accent); font-weight: 600; }
.license { color: var(--muted); margin-top: 20px; }

/* The four management steps in detail */
.flow-detailed { counter-reset: step; }
.flow-detailed > li { padding: 24px 28px; counter-increment: step; }
.flow-detailed h3 { font-size: 1.5rem; font-weight: 600; }
.flow-detailed h3::before { content: counter(step, decimal-leading-zero); display: block; font-size: 0.9rem; font-weight: 600; color: var(--on-navy); }
.flow-detailed ul { margin-top: 10px; display: grid; gap: 6px; }
.flow-detailed ul li::before { content: '• '; color: var(--accent); }

/* Rows: contact details and market-update facts */
.rows { gap: 10px; margin-bottom: 24px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 24px; }
.row dt { font-weight: 600; }
.row dd { text-align: end; }
.row a { text-decoration: none; }
.row a:hover { text-decoration: underline; }
/* The address is underlined so it reads as a link to the map. */
.row .map-link { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Numbered steps above the owners' form */
.steps { gap: 10px; margin-bottom: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--navy-deep); font-weight: 700; }

/* The bullet points on a service page: one navy line each */
.section-white > .narrow > .pills { display: grid; gap: 10px; }
.section-white > .narrow > .pills li { background: var(--navy); color: var(--white); border-radius: var(--radius); font-size: 1.1rem; padding: 14px 24px; }

/* A value Usool has not supplied yet */
.blank { color: var(--on-navy); border-bottom: 1px dashed currentColor; }

/* ---------- pieces that are not navy cards ---------- */

/* Flow on the home page: leasing, collection, maintenance, reports, joined by lines as in Usool's posts */
.flow:not(.flow-detailed) { display: flex; flex-wrap: wrap; align-items: center; row-gap: 12px; }
.flow:not(.flow-detailed) > li { display: flex; align-items: center; }
/* The connecting line belongs to this simple flow only, never to the detailed cards. */
.flow:not(.flow-detailed) > li + li::before { content: ''; width: 28px; height: 2px; margin-inline: 8px; background: currentColor; opacity: 0.6; }
.flow:not(.flow-detailed) h3 { font-size: 1.25rem; font-weight: 600; padding: 10px 24px; border-radius: var(--round); background: var(--pill-bg); color: var(--pill-fg); }

.intro { font-size: 1.25rem; max-width: 56ch; margin-bottom: 32px; }
.empty { background: var(--white); border: 1.5px dashed var(--field-border); border-radius: var(--radius); padding: 36px 28px; }
.empty p + p { color: var(--muted); margin-top: 6px; }

/* Bar fixed to the bottom of phone screens: the main action is always one tap away */
.sticky-bar { display: none; }

/* Form: stays white, because fields need a light background to be read and filled in */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.field { display: grid; gap: 6px; font-weight: 500; }
.field:has(textarea), .form .btn, .form .notice, .form-note { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--paper); border: 1.5px solid var(--field-border); border-radius: var(--radius); padding: 10px 14px; min-height: 44px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--navy); outline-offset: 2px; }
.field [aria-invalid='true'] { border-color: var(--danger); }
.error { color: var(--danger); font-size: 1rem; font-weight: 400; }
.form-note { font-size: 1rem; color: var(--muted); }
.notice { background: var(--grey); border-radius: var(--radius); padding: 16px 18px; }
.notice pre { font: inherit; white-space: pre-wrap; margin: 10px 0 0; background: var(--white); border-radius: var(--radius); padding: 14px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--white); padding-block: 56px 20px; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.foot-line { margin-top: 10px; opacity: 0.85; font-size: 0.95rem; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-content: start; }
.foot-nav a, .foot-contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; opacity: 0.92; }
.foot-nav a:hover, .foot-contact a:hover { text-decoration: underline; }
.copy { text-align: center; opacity: 0.7; font-size: 0.875rem; margin-top: 36px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--grey); }
  .nav .lang { align-self: flex-start; margin-top: 12px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .house { max-width: 420px; margin-inline: auto; }
  /* Below this width the four pills would wrap and leave a line dangling, so the flow runs downwards. */
  .flow:not(.flow-detailed) { flex-direction: column; align-items: flex-start; row-gap: 0; }
  .flow:not(.flow-detailed) > li { flex-direction: column; align-items: flex-start; }
  .flow:not(.flow-detailed) > li + li::before { width: 2px; height: 18px; margin: 6px 28px; }
  .foot { grid-template-columns: 1fr; }
  .sticky-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 15; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); }
  .sticky-bar .btn { padding: 10px 12px; font-size: 0.95rem; }
  /* Room for the fixed bar, including the home-indicator area on iPhones. */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 2px; }
  .row dd { text-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* No movement for visitors who have asked their device to reduce motion. */
  .btn, .card, .qa, .pill-card, .choice, .worry, .reasons li, .stats li, .flow-detailed > li, .row, .steps li,
  .section-white > .narrow > .pills li { transition: none; transform: none !important; }
  .house path { animation: none; stroke-dashoffset: 0; }
}
