/* GLOBAL SETTINGS */

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {font-size: clamp(0.75rem, 18px, 1.25rem);}

body {background: rgba(248, 245, 242, 1);}

:root {  --easein: cubic-bezier(0.4, 0, 0.2, 1);}

img {border-radius: 3px;}

/* FONTS */

/* Alternative options
h1, h2, h3 {font-family: 'Raleway', Arial, sans-serif;}
h1, h2, h3 {font-family: 'Merriweather Sans', Arial, sans-serif;}
*/

h1, h2, h3 {font-family: 'Alegreya Sans', Arial, sans-serif;}

body {font-family: "Montserrat", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;}

/* TEXT STYLING */

p, h1, h2, h3, li {color: rgba(80, 72, 65, 1)}

p {
margin: 1em 0;
line-height: 1.4;
}

h1 {margin: 0.67em 0;}

h2 {
margin: 0.83em 0;
font-size: 1.85em;}

h3 {font-size: 1.4em}

#headertext {font-weight: 900;}

#heroname {
font-weight: 400;
font-size: 1.7em}  

ul {
display: block;
margin-block-start: 1em;  
margin-block-end: 1em;     
margin-inline-start: 0;   
margin-inline-end: 0;
padding-inline-start: 40px;
}

a {color: rgba(80, 72, 65, 1)}
a:hover {color: rgba(135, 110, 95, 1)}
a:visited {color: rgba(80, 72, 65, 1)}

li::marker {color: rgba(135, 110, 95, 1)}

.pagelist li {
font-size: 0.95em;
margin-bottom: 10px
}

.chevron {
width: 10px;
height: 6px;
margin-left: 4px;
vertical-align: middle;
}

@media (max-width: 800px) {.chevron {display: none;}}

/* HEADER BANNER */

header {

color: rgba(80, 72, 65, 1);
background: rgba(248, 245, 242, 1);  
height: auto;
position: relative;
z-index: 1000;
padding-top: 25px;
padding-bottom: 25px
}

#headercontent {
display: flex;
justify-content: space-between;
align-items: center;
width: 90%;
max-width: 1800px;
margin: 0 auto;
height: 100%;
}

@media (max-width: 800px) {
#headercontent {
width: 90%;       
max-width: none; 
}
}

#headertextbox {
width: 30%;  
display: flex;
align-items: center;
}

#headertext {
font-size: 1.3rem;
white-space: nowrap;
display: inline-block;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;  
}

@media (max-width: 800px) {
#headertext {
font-size: 1rem;
white-space: nowrap; 
overflow: visible;
text-overflow: unset;}
}

@media screen and (min-width: 2000px) {#headertext {font-size: 1.5rem;}}

#headertext a {
text-decoration: none;
color: rgba(80, 72, 65, 1)  
}

#headertext a:visited {color: rgba(80, 72, 65, 1)}

#availability
{
padding-top: 30px;
text-align: center;
}

#availabilitytext {
font-size: 1.1rem;
color: rgba(100, 55, 40, 0.85); 
background-color: rgba(245, 235, 230, 0.5); 
display: inline-block;  
padding: 10px 15px;       
border-radius: 4px;
border: 1px solid rgba(120, 115, 110, 0.3); 
}

@media (max-width: 800px) 
{#availability {width: 90%; margin: 0 auto;}
#availabilitytext {font-size: 0.9rem;}
}

/* NAVIGATION BAR */

nav {
position: relative;
padding: 0;      
margin: 0;    
}

nav ul li ul { 
position: absolute; 
z-index: 2000;
} 

#hornavlinks {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap; 
justify-content: center;  
align-items: center;
}

