/*
Theme Name: Gaston
Theme URI:
Author:
Author URI:
Description:
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.0
Version: 0.0.1
License:
License URI:
Text Domain: gaston
*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

/* Theme
   ========================================================================== */

* {
	-webkit-tap-highlight-color: rgba(0,0,0, 0);
}

*,
&:before,
&:after {
	min-width: 0;
	min-height: 0;

	box-sizing: border-box;
}

/**
 * The CSS class screen-reader-text
 *
 * @link https://make.wordpress.org/accessibility/handbook/markup/the-css-class-screen-reader-text/
 */
 .visuallyhidden,
 .screen-reader-text,
 .screen-reader-response,
 .sr-only {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
	-webkit-overflow-scrolling: touch;
 }
 .visuallyhidden:active,
 .screen-reader-text:active,
 .sr-only:active,
 .visuallyhidden:focus,
 .screen-reader-text:focus,
 .sr-only:focus {
	background-color: #eee;
	clip: auto !important;
	-webkit-clip-path: none;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000 /* Above WP toolbar. */;
}

:root {
	--font-main: 'Noto Sans Hebrew', sans-serif;

	--color-green: #006838;
	--color-green-1: #293F2B;
	--color-green-1-a3: rgba(41, 63, 43, 0.3);

	--color-pink: #DA99B3;
	--color-white: #fff;
	--color-white-a5: rgba(255,255,255, 0.5);
	--color-black: #000;

	--base-gap: 1.25rem;
	--base-width: 100%;

	--transition-time: 300ms;
}

html,
body {
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

html {
	font-size: 16px;
}

body {
	font-family: var(--font-main);
	font-size: 100%;
	line-height: 1.8;

	color: var(--color-black);
}

h1 {
	text-align: center;

	font-size: 1.875rem;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.125rem;
}

.app {
	display: flex;
	flex-direction: column;
}

.page:not(.home),
.single {
	padding-block: 2.5rem;
}

.home {
	background-color: var(--color-green);
	color: var(--color-white)
}


.home a {
	color: var(--color-white);
}

.app-header,
.app-footer {
	flex: none;
}

.app-main {
	flex: 1;
}

.text-center {
	text-align: center;
}

.text-start {
	text-align: start;
}

.text-end {
	text-align: end;
}

.list-unstyled {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.text-container {
	width: calc(var(--base-width) + var(--base-gap) * 2);
	padding-inline: var(--base-gap);
	margin-inline: auto;
}

.text-container > * {
	margin-block: 0;
}

.text-container > * + * {
	margin-block-start: 1.8125rem;
}

.app-logo {
	display: inline-block;
	vertical-align: top;
}

.app-logo__img {
	max-width: none;
	width: 100%;
	height: auto;
	vertical-align: top;
}

.gaston-home__end {
	display: none;
}

.gaston-home-logo {
	padding: 1.625rem;
}

.gaston-home-mobile-cover {
	width: 100%;
	height: auto;
	max-width: none;
	vertical-align: top;
}

.gaston-home-desktop-cover {
	display: none;
}

.gaston-home-logo .app-logo {
	max-width: 15.625rem;
}

.nav-home {
	width: 100%;
	max-width: 15.625rem;
	margin-inline: auto;
}

.nav-home .menu-item + .menu-item {
	border-block-start: 0.0781rem solid var(--color-white-a5);
}

.nav-home .menu-item-link {
	display: block;

	padding: 1.125rem 1rem;

	text-decoration: none;

	font-weight: 500;
	font-size: 1.1719rem;
	line-height: 1.5938rem;

	transition: background-color var(--transition-time);
}

.gaston-home-copy {
	margin-block-start: 0.5rem;
	padding: 1.125rem 2.125rem;
	background-color: var(--color-pink);

	font-weight: 500;
	font-size: 0.7031rem;
	line-height: 1.2rem;
}

.gaston-home-copy > * {
	margin-block: 0;
}

.gaston-home-copy > * + * {
	margin-block-start: 1em;
}

@media (hover:hover) {
	.nav-home .menu-item-link:hover {
		background-color: var(--color-green-1-a3);
	}
}

@media (min-width:576px) {
	:root {
		--base-width: 33.75rem;
	}
}

@media (min-width:768px) {
	:root {
		--base-width: 45rem;
	}

	.gaston-home-mobile-cover-wrapper {
		position: relative;
		padding-block-start: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */;
	}

	.gaston-home-mobile-cover {
		position: absolute;

		inset-inline-start: 0;
		inset-block-start: 0;

		width: 100%;
		height: 100%;

		object-fit: cover;
	}
}

@media (min-width:992px) {
	.home .app-main,
	.gaston-home {
		display: flex;
	}

	.gaston-home {
		flex: 0 0 100%;
	}

	.gaston-home__body {
		display: flex;
		flex: 0 0 100%;
	}

	.gaston-home__start,
	.gaston-home__end {
		flex: 0 0 50%;
	}

	.gaston-home__start {
		position: relative;

		display: flex;
		flex-direction: column;
		justify-content: center;

		padding-block-end: 4.125rem;
	}

	.gaston-home__end {
		position: relative;
		display: block;
	}

	.gaston-home-logo {
		padding: 0 0 1.25rem 0;
	}

	.gaston-home-copy {
		position: absolute;

		inset-block-end: 0;
		inset-inline-start: 0;

		width: 100%;
	}

	.gaston-home-mobile-cover-wrapper {
		display: none;
	}

	.gaston-home-desktop-cover {
		display: block;

		position: absolute;

		inset-inline-start: 0;
		inset-block-start: 0;

		width: 100%;
		height: 100%;

		object-fit: cover;
	}
}

@media (min-width: 1200px) {
	.gaston-home__start {
		padding-block-end: 3.75rem;
	}

	.nav-home {
		max-width: 20rem;
	}

	.gaston-home-copy {
		font-weight: 500;
		font-size: 1rem;
		line-height: 1.8rem;
	}
}

@media (min-width: 1900px) {
	.gaston-home-logo .app-logo {
		max-width: 18.75rem;
	}

	.gaston-home-logo {
		padding-block-end: 3.75rem;
	}

	.gaston-home-logo .app-logo {
		max-width: 18.75rem;
	}

	.nav-home {
		max-width: 25rem;
	}

	.nav-home .menu-item {
		border-block-start: 0.0781rem solid var(--color-white-a5);
	}

	.nav-home .menu-item-link {
		font-size: 1.5rem;
		line-height: 1.4;
	}

	.gaston-home-copy {
		font-weight: 500;
		font-size: 1.125rem;
		line-height: 1.53rem;
	}
}
