/*
Theme Name: Ignis Consulting
Description: Ignis Consulting website - static HTML build.
             Global styles: variables, reset, typography, layout grid, buttons, forms, reveal animation.
*/

/*-- Reset start --*/

[hidden] { display: none !important; }

:root {
    /* Brand colours (Brand Guidelines v1.1) */
    --blue: #31667E;
    --blue-dark: #28556a;     /* button hover */
    --latte: #E9E2D1;
    --rose: #DCAEAA;
    --lblue: #BFDEE0;
    --tan: #C59872;
    --charcoal: #454242;
    --grey: #5f5b5b;          /* muted / secondary text */
    --white: #ffffff;

    /* Tints */
    --latte-50: #F4F0E8;
    --rose-50: #EDD7D4;
    --lblue-50: #DFEEEF;
    --tan-50: #E2CBB8;

    /* Alpha tints */
    --blue-08: rgba(49,102,126,.08);
    --blue-14: rgba(49,102,126,.14);
    --blue-16: rgba(49,102,126,.16);
    --blue-20: rgba(49,102,126,.2);
    --blue-30: rgba(49,102,126,.3);
    --tan-07: rgba(197,152,114,.07);
    --charcoal-08: rgba(69,66,66,.08);
    --white-12: rgba(255,255,255,.12);
    --white-14: rgba(255,255,255,.14);
    --white-22: rgba(255,255,255,.22);
    --white-45: rgba(255,255,255,.45);
    --white-50: rgba(255,255,255,.5);
    --white-65: rgba(255,255,255,.65);
    --white-80: rgba(255,255,255,.8);
    --white-90: rgba(255,255,255,.9);
    --white-96: rgba(255,255,255,.96);

    /* Fonts */
    --display: 'Unna', Georgia, 'Times New Roman', serif;
    --body: 'Avenir Next', 'Avenir', 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Layout - --gutter / --pad / --header-h are re-set once per breakpoint at the end of this file */
    --wrap: 1180px;
    --gutter: 32px;
    --pad: 64px;
    --header-h: 96px;
    --header-h-shrunk: 72px;
    --shadow: 0 2px 4px rgba(69,66,66,.04), 0 12px 32px rgba(69,66,66,.07);

    color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    padding-top: var(--header-h);
    background: var(--white);
    color: var(--charcoal);
    font-family: var(--body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }
img, video { height: auto; }
img { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Skip link — visually hidden until focused */
.screen-reader-text {
    position: absolute;
    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 {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 300;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 18px;
    overflow: visible;
    clip: auto;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    border-radius: 40px;
}

/*-- Reset end ---*/


/*-- Typography start --*/

.heading-display, h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.14; letter-spacing: -.005em; }
h1 { font-size: 60px; }
h2 { font-size: 40px; color: var(--blue); }
h3.heading-display { font-size: 26px; }
.eyebrow { font-family: var(--body); font-weight: 700; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.eyebrow.eyebrow--inverse { color: var(--latte); }
.lead { font-size: 20px; line-height: 1.6; }
.small { font-size: 15px; }

/*-- Typography end ---*/


/*-- Layout start --*/

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--pad) 0; position: relative; overflow: hidden; }
.section--secondary { background: var(--latte); }
.section--secondary-light { background: var(--latte-50); }
.section--primary { background: var(--blue); color: var(--white); }
.section--primary h2, .section--primary h3 { color: var(--white); }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.section-header { max-width: 660px; margin-bottom: 36px; }
.section-header.section-header--center { margin-left: auto; margin-right: auto; text-align: center; }

/*-- Layout end ---*/


/*-- Buttons & links start --*/

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-weight: 700; font-size: 14.5px; letter-spacing: .02em; padding: 14px 28px; border-radius: 40px; border: 2px solid var(--blue); background: var(--blue); color: var(--white); text-decoration: none; cursor: pointer; -webkit-transition: .22s ease; -ms-transition: .22s ease; -o-transition: .22s ease; -moz-transition: .22s ease; transition: .22s ease; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }
.btn.btn--secondary { background: transparent; color: var(--blue); }
.btn.btn--secondary:hover { background: var(--blue-08); color: var(--blue); border-color: var(--blue); }
.btn.btn--inverse { background: var(--white); border-color: var(--white); color: var(--blue); }
.btn.btn--inverse:hover { background: var(--latte); border-color: var(--latte); color: var(--blue); }
.btn.btn--secondary.btn--inverse { background: transparent; color: var(--white); border-color: var(--white-65); }
.btn.btn--secondary.btn--inverse:hover { background: var(--white-12); color: var(--white); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }
.text-link { font-weight: 700; font-size: 14.5px; letter-spacing: .02em; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--lblue); padding-bottom: 2px; -webkit-transition: .2s; -ms-transition: .2s; -o-transition: .2s; -moz-transition: .2s; transition: .2s; }
.text-link:hover { border-bottom-color: var(--blue); }

/*-- Buttons & links end ---*/


/*-- Form fields start --*/

label { display: block; font-size: 14px; font-weight: 700; color: var(--charcoal); margin-bottom: 7px; }
input, textarea, select { width: 100%; font-family: var(--body); font-size: 16px; color: var(--charcoal); padding: 13px 15px; border: 1.5px solid var(--blue-30); border-radius: 6px; background: var(--white); }
textarea { min-height: 130px; resize: vertical; }

/*-- Form fields end ---*/


/*-- Reveal animation start --*/
/* .js is added to <html> in <head>; general.js adds .in-view when an .reveal element enters the viewport */

.js .reveal { opacity: 0; transform: translateY(22px); -webkit-transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); -ms-transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); -o-transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); -moz-transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; -webkit-transition: none; -ms-transition: none; -o-transition: none; -moz-transition: none; transition: none; }
    * { scroll-behavior: auto !important; }
}

/*-- Reveal animation end ---*/


/*-- Responsive start --*/
/* Desktop-first. One common .container (max-width + margin auto) at every size:
   breakpoints only re-set the --gutter / --pad / --header-h tokens, type sizes and grid columns. */

@media (max-width: 991px) {
    :root { --pad: 56px; --header-h: 72px; --header-h-shrunk: 64px; }
    h1 { font-size: 48px; }
    h2 { font-size: 34px; }
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 767px) {
    :root { --gutter: 24px; --pad: 48px; }
    h1 { font-size: 40px; }
    h2 { font-size: 30px; }
    h3.heading-display { font-size: 22px; }
    .lead { font-size: 18px; }
    .section-header { margin-bottom: 28px; }
    .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    :root { --gutter: 20px; --pad: 40px; }
    h1 { font-size: 34px; }
    h2 { font-size: 28px; }
    .grid--4 { grid-template-columns: 1fr; }
}

/*-- Responsive end ---*/
