/* ======================================================================
   Designed By Gaurav Sharma - DPC
   CONWRX INTERIOR SOLUTIONS LLP - style.css
   ----------------------------------------------------------------------
   Plain CSS3. No JavaScript is used anywhere on this website.

   SECTIONS
     1. Colours, fonts and text sizes   (change the look here)
     2. Basic reset
     3. Page layout (one screen, never scrolls)
     4. Text, tape, services and contact
     4b. Work in progress (animated list)
     5. Services and registered address
     6. Photo slideshow (blue drawing turns into colour photo)
     7. Blue band at the bottom
     8. Screen shapes: upright phones, sideways phones, big monitors

   Design rules: straight edges only (no circles or rounded corners),
   light font weights, brand colours cream / blue / red.
   ====================================================================== */


/* ----------------------------------------------------------------------
   1. COLOURS, FONTS AND TEXT SIZES
   Change a colour or size here and it changes everywhere.
   ---------------------------------------------------------------------- */
:root {
  /* brand colours (from the official logo) */
  --cream:     #F1EFE7;   /* page background */
  --navy:      #225495;   /* logo blue: headline, links */
  --navy-mid:  #2C65B3;   /* band, light end */
  --navy-deep: #153A71;   /* band, dark end */
  --blueprint: #2F6FD0;   /* blue of the "drawing" photos and building lines */
  --red:       #D60909;   /* logo red */
  --ink:       #0F1B33;   /* normal text */
  --muted:     #72809A;   /* small soft text */

  /* fonts: the first one is used if it is installed or loaded, otherwise the next one */
  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;   /* same family as the body text */
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* space around things: grows with the screen, but never too small or too big */
  --pad: clamp(16px, min(3.6vw, 5vh), 44px);

  /* text sizes: clamp(smallest, normal, largest). Using "vh" (screen height) keeps the text
     from growing taller than the screen, so nothing ever needs to scroll. */
  --size-h1:    clamp(1.2rem,  min(7.2vw, 12.5vh),  9rem);     /* big headline: fills the width of the text column */
  --size-lead:  clamp(.8rem,   min(1.2vw, 2.1vh),  1.1rem);   /* teaser sentence       */
  --size-body:  clamp(.7rem,   min(1.05vw, 1.8vh), .92rem);   /* intro, services, address */
  --size-label: clamp(.58rem,  min(.85vw, 1.4vh),  .72rem);   /* small red capital labels */
  --size-tag:   clamp(.62rem,  min(1.2vw, 2vh),    .85rem);   /* tagline in the blue band */
  --size-note:  clamp(.58rem,  min(.8vw, 1.4vh),   .72rem);   /* copyright line        */
}


/* ----------------------------------------------------------------------
   2. BASIC RESET
   ---------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; background: var(--cream); }   /* no scrolling */

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
ul { list-style: none; }
address { font-style: normal; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }


/* ----------------------------------------------------------------------
   3. PAGE LAYOUT
   The page is a grid that fills the window exactly.
   Wide screens:  left column = logo, text, band.  Right column = photos.
   Upright screens (phones): logo, photo, text, band, from top to bottom (see section 8).
   ---------------------------------------------------------------------- */
.app {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;       /* exactly the visible window */
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);        /* left : right = 5 : 6 (text left, photos right) */
  grid-template-rows: auto minmax(0, 1fr) auto;                /* the text block takes the free height */
  grid-template-areas:
    "top  stage"
    "copy stage"
    "band stage";
}
.top   { grid-area: top;   padding: var(--pad) var(--pad) clamp(10px, 3.2vh, 40px); }   /* about one line of space under the logo */
.copy  { grid-area: copy; }
.stage { grid-area: stage; }
.band  { grid-area: band; }

.brand img { width: clamp(130px, min(34vw, 22vh), 230px); height: auto; }   /* logo size */


/* ----------------------------------------------------------------------
   4. TEXT AND WARNING TAPE
   ---------------------------------------------------------------------- */
.copy { padding: clamp(4px, 2vh, 24px) var(--pad); }