@media screen and (min-width: 2000px) {#hornavlinks {font-size: 1.2rem;}}


#hornavlinks li a
{
display: block;
margin: 0;
padding: 15px 15px; 
line-height: normal;
}

#hornavlinks a:link
{
color: rgba(80, 72, 65, 1);
text-decoration: none;
}

#hornavlinks a:visited 
{color: rgba(80, 72, 65, 1);}

#hornavlinks a:hover /* HOVER OVER COLOUR */
{color: rgba(180, 150, 90, 1);}

#hornavlinks a.active {
color: rgba(120, 105, 90, 1); /* ACTIVE LINK COLOUR */
font-weight: bold;
}

#hornavlinks a.contactlink {
color: rgba(120, 105, 90, 1);
background-color: rgba(230, 220, 200, 0.2); 
border-radius: 3px; 
padding: 15px 15px;  
}

#hornavlinks a.contactlink:hover {
color: rgba(180, 150, 90, 1);         
background-color: rgba(230, 210, 180, 0.3);
}

.dropdownspecialties {
background: rgba(230, 225, 220, 1); /* DROPDOWN BACKGROUND COLOUR */
transform-origin: top center;
transform: scaleY(0);         /* collapsed */
opacity: 0;
pointer-events: none;         /* prevent hover/click when closed */
transition: transform 280ms var(--easein), opacity 280ms var(--easein);
padding: 10px 20px;           /* keep vertical padding */
position: absolute;
margin: 0;
list-style: none;
border-radius: 3px;
}

/* make parent li position relative so submenu is positioned correctly */
.navlinkspecialties {position: relative;}

/* Show "Specialties" submenu when JS adds the .open class (hover or tap) */
.navlinkspecialties .dropdownspecialties.open {
transform: scaleY(1);
opacity: 1;
pointer-events: auto;
}

/* style submenu items */
#hornavlinks .dropdownspecialties li a {
display: block;
padding: 8px 15px;
border-radius: 3px;
white-space: nowrap;
color: rgba(65, 55, 50, 1);  
transition: background-color 0.25s ease;
}

/* hover effects on specialities dropdown links */
#hornavlinks .dropdownspecialties li a:hover {
background: rgba(210, 200, 190, 1);
color: rgba(65, 55, 50, 1);
}

/* Hide hamburger by default */
.hamburger {
display: none;
font-size: 24px;
cursor: pointer;
user-select: none;
border: none;
background: none;
padding: 0;
}

/* MEDIUM SCREENS: move nav below header text */

@media screen and (max-width: 1400px) and (min-width: 801px) {

header {height: auto;}
  
#headercontent {
flex-direction: column;       /* stack items vertically */
align-items: center;          /* center header text and nav */
gap: 10px;                    /* spacing between header text and nav */
}

#headertextbox {
margin-top: 15px;
width: auto;
}
  
#headertext {
font-size: 1.25rem;;
margin: 0 auto;
}
  
#hornavlinks {
justify-content: center;      /* center nav links horizontally */
flex-wrap: wrap;              /* allow wrapping if too many links */
margin-bottom: 10px;
}

#hornavlinks li a {
font-size: 1rem;            
padding: 10px 15px;            /* adjust spacing for stacked layout */
}
}

/* NAV LINKS MOBILE STYLES */

@media (max-width: 800px) {

.hamburger {
display: block;          
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
  }

nav {
position: relative;   
width: 100%;  
}
  
#hornavlinks {
transform-origin: top center;
transform: scaleY(0);
opacity: 0;
pointer-events: none;
transition: transform 280ms var(--easein), opacity 280ms var(--easein);         
flex-direction: column;  
position: absolute;  
top: 100%;          
left: 0;
width: 100%;
background: rgba(230, 225, 220, 1);
border-radius: 4px;
}

#hornavlinks.show {
display: flex;       /* shown when hamburger clicked */
transform: scaleY(1);
opacity: 1;
pointer-events: auto;
}

#hornavlinks li {
width: 100%; }
  
#hornavlinks.show li a {
display: block;          
padding: 15px 10px;      
line-height: normal;     
}
  
