
/*
Theme Name: Bath Hollow Farm and Nursery
Theme URI: https://bathhollow.com
Author: Mike Dailey
Description: Custom lightweight WordPress theme for Bath Hollow Farm and Nursery
Version: 1.0
Text Domain: bathhollow
*/

/*--------------------------------------------------------------
# Normalze
--------------------------------------------------------------*/

/* 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;
}

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
    --site_width: 1280px;

    --header_height: 100px;

    --theme-color-bkgd: #F5F1E8;
    --theme-color-bkgd-light: #ECE7D8;
    --theme-color-bkgd-dark: #D9D2C3;

    --palette-body-text: #3C3C3C;
    --palette-body-text-med: #6A6A6A;

    --palette-primary: #6D8B5B;
    --palette-primary-light: #87A878;
    --palette-primary-dark: #506646;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/   
html { 
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: var(--palette-body-text);
    background: var(--theme-color-bkgd);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--palette-body-text);
}

h1 {
    font-size: 4.5em;
}

h2 {
    font-size: 3.0em;
}

h3 {
    font-size: 1.75em;
}

p {
    line-height: 1.7;
    color: var(--palette-body-text-med);
}

/*--------------------------------------------------------------
# Layout Elements
--------------------------------------------------------------*/

.show-mobile { display: none; }
.hide-mobile { display: flex; }

.flex-container-full { display: flex; flex-flow: column nowrap; justify-content: center;
    width: 100%; margin: 0px auto; box-sizing: border-box; }
.flex-container-full-row { display: flex; flex-flow: row nowrap; justify-content: center;
    width: 100%; margin: 0px auto; box-sizing: border-box; }
.flex-container { display: flex; flex-flow: column nowrap; justify-content: center;
    width: 100%; max-width: var(--site_width); margin: 0px auto; box-sizing: border-box; }
.flex-container-row { display: flex; flex-flow: row nowrap; justify-content: center;
    width: 100%; max-width: var(--site_width); margin: 0px auto; box-sizing: border-box; }

.flex-child-full { flex: 0 1 100%; margin: 1% 0 1% 0; box-sizing: border-box; }
.flex-child-onehalf { flex: 0 1 49.2%; margin: 1% 0 1% 1.6%; box-sizing: border-box; }
.flex-child-onethird { flex: 0 1 32.26%; margin: 1% 0 1% 1.6%; box-sizing: border-box; }
.flex-child-twothird { flex: 0 1 66.13%; margin: 1% 0 1% 1.6%; box-sizing: border-box; }
.flex-child-onefourth { flex: 0 1 23.8%; margin: 1% 0 1% 1.6%; box-sizing: border-box; }
.flex-child-threefourth { flex: 0 1 74.6%; margin: 1% 0 1% 1.6%; box-sizing: border-box; }
.flex-child-onefifth { flex: 0 1 18.72%; margin: 1% 0 1% 1.6%; box-sizing: border-box; }
.flex-child-twofifth { flex: 0 1 39.04%; margin: 1% 0 1% 1.6%; box-sizing: border-box; }
.flex-child-threefifth { flex: 0 1 59.36%; margin: 1% 0 1% 1.6%; box-sizing: border-box; }
.flex-child-fourfifth { flex: 0 1 79.68%; margin: 1% 0 1% 1.6%; box-sizing: border-box; }

.flex-center { justify-content: center; text-align: center; }
.flex-right { display: flex; justify-content: flex-end; }


/*--------------------------------------------------------------
# Custom Theme Elements
--------------------------------------------------------------*/

body { 
    background: var(--theme-color-bkgd);
}

.section {
    padding: 3.0em 0 0 0;
}

.section-title {
    margin-bottom: 0.25em;
    text-align: center;
    font-size: 3.0em;
}

.section-subtitle {
    margin: 0 auto 3.0em auto;
    text-align: center;
    font-size: 1.25em;
}