/* small red line above the headline */
.kicker {
  display: inline-block; margin-bottom: clamp(4px, 2vh, 18px); padding-left: 10px;
  border-left: 3px solid var(--red);
  font: 400 var(--size-label)/1.3 var(--font-head);
  letter-spacing: .2em; text-transform: uppercase; color: var(--red);
}

/* HEADLINE: one style on every device (light weight, blue). Four lines on wide screens (each .w is one line),
   two lines on phones. The lines slide in one after the other when the page opens. */
h1 { font-family: var(--font-head); font-size: var(--size-h1); font-weight: 300; line-height: 1.08; letter-spacing: -.02em; color: var(--navy); margin-left: -.05em; /* optical: big letters line up with the small text */ }
.h1-a, .h1-b { display: block; }
.w { display: block; white-space: nowrap; animation: wipe 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.h1-a .w:nth-child(1) { animation-delay: .2s; }
.h1-a .w:nth-child(2) { animation-delay: .4s; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.teaser { margin-top: clamp(6px, 2.2vh, 20px); max-width: none; font-size: var(--size-lead); line-height: 1.55; color: #3A4660; }
.intro  { margin-top: clamp(4px, 1.4vh, 12px); max-width: none; font-size: var(--size-body); line-height: 1.6; color: var(--muted); }

/* WARNING TAPE: red and blue diagonal stripes that slowly move sideways */
.tape {
  position: relative; overflow: hidden; height: clamp(4px, .9vh, 8px);
  margin: clamp(8px, 2.6vh, 26px) 0 clamp(8px, 2.2vh, 22px);
}
.tape::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40px; right: 0;
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, var(--navy) 12px 24px);
  animation: tape-move 1.6s linear infinite;
}
@keyframes tape-move { to { transform: translateX(33.94px); } }     /* exactly one stripe pair, so it loops smoothly */



/* ----------------------------------------------------------------------
   5. SERVICES AND REGISTERED ADDRESS
   Two columns: services on the left, registered address + phone + email on the right.
   Edit the words in index.html, the look here.
   ---------------------------------------------------------------------- */
.info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 var(--pad); }
.info { row-gap: clamp(12px, 3.4vh, 38px); }   /* same gap as between the tape and the first labels */
.services, .contact { font-size: var(--size-body); line-height: 1.55; }
.label {
  margin-bottom: clamp(3px, .9vh, 8px);
  font: 400 var(--size-label)/1.3 var(--font-head);
  letter-spacing: .2em; text-transform: uppercase; color: var(--red);
}
.services li { color: var(--navy); font-weight: 400; }
.contact p + p { margin-top: .3em; }


.contact a { overflow-wrap: anywhere; }


/* ----------------------------------------------------------------------
   6. PHOTO SLIDESHOW (pure CSS)
   Seven photos share a 49 second loop. Each one is on screen for 7 seconds:
     - "show"    fades the photo in and out
     - "develop" a blue drawing layer (::after) slides up and uncovers the real colour photo
     - "edge"    a thin red line (::before) travels up with the edge of the drawing layer
     - "fill"    the small progress bar at the top fills
   --d is the start time of each photo (0s, 7s, 14s ... 42s).
   To add or remove a photo: change the loop time (49s = photos x 7s), the percentages in the keyframes
   (100 / number of photos) and the --d lines below.
   ---------------------------------------------------------------------- */
.stage { position: relative; overflow: hidden; background: var(--navy-deep); }

.slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: 0; opacity: 0; animation: show 49s infinite var(--d, 0s); }
.slide:nth-child(1) { --d: 0s; }
.slide:nth-child(2) { --d: 7s; }
.slide:nth-child(3) { --d: 14s; }
.slide:nth-child(4) { --d: 21s; }
.slide:nth-child(5) { --d: 28s; }
.slide:nth-child(6) { --d: 35s; }
.slide:nth-child(7) { --d: 42s; }
.slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }

/* blue drawing layer: tinted blue with a fine grid */
.slide::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background:
    repeating-linear-gradient(0deg,  rgba(255,255,255,.13) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.13) 0 1px, transparent 1px 28px),
    rgba(34, 84, 149, .8);
  animation: develop 49s infinite var(--d, 0s);
}
/* red line at the edge of the drawing layer */
.slide::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 3px; z-index: 2;
  background: var(--red);
  animation: edge 49s infinite var(--d, 0s);
}