#hornavlinks.show li a:hover {
display: block;          
padding: 15px 10px;      
line-height: normal;     
background: rgba(210, 200, 190, 1);
color: rgba(65, 55, 50, 1);  
border-radius: 3px;
}  

/* Always show specialties sublist */
.navlinkspecialties .dropdownspecialties {
display: block;
position: static;
transform: none;
opacity: 1;
pointer-events: auto;
padding: 0;
margin: 0;
background: rgba(195, 185, 175, 1);
color: rgba(65, 55, 50, 1);
border-radius: 0;
}

/* Style the child links for mobile */
.navlinkspecialties .dropdownspecialties li a {
padding: 10px 20px;  /* indent a bit to show hierarchy */
font-size: 0.8rem;  
}



#hornavlinks li.navlinkspecialties .dropdownspecialties {
display: block;        /* show as regular list inside the menu */
position: static;      /* remove absolute positioning */
margin: 0;
padding: 0 20px;   /* indent the whole UL */
list-style: none;
}
}

/* MAIN CONTENT */

section {
display: block;
padding: 30px 0;
}

section.page {padding: 50px 0;}

.content {

width: 60%;
max-width: 800px;
margin: 0 auto;
font-size: 1.1rem;  
}

@media (max-width: 800px) {
.content {
font-size: 1rem;   
width: 90%;       
max-width: none; 
}
}

.pagecontent {

width: 60%;
max-width: 800px;
min-height: 1000px;
margin: 0 auto;
font-size: 1.1rem;  
}

@media (max-width: 800px) {
.pagecontent {
font-size: 1rem;   
width: 90%;       
max-width: none; 
}
}




/* HERO SECTION */

#hero 
{
width: 100%;
max-width: 1800px;
margin: 0 auto;
padding-top: 75px;
  
}

@media (max-width: 800px) {
#hero {
height: auto;      
max-width: none; 
}
}

#herostuff {

width: 90%;
max-width: 2000px;
margin: 0 auto;
display: flex;
justify-content: center;  
align-items: flex-start;
}

#heroimage {
width: 50%;  
min-width: 300px;
display: flex;
justify-content: center; 
align-items: center; 
aspect-ratio: 1 / 1; 
}

#heroimage img {
width: 85%;
height: auto;
object-fit: contain;
border-radius: 3px;
margin-right: 10%;  
}

#herotext {
width: 50%;
font-size: 1.4rem;
padding-left: 5%;
margin-top: 5%;
}

#herotext h2{margin: 0.5em 0;}
#herotext li {margin-bottom: 15px;}
#herotext li::marker {color: rgba(135, 110, 95, 1)}


@media (max-width: 800px) {
#herostuff {flex-direction: column; align-items: center; justify-content: center;}
#heroimage {width: 100%;} 
#heroimage img {margin: 0 auto}   
#herotext {width: 90%}
  
}


/* OTHER SECTIONS */

.subcontent {
display: flex;
}

img.pageimage {

display: block; 
margin: 0 auto; 
max-width: 650px; 
margin-bottom: 30px;
}

@media (min-width: 1401px) {img.pageimage {width:60%;}}
@media screen and (max-width: 1400px) and (min-width: 801px)  {img.pageimage {width:60%;}}
@media (max-width: 800px) {img.pageimage {width:80%;}}

#therapistphoto {
width: 40%;  
display: flex;
align-items: center;
}

@media (max-width: 800px) {#therapistphoto {margin-bottom: 30px;}}


#abouttext, #writingtext {
width: 60%;
}

#writingimage {
width: 40%;  
display: flex;
align-items: center;
justify-content: flex-end;
}

@media (max-width: 800px) {#writingimage {margin-top: 30px;}}

#homespecialities, #homewriting, #homecontact, .light, .page {
background: rgba(255, 254, 252, 1);
}

@media (max-width: 800px) {
.subcontent {flex-direction: column;}
#therapistphoto {width: 90%; justify-content: center}
#abouttext {width: 90%}
#writingtext {width: 90%}
#writingimage {width: 90%; justify-content: center}
}