.script-heading {
    font-family: 'Style Script', cursive;
    font-size: 3.0em;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.category-card {

    overflow: hidden;
    height: 100%;
    padding: 10px 10px 0 10px; 
    background: #ffffff;

    border-radius: 15px;

    box-shadow:
        0 4px 12px rgba(0,0,0,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.category-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 12px 24px rgba(0,0,0,.12);
}

.category-card img {

    width: 100%;
    height: 240px;

    object-fit: cover;
}

.category-card-content {

    padding: 1.25em;
}

.category-card h3 {

    margin-bottom: 0.1em;
    font-size: 1.5em;
}

.category-card p {

    margin: 0;
}

.plant-card {

    overflow: hidden;

    background: #fff;

    border-radius: 15px;

    box-shadow:
        0 4px 12px rgba(0,0,0,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.plant-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 12px 24px rgba(0,0,0,.12);
}

.plant-card img {

    width: 100%;
    height: 300px;

    object-fit: cover;
}

.plant-card-content {

    padding: 1.25em;
}

.plant-card h3 {

    margin-bottom: .25em;
}

.plant-card-meta {

    margin-bottom: 1em;

    font-size: .9em;

    color: var(--palette-primary);
}

.plant-card-link {

    display: inline-block;

    margin-top: .5em;

    font-weight: 700;

    color: var(--palette-primary);
}

.catalog-button {

    display: inline-block;

    margin-top: 2em;

    padding: 14px 28px;

    font-size: 1.0em;
    font-weight: 700;

    color: #fff;

    background: var(--palette-primary);

    border-radius: 8px;

    transition: .25s;
}

.catalog-button:hover {

    background: var(--palette-primary-light);

    color: #fff;
}

.visit-box {

    padding: 2em;

    background: #fff;

    border-radius: 15px;

    box-shadow:
        0 4px 12px rgba(0,0,0,.08);
}

.feature-image {

    width: 100%;

    border-radius: 15px;

    box-shadow:
        0 4px 12px rgba(0,0,0,.08);
}


/*
==============================================================
Bath Hollow Homepage
==============================================================
*/

#hero-section {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;

    min-height: 650px;

    background-image:
        linear-gradient(
            rgba(0,0,0,0.25),
            rgba(0,0,0,0.25)
        ),
        url('images/hero.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;

    width: 100%;
    min-height: 650px;
}

#hero-title {
    padding-top: 1.0em;
    font-size: 4.25em;
    color: #fff;
    text-shadow: 0 3px 12px rgba(0,0,0,.75);
}

#hero-subtitle {
    max-width: 55%;
    margin-top: .5em;
    font-size: 1.5em;
    color: #fff;
    text-shadow: 0 3px 12px rgba(0,0,0,.75);    
}

#hero-buttons {
    display: flex;
    flex-flow: row nowrap;

    margin-top: 2.5em;
}

.hero-btn,
.hero-btn-alt {

    display: inline-block;

    margin: 0 0.5em;
    padding: 15px 30px;

    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;

    transition: 0.25s;
}

.hero-btn {
    background: #6d8b5b;
    color: #fff;
}

.hero-btn:hover {
    background: #86a776;
}

.hero-btn-alt {
    background: rgba(255,255,255,0.85);
    color: #333;
}

.hero-btn-alt:hover {
    background: #fff;
}


#header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 120px;

    z-index: 1000;

    transition: all .3s ease;

    background: transparent;
}

#header.scrolled {

    background:
        rgba(245,241,232,.96);

    backdrop-filter: blur(8px);

    box-shadow:
        0 2px 10px rgba(0,0,0,.08);
}

.header-row {

    justify-content: space-between;
    align-items: center;

    height: 120px;
}


.header-logo {

    display: flex;
    align-items: center;

    height: 120px;
}

.header-logo img {

    display: block;

    height: 120px;
    width: auto;  
    
    filter:
        drop-shadow(0 2px 4px rgba(0,0,0,.65));
    
    transition: .3s ease;
}

#header.scrolled .header-logo img {

    filter:
        drop-shadow(0 1px 2px rgba(0,0,0,.15));
}

#header.scrolled .header-logo a {

    color:
        var(--palette-body-text);
}


.header-nav ul {

    display: flex;

    flex-flow: row nowrap;

    list-style: none;

    margin: 0;
    padding: 0;
}

.header-nav li {

    margin-left: 2em;
}

.header-nav a {

    color: #ffffff;

    font-weight: 700;

    text-decoration: none;
    
    text-shadow:
        0 2px 6px rgba(0,0,0,.15);    

    transition: .3s;
}

#header.scrolled .header-nav a {

    color:
        var(--palette-body-text);
}

.header-nav a:hover {

    color:
        var(--palette-primary);
}

#about img { width: 100%; }


@media (max-width:768px) {
    :root {
      --site_width: 100%;
    }
    
    .flex-container-full, 
    .flex-container-full-row,    
    .flex-container,
    .flex-container-row { 
        flex-flow: column nowrap; 
    }
    
    .flex-child-onehalf,
    .flex-child-onethird,
    .flex-child-onefourth,
    .flex-child-onefifth,
    .flex-child-onesixth {
        flex: 1 1 100%; margin: 2% 2% 2% 2%
    }
    
    h1 {
        font-size: 2.75em;
    }

    h2 {
        font-size: 2.0em;
    }

    .section {
 
    }
    
    .section-title {
        margin: 0 1%; 
        font-size: 1.2em;
    }

    .header-nav {

        display: none;
    }
    
    #header {

        height: 80px;
    }

    .header-logo {
        height: 80px;        
    }
    
    .header-logo img {
        height: 65px;
    }    
    
    #hero-section,
    #hero-section .hero-overlay
    {
        min-height: 600px;
    }
    
    #hero-title {
        font-size: 1.5em;
        margin: 0 0;        
    }
    
    #hero-subtitle {

        font-size: 0.9em;
        margin: 0.5em 5%;        
    } 
    
    #hero-buttons {

        display:flex;
        flex-direction:column;

        gap:15px;

        width: 100%;
    }

    .hero-btn,
    .hero-btn-alt{

        width: 90%;
        max-width: 180px;

        margin: 0 auto;
        padding: 15px 15px;        
        font-size: 0.8em;
    }    

    .category-card {
        margin: 10px 15px;
        padding: 10px;
    }
    .category-card h3 {
        font-size: 1.5em;
    }    
    .category-card img {
        height: 220px;
    }

    .plant-card img {
        height: 240px;
    }

    .section {
        padding: 4em 0;
    }
}