@keyframes show    { 0% { opacity: 0; } 2%, 14.3% { opacity: 1; } 16.3%, 100% { opacity: 0; } }
@keyframes develop { 0%, 1.3% { clip-path: inset(0 0 0 0); } 9.8%, 100% { clip-path: inset(0 0 100% 0); } }
@keyframes edge    { 0%, 1.3% { top: 100%; opacity: 1; } 9.8% { top: 0; opacity: 1; } 9.9%, 100% { top: 0; opacity: 0; } }

/* progress bars */
.ticks { position: absolute; left: var(--pad); right: var(--pad); top: clamp(14px, 3vh, 28px); z-index: 5; display: flex; gap: clamp(8px, 1vw, 16px); }
.ticks span { position: relative; overflow: hidden; flex: 1; height: 3px; background: rgba(255, 255, 255, .55); }
.ticks span::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  animation: fill 49s linear infinite var(--d, 0s);
}
.ticks span:nth-child(1) { --d: 0s; }
.ticks span:nth-child(2) { --d: 7s; }
.ticks span:nth-child(3) { --d: 14s; }
.ticks span:nth-child(4) { --d: 21s; }
.ticks span:nth-child(5) { --d: 28s; }
.ticks span:nth-child(6) { --d: 35s; }
.ticks span:nth-child(7) { --d: 42s; }
@keyframes fill { 0% { transform: scaleX(0); } 14.3% { transform: scaleX(1); } 14.4%, 100% { transform: scaleX(0); } }


/* ----------------------------------------------------------------------
   7. BLUE BAND
   ---------------------------------------------------------------------- */