/* FOOTER */

footer {
padding: 20px 0;
text-align: center;
font-size: 0.9rem;
}

.footeremail {
color: rgba(80, 72, 65, 1);
text-decoration: none; /* removes underline from the whole link */
display: inline-flex;
align-items: center;
gap: 0.4em;
transition: color 0.2s ease;
}

.footeremail i {
text-decoration: underline; /* underline only the text */
}

.footeremail svg {
stroke: rgba(80, 72, 65, 1);
transition: stroke 0.2s ease;
}

/* hover state */
.footeremail:hover {
color: rgba(180, 150, 90, 1);
}

.footeremail:hover svg {
stroke: rgba(180, 150, 90, 1);
}

.footeremail:hover i {
text-decoration: underline; /* keep the underline on hover */
}

.footerlinks {
list-style: none;
margin: 0;
padding: 0;
}

.footerlinks a:link {
color: rgba(80, 72, 65, 1);
text-decoration: none;
}

.footerlinks a:visited {
color: rgba(80, 72, 65, 1);
}

.footerlinks a:hover {
color: rgba(180, 150, 90, 1);
}

.footerlinks a.active {
color: rgba(120, 105, 90, 1);
font-weight: bold;
}

/* LEARN MORE BUTTON  */

.learnmorebutton {
  background-color: rgba(135, 110, 95, 1); /* medium brown */
  color: rgba(255, 255, 255, 1);          /* white text */
  border: none;
  border-radius: 3px;                      /* rounded corners */
  padding: 0.6em 1.2em;                    /* comfortable padding */
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);  /* subtle shadow */
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;                   /* remove underline */
}

/* Unvisited & visited states */
.learnmorebutton:link,
.learnmorebutton:visited {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
}

/* Hover and focus states */
.learnmorebutton:hover,
.learnmorebutton:focus {
  background-color: rgba(150, 125, 110, 1); /* slightly darker brown */
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
  transform: translateY(-1px);             /* subtle lift */
  outline: none;                            /* remove default focus outline */
}

/* Active (pressed) state */
.learnmorebutton:active {
  background-color: rgba(120, 100, 85, 1);  /* darker brown when pressed */
  box-shadow: 0 3px 5px rgba(0,0,0,0.1);   /* reduce shadow */
  transform: translateY(0);                /* reset lift */
}

/* CONTACT FORM */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Space between end of entry field and next label */
  margin: 2rem 0;
}

.contact-form label {
  font-weight: bold;
 margin-bottom: 5px; /* Space below text label for field */
  color: rgba(80, 72, 65, 1);
}

.contact-form label:not(:first-of-type) {
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 60%;
  max-width: 750px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(135, 110, 95, 1); /* same brown as button */
  outline: none;
  box-shadow: 0 0 0 2px rgba(88, 161, 124, 0.2);
}

.contact-form button,
.contact-form input[type="submit"] {
width: 60%;
max-width: 750px;
}

/* Ontario radio question */
.contact-form fieldset {
  border: none;
  padding: 0;
  margin-top: 20px;
   margin-bottom: 20px; 
  text-align: left;
}

.contact-form fieldset legend {
  font-weight: bold;
  color: rgba(80, 72, 65, 1);
  margin-bottom: 5px;
}

.contact-form fieldset label {
  display: inline-flex;
  align-items: center;
  margin-right: 20px; /* space between Yes and No */
  margin-top: 0; /* override the label margin from above */
  font-weight: normal; /* keeps consistency with normal option labels */
}

.contact-form fieldset input[type="radio"] {
  margin-right: 6px;
}

/* Form submission messages */
#form-message {
  padding: 15px 20px;
  margin: 0 0 20px 0;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.5;
  width: 60%;
  max-width: 750px;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
color: red;
  font-size: 0.9rem;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