.band {
  display: flex; align-items: center; justify-content: space-between; gap: var(--pad);
  padding: clamp(10px, 2.4vh, 24px) var(--pad);
  background: linear-gradient(100deg, var(--navy-mid), var(--navy-deep));
  color: #fff;
}
.tagline { font: 300 var(--size-tag)/1.5 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.tagline span { display: block; }
.tagline span:first-child { font-weight: 200; color: #D6E3F9; }
.tagline::after { content: ""; display: block; width: 48px; height: 3px; margin-top: clamp(4px, 1vh, 10px); background: var(--red); }
.legal { max-width: 48%; font-size: var(--size-note); line-height: 1.35; font-weight: 200; color: #D6E3F9; text-align: right; }


/* ----------------------------------------------------------------------
   8. SCREEN SHAPES
   ---------------------------------------------------------------------- */

/* Upright screens (phones, tablets held upright): logo, photo, text, band from top to bottom.
   The photo takes the free height. */
@media (max-aspect-ratio: 1/1) {
  :root { --size-h1: clamp(1.2rem, min(8.4vw, 4.4vh), 3rem); }   /* headline spans the phone width */
  .app  { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "top" "stage" "copy" "band"; }
  .top  { padding-bottom: clamp(4px, 1.4vh, 14px); }
  .copy { align-self: start; padding-block: clamp(4px, 1.8vh, 18px); }
  .copy { display: block; }
  .hero { margin: 0; }
  .info { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* Tablets held upright: more room, so slightly bigger text */
@media (max-aspect-ratio: 1/1) and (min-width: 600px) {
  :root {
    --size-h1:    clamp(1.7rem, min(9vw, 5vh), 4.2rem);
    --size-lead:  clamp(.92rem, 2vw, 1.05rem);
    --size-body:  clamp(.8rem, 1.6vw, .92rem);
    --size-label: clamp(.62rem, 1.2vw, .72rem);
    --size-tag:   clamp(.72rem, 1.6vw, .9rem);
    --size-note:  .72rem;
  }
}

/* Phones held sideways (wide but short): wider text column, services in two columns */
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .app { grid-template-columns: minmax(0, 6fr) minmax(0, 4.2fr); }
}
@media (min-aspect-ratio: 1/1) and (max-height: 700px) {
  .info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
}






/* Very large monitors: bigger text */
@media (min-width: 1800px) and (min-aspect-ratio: 1/1) {
  :root {
    --size-lead:  1.25rem;
    --size-body:  1.05rem;
    --size-label: .8rem;
    --size-tag:   .95rem;
    --size-note:  .8rem;
  }
}
@media (min-width: 2200px) and (min-aspect-ratio: 1/1) {
  :root {
    --size-lead:  1.7rem;
    --size-body:  1.4rem;
    --size-label: .95rem;
    --size-tag:   1.25rem;
    --size-note:  .95rem;
  }
  .brand img { width: 320px; }
}

/* Small screens: slightly smaller headline */
@media (max-width: 900px)  { .kicker, .label { letter-spacing: .14em; } }

/* Very short screens (phones held sideways): smaller text and tighter spacing so everything still fits */
@media (min-aspect-ratio: 1/1) and (max-height: 460px) {
  :root { --size-h1: .98rem; --size-lead: .66rem; --size-body: .6rem; --size-label: .52rem; --size-tag: .58rem; --size-note: .52rem; }
  .app { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .top { padding-top: 10px; }
  .brand img { width: 110px; }
  .teaser, .intro { max-width: none; line-height: 1.4; }
  .tape { margin: 6px 0; }
  .kicker { margin-bottom: 3px; }
  .info { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .info { row-gap: 3px; }
  .label { margin-bottom: 1px; }
  .services, .contact { line-height: 1.25; }
  .contact p + p { margin-top: 0; }
  .tagline::after { display: none; }
  .band { padding-block: 8px; }
}

/* Tiny landscape phones (height 340 or less): drop the small line above the headline to save height */
@media (min-aspect-ratio: 1/1) and (max-height: 340px) {
  .kicker { display: none; }
  .band { padding-block: 5px; }
}

/* Short upright phones (for example 320 x 568 or 375 x 667): smaller text so the photo keeps a good height */
@media (max-aspect-ratio: 1/1) and (max-height: 700px) {
  :root { --size-lead: .74rem; --size-body: .64rem; --size-label: .54rem; --size-tag: .6rem; --size-note: .54rem; }
  .teaser { margin-top: 5px; line-height: 1.4; }
  .intro { margin-top: 3px; line-height: 1.4; }
  .kicker { margin-bottom: 4px; }
  .services, .contact { line-height: 1.4; }
  .tape { margin: 6px 0; }
  .band { padding-block: 8px; }
  .tagline::after { display: none; }
}



/* Wide screens: the text block is centred in the free height, so no big empty gap is left under it,
   and the headline is large enough to fill the width of the text column */
@media (min-aspect-ratio: 1/1) {
  .copy { display: flex; flex-direction: column; justify-content: center; }
  .hero { margin: 0; }
  .tape { margin-block: clamp(14px, 4vh, 44px) clamp(12px, 3.4vh, 38px); }
  .teaser { margin-top: clamp(10px, 3vh, 34px); }
}

/* Phones (upright) and short wide screens: the headline words sit on one line */
@media (max-aspect-ratio: 1/1) { .w { display: inline; } }
@media (min-aspect-ratio: 1/1) and (min-height: 461px) and (max-height: 760px) {
  :root { --size-h1: clamp(1.2rem, min(3.9vw, 7.2vh), 7rem); }
  .w { display: inline; }
}

/* phone numbers and email: one clear line in the same plain style, separated by thin straight rules */
.reach { grid-column: 1 / -1; font-size: var(--size-body); line-height: 1.55; }
.reach ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: .15em; }
.reach li { padding-right: 1.1em; margin-right: 1.1em; border-right: 1px solid rgba(34, 84, 149, .35); line-height: 1.2; }
.reach li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.reach a { color: var(--navy); text-decoration: none; white-space: nowrap; }
/* phones held upright: both numbers and the email stay on ONE line (text shrinks a little with the screen width) */
@media (max-aspect-ratio: 1/1) {
  .reach ul { flex-wrap: nowrap; }
  .reach li { padding-right: .7em; margin-right: .7em; }
  .reach a { font-size: min(1em, 3.75vw); }
}

/* Designed By Gaurav Sharma - DPC */
